Файл: public_html/clan_info.php
Строк: 34
<?
include './system/common.php';
include './system/functions.php';
include './system/user.php';
include './system/h.php';
$title = 'О клане';
if(isset($_GET['edit'])){
$infa = htmlspecialchars(trim(mysql_real_escape_string($_POST['infa'])));
mysql_query("UPDATE `clans` SET `infa` = '".$infa."' WHERE `id` = '".$clan['id']."'");
header('location: /clan/');
}
$u = mysql_query("SELECT * FROM `clans` WHERE `id` = '".$clan['id']."'");
while($u1 = mysql_fetch_assoc($u)){
?>
<div class="block_zero">
<form action="?edit" method="post">
О клане: <br>
<input class="text medium-text" name="infa" maxlength="150" value="<?=$u1['infa']?>" type="text"><br>
<span class="btn"><span class="end"><input class="label" name="edit" value="Сохранить" type="submit">Сохранить</span></span>
</form>
</div>
<?
}
include './system/f.php';
break;