Файл: vsime.com/anketa/inc/edit_work.php
Строк: 78
<?
if(isset($_POST['submited']))
{
if (hsc(@$_POST['mdp'])==$mdp)
{
mysqli_query($dbi, "UPDATE `anketa` SET `work` = '".my_esc($_POST['work'])."' WHERE `id_user` = '$ank[id]'");
header("Location: ?id=$ank[id]&edit=other");
msg_sess("Изменения успешно сохранены");exit();
} else hacked_by_Killer();
}
echo "<div class=list><form method='POST' action=''>n";
echo "Чем я занимаюсь:<br/>n";
echo "<input type='radio' name='work' value='0'".($ank['anketa']['work']=='0'?" checked='checked'":null)."> Не скажу!<br/>n";
echo "<input type='radio' name='work' value='school'".($ank['anketa']['work']=='school'?" checked='checked'":null)."> Учусь в школе<br/>n";
echo "<input type='radio' name='work' value='koledzh'".($ank['anketa']['work']=='koledzh'?" checked='checked'":null)."> Учусь в колледже/лицее<br/>n";
echo "<input type='radio' name='work' value='vyz'".($ank['anketa']['work']=='vyz'?" checked='checked'":null)."> Учусь в ВУЗе<br/>n";
echo "<input type='radio' name='work' value='war'".($ank['anketa']['work']=='war'?" checked='checked'":null)."> Учусь в военном училище<br/>n";
echo "<input type='radio' name='work' value='armiya'".($ank['anketa']['work']=='armiya'?" checked='checked'":null)."> Служу в армии<br/>n";
echo "<input type='radio' name='work' value='working'".($ank['anketa']['work']=='working'?" checked='checked'":null)."> Работаю<br/>n";
echo "<input type='radio' name='work' value='no_working'".($ank['anketa']['work']=='no_working'?" checked='checked'":null)."> Не работаю<br/>n";
echo "<input type='radio' name='work' value='zona'".($ank['anketa']['work']=='zona'?" checked='checked'":null)."> Сижу на зоне<br/>n";
echo "<input type='hidden' name='mdp' value='$mdp'>n";
echo "<input value='Сохранить' type='submit' name='submited' />n";
echo "</form></div>n";
?>