|
|
@ -111,101 +111,32 @@ function displayLogin(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function displayOptions(){
|
|
|
|
function displayOptions(){
|
|
|
|
?>
|
|
|
|
$entries = array("bilder" => "Bilderschau",
|
|
|
|
<table>
|
|
|
|
"faq" => "FAQ bearbeiten",
|
|
|
|
<tr>
|
|
|
|
"rassen" => "Rassen bearbeiten",
|
|
|
|
<td>
|
|
|
|
"attacken" => "Attacken bearbeiten",
|
|
|
|
<a href="<?php $_SERVER['PHP_SELF'] ?>?choose=bilder">Bilderschau</a>
|
|
|
|
"attackentypen" => "Attackentypen bearbeiten",
|
|
|
|
</td>
|
|
|
|
"poll" => "Umfragen bearbeiten",
|
|
|
|
</tr>
|
|
|
|
"items" => "Items bearbeiten",
|
|
|
|
<tr>
|
|
|
|
"clan" => "Clan bearbeiten",
|
|
|
|
<td>
|
|
|
|
"geheim" => "Geheim bearbeiten",
|
|
|
|
<a href="<?php $_SERVER['PHP_SELF'] ?>?choose=faq">FAQ bearbeiten</a>
|
|
|
|
"usergroups" => "Nutzergruppen bearbeiten",
|
|
|
|
</td>
|
|
|
|
"bann" => "Banns und andere unschöne Sachen",
|
|
|
|
</tr>
|
|
|
|
"tournament" => "Turniere bearbeiten",
|
|
|
|
<tr>
|
|
|
|
"qnpc" => "Schatzsuche-Monster bearbeiten",
|
|
|
|
<td>
|
|
|
|
"npc" => "NPC bearbeiten",
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=rassen">Rassen bearbeiten</a>
|
|
|
|
"shop" => "Shakkys Shop Angebote bearbeiten",
|
|
|
|
</td>
|
|
|
|
"news" => "News bearbeiten",
|
|
|
|
</tr>
|
|
|
|
"cheat" => "Multiuser und Cheater",
|
|
|
|
<tr>
|
|
|
|
"log" => "Log ansehen",
|
|
|
|
<td>
|
|
|
|
"logout" => "Log out"
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=attacken">Attacken bearbeiten</a>
|
|
|
|
);
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
echo '<table>'."\n";
|
|
|
|
<tr>
|
|
|
|
foreach($entries as $key => $value) {
|
|
|
|
<td>
|
|
|
|
echo '<tr><td><a href="'.$_SERVER['PHP_SELF'].'?choose='.$key.'">'.$value.'</a></td></tr>'."\n";
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=attackentypen">Attackentypen bearbeiten</a>
|
|
|
|
}
|
|
|
|
</td>
|
|
|
|
echo '</table>'."\n";
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=poll">Umfragen bearbeiten</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=items">Items bearbeiten</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=clan">Clans bearbeiten</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=usergroups">Usergruppen</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=bann">Banns und andere unschöne Sachen</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=tournament">Turniere bearbeiten</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=qnpc">Monster bearbeiten</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=npc">NPC bearbeiten</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=shop">Shakkys Shop Angebote bearbeiten</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=news">News bearbeiten</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=cheat">Multiuser und Cheater</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=log">Log ansehen</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<a href="<?php echo $_SERVER['PHP_SELF']; ?>?choose=logout">Log out</a>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function logout(){
|
|
|
|
function logout(){
|
|
|
@ -267,6 +198,8 @@ if(checkLoginData($_SESSION['user'],$_SESSION['password'])){
|
|
|
|
displayUserGroups($_REQUEST['action'] ,$_REQUEST['uname'] ,$_REQUEST['ugname'], $_REQUEST['delete'], $_REQUEST['add']);
|
|
|
|
displayUserGroups($_REQUEST['action'] ,$_REQUEST['uname'] ,$_REQUEST['ugname'], $_REQUEST['delete'], $_REQUEST['add']);
|
|
|
|
} else if($_REQUEST['choose'] == 'rassen'){
|
|
|
|
} else if($_REQUEST['choose'] == 'rassen'){
|
|
|
|
displayRassen($_REQUEST);
|
|
|
|
displayRassen($_REQUEST);
|
|
|
|
|
|
|
|
} else if($_REQUEST['choose'] == 'geheim'){
|
|
|
|
|
|
|
|
displayGeheim($_REQUEST);
|
|
|
|
} else if($_REQUEST['choose'] == 'tournament'){
|
|
|
|
} else if($_REQUEST['choose'] == 'tournament'){
|
|
|
|
//_POST['name'] anstatt _REQUEST weil schon durch username überschrieben wird
|
|
|
|
//_POST['name'] anstatt _REQUEST weil schon durch username überschrieben wird
|
|
|
|
displayTournamentMenu($_REQUEST['action'], $_REQUEST['klein'], $_REQUEST['wochen'], $_REQUEST['minlevel'], $_REQUEST['maxlevel'], $_REQUEST['fusion'], $_REQUEST['special'], $_REQUEST['gain'], $_REQUEST['randomize'], $_POST['name'], $_REQUEST['anzahl']);
|
|
|
|
displayTournamentMenu($_REQUEST['action'], $_REQUEST['klein'], $_REQUEST['wochen'], $_REQUEST['minlevel'], $_REQUEST['maxlevel'], $_REQUEST['fusion'], $_REQUEST['special'], $_REQUEST['gain'], $_REQUEST['randomize'], $_POST['name'], $_REQUEST['anzahl']);
|
|
|
|