Hallo,
Op mijn site heb ik al enkele dagen een probleem met mijn cron, dus kunnen de leden geen oc's doen, geen gangsters worden van hun eigen enz...
Hier is de script ervan.
Als iemand me kan helpen of vertellen wat er veranderd moet worden, zeg het dan even, of stuur me een privé bericht, of voeg me toe op msn : [email protected]
En er zijn al enkele mensen die gezegd hebben dat de script juist is, maar waar zit de fout dan?
PHP
<?php /* ------------------------- */
if((@mysql_connect("localhost","account","pass") && @mysql_select_db("username"))) {
mysql_query("UPDATE `[users]` SET `IPs`=''");
mysql_query("DELETE FROM `[logs]` WHERE `area`='click'");
mysql_query("DELETE FROM `[logs]` WHERE `area`= 'Nieuwe Kogels per uur ingesteld' AND `time` < DATE_SUB(NOW(), INTERVAL 1 DAY) ");
mysql_query("DELETE FROM `[logs]` WHERE `area`= 'Set new Bullet price' AND `time` < DATE_SUB(NOW(), INTERVAL 1 DAY) ");
mysql_query("DELETE FROM `[logs]` WHERE `area`= 'Travel' AND `time` < DATE_SUB(NOW(), INTERVAL 7 DAY) ");
mysql_query("DELETE FROM `[logs]` WHERE `area`= 'attack' AND `time` < DATE_SUB(NOW(), INTERVAL 30 DAY) ");
mysql_query("DELETE FROM `[logs]` WHERE `area`= 'Travel' AND `time` < DATE_SUB(NOW(), INTERVAL 7 DAY) ");
mysql_query("DELETE FROM `[logs]` WHERE `area`= 'Wapenexpert oc' AND `time` < DATE_SUB(NOW(), INTERVAL 1 DAY) ");
mysql_query("DELETE FROM `[logs]` WHERE `area`= 'Chauffeur oc' AND `time` < DATE_SUB(NOW(), INTERVAL 1 DAY) ");
mysql_query("DELETE FROM `[logs]` WHERE `area`= 'Kogel fabriek weggegeven' AND `time` < DATE_SUB(NOW(), INTERVAL 30 DAY) ");
mysql_query("UPDATE `[users]` SET `vliegticketsperdag`='3',`treinticketsperdag`='3'");
mysql_query("UPDATE `[users]` SET `ocs`='0',`ocsdoen`='2',`clickstoday`='0'");
mysql_query("UPDATE `[users]` SET `nonactief`=`nonactief`-1 WHERE `dagen`='1' AND `nonactief`>'0'");
mysql_query("UPDATE `[users]` SET `dagen`='0' WHERE `nonactief`<='0'");
mysql_query("UPDATE `[users]` SET `paying`=`paying`-1 WHERE `betaal`='255'");
mysql_query("UPDATE `[users]` SET `nederwiet`=`nederwiet`+1 WHERE `nederwiet` < 20");
mysql_query("UPDATE `[users]` SET `xtc`=`xtc`+1 WHERE `xtc` < 20");
mysql_query("UPDATE `[users]` SET `lsd`=`lsd`+1 WHERE `lsd` < 20");
mysql_query("UPDATE `[users]` SET `speed`=`speed`+1 WHERE `speed` < 20");
mysql_query("UPDATE `[users]` SET `paddo`=`paddo`+1 WHERE `paddo` < 20");
mysql_query("UPDATE `[users]` SET `opium`=`opium`+1 WHERE `opium` < 20");
mysql_query("UPDATE `[users]` SET `nederwiet`=`nederwiet`+2 WHERE `paying` > 1 AND `nederwiet` < 40");
mysql_query("UPDATE `[users]` SET `xtc`=`xtc`+2 WHERE `paying` > 1 AND `xtc` < 40");
mysql_query("UPDATE `[users]` SET `lsd`=`lsd`+2 WHERE `paying` > 1 AND `lsd` < 40");
mysql_query("UPDATE `[users]` SET `speed`=`speed`+2 WHERE `paying` > 1 AND `speed` < 40");
mysql_query("UPDATE `[users]` SET `paddo`=`paddo`+2 WHERE `paying` > 1 AND `paddo` < 40");
mysql_query("UPDATE `[users]` SET `opium`=`opium`+2 WHERE `paying` > 1 AND `opium` < 40");
mysql_query("UPDATE `[users]` SET `autos1`='0',`autos2`='0',`autos3`='0',`autos4`='0',`autos5`='0',`autos6`='0',`autos7`='0',`autos8`='0',`autos9`='0',`autos10`='0'");
mysql_query("UPDATE `[users]` SET `cash`=`cash`*1.02 WHERE `betaal`!='255'");
mysql_query("UPDATE `[users]` SET `cash`=`cash`*1.05 WHERE `betaal`='255'");
mysql_query("UPDATE `[users]` SET `bank`=`bank`*1.03 WHERE `bank` < 100000000");
mysql_query("OPTIMIZE TABLE `[logs]`");
mysql_query("OPTIMIZE TABLE `[temp]`");
mysql_query("OPTIMIZE TABLE `[users]`");
}
/* ------------------------- */ ?>
Toon Meer
Alvast Bedankt