Файл: monst/core/pag/setting/ank.php
Строк: 36
<?
if ( !empty($_POST['save']) AND !empty($_POST['about']) ) {
$about = null_html($_POST['about']);
if ( mb_strlen($about, 'UTF-8') > 2000 ) {
g('/setting/ank?the_long');
}
$_users -> update(
[
'id' => $user['id']
],
[
'$set' => [
'about' => $about
]
]
);
g('/setting/ank?save_ok');
}
if ( isset($_GET['the_long']) ) {
?>
<div class='error_box'>
<?=$lang['setting.php']['ank']['the_long']?>
</div>
<?
}
if ( isset($_GET['save_ok']) ) {
?>
<div class='ok_box'>
<?=$lang['setting.php']['ank']['save_ok']?>
</div>
<?
}
?>
<form method='post' action='/setting/ank'>
<input type='hidden' name='save' value='1'/>
<div class='padding'>
<?=$lang['setting.php']['ank']['about']?>:<br/>
</div>
<textarea name='about' rows='7' style='width: 90%;'><?=$user['about']?></textarea>
<br/>
<div style='text-align: center;'>
<input type='submit' value='<?=$lang['setting.php']['ank']['submit']['save']?>'/>
</div>
</form>
<br/>
<div>
<a href='/setting'><?=$lang['setting.php']['back']?></a>
</div>