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