<?php
/*======================================================================*\
|| #################################################################### ||
|| # EoT-Clan BC2 Leaderboard                                         # ||
|| # ---------------------------------------------------------------- # ||
|| # Dieses Copyright darf nicht entfernet werden                     # ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # -----------------BC2 Leaderboard is a free Software--------------# ||
|| #                   http://eot-clan.net                            # ||
|| #################################################################### ||
\*======================================================================*/
include '../inc/config.php';
require_once ('../language/'.$row['language'].'.php');

$_GET = security::escape($_GET);
$_POST = security::escape($_POST);
session_start();
if(isset($_SESSION["username"]))
   {
	?>
	<meta http-equiv="refresh" content="4;url=admin.php">
	<?php


$text = '
<html>
	<head>
		<title>'.LANG_ADMIN_SETTINGS_UPDATE.'</title>
		'.$styleSettings.'
  </head>
	 <div class="body_bfLB" style="width:500px; margin-left: -250px;margin-top: -100px;position: absolute;left: 50%;top: 50%;">
         <table class="default" style="width:470px;" border="0" cellspacing="0" cellpadding="4">
         <td class="default" style="font-size:11px;">'.LANG_ADMIN_BOX_UPDATE.'<br/><br/>'.LANG_ADMIN_META.'</td>
	</table></div>
</html>'; 



$array = $_POST;
#$array= array_keys($array);


foreach($array as $key => $wert) {
	
$wert = mysql_real_escape_string($wert);
 $query = "Update ".DBPrefix."style SET {$key}='{$wert}'";
	    mysql_query ($query);

   echo $text;
    
}




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