Originally posted by wapmetal
View Post
LavaSCRIPT L9 Tamagochi, smile generator
Collapse
X
-
Heres my chapel http://wapadik.net/chapel.zip sorry i cant upload file,, error when i upload i dont know why .
Usage
echo "<a href=\"chapel.php?action=chapel&sid=$sid\">Cha pel Menu</a>";
Code:CREATE TABLE IF NOT EXISTS `couple` ( `id` int(100) NOT NULL auto_increment, `who` int(100) NOT NULL default '0', `partner` int(100) NOT NULL default '0', `req` int(100) NOT NULL default '0', `accept` int(100) NOT NULL default '0', `joined` int(100) NOT NULL default '0', `time` int(100) NOT NULL default '0', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
Last edited by kabooms; 29.11.09, 12:28.
Comment
-
Originally posted by kabooms View Postdemo script of gsm.pinoy3g.info create your own sql okeyLast edited by riderz; 03.12.09, 18:42.
Comment
-
Originally posted by kabooms View PostWap Jueteng Games for lavalair 7am and 7pm Draw auto update plusses for winner lol
In core.php
Code://///////////////jueteng draw function drawnow() { $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); return $nopop[0]; } function win($attack, $attack1) { $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng WHERE no1 LIKE '%".$attack."%' AND no2 LIKE '%".$attack1."%'")); return $noi[0]; } ///end jueteng draw ///////////////////clear data function cleardata() { ////jueteng $now = time(); $start=date("Y-m-d")." 07:00:00"; $end=date("Y-m-d")." 07:00:10"; $tstamp1=strtotime($start); $tstamp2=strtotime($end); if($now>$tstamp1 && $now<$tstamp2) { if(drawnow()) { $rand = mysql_query("SELECT no1 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack1 =$rands[0]; } $rand = mysql_query("SELECT no2 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack =$rands[0]; } if(win($attack, $attack1)) { $ilan = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noil = $ilan[0]*90; $noi2 = $noil*0.10; $noi = mysql_fetch_array(mysql_query("SELECT uid FROM ph_bazzztord_jueteng WHERE no1 LIKE '%".$attack."%' AND no2 LIKE '%".$attack1."%'")); $res = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res) { $noi2plus = $noi2+500; $unick4 = getnick_uid($noi[0]); $msg = "You won $noi2plus plusses in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $noi[0]); mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='Congratulations! $unick4 your wap jueteng numbers matched to our winning numbers $attack and $attack1. $noi2plus plusses has been added!', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noi2plus' WHERE id='".$noi[0]."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value='".$noi[0]."', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } }else{ $random = mysql_query("SELECT uid FROM ph_bazzztord_jueteng ORDER by RAND() LIMIT 1"); while($randsom=mysql_fetch_array($random)) { $attack3 =$randsom[0]; } $non = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noin = $non[0]*60; $noen = $noin*0.40; $res2 = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res2) { $unick3 = getnick_uid($attack3); $msg = "You won $noen plusses. Consolation prize in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $attack3); $res = mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='WAP Jueteng winning number combinations are $attack and $attack1. Consolation Prize goes to $unick3, You will received $noen plusses. congratulations -yay-', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noen' WHERE id='".$attack3."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value=' ', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } } } } $nw = time(); $strt=date("Y-m-d")." 12:00:00"; $nd=date("Y-m-d")." 12:00:10"; $stamp1=strtotime($strt); $stamp2=strtotime($nd); if($nw>$stamp1 && $nw<$stamp2) { if(drawnow()) { $rand = mysql_query("SELECT no1 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack1 =$rands[0]; } $rand = mysql_query("SELECT no2 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack =$rands[0]; } if(win($attack, $attack1)) { $ilan = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noil = $ilan[0]*90; $noi2 = $noil*0.10; $noi = mysql_fetch_array(mysql_query("SELECT uid FROM ph_bazzztord_jueteng WHERE no1 LIKE '%".$attack."%' AND no2 LIKE '%".$attack1."%'")); $res = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res) { $noi2plus = $noi2+500; $unick4 = getnick_uid($noi[0]); $msg = "You won $noi2plus plusses in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $noi[0]); mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='Congratulations! $unick4 your wap jueteng numbers matched in our winning numbers $attack and $attack1. $noi2plus plusses has been added!', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noi2plus' WHERE id='".$noi[0]."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value='".$noi[0]."', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } }else{ $random = mysql_query("SELECT uid FROM ph_bazzztord_jueteng ORDER by RAND() LIMIT 1"); while($randsom=mysql_fetch_array($random)) { $attack3 =$randsom[0]; } $non = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noin = $non[0]*60; $noen = $noin*0.40; $res2 = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res2) { $unick3 = getnick_uid($attack3); $msg = "You won $noen plusses. Consolation prize in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $attack3); $res = mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='WAP Jueteng winning number combinations are $attack and $attack1. Consolation Prize goes to $unick3, You will received $noen plusses. congratulations -yay-', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noen' WHERE id='".$attack3."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value=' ', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } } } } $nw = time(); $strt=date("Y-m-d")." 19:00:00"; $nd=date("Y-m-d")." 19:00:10"; $stamp1=strtotime($strt); $stamp2=strtotime($nd); if($nw>$stamp1 && $nw<$stamp2) { if(drawnow()) { $rand = mysql_query("SELECT no1 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack1 =$rands[0]; } $rand = mysql_query("SELECT no2 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack =$rands[0]; } if(win($attack, $attack1)) { $ilan = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noil = $ilan[0]*90; $noi2 = $noil*0.10; $noi = mysql_fetch_array(mysql_query("SELECT uid FROM ph_bazzztord_jueteng WHERE no1 LIKE '%".$attack."%' AND no2 LIKE '%".$attack1."%'")); $res = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res) { $noi2plus = $noi2+500; $unick4 = getnick_uid($noi[0]); $msg = "You won $noi2plus plusses in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $noi[0]); mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='Congratulations! $unick4 your wap jueteng numbers matched to our winning numbers $attack and $attack1. $noi2plus plusses has been added!', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noi2plus' WHERE id='".$noi[0]."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value='".$noi[0]."', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } }else{ $random = mysql_query("SELECT uid FROM ph_bazzztord_jueteng ORDER by RAND() LIMIT 1"); while($randsom=mysql_fetch_array($random)) { $attack3 =$randsom[0]; } $non = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noin = $non[0]*60; $noen = $noin*0.40; $res2 = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res2) { $unick3 = getnick_uid($attack3); $msg = "You won $noen plusses. Consolation prize in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $attack3); $res = mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='WAP Jueteng winning number combinations are $attack and $attack1. Consolation Prize goes to $unick3, You will received $noen plusses. congratulations -yay-', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noen' WHERE id='".$attack3."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value=' ', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } } } }
Code:CREATE TABLE IF NOT EXISTS `ph_bazzztord_jueteng` ( `uid` int(100) NOT NULL default '0', `no1` int(60) NOT NULL default '0', `no2` int(60) NOT NULL default '0', `actime` int(100) NOT NULL, PRIMARY KEY (`uid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE IF NOT EXISTS `ph_bazzztord_juetengnum` ( `no1` int(50) NOT NULL, `no2` int(50) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `ph_bazzztord_juetengnum` -- INSERT INTO `ph_bazzztord_juetengnum` (`no1`, `no2`) VALUES (1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10), (11, 11), (12, 12), (13, 13), (14, 14), (15, 15), (16, 16), (17, 17), (18, 18), (19, 19), (20, 20), (21, 21), (22, 22), (23, 23), (24, 24), (25, 5), (26, 26), (27, 27), (28, 28), (29, 29), (30, 30), (31, 31), (32, 32), (33, 33), (34, 34), (35, 35), (36, 36), (37, 37); CREATE TABLE IF NOT EXISTS `ph_bazzztord_juetengset` ( `no1` varchar(50) NOT NULL, `no2` varchar(50) NOT NULL, `value` int(100) NOT NULL default '0', `time` int(100) NOT NULL default '0', `lottonum` varchar(100) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Comment
-
Originally posted by kei_ki7 View Postcore.php code not working, i saw that the function cleardata() is not close then i close by using } at the bottom, but still not workingIt's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
PHP Code:$unick3 = getnick_uid($attack3);
$msg = "You won $noen plusses. Consolation prize in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]";
autopm($msg, $attack3);
$res = mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='WAP Jueteng winning number combinations are $attack and $attack1. Consolation Prize goes to $unick3, You will received $noen plusses. congratulations -yay-', shouter='332', shtime='".time()."'");
mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noen' WHERE id='".$attack3."'");
mysql_query("UPDATE ph_bazzztord_juetengset SET value=' ', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'");
} //line 1
} //line 2
} //line 3
} //line 4
PHP Code:} //line 1
} //line 2
} //line 3
} //line 4
} //line 5
Comment
-
try to update yours
Code://///////////////jueteng draw function drawnow() { $nopop = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); return $nopop[0]; } function win($attack, $attack1) { $noi = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng WHERE no1 LIKE '%".$attack."%' AND no2 LIKE '%".$attack1."%'")); return $noi[0]; } ///end jueteng draw ///////////////////clear data function cleardata() { ////jueteng $now = time(); $start=date("Y-m-d")." 07:00:00"; $end=date("Y-m-d")." 07:00:10"; $tstamp1=strtotime($start); $tstamp2=strtotime($end); if($now>$tstamp1 && $now<$tstamp2) { if(drawnow()) { $rand = mysql_query("SELECT no1 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack1 =$rands[0]; } $rand = mysql_query("SELECT no2 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack =$rands[0]; } if(win($attack, $attack1)) { $ilan = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noil = $ilan[0]*90; $noi2 = $noil*0.10; $noi = mysql_fetch_array(mysql_query("SELECT uid FROM ph_bazzztord_jueteng WHERE no1 LIKE '%".$attack."%' AND no2 LIKE '%".$attack1."%'")); $res = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res) { $noi2plus = $noi2+500; $unick4 = getnick_uid($noi[0]); $msg = "You won $noi2plus plusses in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $noi[0]); mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='Congratulations! $unick4 your wap jueteng numbers matched to our winning numbers $attack and $attack1. $noi2plus plusses has been added!', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noi2plus' WHERE id='".$noi[0]."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value='".$noi[0]."', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } }else{ $random = mysql_query("SELECT uid FROM ph_bazzztord_jueteng ORDER by RAND() LIMIT 1"); while($randsom=mysql_fetch_array($random)) { $attack3 =$randsom[0]; } $non = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noin = $non[0]*60; $noen = $noin*0.40; $res2 = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res2) { $unick3 = getnick_uid($attack3); $msg = "You won $noen plusses. Consolation prize in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $attack3); $res = mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='WAP Jueteng winning number combinations are $attack and $attack1. Consolation Prize goes to $unick3, You will received $noen plusses. congratulations -yay-', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noen' WHERE id='".$attack3."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value=' ', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } } } } $nw = time(); $strt=date("Y-m-d")." 12:00:00"; $nd=date("Y-m-d")." 12:00:10"; $stamp1=strtotime($strt); $stamp2=strtotime($nd); if($nw>$stamp1 && $nw<$stamp2) { if(drawnow()) { $rand = mysql_query("SELECT no1 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack1 =$rands[0]; } $rand = mysql_query("SELECT no2 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack =$rands[0]; } if(win($attack, $attack1)) { $ilan = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noil = $ilan[0]*90; $noi2 = $noil*0.10; $noi = mysql_fetch_array(mysql_query("SELECT uid FROM ph_bazzztord_jueteng WHERE no1 LIKE '%".$attack."%' AND no2 LIKE '%".$attack1."%'")); $res = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res) { $noi2plus = $noi2+500; $unick4 = getnick_uid($noi[0]); $msg = "You won $noi2plus plusses in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $noi[0]); mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='Congratulations! $unick4 your wap jueteng numbers matched in our winning numbers $attack and $attack1. $noi2plus plusses has been added!', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noi2plus' WHERE id='".$noi[0]."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value='".$noi[0]."', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } }else{ $random = mysql_query("SELECT uid FROM ph_bazzztord_jueteng ORDER by RAND() LIMIT 1"); while($randsom=mysql_fetch_array($random)) { $attack3 =$randsom[0]; } $non = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noin = $non[0]*60; $noen = $noin*0.40; $res2 = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res2) { $unick3 = getnick_uid($attack3); $msg = "You won $noen plusses. Consolation prize in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $attack3); $res = mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='WAP Jueteng winning number combinations are $attack and $attack1. Consolation Prize goes to $unick3, You will received $noen plusses. congratulations -yay-', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noen' WHERE id='".$attack3."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value=' ', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } } } } $nw = time(); $strt=date("Y-m-d")." 19:00:00"; $nd=date("Y-m-d")." 19:00:10"; $stamp1=strtotime($strt); $stamp2=strtotime($nd); if($nw>$stamp1 && $nw<$stamp2) { if(drawnow()) { $rand = mysql_query("SELECT no1 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack1 =$rands[0]; } $rand = mysql_query("SELECT no2 FROM ph_bazzztord_juetengnum ORDER by RAND() LIMIT 1"); while($rands=mysql_fetch_array($rand)) { $attack =$rands[0]; } if(win($attack, $attack1)) { $ilan = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noil = $ilan[0]*90; $noi2 = $noil*0.10; $noi = mysql_fetch_array(mysql_query("SELECT uid FROM ph_bazzztord_jueteng WHERE no1 LIKE '%".$attack."%' AND no2 LIKE '%".$attack1."%'")); $res = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res) { $noi2plus = $noi2+500; $unick4 = getnick_uid($noi[0]); $msg = "You won $noi2plus plusses in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $noi[0]); mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='Congratulations! $unick4 your wap jueteng numbers matched to our winning numbers $attack and $attack1. $noi2plus plusses has been added!', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noi2plus' WHERE id='".$noi[0]."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value='".$noi[0]."', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } }else{ $random = mysql_query("SELECT uid FROM ph_bazzztord_jueteng ORDER by RAND() LIMIT 1"); while($randsom=mysql_fetch_array($random)) { $attack3 =$randsom[0]; } $non = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_jueteng")); $noin = $non[0]*60; $noen = $noin*0.40; $res2 = mysql_query("DELETE FROM ph_bazzztord_jueteng"); if($res2) { $unick3 = getnick_uid($attack3); $msg = "You won $noen plusses. Consolation prize in wap jueteng draw!"."[br/][small]Note: This is an automatic PM[/small]"; autopm($msg, $attack3); $res = mysql_query("INSERT INTO ph_bazzztord_shouts SET shout='WAP Jueteng winning number combinations are $attack and $attack1. Consolation Prize goes to $unick3, You will received $noen plusses. congratulations -yay-', shouter='332', shtime='".time()."'"); mysql_query("UPDATE ph_bazzztord_users SET plusses=plusses+'$noen' WHERE id='".$attack3."'"); mysql_query("UPDATE ph_bazzztord_juetengset SET value=' ', no1='".$attack."', no2='".$attack1."', time='".time()."' WHERE name='lottonum'"); } } } } $timeto = 500; $timenw = time(); $timeout = $timenw - $timeto; $timeto = 120; $timenw = time(); $timeout = $timenw - $timeto; $exec = mysql_query("DELETE FROM ph_bazzztord_chonline WHERE lton<'".$timeout."'"); $timeto = 300; $timenw = time(); $timeout = $timenw - $timeto; $exec = mysql_query("DELETE FROM ph_bazzztord_chat WHERE timesent<'".$timeout."'"); $timeto = 60*60; $timenw = time(); $timeout = $timenw - $timeto; $exec = mysql_query("DELETE FROM ph_bazzztord_search WHERE stime<'".$timeout."'"); ///delete expired rooms $start2 = mktime(0, 0); // midnight today $gettime = mysql_fetch_array(mysql_query("SELECT MAX(value) FROM ph_bazzztord_settings WHERE name='reset'")); $timenw = time() + (14 * 3600); $timeto = mktime(0, 0); // midnight today $timeto -= 24*60*60; $start = $gettime[0]+57600; $timeto = 5*60; $timenw = time(); $timeout = $timenw - $timeto; $rooms = mysql_query("SELECT id FROM ph_bazzztord_rooms WHERE static='0' AND lastmsg<'".$timeout."'"); while ($room=mysql_fetch_array($rooms)) { $ppl = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_chonline WHERE rid='".$room[0]."'")); if($ppl[0]==0) { $exec = mysql_query("DELETE FROM ph_bazzztord_rooms WHERE id='".$room[0]."'"); } } $lbpm = mysql_fetch_array(mysql_query("SELECT value FROM ph_bazzztord_settings WHERE name='lastbpm'")); $td = date("Y-m-d"); //echo $lbpm[0]; $tm = time(); $antiflood = 86400; $lastpm = mysql_fetch_array(mysql_query("SELECT MAX(value) FROM ph_bazzztord_settings WHERE name='resetsht'")); $pmfl = $lastpm[0]+$antiflood; if($pmfl<$tm) { $time_to = 7*24*60*60; $timenw = time(); $inactive_time = $timenw - $timeto; $sql2 = "SELECT id FROM ph_bazzztord_users WHERE lastact<'".$inactive_time."'"; $ppl2 = mysql_query($sql2); while($mem2 = mysql_fetch_array($ppl2)) { $blg = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ph_bazzztord_tamagotchi WHERE uid='".$who."'")); if($blg[0]) { $res3 = mysql_query("DELETE FROM ph_bazzztord_tamagotchi WHERE uid='".$mem2[0]."'"); if($res3) { $text = "Your Tamagotchi died because you are Inactive for 7 days. :( [b]Note: This is an automatic pm[/b]"; mysql_query("INSERT INTO ph_bazzztord_private SET text='".$text."', byuid='334', touid='".$mem2[0]."', timesent='".time()."'"); } } } $sql3 = "SELECT id, uid FROM ph_bazzztord_tamagotchi WHERE feed<=0"; $ppl3 = mysql_query($sql3); while($mem3 = mysql_fetch_array($ppl3)) { $res1 = mysql_query("DELETE FROM ph_bazzztord_tamagotchi WHERE id='".$mem3[0]."'"); if($res1) { $text = "Your Tamagotchi died because of hunger. :( [b]Note: This is an automatic pm[/b]"; mysql_query("INSERT INTO ph_bazzztord_private SET text='".$text."', byuid='334', touid='".$mem3[1]."', timesent='".time()."'"); } } } if ($td!=$lbpm[0]) { //echo "boo"; $sql = "SELECT id, name, birthday FROM ph_bazzztord_users where month(`birthday`) = month(curdate()) and dayofmonth(`birthday`) = dayofmonth(curdate())"; $ppl = mysql_query($sql); while($mem = mysql_fetch_array($ppl)) { $msg = "[card=008]to you $mem[1]"."[/card] $sitename team wish you a day full of joy and happiness and many happy returns[br/]*fireworks*[br/][small][i]p.s: this is an automated pm[/i][/small]"; autopm($msg, $mem[0]); } $sql2 = "SELECT id FROM ph_bazzztord_tamagotchi"; $ppl2 = mysql_query($sql2); while($mem2 = mysql_fetch_array($ppl2)) { mysql_query("UPDATE ph_bazzztord_tamagotchi SET feed=feed-1, play=play-1, learn=learn-1, health=health-1, clean=clean-1, vanna=vanna-1 WHERE id='".$mem2[0]."'"); } mysql_query("UPDATE ph_bazzztord_settings SET value='".$td."' WHERE name='lastbpm'"); } } ///////////////////////////////////////
Comment
Comment