DomPrize = day of month prize
Basically, it randomizes a day from a month and if you go on that page on the right day you get a prize!
domprize.php
<?php
include "globals.php";
if($ir['domprize'] == 0) {
print "You have had your prize for this month!";
exit();
}
$day = rand(1,31);
if(date("d") == $day) {
$money = rand(100,10000);
print "You got a prize for coming on this page on the ". date($day) ." of this month!";
$db->query("UPDATE users SET money=money+{$money},domprize=0 WHERE userid=$userid");
}
else
{
print "No Prize";
$db->query("UPDATE users SET domprize=0 WHERE userid=$userid");
}
?>
Now make a file called cron_month.php
open up cron_fivemins.php and copy that code
open up cron_month and paste the code, and add
$db->query("UPDATE users SET domprize=1");
ALTER TABLE users ADD domprize INT(11) DEFAULT 1 NOT NULL;
Simple I know