thebobby Posted April 10, 2012 Share Posted April 10, 2012 member from being deleted if they havent been on in a awhile..... grps please help Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 lol i know but cant find the cron. wat should i look for is there a different name besides delete Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 would this be it? // Commandline only if(!isset($_SERVER['argc'])) die("Reticulating Splines"); Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 require_once("classe121.php"); thats where the function for game is might be in there but nothing saying delete. Quote Link to comment Share on other sites More sharing options...
mixmaster Posted April 10, 2012 Share Posted April 10, 2012 require_once("classe121.php"); thats where the function for game is might be in there but nothing saying delete. Make it easier for people , and post the actual cron file Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 thats it i dont know which one it is Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 10, 2012 Share Posted April 10, 2012 Hahaha took me a quick search 2nd file I found.... $result = mysql_query("SELECT * FROM `grpgusers` ORDER BY `lastactive` DESC"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $secondsago = time()-$line['lastactive']; if ($secondsago > 2592000) { $user_online = new User($line['id']); $result2 = mysql_query("DELETE FROM `grpgusers` WHERE `id`='".$user_online->id."'"); } } Its not in the cron btw which is if you bothered to read the README.txt is called rollover.php Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 i dont have rollover and looked it all my cron files and nothing to do with deleteing users. 3 cron have include 'classe121.php'; Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 10, 2012 Share Posted April 10, 2012 So where exactly did you get the source code from then? as my source which is GRPG v 1.1 does. Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 // Commandline only if(!isset($_SERVER['argc'])) die("Reticulating Splines this code is in all my cron phps Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 10, 2012 Share Posted April 10, 2012 You dont have grpg well not what I have ever seen. So you either downloaded something else or something that has been filled full of crap. Its going to be difficult for anyone to help you as you do not seem to have the correct source code. Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 (edited) I never said that is code i was wanting to know wat that is for.. // Commandline only if(!isset($_SERVER['argc'])) die("Reticulating Splines Edited April 10, 2012 by thebobby Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 10, 2012 Share Posted April 10, 2012 So your posting in the GRPG forum. Dont actually have GRPG but expect people to know what your on about with snippets of code. Good luck. Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 i have grpg Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 10, 2012 Share Posted April 10, 2012 What version where did you get it from ? I have grpg and its not got the code you state and the cron of which there is only 1 vs your 3 is called rollover Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 well to be honest if u still have your rollover.php that name ppl can make ur site rollover when ever they want too. Yes i have a 24 hour cron and no delete users is not in it. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 10, 2012 Share Posted April 10, 2012 Yes I did say that earlier it was not in the cron... And no people cannot use rollover.php as clearly you do not place crons in the wwwroot so its accessible from the web!!!! Your really not making any sense and cant really see how you can expect help. Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 ok thanks for the input. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 10, 2012 Share Posted April 10, 2012 Hahaha noob. So rather than answer the questions you would rather be stuck with it until someone helps you which they cant as from what I can tell you have a different engine. Is this because GRPG is actually a paid for engine and you didnt pay for it ;) Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 /* $result = mysql_query("SELECT * FROM `grpgusers` ORDER BY `lastactive` DESC"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $secondsago = time()-$line['lastactive']; if ($secondsago > 5184000) { $user_online = new User($line['id']); $result2 = mysql_query("DELETE FROM `grpgusers` WHERE `id`='".$user_online->id."'"); } } */ Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 in tools file.php Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 10, 2012 Share Posted April 10, 2012 Do you know what /* means? Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 No do you? Quote Link to comment Share on other sites More sharing options...
Lithium Posted April 10, 2012 Share Posted April 10, 2012 No do you? LMAO, that one made my day! http://php.net/manual/en/language.basic-syntax.comments.php and keep the reading throughout all the links on the left Quote Link to comment Share on other sites More sharing options...
thebobby Posted April 10, 2012 Author Share Posted April 10, 2012 ok thats cool make fun of the noob 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.