<?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"])) {
 if ($_SESSION["id"] == 1){
  ?>
   
   
<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_API_ON; ?></div>
  <select name="autoupdateEnabled" style="font-size:11px;width:80px;margin-left:175px">
   <?php echo $EoT->errorReport($row['autoupdateEnabled']); ?>
  </select>  
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_API_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_API_INAKTIV; ?></div>
  <input style="font-size:11px;width:90px;margin-left:160px;" name="inaktivTime" value="<?php echo $row['inaktivTime']; ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_API_INAKTIV_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_API_IDENT; ?></div>
  <input style="font-size:11px;width:100px;margin-left:150px;" name="ident" value="<?php echo $row['ident']; ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_API_IDENT_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_API_KEY; ?></div>
  <input style="font-size:11px;width:250px;" name="secretkey" value="<?php echo $row['secretkey']; ?>"/>
 <input type="submit" onClick="return confirm('<?php echo LANG_ADMIN_API_KEY_WARN; ?>')" 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
}


