PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
dirtbag
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

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

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
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

PostPosted: Fri May 19, 2006 12:42 am Reply with quote Back to top

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. #
---------------------------------------------------------------------
View user's profile Send private message
montego
Moderator


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

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

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...
View user's profile Send private message Visit poster's website
dirtbag
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

PostPosted: Tue May 23, 2006 4:19 pm Reply with quote Back to top

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 to the forums!
look at the menu bar with the Forums, MMA Links, Reviews, Etc..

thanks
View user's profile Send private message
montego
Moderator


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

PostPosted: Wed May 24, 2006 6:05 am Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
dirtbag
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

PostPosted: Wed May 24, 2006 8:16 am Reply with quote Back to top

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?
View user's profile Send private message
montego
Moderator


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

PostPosted: Wed May 24, 2006 10:57 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
dirtbag
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

PostPosted: Mon May 29, 2006 11:43 pm Reply with quote Back to top

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 to the forums!
View user's profile Send private message
montego
Moderator


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

PostPosted: Tue May 30, 2006 6:04 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
dirtbag
Regular
Regular


Joined: Nov 09, 2003
Posts: 73

PostPosted: Tue May 30, 2006 9:12 am Reply with quote Back to top

cool man... if you need any testing just drop me a message Smile
View user's profile Send private message
montego
Moderator


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

PostPosted: Wed May 31, 2006 2:29 pm Reply with quote Back to top

I may take you up on that offer! Wink
View user's profile Send private message Visit poster's website
montego
Moderator


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

PostPosted: Wed May 31, 2006 3:04 pm Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum