jimmytubbs Posted March 28, 2008 Posted March 28, 2008 Hi my jail hospital arnt working i think its to do with cron_minute.php as also my bar are not working here is my cron_minute.php <?phpinclude "config.php";global $_CONFIG;if($_GET['code'] != $_CONFIG['code']) { die(""); }define("MONO_ON", 1);require "class/class_db_{$_CONFIG['driver']}.php";$db=new database;$db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']);$db->connect();$c=$db->connection_id;$db->query("UPDATE users set hospital=hospital-1 WHERE hospital>0");$db->query("UPDATE `users` SET jail=jail-1 WHERE `jail` > 0");$hc=$db->num_rows($db->query("SELECT * FROM users WHERE hospital > 0"));$jc=$db->num_rows($db->query("SELECT * FROM users WHERE jail > 0"));$db->query("UPDATE settings SET conf_value='$hc' WHERE conf_name='hospital_count'");$db->query("UPDATE settings SET conf_value='$jc' WHERE conf_name='jail_count'");?> can any one help cheers jimmytubbs Quote
Guest Anonymous Posted March 28, 2008 Posted March 28, 2008 Re: I need help quickly Have you got the md5# code correct? on your cron setup? cron_minute.php?code=03sj49vyws8vhsufuecrap as make sure they are the same in config.php & the the cron tabs section in your cPanel. Quote
jimmytubbs Posted March 28, 2008 Author Posted March 28, 2008 Re: I need help quickly ive just changed it on config .php to the correct one im my crons tab and it is now working cheers jimmytubbs 2244thegame.co.uk Quote
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.