Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Raven's RavenNuke(tm) v2.x Distro
Author Message
dirtbag
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

PostPosted: Thu May 18, 2006 5:18 pm Reply with quote

The code change in the Sessions.php for GoogleTap Installation.. Are they necessary and what exactly does it do???

I forgot to install it but everything seems to work fine.... so thats why i ask..

Code:



------------------------------------------------------
# Find the following block of code in the append_sid function
block. (May not exist if using newer versions of PHP-NUKE) #
------------------------------------------------------

        if ( !empty($SID) && !eregi('sid=', $url) )
        {
                $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp) ? '&' : '&' ) : '?' ) . $SID;
        }
        return($url);

------------------------------------------------------
# Replace With: #
------------------------------------------------------

        if ( !empty($SID) && !eregi('sid=', $url) && !areyouabot()  )
        {
            if ( !empty($SID) && !eregi('sid=', $url) )        {
                $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
            }
        }
        return($url);


---------------------------------------------------------------------
# Create a new function after the append_sid function by adding the
following code: Please refer to included sessions.php as a reference. #
---------------------------------------------------------------------

function areyouabot() {
global $HTTP_SERVER_VARS;
        $RobotsList = array (
        "antibot",
        "appie",
        "architext",
        "bjaaland",
        "digout4u",
        "echo",
        "fast-webcrawler",
        "ferret",
        "googlebot",
        "gulliver",
        "harvest",
        "htdig",
        "ia_archiver",
        "jeeves",
        "jennybot",
        "linkwalker",
        "lycos",
        "mercator",
        "moget",
        "muscatferret",
        "myweb",
        "netcraft",
        "nomad",
        "petersnews",
        "scooter",
        "slurp",
        "unlost_web_crawler",
        "voila",
        "voyager",
        "webbase",
        "weblayers",
        "wget",
        "wisenutbot",
        "acme.spider",
        "ahoythehomepagefinder",
        "alkaline",
        "arachnophilia",
        "aretha",
        "ariadne",
        "arks",
        "aspider",
        "atn.txt",
        "atomz",
        "auresys",
        "backrub",
        "bigbrother",
        "blackwidow",
        "blindekuh",
        "bloodhound",
        "brightnet",
        "bspider",
        "cactvschemistryspider",
        "cassandra",
        "cgireader",
        "checkbot",
        "churl",
        "cmc",
        "collective",
        "combine",
        "conceptbot",
        "coolbot",
        "core",
        "cosmos",
        "cruiser",
        "cusco",
        "cyberspyder",
        "deweb",
        "dienstspider",
        "digger",
        "diibot",
        "directhit",
        "dnabot",
        "download_express",
        "dragonbot",
        "dwcp",
        "e-collector",
        "ebiness",
        "eit",
        "elfinbot",
        "emacs",
        "emcspider",
        "esther",
        "evliyacelebi",
        "nzexplorer",
        "fdse",
        "felix",
        "fetchrover",
        "fido",
        "finnish",
        "fireball",
        "fouineur",
        "francoroute",
        "freecrawl",
        "funnelweb",
        "gama",
        "gazz",
        "gcreep",
        "getbot",
        "geturl",
        "golem",
        "grapnel",
        "griffon",
        "gromit",
        "hambot",
        "havindex",
        "hometown",
        "htmlgobble",
        "hyperdecontextualizer",
        "iajabot",
        "ibm",
        "iconoclast",
        "ilse",
        "imagelock",
        "incywincy",
        "informant",
        "infoseek",
        "infoseeksidewinder",
        "infospider",
        "inspectorwww",
        "intelliagent",
        "irobot",
        "iron33",
        "israelisearch",
        "javabee",
        "jbot",
        "jcrawler",
        "jobo",
        "jobot",
        "joebot",
        "jubii",
        "jumpstation",
        "katipo",
        "kdd",
        "kilroy",
        "ko_yappo_robot",
        "labelgrabber.txt",
        "larbin",
        "legs",
        "linkidator",
        "linkscan",
        "lockon",
        "logo_gif",
        "macworm",
        "magpie",
        "marvin",
        "mattie",
        "mediafox",
        "merzscope",
        "meshexplorer",
        "mindcrawler",
        "momspider",
        "monster",
        "motor",
        "mwdsearch",
        "netcarta",
        "netmechanic",
        "netscoop",
        "newscan-online",
        "nhse",
        "northstar",
        "occam",
        "octopus",
        "openfind",
        "orb_search",
        "packrat",
        "pageboy",
        "parasite",
        "patric",
        "pegasus",
        "perignator",
        "perlcrawler",
        "phantom",
        "piltdownman",
        "pimptrain",
        "pioneer",
        "pitkow",
        "pjspider",
        "pka",
        "plumtreewebaccessor",
        "poppi",
        "portalb",
        "puu",
        "python",
        "raven",
        "rbse",
        "resumerobot",
        "rhcs",
        "roadrunner",
        "robbie",
        "robi",
        "robofox",
        "robozilla",
        "roverbot",
        "rules",
        "safetynetrobot",
        "search_au",
        "searchprocess",
        "senrigan",
        "sgscout",
        "shaggy",
        "shaihulud",
        "sift",
        "simbot",
        "site-valet",
        "sitegrabber",
        "sitetech",
        "slcrawler",
        "smartspider",
        "snooper",
        "solbot",
        "spanner",
        "speedy",
        "spider_monkey",
        "spiderbot",
        "spiderline",
        "spiderman",
        "spiderview",
        "spry",
        "ssearcher",
        "suke",
        "suntek",
        "sven",
        "tach_bw",
        "tarantula",
        "tarspider",
        "techbot",
        "templeton",
        "teoma_agent1",
        "titin",
        "titan",
        "tkwww",
        "tlspider",
        "ucsd",
        "udmsearch",
        "urlck",
        "valkyrie",
        "victoria",
        "visionsearch",
        "vwbot",
        "w3index",
        "w3m2",
        "wallpaper",
        "wanderer",
        "wapspider",
        "webbandit",
        "webcatcher",
        "webcopy",
        "webfetcher",
        "webfoot",
        "weblinker",
        "webmirror",
        "webmoose",
        "webquest",
        "webreader",
        "webreaper",
        "websnarf",
        "webspider",
        "webvac",
        "webwalk",
        "webwalker",
        "webwatch",
        "whatuseek",
        "whowhere",
        "wired-digital",
        "wmir",
        "wolp",
        "wombat",
        "worm",
        "wwwc",
        "wz101",
        "xget",
        "awbot",
        "bobby",
        "boris",
        "bumblebee",
        "cscrawler",
        "daviesbot",
        "ezresult",
        "gigabot",
        "gnodspider",
        "internetseer",
        "justview",
        "linkbot",
        "linkchecker",
        "nederland.zoek",
        "perman",
        "pompos",
        "psbot",
        "redalert",
        "shoutcast",
        "slysearch",
        "ultraseek",
        "webcompass",
        "yandex",
        "robot",
        "crawl"
        );
        $botID = strtolower($HTTP_SERVER_VARS['HTTP_USER_AGENT']);
        for ($i = 0; $i < count($RobotsList); $i++)
        {
                if ( strstr($botID, $RobotsList[$i]) )
                {
                        return TRUE;
                }
        }
        return FALSE;

}

