DougK Posted November 28, 2006 Share Posted November 28, 2006 Here is a handy little functiont that you can add to global_funcs. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. This returns the full URL, including the query string. For example, www.criminalexistence.com/index.php?act ... t&topic=11 returns exactly that. I use this for troubleshooting, logging, and advanced cheat detection in the game I am developing. I'm sure there are some here that could benefit from it as well. Quote Link to comment Share on other sites More sharing options...
DesignLoft Posted November 29, 2006 Share Posted November 29, 2006 Re: Useful little function: Get_url nice! but do we need to edit anything or replace it over owt? Quote Link to comment Share on other sites More sharing options...
DougK Posted November 29, 2006 Author Share Posted November 29, 2006 Re: Useful little function: Get_url Nope, just put it at the very end of global_func (before the ?> ). For example, I use it for logging cheat attempts. I have a table that tracks the time, user, URL, and posted variables any time someone tries to cheat. I use this in addition to killing the page when a player tries to cheat, for example by changing the userid after losing an attack. This way I can see not just who tries to cheat, but how they try to cheat as well. Quote Link to comment Share on other sites More sharing options...
Tomo Posted December 14, 2006 Share Posted December 14, 2006 Re: Useful little function: Get_url Sorry for the bump, but where exactly does it return the data to? Quote Link to comment Share on other sites More sharing options...
Decepti0n Posted December 14, 2006 Share Posted December 14, 2006 Re: Useful little function: Get_url just use $url = get_url(); Quote Link to comment Share on other sites More sharing options...
ThePlague Posted February 4, 2007 Share Posted February 4, 2007 Re: Useful little function: Get_url i need to un cache my pages my game says summit like this [i have not stolen the name of this site its just an example] E.G:http://www.criminalexistance.com for every page, so instead of http://www.criminalexistance.com/login.php it will be http://www.criminalexistance.com. Anybody got any ideas? i tried using the code above but it didnt fix my problem and i dnt think it was sposed to but it was wirth a try Quote Link to comment Share on other sites More sharing options...
Z?v?? Posted July 3, 2007 Share Posted July 3, 2007 Re: [site tools] Useful little function: Get_url What would the sql table for this look like. To log the page, id, username, and time? Quote Link to comment Share on other sites More sharing options...
$$ ?????? $$ Posted July 3, 2007 Share Posted July 3, 2007 Re: [site tools] Useful little function: Get_url cool little function lol will it work for v2 ..?? :| Quote Link to comment Share on other sites More sharing options...
Matty Posted July 9, 2007 Share Posted July 9, 2007 Re: [site tools] Useful little function: Get_url i need to un cache my pages my game says summit like this [i have not stolen the name of this site its just an example] E.G:http://www.criminalexistance.com for every page, so instead of http://www.criminalexistance.com/login.php it will be http://www.criminalexistance.com. Anybody got any ideas? i tried using the code above but it didnt fix my problem and i dnt think it was sposed to but it was wirth a try Do you have an index file in the root of that folder? Quote Link to comment Share on other sites More sharing options...
Dabomstew Posted July 10, 2007 Share Posted July 10, 2007 Re: [site tools] Useful little function: Get_url cool little function lol will it work for v2 ..?? :| It's a universal function that should work in any php app. For v2, you can place it in global_func.php then use it anywhere in the game files you want. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.