<?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();

$_GET = security::escape($_GET);
$_POST = security::escape($_POST);

if(isset($_SESSION["username"]))
   {
   	
if ($row['general_box'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_STATS_GENERAL; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="general_box" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>

<?php
if ($row['progress_box'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_PROGRESS_GENERAL; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="progress_box" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>


<?php
if ($row['ribbons_box'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_RIBBONS_GENERAL; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="ribbons_box" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>


<?php
if ($row['score_box'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_SCORE_GENERAL; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="score_box" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>

<?php
if ($row['weapon_box'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_STATS_WEAPONS; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="weapon_box" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>

<?php
if ($row['stars_box'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_BOX_STATS_STARS; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="stars_box" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>

<?php
if ($row['unlocks_box'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_BOX_STATS_UNLOCKS; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="unlocks_box" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>



<?php
if ($row['coop_box'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_COOP_GENERAL; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="coop_box" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>

<?php
if ($row['gamemodus_box'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_GAMEMODUS_GENERAL; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="gamemodus_box" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>


<?php
if ($row['specializations'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_SPECIALLIZATIONS; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="specializations" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>

<?php
if ($row['box_equipment'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_EQUIPMENT_GENERAL; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="box_equipment" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>


<?php
if ($row['serviceStars'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_SERVICE_STARS; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="serviceStars" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>

<?php
if ($row['assignments'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_ASSIGNMENTS; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="assignments" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</form></div>


<?php
if ($row['dogtag_stats'] == 1){
	$status = LANG_ADMIN_BOX_INDEX_STATUS_ENABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_DISABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_0;
	$value = 0;
}else{
	$status = LANG_ADMIN_BOX_INDEX_STATUS_DISABLED;
	$statusset = LANG_ADMIN_BOX_INDEX_STATUS_ENABLE;
	$text = LANG_ADMIN_EDIT_BOX_SET_1;
	$value = 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_SETTINGS_BOX_DOGTAGS_STATS; ?></div>
	<?php echo LANG_ADMIN_BOX_INDEX_STATUS.$status; ?>
	<input type="hidden" value="<?php echo $value; ?>" name="dogtag_stats" />
  <input type="submit" onClick="return confirm('<?php echo $text ?>')" class="inputbutton" value="<?php echo $statusset; ?>">
</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
}



