Файл: zfarm.mobi/inc/communication/p_str.php
Строк: 17
<?php
include_once '../system/config.php';
if(isset($_GET['LinkUserGoUpProfileGetSetting'])){
if($ku['str'] == 50) {
echo 'Ошибка! 10<br />';
}else{
$count = 50;
mysql_query("UPDATE `kolhoz_user` SET `str` = '" . $count . "' WHERE `id` = '" . $ku['id'] . "'");
header ('Location: /garden');
}
}
if(isset($_GET['LinkUserGoDownProfileGetSetting'])){
if($ku['str'] == 5) {
echo 'Ошибка! 5<br />';
}else{
$count = 5;
mysql_query("UPDATE `kolhoz_user` SET `str` = '" . $count . "' WHERE `id` = '" . $ku['id'] . "'");
header ('Location: /garden');
}
}
?>