updates for tickets

main
hecht 13 years ago
parent f6b93da44c
commit b80441cf35

@ -151,11 +151,17 @@ function displayOptions(){
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=bann">Banns und andere unsch&ouml;ne Sachen</a> <a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=bann">Banns und andere unsch&ouml;ne Sachen</a>
</td> </td>
</tr> </tr>
<?php
if($GLOBALS['URL_TO_TURNIER'] !== null) {
?>
<tr> <tr>
<td> <td>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=tournament">Turniere</a> <a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=tournament">Turniere</a>
</td> </td>
</tr> </tr>
<?php
}
?>
<tr> <tr>
<tr> <tr>
<td> <td>

@ -17,7 +17,7 @@ function displayTournamentOptions($action, $klein, $wochen) {
</tr> </tr>
<tr> <tr>
<td style="text-align: center"> <td style="text-align: center">
<a href="<?php echo 'http://ag04.animegame.eu/ag_crond/generic_turnier.php?fusion='.$_POST['fusion'].'&special='. <a href="<?php echo $GLOBALS['URL_TO_TURNIER'].'?fusion='.$_POST['fusion'].'&special='.
$_POST['special'].'&minlevel='.$_POST['minlevel'].'&maxlevel='.$_POST['maxlevel'].'&gain='.$_POST['gain'].'&randomize='. $_POST['special'].'&minlevel='.$_POST['minlevel'].'&maxlevel='.$_POST['maxlevel'].'&gain='.$_POST['gain'].'&randomize='.
$_POST['randomize'].'&name='.$_POST['name'].'&anzahl='.$_POST['anzahl'];?>" $_POST['randomize'].'&name='.$_POST['name'].'&anzahl='.$_POST['anzahl'];?>"
target="_blank">Turnier starten!</a> target="_blank">Turnier starten!</a>

@ -71,6 +71,7 @@ function getHallOfFameEntryCountFull($round = '', $title = '', $userid = '') {
return 0; return 0;
} }
$sql = 'SELECT COUNT(*) FROM highscore WHERE art=\''.$title.'\' AND runde='.$round.' AND userid='.$userid; $sql = 'SELECT COUNT(*) FROM highscore WHERE art=\''.$title.'\' AND runde='.$round.' AND userid='.$userid;
// echo $sql .'<br>';
$row = mysql_fetch_row(mysql_query($sql)); $row = mysql_fetch_row(mysql_query($sql));
return $row[0]; return $row[0];
} }

@ -93,6 +93,7 @@ function abmelden($user_ida, $char_id, $art){
function displayDefault($user, $art){ function displayDefault($user, $art){
if($art == 'klein'){ if($art == 'klein'){
$turniername = 'Anf&auml;nger'; $turniername = 'Anf&auml;nger';
$special_clue = ' AND level<=25 AND fusion =\'nein\' AND char_type = \'\' '; $special_clue = ' AND level<=25 AND fusion =\'nein\' AND char_type = \'\' ';
@ -105,8 +106,8 @@ function displayDefault($user, $art){
return; return;
} }
// sehr speziell und deswegen nicht getChar(); // sehr speziell und deswegen nicht getChar();
$sql = 'SELECT id, name, status FROM chars WHERE status=\'Frei\' AND besitzer='.$user['id'].$special_clue; $sql = 'SELECT id, name FROM chars WHERE besitzer='.$user['id'].$special_clue;
// echo $sql; echo $sql;
$char = mysql_query($sql); $char = mysql_query($sql);

@ -153,7 +153,9 @@ if($gain == 'Anmeldung'){
while($row = mysql_fetch_assoc($qry)){ while($row = mysql_fetch_assoc($qry)){
$cid[] = $row['id']; $cid[] = $row['id'];
} }
mysql_query('DELETE FROM turnier1 WHERE art = \''.$name.'\''); // Lösche die Anmeldungsliste $sql = 'DELETE FROM turnier1 WHERE art = \''.$name.'\'';
// echo $sql .'<br>';
mysql_query($sql); // Lösche die Anmeldungsliste
if(count($cid) > 0){ if(count($cid) > 0){
$sql = 'SELECT id FROM chars where '.$auswahl_kriteria.' and id NOT IN('.join(',',$cid).') ORDER BY RAND()'; $sql = 'SELECT id FROM chars where '.$auswahl_kriteria.' and id NOT IN('.join(',',$cid).') ORDER BY RAND()';
} else { } else {

Loading…
Cancel
Save