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>
</td>
</tr>
<?php
if($GLOBALS['URL_TO_TURNIER'] !== null) {
?>
<tr>
<td>
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=tournament">Turniere</a>
</td>
</tr>
<?php
}
?>
<tr>
<tr>
<td>

@ -17,7 +17,7 @@ function displayTournamentOptions($action, $klein, $wochen) {
</tr>
<tr>
<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['randomize'].'&name='.$_POST['name'].'&anzahl='.$_POST['anzahl'];?>"
target="_blank">Turnier starten!</a>
@ -35,7 +35,7 @@ function displayTournamentOptions($action, $klein, $wochen) {
} elseif($action == 'tnmt') {
?>
<form method="POST">
<input type="hidden" name="choose" value="tournament">
<input type="hidden" name="choose" value="tournament">
<input type="hidden" name="action" value="checktnmt">
<table width="80%">
<tr>
@ -63,7 +63,7 @@ function displayTournamentOptions($action, $klein, $wochen) {
<option value="256">256</option>
<option value="512">512</option>
</select>
</tr>
<tr>
<td>Fusion erlaubt?</td>

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

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

@ -153,7 +153,9 @@ if($gain == 'Anmeldung'){
while($row = mysql_fetch_assoc($qry)){
$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){
$sql = 'SELECT id FROM chars where '.$auswahl_kriteria.' and id NOT IN('.join(',',$cid).') ORDER BY RAND()';
} else {

Loading…
Cancel
Save