<?
    
    include ''.$_SERVER['DOCUMENT_ROOT'].'/system/common.php';
    
 include ''.$_SERVER['DOCUMENT_ROOT'].'/system/functions.php';
        
      include ''.$_SERVER['DOCUMENT_ROOT'].'/system/user.php';
    
if(!$user OR $user['access'] < 3) {

  header('location: /');
    
exit;

}



    $title = 'игрок клана ';    

include ''.$_SERVER['DOCUMENT_ROOT'].'/system/h.php';

	$id = _string(_num($_GET['id']));


		if(isset($_GET['yes'])){
	
			mysql_query('UPDATE `clan_memb` SET `clan` = \''._string($_POST['clan']).'\', `rank` = '._string(_num($_POST['rank'])).', `user` = '._string(_num($_POST['user'])).', `expl` = '._string(_num($_POST['expl'])).', `exp` = '._string(_num($_POST['exp'])).' WHERE `id` = '.$id.' LIMIT 1');
			header('location: /admu.php?id='.$id.'');
			exit;
		}
		
			$cl = mysql_fetch_array(mysql_query('SELECT * FROM `clan_memb` WHERE `id` = '.$id.' LIMIT 1'));
			?>
			<div class="block_zero center">
				<form action='/admu.php?yes&id=<?=$id?>' method='post'>



			Клан:
					<br/>
					<input class='text medium-text' type='text' name='clan' value='<?=$cl['clan']?>'/> 
					<br/>
					Ид игрока:
					
		<br/>
					<input class='text medium-text' name='user' value='<?=$cl['user']?>'/> 
		<br/>
					Чин:
					<br/>
					<input class='text medium-text' name='rank' value='<?=$cl['rank']+1?>'/> 
					<br/>
					Побег:
					<br/>
					<input class='text medium-text' name='expl' value='<?=$cl['expl']?>'/> 
					<br/>	
					Подвал:
					<br/>
					<input class='text medium-text' name='exp' value='<?=$cl['exp']?>'/> 
					<br/>	

					<br/>
<span class='btn'><span class='end'><input class='label' type='submit' name='submit' value='изменить' /></span></span>
				</form>
			</div>
	
		<?
	
		include ''.$_SERVER['DOCUMENT_ROOT'].'/system/f.php';
	break;

  
?>