login  Naam:   Wachtwoord: 
Registreer je!
 Forum

tijd

Offline ottorocket - 29/12/2005 21:07
Avatar van ottorocketOnbekend weet iemand wat deze fout betekend?

  1. Warning: date() [function.date]: Windows does not support dates prior to midnight (00:00:00), January 1, 1970 in D:\Program Files\xampp\htdocs\usr\counterterrors\auto_stelen.php on line 131


hier het script
  1. <?php /* ------------------------- */
  2.  
  3. $OMNILOG = 1;
  4. include("_include-config.php");
  5. if(! check_login()) {
  6. header("Location: login.php");
  7. exit;
  8. }
  9.  
  10.  
  11. mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
  12.  
  13. if($data->xp <= 200){
  14. print <<<ENDHTML
  15.  
  16. <html>
  17.  
  18.  
  19. <head>
  20. <title><--counter terrors--></title>
  21. <link rel="stylesheet" type="text/css" href="css-v1.css">
  22.  
  23. </head>
  24.  
  25.  
  26. <body style="background: #996600; margin: 0px;">
  27.   <table width=100% height=10%>
  28.   <tr><td class="subTitle"><b>level</b></td></tr>
  29.   <tr><td class="mainTxt">
  30. <center>Je hebt en telaag level, je moet minsten level 1 zijn (200xp)!<br>
  31. </center>
  32.   </td></tr>
  33.   </table>
  34. </body>
  35.  
  36. </html>
  37. ENDHTML;
  38. }
  39.  
  40. if($data->garage == 0){
  41. print <<<ENDHTML
  42.  
  43. <html>
  44.  
  45.  
  46. <head>
  47. <title><--counter terrors--></title>
  48. <link rel="stylesheet" type="text/css" href="css-v1.css">
  49.  
  50. </head>
  51.  
  52.  
  53. <body style="background: #996600; margin: 0px;">
  54.   <table width=100% height=7>
  55.   <tr><td class="subTitle"><b>garage</b></td></tr>
  56.   <tr><td class="mainTxt">
  57. <center>Je hebt nog geen garage, <a href="koopgarage.php">klik hier </a>om er een te kopen!<br>
  58. </center>
  59.   </td></tr>
  60.   </table>
  61. </body>
  62.  
  63. </html>
  64. ENDHTML;
  65. }
  66.  
  67. if($data->health <= 7){
  68. print <<<ENDHTML
  69.  
  70. <html>
  71.  
  72.  
  73. <head>
  74. <title>HT</title>
  75. <link rel="stylesheet" type="text/css" href="css-v1.css">
  76.  
  77. </head>
  78.  
  79.  
  80. <body style="background: #996600; margin: 0px;">
  81.   <table width=100% height=10%>
  82.   <tr><td class="subTitle"><b>Pas Op</b></td></tr>
  83.   <tr><td class="mainTxt">
  84. <center>Je bent bijna dood ga snel naar het ziekenhuis anders overleef je het niet!<br>
  85. </center>
  86.   </td></tr>
  87.   </table>
  88. </body>
  89.  
  90. </html>
  91. ENDHTML;
  92. }
  93.  
  94. /* ------------------------- */ ?>
  95.  
  96. <html>
  97.  
  98. <link rel="stylesheet" type="text/css" href="<?php print ($_COOKIE['v'] == 2) ? "css-v2.css" : "css-v1.css"; ?>">
  99.  
  100. <title><--counter terrors--></title></head>
  101.  
  102. <body style="background: #996600; margin: 0px;">
  103. <table width=100%>
  104. <table width=100%>
  105. <tr>
  106. <td width="96%" class=subTitle><b>Auto's Stelen</b></td>
  107. </tr>
  108. <?php /* ------------------------- */
  109.  
  110.  
  111.  
  112. mysql_query("UPDATE `[users]` SET `online`=NOW() WHERE `login`='{$data->login}'");
  113.  
  114. $gn1 = mysql_query("SELECT *,UNIX_TIMESTAMP(`gevangenis`) AS `gevangenis`,0 FROM `[users]` WHERE `login`='{$_SESSION['login']}'");
  115. $gn = mysql_fetch_object($gn1); if($gn->gevangenis + $gn->gevangenistijd > time() && $data->login != aqqaa && $data->login != sasqs){
  116. $verschil1 = $gn->gevangenis + $gn->gevangenistijd - time() - 3600;
  117. $verschil = date("i:s", "$verschil1");print <<<ENDHTML
  118. <tr><td class="mainTxt" align="center"><p><font size="2"><b>Je zit in de gevangenis</b></font></p>
  119. <br>
  120. <font size="2"><b>Je word over $verschil seconden vrijgelaten</b></font></td></tr>
  121. ENDHTML;
  122. }
  123. else{
  124.  
  125. $data2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`auto`) AS `auto`,0 FROM `[users]` WHERE `login`='{$_SESSION['login']}'");
  126. $data1 = mysql_fetch_object($data2);
  127. $tijdverschil1 = $data1->auto-time() - 3000;
  128. $tijdverschil = date("i:s", "$tijdverschil1");
  129. if($data1->auto + 600 > time()){
  130. print "<tr><td class=\"mainTxt\" align=\"center\">";
  131. print "Je mag maar om de 10 minuten een auto stelen. Nog $tijdverschil seconden wachten.";
  132. print "</td></tr>";
  133. }
  134. else{
  135.  
  136.  
  137. $p1a = $data->auto1/2;
  138. $p1b = round($p1a);
  139. $p1 = rand($p1b/2,$p1b);
  140. $p2a = $data->auto1/2;
  141. $p2b = round($p2a);
  142. $p2 = rand($p2b/2,$p2b);
  143. $p3a = $data->auto1/3;
  144. $p3b = round($p3a);
  145. $p3 = rand($p3b/2,$p3b);
  146. $p4a = $data->auto1/4;
  147. $p4b = round($p4a);
  148. $p4 = rand($p4b/2,$p4b);
  149.  
  150.  
  151. if(!isset($_POST['submit'])) {
  152.  
  153.  
  154. print <<<ENDHTML
  155. <tr><td class="mainTxt">
  156. <form method="POST">
  157. <p><input type="radio" value="1" checked name="R1"> Steel snachts een auto bij iemand voor de deur.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $p1%</p>
  158. <p><input type="radio" name="R1" value="2"> Steel een auto op een verlaten parkeerplaats.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp $p2%</p>
  159. <p><input type="radio" name="R1" value="3"> Steel een auto tijdens een voetbal wedstrijd.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $p3%</p>
  160. <p><input type="radio" name="R1" value="4"> Steel een auto uit iemands garage.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $p4%</p>
  161. <p><input type="submit" value="GA" name="submit"></p>
  162. </form>
  163. </td></tr>
  164. ENDHTML;
  165.  
  166.  
  167. }
  168.  
  169.  
  170. if(isset($_POST['submit'])) {
  171. print "<tr><td class=\"mainTxt\" align=\"center\">";
  172.  
  173. mysql_query("UPDATE `[users]` SET `attack`=`attack`+'0', `defence`=`defence`+'0' WHERE `login`='$data->login'");
  174.  
  175. if($data->auto1 < 120){
  176. mysql_query("UPDATE `[users]` SET `auto1`=`auto1`+'2' WHERE `login`='$data->login'");
  177. }
  178.  
  179. $schade = rand(0,100);
  180.  
  181. if($R1 ==1){
  182. $getal = rand(1,300);
  183.  
  184. if($getal <$p1+1){
  185. $geld = rand(1,7);
  186. $geld2 = Array("","Mini Cooper","Volkswagen Polo","Opel Astra");
  187. $geld1 = $geld2[$geld];
  188.  
  189. mysql_query("INSERT INTO `[auto]`(soort,schade,owner,land) values('$geld','$schade','$data->login','$data->land')");
  190. mysql_query("UPDATE `[users]` SET `auto`=NOW(), `attack`=`attack`+'0', `xp`=`xp`+'75', `defence`=`defence`+'0' WHERE `login`='{$_SESSION['login']}'");
  191. print "Het is gelukt! Je hebt een $geld1 gestolen met $schade procent schade.";
  192. }
  193. else{
  194. $getal = rand(1,3);
  195.  
  196. if($getal ==1){
  197. mysql_query("UPDATE `[users]` SET `gevangenis`=NOW(), `gevangenistijd`='300' WHERE `login`='{$_SESSION['login']}'");
  198. mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'");
  199. print "Het is mislukt en je zit voor 5 minuten in de gevangenis.";
  200. }
  201. else{
  202. mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'");
  203. print "Het is mislukt maar je bent ontsnapt aan de politie.";
  204. }
  205. }
  206. }
  207.  
  208. if($R1 ==2){
  209. $getal = rand(1,300);
  210.  
  211. if($getal <$p2+1){
  212. $geld = rand(4,8);
  213. $geld2 = Array("","","","","Mitsubishi Eclipse","BMW Z3","Mercedes Vision CLS");
  214. $geld1 = $geld2[$geld];
  215.  
  216. mysql_query("INSERT INTO `[auto]`(soort,schade,owner,land) values('$geld','$schade','$data->login','$data->land')");
  217. mysql_query("UPDATE `[users]` SET `auto`=NOW(), `attack`=`attack`+'0', `xp`=`xp`+'75', `defence`=`defence`+'0' WHERE `login`='{$_SESSION['login']}'");
  218. print "Het is gelukt! Je hebt een $geld1 gestolen met $schade procent schade.";
  219. }
  220. else{
  221. $getal = rand(1,4);
  222.  
  223. if($getal ==1){
  224. mysql_query("UPDATE `[users]` SET `gevangenis`=NOW(), `gevangenistijd`='300' WHERE `login`='{$_SESSION['login']}'");
  225. mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'");
  226. print "Het is mislukt en je zit voor 5 minuten in de gevangenis.";
  227. }
  228. else{
  229. mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'");
  230. print "Het is mislukt maar je bent ontsnapt aan de politie.";
  231. }
  232. }
  233. }
  234.  
  235. if($R1 ==3){
  236. $getal = rand(1,300);
  237.  
  238. if($getal <$p3+1){
  239. $geld = rand(6,8);
  240. $geld2 = Array("","","","","","","Mercedes Vision CLS","Porsche Carrera GT","Lotus Elise");
  241. $geld1 = $geld2[$geld];
  242.  
  243. mysql_query("INSERT INTO `[auto]`(soort,schade,owner,land) values('$geld','$schade','$data->login','$data->land')");
  244. mysql_query("UPDATE `[users]` SET `auto`=NOW(), `attack`=`attack`+'0', `xp`=`xp`+'75', `defence`=`defence`+'0' WHERE `login`='{$_SESSION['login']}'");
  245. print "Het is gelukt! Je hebt een $geld1 gestolen met $schade procent schade.";
  246. }
  247. else{
  248. $getal = rand(1,4);
  249.  
  250. if($getal ==1){
  251. mysql_query("UPDATE `[users]` SET `gevangenis`=NOW(), `gevangenistijd`='300' WHERE `login`='{$_SESSION['login']}'");
  252. mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'");
  253. print "Het is mislukt en je zit voor 5 minuten in de gevangenis.";
  254. }
  255. else{
  256. mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'");
  257. print "Het is mislukt maar je bent ontsnapt aan de politie.";
  258. }
  259. }
  260. }
  261.  
  262. if($R1 ==4){
  263. $getal = rand(1,300);
  264.  
  265. if($getal <$p4+1){
  266. $geld = rand(8,10);
  267. $geld2 = Array("","","","","","","","","Lotus Elise","Lamborgini","Ferrari Enzo");
  268. $geld1 = $geld2[$geld];
  269.  
  270. mysql_query("INSERT INTO `[auto]`(soort,schade,owner,land) values('$geld','$schade','$data->login','$data->land')");
  271. mysql_query("UPDATE `[users]` SET `auto`=NOW(), `attack`=`attack`+'0', `xp`=`xp`+'75', `defence`=`defence`+'0' WHERE `login`='{$_SESSION['login']}'");
  272. print "Het is gelukt! Je hebt een $geld1 gestolen met $schade procent schade.";
  273. }
  274. else{
  275. $getal = rand(1,4);
  276.  
  277. if($getal ==1){
  278. mysql_query("UPDATE `[users]` SET `gevangenis`=NOW(), `gevangenistijd`='300' WHERE `login`='{$_SESSION['login']}'");
  279. mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'");
  280. print "Het is mislukt en je zit voor 5 minuten in de gevangenis.";
  281. }
  282. else{
  283. mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'");
  284. print "Het is mislukt maar je bent ontsnapt aan de politie.";
  285. }
  286. }
  287.  
  288. }
  289.  
  290. if($R1 ==5){
  291. $attack = $_POST['attack'];
  292. print <<<ENDHTML
  293.   <p><a target="_self" href="attack.php?x=$attack">klik hier</a> om hem
  294. aan te vallen.</p>
  295. ENDHTML;
  296. }
  297.  
  298. print "</td></tr>";
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309. }
  310. }
  311. }
  312. ?>
  313. </body>
  314. </html>

0 antwoorden

Gesponsorde links
Er zijn nog geen reacties op dit bericht.
Dit onderwerp is gesloten.
Actieve forumberichten
© 2002-2024 Sitemasters.be - Regels - Laadtijd: 0.373s