<?php
/*======================================================================*\
|| #################################################################### ||
|| # eGamers of Tomorrow Battlefield 3 Leaderboard                    # ||
|| # ---------------------------------------------------------------- # ||
|| # Dieses Copyright darf nicht entfernt werden                      # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------Teil des Bf3 Leaderboards von EoT-----------------# ||
|| #                      http://eot-clan.net                         # ||
|| #################################################################### ||
\*======================================================================*/
require_once ('../../inc/config.php');
require_once ('../../language/'.$row['language'].'.php');
session_start();
echo $styleSettings;

$_GET = security::escape($_GET);
$_POST = security::escape($_POST);
$EoT = new eGamersofTomorrow;

if(isset($_SESSION["username"]))
   {





   ?>
  <div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_LANGUAGE; ?></div>
  <select name="language" style="font-size:11px;width:156px;">
  	<?php echo $EoT->language($row['language']); ?>
  </select>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_EDIT_LANGUAGE; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_BUTTON_SEND_LANGUAGE; ?>">
</form></div>

<div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_ERROR_REPORT; ?></div>
  <select name="error_report" style="font-size:11px;width:156px;">
   <?php echo $EoT->errorReport($row['error_report']); ?>
  </select>  
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_ERROR_REPORT_WARN; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_GENERAL_EDIT; ?>">
</form></div>


<div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_EDIT_STYLE_SETTINGS; ?></div>
  <select name="stylesettings" style="font-size:11px;width:156px;">
   <?php echo $EoT->style($row['stylesettings']); ?>
  </select>  
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_EDIT_STYLE_SETTINGS_WARN; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_EDIT_STYLE_SETTINGS_BUTTON; ?>">
</form></div>


<div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_SETTINGS_PLATFORM; ?></div>
  <select name="platform" style="font-size:11px;width:156px;">
   <?php echo $EoT->platform($row['platform']); ?>
  </select>  
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_SETTINGS_PLATFORM_WARN; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_SETTINGS_PLATFORM_EDIT; ?>">
</form></div>

<div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_SETTINGS_PLAYERS_UPDATE_MAX; ?></div>
  <input style="font-size:11px;width:150px;" name="max_players" value="<?php echo $row['max_players']; ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_SETTINGS_PLAYERS_UPDATE_MAX_WARN; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_GENERAL_EDIT; ?>">
 <div style="width:250px;position: absolute; margin-top:-20px;text-align:right;"><a class="tooltip" href="#"><img  src="../img/general/fragezeichen.png" border="0" /><span><?php echo LANG_ADMIN_SETTINGS_PLAYERS_UPDATE_MAX_INFO; ?></span></a></div>
</form></div>


<div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_SETTINGS_PLAYERS_UPDATE_MAX_ONLINE; ?></div>
  <input style="font-size:11px;width:150px;" name="OnlinePlayers" value="<?php echo $row['OnlinePlayers']; ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_SETTINGS_PLAYERS_UPDATE_MAX_WARN_ONLINE; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_GENERAL_EDIT; ?>">
 <div style="width:250px;position: absolute; margin-top:-20px;text-align:right;"><a class="tooltip" href="#"><img  src="../img/general/fragezeichen.png" border="0" /><span><?php echo LANG_ADMIN_SETTINGS_PLAYERS_UPDATE_MAX_INFO_ONLINE; ?></span></a></div>
</form></div>


<div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_CLANNAME; ?></div>
  <input style="font-size:11px;width:150px;" name="clanname" value="<?php echo htmlspecialchars($row['clanname']); ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_EDIT_CLANNAME; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_BUTTON_SEND_CLANNAME; ?>">
</form></div>

<div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_CLANTAG; ?></div>
  <input style="font-size:11px;width:150px;" name="clantag" value="<?php echo htmlspecialchars($row['clantag']); ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_EDIT_CLANNAME; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_BUTTON_SEND_CLANTAG; ?>">
</form></div>


<div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_VIP; ?></div>
  <input style="font-size:11px;width:150px;" name="vip" value="<?php echo htmlspecialchars($row['vip']); ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_EDIT_VIP; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_BUTTON_SEND_VIP; ?>">
</form></div>

<div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_BANNER; ?></div>
  <input style="font-size:11px;width:150px;" name="banner" value="<?php echo htmlspecialchars($row['banner']); ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_EDIT_BANNER; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_BUTTON_SEND_BANNER; ?>">
</form></div>

<div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_ADMINS_VIP_COLOR.'<b>'.htmlspecialchars($row['vip']).'</b>'.LANG_ADMIN_ADMINS_VIP_COLOR_EDIT; ?></div>
  <input style="font-size:11px;width:150px;" name="vip_color" value="<?php echo $row['vip_color']; ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_ADMINS_SEND_VIP_COLOR_WARN; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_ADMINS_SEND_VIP_COLOR; ?>">
</form></div>

<div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_SETTINGS_HISTORY; ?></div>
  <select name="History" style="font-size:11px;width:156px;">
   <?php echo $EoT->errorReport($row['History']); ?>
  </select>  
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_SETTINGS_HISTORY_WARN; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_GENERAL_EDIT; ?>">
</form></div>

              
           <div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_SGID; ?></div>
  <input style="font-size:11px;width:150px;" name="sigID" value="<?php echo $row['sigID']; ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_SGID_WARN; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_GENERAL_EDIT; ?>">
 <div style="width:250px;position: absolute; margin-top:-20px;text-align:right;"><a class="tooltip" href="#"><img  src="../img/general/fragezeichen.png" border="0" /><span><?php echo LANG_ADMIN_SGID_INFO; ?></span></a></div>
</form></div>  
 
    
           <div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_CLANHP; ?></div>
  <input style="font-size:11px;width:150px;" name="clanhompage" value="<?php echo $row['clanhompage']; ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_CLANHP_WARN; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_GENERAL_EDIT; ?>">
 </form></div>   


<?php $array =  array("points" => LANG_INDEX_POINTS,"kills" =>  LANG_INDEX_KILLS,"soldiername" => LANG_INDEX_NAME,"playtime" =>  LANG_INDEX_PLAYTIME,"deaths" => LANG_INDEX_DEATHS,"rounds" => LANG_INDEX_ROUNDS,"dogtags" => LANG_INDEX_DOGTAGS,"KD" =>  LANG_INDEX_KD,"team" => "Team","rank" => LANG_INDEX_RANK); ?>
 <div style="border-bottom:1px solid #303030;height:30px;"> 
<form action="update.php" method="post" ><div style="width:250px;position: absolute; margin-top: 5px;text-align:left;"><?php echo LANG_ADMIN_EDIT_DEFAULT_SORT; ?><font color="red"> <?php echo $array[$row['defaultSort']]; ?></font></div>
  <select name="defaultSort" style="font-size:11px;width:156px;">
  	<?php echo $EoT->defaultSort(); ?>
  </select>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_EDIT_DEFAULT_SORT_1; ?>')" class="inputbutton" value="<?php echo LANG_ADMIN_GENERAL_EDIT; ?>">
</form></div>

              
	<?php

	}else{
	?>
	<?php echo $styleSettings; ?>
<title>Login error!!</title>
  <table class="defaultUpdate" style="width:470px; margin-left: -250px;margin-top: -100px;position: absolute;left: 50%;top: 50%;" border="0" cellspacing="0" cellpadding="4"><td>
<?php echo LANG_LOGIN_SESSION_ERROR; ?>
     </td>
    </table>
<?php
}