-------------------------------------------------
# DONE! #
-------------------------------------------------
 
View user's profile Send private message
dirtbag
PostPosted: Fri May 19, 2006 12:42 am Reply with quote

well the code below does not even exist in the function so is it even revelant??

Code:


- Open includes/Sessions.php

------------------------------------------------------
# Find the following block of code in the append_sid function
block. (May not exist if using newer versions of PHP-NUKE) #
------------------------------------------------------

        if ( !empty($SID) && !eregi('sid=', $url) )
        {
                $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp) ? '&' : '&amp;' ) : '?' ) . $SID;
        }
        return($url);

------------------------------------------------------
# Replace With: #
------------------------------------------------------

        if ( !empty($SID) && !eregi('sid=', $url) && !areyouabot()  )
        {
            if ( !empty($SID) && !eregi('sid=', $url) )        {
                $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp ) ? '&' : '&amp;' ) : '?' ) . $SID;
            }
        }
        return($url);


---------------------------------------------------------------------
# Create a new function after the append_sid function by adding the
following code: Please refer to included sessions.php as a reference. #
---------------------------------------------------------------------
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Fri May 19, 2006 5:45 am Reply with quote

Those changes are there to help ensure that these search engine bots do not cache the phpBB session ID in the URLs. I am going to start working on integrating GTNG into RavenNuke76 this weekend and next week (I have only an hour max each day to do anything anymore!), so, I'll let you know what I find. GTNG was done on a very old phpBB version so not sure how that code applies anymore...

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
dirtbag
PostPosted: Tue May 23, 2006 4:19 pm Reply with quote

