bel'"); $garage = mysql_fetch_object($garage); $auto = Array('','Seat','Opel','Nissan','Fiat','Ford','Mini','Toyota','Honda','Smart','Volkswagen','Lotus','Bmw','Dodge','Jeep','Pontiac','Mercedes','Eagle','CHrysler','Porsche','Jaguar','Viper','Ferarri',''); $soortauto = $auto[$garage->soort]; if(isset($_POST['bied']) && preg_match('/^[0-9]+$/',$_POST['bieden'])) { $_POST['bieden'] = htmlspecialchars($_POST['bieden']); $_POST['bieden'] = substr($_POST['bieden'],0,11); $bieden = $_POST['bieden']; $oud = $veiling->bod; if($bieden > $data->bank){ print "\n"; exit; } if($bieden < $oud+100 ){ print "\n"; exit; } mysql_query("UPDATE `[users]` SET `bank`=`bank`+'$oud' WHERE `login`='$oudl'"); mysql_query("INSERT INTO `[autoveilinglogs]`(`date`,`bod`,`door`,`id`) values(NOW(),'$bieden','$data->login','$veiling->id')"); mysql_query("UPDATE `[autoveiling]` SET `date`=NOW(),`bod`='$bieden',`door`='$data->login' WHERE `id`='$veiling->id'"); mysql_query("UPDATE `[users]` SET `bank`=`bank`-'$bieden' WHERE `login`='$data->login'"); print "\n"; exit; } if(isset($_POST['verwijder'])) { $oud = $veiling->bod; $oudl = $veiling->door; mysql_query("UPDATE `[users]` SET `bank`=`bank`+'$oud' WHERE `login`='$oudl'"); mysql_query("UPDATE `[auto]` SET `owner`='$data->login' WHERE `id`='$veiling->bel'"); mysql_query("DELETE FROM `[autoveiling]` WHERE `id`='$veiling->id'"); mysql_query("DELETE FROM `[autoveilinglogs]` WHERE `id`='$veiling->id'"); print "\n"; exit; } if(isset($_POST['verkoop'])) { mysql_query("UPDATE `[users]` SET `bank`=`bank`+'$veiling->bod' WHERE `login`='$data->login'"); mysql_query("UPDATE `[auto]` SET `owner`='$veiling->door' WHERE `id`='$veiling->bel'"); mysql_query("DELETE FROM `[autoveiling]` WHERE `id`='$veiling->id'"); mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`,`outbox`) values(NOW(),'** Veiling **','{$veiling->door}','Gekocht','$data->login heeft zijn/haar $soortauto verkocht aan jou. ',0)"); mysql_query("DELETE FROM `[autoveilinglogs]` WHERE `id`='$veiling->id'"); print "\n"; exit; } print <<
Veiling
Jij hebt niet zoveel geld op de bank.
Je moet €100 meer bieden dan de oude bod.
Je hebt $bieden geboden.
Je hebt $soortauto verwijderd van de veiling.
Je hebt $soorauto verkocht aan $veiling->door.
ENDHTML; print"
Aangeboden door: $veiling->naam
Auto: $soortauto
Auto Schade: {$garage->schade}%
Staat tekoop sinds: {$veiling->date2}
"; if($veiling->text != ""){ print << Info {$veiling->text} ENDHTML; } print << SpelerBodDatum ENDHTML; $select23 = mysql_query("SELECT * FROM `[autoveilinglogs]`WHERE id=$veiling->id ORDER BY date DESC LIMIT 5"); while($list = mysql_fetch_object($select23)) { print << $list->door $list->bod $list->date ENDHTML; } if($veiling->door == ""){ print"
Er is nog niet geboden op deze auto
"; } if($data->login != $veiling->naam && $data->login != $veiling->door){ $bod = $veiling->bod+100; print << Bieden:
ENDHTML; } if($data->login == $veiling->naam){ print << Opties ENDHTML; print <<
ENDHTML; $tijd = time() + 3600; if($veiling->door != "" ){ print << ENDHTML; } } exit; } if(isset($_GET['A'])) { $auto = Array('','Seat','Opel','Nissan','Fiat','Ford','Mini','Toyota','Honda','Smart','Volkswagen','Lotus','Bmw','Dodge','Jeep','Pontiac','Mercedes','Eagle','CHrysler','Porsche','Jaguar','Viper','Ferarri',''); $soortauto = $auto[$_GET['A']]; $select = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 1 AND id != '0'"); $aantal = mysql_num_rows($select); $select2 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 2 AND id != '0'"); $aantal2 = mysql_num_rows($select2); $select3 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 3 AND id != '0'"); $aantal3 = mysql_num_rows($select3); $select4 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 4 AND id != '0'"); $aantal4 = mysql_num_rows($select4); $select5 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 5 AND id != '0'"); $aantal5 = mysql_num_rows($select5); $select6 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 6 AND id != '0'"); $aantal6 = mysql_num_rows($select6); $select7 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 7 AND id != '0'"); $aantal7 = mysql_num_rows($select7); $select8 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 8 AND id != '0'"); $aantal8 = mysql_num_rows($select8); $select9 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 9 AND id != '0'"); $aantal9 = mysql_num_rows($select9); $select10 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 10 AND id != '0'"); $aantal10= mysql_num_rows($select10); $select11 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 11 AND id != '0'"); $aantal11 = mysql_num_rows($select11); $select12 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 12 AND id != '0'"); $aantal12 = mysql_num_rows($select12); $select13 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 13 AND id != '0'"); $aantal13 = mysql_num_rows($select13); $select14 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 14 AND id != '0'"); $aantal14 = mysql_num_rows($select14); $select15 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 15 AND id != '0'"); $aantal15 = mysql_num_rows($select15); $select16 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 16 AND id != '0'"); $aantal16 = mysql_num_rows($select16); $select17 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 17 AND id != '0'"); $aantal17 = mysql_num_rows($select17); $select18 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 18 AND id != '0'"); $aantal18 = mysql_num_rows($select18); $select19 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 19 AND id != '0'"); $aantal19 = mysql_num_rows($select19); $select20 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 20 AND id != '0'"); $aantal20 = mysql_num_rows($select20); $select21 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 21 AND id != '0'"); $aantal21 = mysql_num_rows($select21); $select22 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 22 AND id != '0'"); $aantal22 = mysql_num_rows($select22); print <<
Seat
$aantal
BMW
$aantal12
Opel
$aantal2
Dodge
$aantal13
Nissan
$aantal3
Jeep
$aantal14
Fiat
$aantal4
Pontiac
$aantal15
Ford
$aantal5
Mercedes
$aantal16
Mini
$aantal6
Eagle
$aantal17
Honda
$aantal7
Chrysler
$aantal18
Toyota
$aantal8
Porsche
$aantal19
Smart
$aantal9
Jaguar
$aantal20
Volkswagen
$aantal10
Viper
$aantal21
Lotus
$aantal11
Ferarri
$aantal22
$soortauto
ENDHTML; $garage1 = mysql_query("SELECT * FROM `[autoveiling]` WHERE `soort`='{$_GET['A']}' "); while($veiling = mysql_fetch_object($garage1)) { $garage = mysql_query("SELECT * FROM `[auto]` WHERE `id`='$veiling->bel'"); $garage = mysql_fetch_object($garage); print << ENDHTML; } } else{ if(isset($_POST['submit']) && preg_match('/^[0-9]+$/',$_POST['bel'])) { $_POST['inzet'] = substr($_POST['inzet'],0,11); $prijs = $_POST['prijs']; $bel = $_POST['bel']; $info = $_POST['info']; $dbres = mysql_query("SELECT * FROM `[auto]` WHERE `owner`='$data->login' AND `id`='$bel'"); while($rij = mysql_fetch_object($dbres)) { $id1 = mysql_query("SELECT * FROM `[auto]` WHERE `id`='$bel'"); $id1 = mysql_num_rows($id1); if($id1->bezig = 1){ print "
Wie Autoschade Bod Bieden
$veiling->naam $garage->schade% €$veiling->bod Bieden/info
Jij auto is bezig.
\n"; exit; } if($id1 ==0){ print "
Die auto is niet van jou.
"; exit; } $auto = Array('','Seat','Opel','Nissan','Fiat','Ford','Mini','Toyota','Honda','Smart','Volkswagen','Lotus','Bmw','Dodge','Jeep','Pontiac','Mercedes','Eagle','CHrysler','Porsche','Jaguar','Viper','Ferarri','Ford Shelby GT500','Mitsubishi Eclipse GT','Audi Le Mans quattro','Jaguar XK','Lamborghini Gallardo'); $soortauto = $auto[$rij->soort]; $dbres = mysql_query("SELECT `naam` FROM `[autoveiling]` WHERE `naam`='$data->login' AND `soort`='$rij->soort'"); $logincheck = mysql_fetch_object($dbres); $logincheck1 = mysql_num_rows($dbres); if ($logincheck1 >0){ print " "; exit;} if($rij->soort >= 23){ print "
Je hebt al een $soortauto op autoveiling staan!
$soortauto Kan je niet verkopen op de veiling.
\n"; exit;} mysql_query("INSERT INTO `[autoveiling]` (date2,naam,bel,text,soort) values(NOW(),'$data->login','$bel','$info','$rij->soort')"); mysql_query("UPDATE `[auto]` SET `owner`='veiling' WHERE `id`='$bel'"); print "Je $soortauto staat op de veiing.\n"; exit; } } $select = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 1 AND id != '0'"); $aantal = mysql_num_rows($select); $select2 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 2 AND id != '0'"); $aantal2 = mysql_num_rows($select2); $select3 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 3 AND id != '0'"); $aantal3 = mysql_num_rows($select3); $select4 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 4 AND id != '0'"); $aantal4 = mysql_num_rows($select4); $select5 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 5 AND id != '0'"); $aantal5 = mysql_num_rows($select5); $select6 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 6 AND id != '0'"); $aantal6 = mysql_num_rows($select6); $select7 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 7 AND id != '0'"); $aantal7 = mysql_num_rows($select7); $select8 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 8 AND id != '0'"); $aantal8 = mysql_num_rows($select8); $select9 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 9 AND id != '0'"); $aantal9 = mysql_num_rows($select9); $select10 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 10 AND id != '0'"); $aantal10= mysql_num_rows($select10); $select11 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 11 AND id != '0'"); $aantal11 = mysql_num_rows($select11); $select12 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 12 AND id != '0'"); $aantal12 = mysql_num_rows($select12); $select13 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 13 AND id != '0'"); $aantal13 = mysql_num_rows($select13); $select14 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 14 AND id != '0'"); $aantal14 = mysql_num_rows($select14); $select15 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 15 AND id != '0'"); $aantal15 = mysql_num_rows($select15); $select16 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 16 AND id != '0'"); $aantal16 = mysql_num_rows($select16); $select17 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 17 AND id != '0'"); $aantal17 = mysql_num_rows($select17); $select18 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 18 AND id != '0'"); $aantal18 = mysql_num_rows($select18); $select19 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 19 AND id != '0'"); $aantal19 = mysql_num_rows($select19); $select20 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 20 AND id != '0'"); $aantal20 = mysql_num_rows($select20); $select21 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 21 AND id != '0'"); $aantal21 = mysql_num_rows($select21); $select22 = mysql_query("SELECT * FROM `[autoveiling]` WHERE soort= 22 AND id != '0'"); $aantal22 = mysql_num_rows($select22); print <<
Seat
$aantal
BMW
$aantal12
Opel
$aantal2
Dodge
$aantal13
Nissan
$aantal3
Jeep
$aantal14
Fiat
$aantal4
Pontiac
$aantal15
Ford
$aantal5
Mercedes
$aantal16
Mini
$aantal6
Eagle
$aantal17
Honda
$aantal7
Chrysler
$aantal18
Toyota
$aantal8
Porsche
$aantal19
Smart
$aantal9
Jaguar
$aantal20
Volkswagen
$aantal10
Viper
$aantal21
Lotus
$aantal11
Ferarri
$aantal22
Auto plaatsen op veiling
Auto id:

Info:

Je hebt €$data->cash contant. ENDHTML; } ?>