Файл: vsime.com/anketa/inc/edit_love.php
Строк: 104
<?
if(isset($_POST['submited']))
{
if (hsc(@$_POST['mdp'])==$mdp)
{
if(isset($_POST['friendly_and_talking']) && $_POST['friendly_and_talking'])$friendly_and_talking=1;else $friendly_and_talking=0;
if(isset($_POST['flirt']) && $_POST['flirt']==1)$flirt=1;else $flirt=0;
if(isset($_POST['love']) && $_POST['love']==1)$love=1;else $love=0;
if(isset($_POST['family']) && $_POST['family']==1)$family=1;else $family=0;
if(isset($_POST['virt_sex']) && $_POST['virt_sex']==1)$virt_sex=1;else $virt_sex=0;
if(isset($_POST['real_sex']) && $_POST['real_sex']==1)$real_sex=1;else $real_sex=0;
if(isset($_POST['sponsor']) && $_POST['sponsor']==1)$sponsor=1;else $sponsor=0;
if(isset($_POST['i_sponsor']) && $_POST['i_sponsor']==1)$i_sponsor=1;else $i_sponsor=0;
mysqli_query($dbi, "UPDATE `anketa` set `friendly_and_talking` = '$friendly_and_talking', `flirt` = '$flirt', `love` = '$love', `love_family` = '$family', `virt_sex` = '$virt_sex', `real_sex` = '$real_sex', `sponsor` = '$sponsor', `i_sponsor` = '$i_sponsor' where `id_user` = '$ank[id]'");
header("Location:?id=$ank[id]&edit=for_love");
msg_sess("Изменения успешно сохранены");exit();
} else hacked_by_Killer();
}
echo "<div class=list><form method='post' action=''>n";
echo "Цель знакомства:<br/>n";
echo "<input type='checkbox' name='friendly_and_talking' value='1' ".($ank['anketa']['friendly_and_talking']==1?"checked='checked'":null)."> Дружба и общение<br />n";
echo "<input type='checkbox' name='flirt' value='1' ".($ank['anketa']['flirt']==1?"checked='checked'":null)."> Флирт, СМС-переписка<br />n";
echo "<input type='checkbox' name='love' value='1' ".($ank['anketa']['love']==1?"checked='checked'":null)."> Любовь, отношения<br />n";
echo "<input type='checkbox' name='family' value='1'".($ank['anketa']['love_family']==1?"checked='checked'":null)."> Брак, создание семьи<br />n";
echo "<input type='checkbox' name='virt_sex' value='1' ".($ank['anketa']['virt_sex']==1?"checked='checked'":null)."> Виртуальный секс<br />n";
echo "<input type='checkbox' name='real_sex' value='1' ".($ank['anketa']['real_sex']==1?"checked='checked'":null)."> Секс в реале<br />n";
echo "<input type='checkbox' name='sponsor' value='1' ".($ank['anketa']['sponsor']==1?"checked='checked'":null)."> Ищу спонсора<br />n";
echo "<input type='checkbox' name='i_sponsor' value='1' ".($ank['anketa']['i_sponsor']==1?"checked='checked'":null)."> Стану спонсором<br />n";
echo "<input type='hidden' name='mdp' value='$mdp'>n";
echo "<input type='submit' name='submited' value='Изменить' />n";
echo "</form></div>n";
?>