well you seem to know what you are doing so cant wait to see what you come up with.. i am understanding it more as i got most of my site GT thanks to your great Tweak Also..

i have a Javascript menubar on my site with the links hardcoded with the Original links... any advice on how to get them to change with out hardcoding them?
Only registered users can see links on this board! Get registered or login! look at the menu bar with the Forums, MMA Links, Reviews, Etc..

thanks
 
montego
PostPosted: Wed May 24, 2006 6:05 am Reply with quote

First of all, great site!! Second, with regard to "tapping" of the site contents, the key is to do a View Source on your final generated page. Essentially, what is happening is the urlin() statements must find a match within that source in order to adjust it. It does this by bufferring the generated output until close to the end, then does the search/replace, and finally flushes it out back to the requestor's browser.

I have looked at your "source" and you "may" be able to tap these. Had you tried to add the urlin/urlout lines for the individual module links that you have in this block?

Oh, key question, is the block where the JS is produced or somewhere else? That will determine where the urlin/out need to go.
 
dirtbag
PostPosted: Wed May 24, 2006 8:16 am Reply with quote

its not a block... its the javascript menubar and is located in the themeheader in the .theme file

so most likely they will need to be hard coded?
 
montego
PostPosted: Wed May 24, 2006 10:57 pm Reply with quote

Maybe not. Each module "tap" could, theoretically, have these urlin/urlout lines added to address those. I have not done it yet and am instead working on another "hack" to allow the specific "tapping" of the header and footer. Again, will be a part of the next RavenNuke76.
 
dirtbag
PostPosted: Mon May 29, 2006 11:43 pm Reply with quote

okay been still modifying my install starting to take shape and running good...
Only registered users can see links on this board! Get registered or login!
 
montego
PostPosted: Tue May 30, 2006 6:04 am Reply with quote

montego wrote:
Maybe not. Each module "tap" could, theoretically, have these urlin/urlout lines added to address those. I have not done it yet and am instead working on another "hack" to allow the specific "tapping" of the header and footer. Again, will be a part of the next RavenNuke76.


BTW, I have this working now. You will be able to also create a page-level "tap file" to cover any additional links. RN76 2.10.00 goes into QA testing on June 15th.

Regards,
montego
 
dirtbag
PostPosted: Tue May 30, 2006 9:12 am Reply with quote

cool man... if you need any testing just drop me a message Smile
 
montego
PostPosted: Wed May 31, 2006 2:29 pm Reply with quote

I may take you up on that offer! Wink
 
montego
PostPosted: Wed May 31, 2006 3:04 pm Reply with quote

BTW, I am running a test on sessions.php. I had the GTNG code in there for my site but after further review of the code, I am not sure it is necessary anymore. I will let you know how that ends up.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Raven's RavenNuke(tm) v2.x Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©