Ik zou graag een soort gijzelen script in de banditi source willen toevoegen.
nu heb ik het geprobeerd om uit andere sources te halen maar dan werkt het menu ineens niet meer.
(verdwijnt of gaat naar onderen)
wie wil me helpen ??
Gijzelen
- euromarc
- Closed
-
-
Guest, wil je besparen op je domeinnamen? (ad)
-
Wil je een gijzelen?
Ik bouw hem wel ff in voor Banditi. wacht een minuut!!PHP
Toon Meer<?php /* ------------------------- */ include("jail.php"); /* ------------------------- */ ?> <html> </head> <body> <?php /* ------------------------- */ $data2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`misdaad`) AS `misdaad`,0 FROM `users` WHERE `login`='{$data->id}' AND `level`<='50'"); $data1 = mysql_fetch_object($data2); if($data1->misdaad + 300 > time()){ echo "<table width=50% align="center" cellspacing="0" cellPadding=2 border="1" borderColor="black">"; echo "<tr><td class="subTitle" colspan="2"><b>Misdaden</b></td></tr>"; print "<tr><td class="mainTxt"><font color=red><b>* Je kan pas misdaden doen om de 5 minuten!</b></font></td></tr></table>"; } else{ echo "<table width=30% align="center" cellspacing="0" cellPadding=2 border="1" borderColor="black">"; echo "<tr><td class="subTitle" colspan="2"><b>Crimes</b></td></tr>"; $totalpower = round((($data->attack+$data->defence)/2)+$data->clicks*5); $p1a = $data->m1; $p1 = round($p1a); $p2a = $data->m2*0.7; $p2 = round($p2a); $p3a = $data->m3*0.5; $p3 = round($p3a); $p4a = $data->m4*0.3; $p4 = round($p4a); $p5a = $data->m5*0.25; $p5 = round($p5a); $p6a = $data->m6*0.21; $p6 = round($p6a); $em1 = rand(-1,6); $em2 = rand(-3,8); $em3 = rand(-6,11); $em4 = rand(-8,18); $em5 = rand(-11,21); $em6 = rand(-13,25); $exother1 = rand(0,4); $exother2 = rand(0,6); $exother3 = rand(-1,8); $exother4 = rand(-2,9); $exother5 = rand(-3,11); $exother6 = rand(-4,12); if($p1 >=100) { $p1 = 100; $em1 = rand(0,-8); $exother1 = rand(0,-5); } if($p2 >=100) { $p2 = 100; $em2 = rand(0,-12); $exother2 = rand(0,-8); } if($p3 >=100) { $p3 = 100; $em3 = rand(0,-15); $exother3 = rand(0,-12); } if($p4 >=100) { $p4 = 100; $em4 = rand(0,-18); $exother4 = rand(0,-15); } if($p5 >=100) { $p5 = 100; $em5 = rand(0,-20); $exother5 = rand(0,-17); } if($p6 >=100) { $p6 = 100; $em6 = rand(0,-23); $exother6 = rand(0,-19); } if($p1 < 0) { $p1 = 0; $em1 = rand(0,6); $exother1 = rand(0,5); } if($p2 < 0) { $p2 = 0; $em2 = rand(0,8); $exother2 = rand(0,7); } if($p3 < 0) { $p3 = 0; $em3 = rand(0,10); $exother3 = rand(0,9); } if($p4 < 0) { $p4 = 0; $em4 = rand(0,12); $exother4 = rand(0,11); } if($p5 < 0) { $p5 = 0; $em5 = rand(0,14); $exother5 = rand(0,13); } if($p6 < 0) { $p6 = 0; $em6 = rand(0,16); $exother6 = rand(0,15); } if(isset($_POST['submit'])) { print "<tr><td class="mainTxt" align="center">"; if($_POST['code2'] != $_POST['codenn']) { print "<font color=red><b>* Verkeerde code!</b></font>"; exit; } $randchecker = rand(1,15); mysql_query("UPDATE `users` SET `misdaad`=NOW() WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `codechecker`='$randchecker' WHERE `login`='{$_SESSION['login']}'"); if($R1 ==1){ $randa = rand(0,50); $randb = rand(0,70); mysql_query("UPDATE `users` SET `m1`=`m1`+'$em1' WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m2`=`m2`+'$exother2' WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m3`=`m3`+'$exother3' WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m4`=`m4`+'$exother4' WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m5`=`m5`+'$exother5'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m6`=`m6`+'$exother6'WHERE `login`='{$data->id}'"); $getal = rand(1,100); if($getal <$p1+1){ $geld = rand(499999,505000); mysql_query("UPDATE `users` SET `zak`=`zak`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Brad Pitt gegijzeld! Je hebt $$geld aan losgeld"; exit; } else{ $getal = rand(1,4); if($getal ==1){ mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else{ print "Helaas, het is mislukt"; exit; } } } if($R1 ==2){ $randa1 = rand(1,5); $randb1 = rand(2,10); $randa = round($randa1*10); $randb = round($randb1*10); mysql_query("UPDATE `users` SET `m2`=`m2`+'$em2'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m1`=`m1`+'$exother1' WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m3`=`m3`+'$exother3' WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m4`=`m4`+'$exother4' WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m5`=`m5`+'$exother5'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m6`=`m6`+'$exother6'WHERE `login`='{$data->id}'"); $getal = rand(1,100); if($getal <$p2+1){ $geld = rand(524000,530000); mysql_query("UPDATE `users` SET `cash`=`cash`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Angelina Jolie gegijzeld! Je hebt $$geld aan losgeld"; exit; } else{ $getal = rand(1,4); if($getal ==1){ mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else{ print "Helaas, het is mislukt"; exit; } } } if($R1 ==3){ $randa1 = rand(3,6); $randb1 = rand(7,12); $randa = round($randa1*10); $randb = round($randb1*10); mysql_query("UPDATE `users` SET `m3`=`m3`+'$em3' WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m4`=`m4`+'$exother4' WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m2`=`m2`+'$exother2' WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m1`=`m1`+'$exother1' WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m5`=`m5`+'$exother5'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m6`=`m6`+'$exother6'WHERE `login`='{$data->id}'"); $getal = rand(1,100); if($getal <$p3+1){ $geld = rand(599999,605000); mysql_query("UPDATE `users` SET `cash`=`cash`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Tom Cruise gegijzeld! Je hebt $$geld aan losgeld."; exit; } else{ $getal = rand(1,4); if($getal ==1){ mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else{ print "De misdaad is mislukt."; exit; } } } if($R1 ==4){ $randa1 = rand(6,9); $randb1 = rand(11,17); $randa = round($randa1*10); $randb = round($randb1*10); mysql_query("UPDATE `users` SET `m4`=`m4`+'$em4'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m1`=`m1`+'$exother1'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m2`=`m2`+'$exother2'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m3`=`m3`+'$exother3'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m5`=`m5`+'$exother5'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m6`=`m6`+'$exother6'WHERE `login`='{$data->id}'"); $getal = rand(1,100); if($getal <$p4+1){ $geld = rand(949999,955000); mysql_query("UPDATE `users` SET `cash`=`cash`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Wentworth Miller gegijzeld! Je hebt $$geld aan losgeld."; exit; } else{ $getal = rand(1,4); if($getal ==1){ mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else{ print "Helaas, het is mislukt"; exit; } } } if($R1 ==5){ $randa = rand(40,100); $randb = rand(80,100); $randa1 = rand(4,10); $randb1 = rand(8,10); $randa = round($randa1*10); $randb = round($randb1*10); mysql_query("UPDATE `users` SET `m5`=`m5`+'$em5'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m1`=`m1`+'$exother1'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m2`=`m2`+'$exother2'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m3`=`m3`+'$exother3'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m4`=`m4`+'$exother4'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m6`=`m6`+'$exother6'WHERE `login`='{$data->id}'"); $getal = rand(1,100); if($getal <$p5+1){ $geld = rand(499999,505000); mysql_query("UPDATE `users` SET `cash`=`cash`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Johnny Depp gegijzeld! Je hebt $$geld aan losgeld"; exit; } else{ $getal = rand(1,4); if($getal ==1){ mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else{ print "Helaas, het is mislukt"; exit; } } } if($R1 ==6){ $randa1 = rand(6,13); $randb1 = rand(4,17); $randa = round($randa1*10); $randb = round($randb1*10); mysql_query("UPDATE `users` SET `m6`=`m6`+'$em6'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m1`=`m1`+'$exother1'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m2`=`m2`+'$exother2'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m3`=`m3`+'$exother3'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m4`=`m4`+'$exother4'WHERE `login`='{$data->id}'"); mysql_query("UPDATE `users` SET `m5`=`m5`+'$exother5'WHERE `login`='{$data->id}'"); $getal = rand(1,100); if($getal <$p6+1){ $geld = rand(350000,400000); mysql_query("UPDATE `users` SET `cash`=`cash`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Jim Carrey gegijzeld! Je hebt $$geld aan losgeld"; exit; } else{ $getal = rand(1,4); if($getal <= 2){ mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else{ print "Helaas, het is mislukt"; exit; } } } } print "</td></tr>"; $codene = rand(1000,9999); $codee = ereg_replace("0", "gsqwq", $codene); $codee = ereg_replace("1", "ssBjyq", $codee); $codee = ereg_replace("2", "gHiq", $codee); $codee = ereg_replace("3", "hWqDfA", $codee); $codee = ereg_replace("4", "hsqerf", $codee); $codee = ereg_replace("5", "Hwsawq", $codee); $codee = ereg_replace("6", "hSXaq", $codee); $codee = ereg_replace("7", "hgqYt", $codee); $codee = ereg_replace("8", "hAsqF", $codee); $codee = ereg_replace("9", "hxqSAw", $codee); ?> <form method="POST"> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="6" id="6"><LABEL id="a6" for="6"> Gijzel Brad Pitt </LABEL></td><td class="mainTxt"> <? echo $p6; ?>% </td></tr> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="5" id="5"><LABEL id="a5" for="5"> Gijzel Angelina Jolie </LABEL></td><td class="mainTxt"> <? echo $p5; ?>% </td></tr> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="4" id="4"><LABEL id="a4" for="4"> Gijzel Tom Cruise </LABEL></td><td class="mainTxt"> <? echo $p4; ?>% </td></tr> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="3" id="3"><LABEL id="a3" for="3"> Gijzel Wentworth Miller </LABEL></td><td class="mainTxt"> <? echo $p3; ?>% </td></tr> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="2" id="2"><LABEL id="a2" for="2"> Gijzel Johnny Depp </LABEL></td><td class="mainTxt"> <? echo $p2; ?>% </td></tr> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="1" id="1" checked><LABEL id="a1" for="1"> Gijzel Jim Carrey </LABEL></td><td class="mainTxt"> <? echo $p1; ?>% </td></tr> <tr><td class="mainTxt" border="1"> <? if($data->codechecker <= 3) { ?> Code: <img src="coden.php?security=<? echo $codee; ?>"> <input name="code2" type="hidden" value="<? echo $codene; ?>"> <input name="codecheck" type="hidden" value="<? echo $codechecker; ?>"></td> <td class="mainTxt"><input name="codenn" type="text" maxlength="4" size=5><br><input type="submit" value="Gijzel!" name="submit"></td></tr> <? } else { ?> <input name="codecheck" type="hidden" value="<? echo $codechecker; ?>"> </td> <td class="mainTxt"><input type="submit" value="Gijzel!" name="submit"></td></tr> <? } ?> </form> <?php } ?> </table> //Dit scripje is gemaakt door Nicolas Hulsmans. Gelieve deze niet te verkopen. </body> </html>
Als ie niet werkt, dan weet ik het ook niet meer!
OJA, je met ook nog in je menu.php file een link toevoegen naar hoe je dit bestand noemt, en in mysql onder users velden aanmaken:
`m2` int(255) NOT NULL default '0'
`m1` int(255) NOT NULL default '0'
`m3` int(255) NOT NULL default '0'
`m4` int(255) NOT NULL default '0'
`m5` int(255) NOT NULL default '0'
`m6` int(255) NOT NULL default '0' -
Tering wat een slecht script zeg. Zelfs voor criminals...
Wie zet er nu 5 query's onder elkaar die ook in één kunnen? En dan durft hij ook nog zijn naam erin te zetten (Wat in PHP-commentaar zou moeten staan, maar niet tussen PHP-tags staat)!
Daarnaast is de Captcha erin alles behalve waterdicht... Iemand met een beetje verstand heeft deze zo ontcijfert..
-
Ten eerste die gijzel script is ook de helft geript kan je ook aan het script werk zien !(h)
-
Citaat
Tering wat een slecht script zeg. Zelfs voor criminals...
Wie zet er nu 5 query's onder elkaar die ook in één kunnen? En dan durft hij ook nog zijn naam erin te zetten (Wat in PHP-commentaar zou moeten staan, maar niet tussen PHP-tags staat)!
Daarnaast is de Captcha erin alles behalve waterdicht... Iemand met een beetje verstand heeft deze zo ontcijfert..
Doe het zelf dan goed maken koning van kritiek ga dan mauwe XD
-
Hier heb je hem. Nog verreweg van perfect, maar een heel stuk beter.
PHP
Toon Meer<?php /* ------------------------- */ include ("jail.php"); /* ------------------------- */ ?> <html> </head> <body> <?php /* ------------------------- */ $data2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`misdaad`) AS `misdaad`,0 FROM `users` WHERE `login`='{$data->id}' AND `level`<='50'"); $data1 = mysql_fetch_object($data2); if ($data1->misdaad + 300 > time()) { echo '<table width=50% align="center" cellspacing="0" cellPadding=2 border="1" borderColor="black">'; echo '<tr><td class="subTitle" colspan="2"><b>Misdaden</b></td></tr>'; echo '<tr><td class="mainTxt"><font color=red><b>* Je kan pas misdaden doen om de 5 minuten!</b></font></td></tr></table>'; } else { echo '<table width=30% align="center" cellspacing="0" cellPadding=2 border="1" borderColor="black">'; echo '<tr><td class="subTitle" colspan="2"><b>Crimes</b></td></tr>'; $totalpower = round((($data->attack + $data->defence) / 2) + $data->clicks * 5); $p1a = $data->m1; $p1 = round($p1a); $p2a = $data->m2 * 0.7; $p2 = round($p2a); $p3a = $data->m3 * 0.5; $p3 = round($p3a); $p4a = $data->m4 * 0.3; $p4 = round($p4a); $p5a = $data->m5 * 0.25; $p5 = round($p5a); $p6a = $data->m6 * 0.21; $p6 = round($p6a); $em1 = rand(-1, 6); $em2 = rand(-3, 8); $em3 = rand(-6, 11); $em4 = rand(-8, 18); $em5 = rand(-11, 21); $em6 = rand(-13, 25); $exother1 = rand(0, 4); $exother2 = rand(0, 6); $exother3 = rand(-1, 8); $exother4 = rand(-2, 9); $exother5 = rand(-3, 11); $exother6 = rand(-4, 12); if ($p1 >= 100) { $p1 = 100; $em1 = rand(0, -8); $exother1 = rand(0, -5); } if ($p2 >= 100) { $p2 = 100; $em2 = rand(0, -12); $exother2 = rand(0, -8); } if ($p3 >= 100) { $p3 = 100; $em3 = rand(0, -15); $exother3 = rand(0, -12); } if ($p4 >= 100) { $p4 = 100; $em4 = rand(0, -18); $exother4 = rand(0, -15); } if ($p5 >= 100) { $p5 = 100; $em5 = rand(0, -20); $exother5 = rand(0, -17); } if ($p6 >= 100) { $p6 = 100; $em6 = rand(0, -23); $exother6 = rand(0, -19); } if ($p1 < 0) { $p1 = 0; $em1 = rand(0, 6); $exother1 = rand(0, 5); } if ($p2 < 0) { $p2 = 0; $em2 = rand(0, 8); $exother2 = rand(0, 7); } if ($p3 < 0) { $p3 = 0; $em3 = rand(0, 10); $exother3 = rand(0, 9); } if ($p4 < 0) { $p4 = 0; $em4 = rand(0, 12); $exother4 = rand(0, 11); } if ($p5 < 0) { $p5 = 0; $em5 = rand(0, 14); $exother5 = rand(0, 13); } if ($p6 < 0) { $p6 = 0; $em6 = rand(0, 16); $exother6 = rand(0, 15); } if (isset($_POST['submit'])) { print '<tr><td class="mainTxt" align="center">'; if ($_POST['code2'] != $_POST['codenn']) { print "<font color=red><b>* Verkeerde code!</b></font>"; exit; } $randchecker = rand(1, 15); mysql_query("UPDATE `users` SET `misdaad`=NOW() WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `codechecker`='$randchecker' WHERE `login`='{$_SESSION['login']}'"); if ($R1 == 1) { $randa = rand(0, 50); $randb = rand(0, 70); mysql_query("UPDATE `users` SET `m1`=`m1`+'$em1', `m2`=`m2`+'$exother2', `m3`=`m3`+'$exother3', `m4`=`m4`+'$exother4', `m5`=`m5`+'$exother5', `m6`=`m6`+'$exother6' WHERE `login`='{$data->id}'"); $getal = rand(1, 100); if ($getal < $p1 + 1) { $geld = rand(499999, 505000); mysql_query("UPDATE `users` SET `zak`=`zak`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Brad Pitt gegijzeld! Je hebt $$geld aan losgeld"; exit; } else { $getal = rand(1, 4); if ($getal == 1) { mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else { print "Helaas, het is mislukt"; exit; } } } if ($R1 == 2) { $randa1 = rand(1, 5); $randb1 = rand(2, 10); $randa = round($randa1 * 10); $randb = round($randb1 * 10); mysql_query("UPDATE `users` SET `m2`=`m2`+'$em2', `m1`=`m1`+'$exother1', `m3`=`m3`+'$exother3', `m4`=`m4`+'$exother4', `m5`=`m5`+'$exother5', `m6`=`m6`+'$exother6' WHERE `login`='{$data->id}'"); $getal = rand(1, 100); if ($getal < $p2 + 1) { $geld = rand(524000, 530000); mysql_query("UPDATE `users` SET `cash`=`cash`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Angelina Jolie gegijzeld! Je hebt $$geld aan losgeld"; exit; } else { $getal = rand(1, 4); if ($getal == 1) { mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else { print "Helaas, het is mislukt"; exit; } } } if ($R1 == 3) { $randa1 = rand(3, 6); $randb1 = rand(7, 12); $randa = round($randa1 * 10); $randb = round($randb1 * 10); mysql_query("UPDATE `users` SET `m3`=`m3`+'$em3', `m4`=`m4`+'$exother4', `m2`=`m2`+'$exother2',`m1`=`m1`+'$exother1', `m5`=`m5`+'$exother5',`m6`=`m6`+'$exother6' WHERE `login`='{$data->id}'"); $getal = rand(1, 100); if ($getal < $p3 + 1) { $geld = rand(599999, 605000); mysql_query("UPDATE `users` SET `cash`=`cash`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Tom Cruise gegijzeld! Je hebt $$geld aan losgeld."; exit; } else { $getal = rand(1, 4); if ($getal == 1) { mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else { print "De misdaad is mislukt."; exit; } } } if ($R1 == 4) { $randa1 = rand(6, 9); $randb1 = rand(11, 17); $randa = round($randa1 * 10); $randb = round($randb1 * 10); mysql_query("UPDATE `users` SET `m4`=`m4`+'$em4', `m1`=`m1`+'$exother1', `m2`=`m2`+'$exother2', `m3`=`m3`+'$exother3', `m5`=`m5`+'$exother5', `m6`=`m6`+'$exother6' WHERE `login`='{$data->id}'"); $getal = rand(1, 100); if ($getal < $p4 + 1) { $geld = rand(949999, 955000); mysql_query("UPDATE `users` SET `cash`=`cash`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Wentworth Miller gegijzeld! Je hebt $$geld aan losgeld."; exit; } else { $getal = rand(1, 4); if ($getal == 1) { mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else { print "Helaas, het is mislukt"; exit; } } } if ($R1 == 5) { $randa = rand(40, 100); $randb = rand(80, 100); $randa1 = rand(4, 10); $randb1 = rand(8, 10); $randa = round($randa1 * 10); $randb = round($randb1 * 10); mysql_query("UPDATE `users` SET `m5`=`m5`+'$em5', `m1`=`m1`+'$exother1', `m2`=`m2`+'$exother2', `m3`=`m3`+'$exother3', `m4`=`m4`+'$exother4', `m6`=`m6`+'$exother6' WHERE `login`='{$data->id}'"); $getal = rand(1, 100); if ($getal < $p5 + 1) { $geld = rand(499999, 505000); mysql_query("UPDATE `users` SET `cash`=`cash`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Johnny Depp gegijzeld! Je hebt $$geld aan losgeld"; exit; } else { $getal = rand(1, 4); if ($getal == 1) { mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else { print "Helaas, het is mislukt"; exit; } } } if ($R1 == 6) { $randa1 = rand(6, 13); $randb1 = rand(4, 17); $randa = round($randa1 * 10); $randb = round($randb1 * 10); mysql_query("UPDATE `users` SET `m6`=`m6`+'$em6', `m1`=`m1`+'$exother1', `m2`=`m2`+'$exother2', `m3`=`m3`+'$exother3', `m4`=`m4`+'$exother4', `m5`=`m5`+'$exother5' WHERE `login`='{$data->id}'"); $getal = rand(1, 100); if ($getal < $p6 + 1) { $geld = rand(350000, 400000); mysql_query("UPDATE `users` SET `cash`=`cash`+'$geld' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `users` SET `attack`=`attack`+'$randa', `defence`=`defence`+'$randb' WHERE `login`='$data->id'"); print "gelukt! je hebt Jim Carrey gegijzeld! Je hebt $$geld aan losgeld"; exit; } else { $getal = rand(1, 4); if ($getal <= 2) { mysql_query("UPDATE `users` SET `gevangenis`=NOW()),`baktijd`=NOW() WHERE `id`='$data->id'"); print "Helaas, het is mislukt <br><b>Je zit nu in de gevangenis!</b>"; exit; } else { print "Helaas, het is mislukt"; exit; } } } } print "</td></tr>"; $codene = rand(1000, 9999); $codee = str_replace("0", "gsqwq", $codene); $codee = str_replace("1", "ssBjyq", $codee); $codee = str_replace("2", "gHiq", $codee); $codee = str_replace("3", "hWqDfA", $codee); $codee = str_replace("4", "hsqerf", $codee); $codee = str_replace("5", "Hwsawq", $codee); $codee = str_replace("6", "hSXaq", $codee); $codee = str_replace("7", "hgqYt", $codee); $codee = str_replace("8", "hAsqF", $codee); $codee = str_replace("9", "hxqSAw", $codee); ?> <form method="POST"> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="6" id="6"><LABEL id="a6" for="6"> Gijzel Brad Pitt </LABEL></td><td class="mainTxt"> <?php echo $p6; ?>% </td></tr> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="5" id="5"><LABEL id="a5" for="5"> Gijzel Angelina Jolie </LABEL></td><td class="mainTxt"> <?php echo $p5; ?>% </td></tr> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="4" id="4"><LABEL id="a4" for="4"> Gijzel Tom Cruise </LABEL></td><td class="mainTxt"> <?php echo $p4; ?>% </td></tr> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="3" id="3"><LABEL id="a3" for="3"> Gijzel Wentworth Miller </LABEL></td><td class="mainTxt"> <?php echo $p3; ?>% </td></tr> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="2" id="2"><LABEL id="a2" for="2"> Gijzel Johnny Depp </LABEL></td><td class="mainTxt"> <?php echo $p2; ?>% </td></tr> <tr><td class="mainTxt" border="1"><input type="radio" name="R1" value="1" id="1" checked><LABEL id="a1" for="1"> Gijzel Jim Carrey </LABEL></td><td class="mainTxt"> <?php echo $p1; ?>% </td></tr> <tr><td class="mainTxt" border="1"> <?php if ($data->codechecker <= 3) { ?> Code: <img src="coden.php?security=<?php echo $codee; ?>"> <input name="code2" type="hidden" value="<?php echo $codene; ?>"> <input name="codecheck" type="hidden" value="<?php echo $codechecker; ?>"></td> <td class="mainTxt"><input name="codenn" type="text" maxlength="4" size=5><br><input type="submit" value="Gijzel!" name="submit"></td></tr> <? } else { ?> <input name="codecheck" type="hidden" value="<?php echo $codechecker; ?>"> </td> <td class="mainTxt"><input type="submit" value="Gijzel!" name="submit"></td></tr> <? } ?> </form> <?php } ?> </table> </body> </html>
-
Post hem dan meteen ook even bij scripts:) handig voor andere:_
-
kan aan mij liggen maar bij mij werkt die niet.
rechter menu verdwijnt en het gijzelen zelf gaat helemaal naar onderen .? -
Kan iemand de goed SQL posten?
-
Ja, omdat er een exit() opdracht in staat... Dat functioneert niet met het pagina-systeem van de banditi-source.
-
Kan iemand de goede SQL posten en ik kan menu.php niet vinden.
-
(Bump, Zelfde vraag)
Participate now!
Heb je nog geen account? Registreer je nu en word deel van onze community!