added back link for tournaments, fixed auction bug and removed debug print at tournament registration

main
hecht 7 years ago
parent 0d9b6c788a
commit 7c53f1a403

@ -11,6 +11,9 @@
<link rel="stylesheet" type="text/css" href="design/FightStyle.css">
</head>
<body>
<table width="100%">
<tr><td align="center" height="20px"><a href="javascript:(window.history.back())">Zur&uuml;ck</a></td></tr>
</table>
<?php
include_once('path.inc.php'); // get the path ;)

@ -167,7 +167,7 @@ function biete_inverse($userid, $auktionsdaten, $gebot, $gebot2) {
return 'Nicht genug Geld!';
}
db_query('UPDATE user SET geld = geld - '.$fee.' WHERE geld >= '.$required_money);
db_query('UPDATE user SET geld = geld - '.$fee.' WHERE geld >= '.$required_money.' AND id = '.$userid);
if (db_affected_rows() == 0) {
return 'Fehler beim Abbuchen der Geb&uuml;hr!';

@ -47,7 +47,6 @@ function anmelden($user, $charid, $type_id){
}
$sear_a = mysqli_num_rows(db_query('SELECT tr.id FROM tournament_registration tr inner join chars as c ON tr.charakter = c.id WHERE tr.type='.$type_id.' AND '.$filter_sql));
echo $sear_a.'<br>'; // Print the amount of registrations!
if($sear_a >= $anzahl) {
displayErrorMessage(NULL,'Turnier voll! Es k&uuml;nnen maximal nur '.$anzahl.' Chars am Turnier teilnehmen','<a href="index.php?as=turnier&type_id='.$type_id.'">weiter...</a>');
return;

Loading…
Cancel
Save