Файл: setk/mobile/index.php
Строк: 171
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
$set['title']='Телефон и оператор'; // заголовок страницы
include_once '../sys/inc/thead.php';
title();
err();
aut();
/////////////////////Запись в профиль
if (isset($_POST['os_icon']) && isset($_POST['os_text']) && isset($user))
{
if (isset($_POST['operator_icon']) && isset($_POST['operator_text']) && isset($user))
$msg1=my_esc($_POST['operator_text']);
$msg=my_esc($_POST['os_text']);
$icon=intval($_POST['os_icon']);
$icon1=intval($_POST['operator_icon']);
if (strlen2($msg)>70){$err[]='Сообщение слишком длинное';}
elseif (strlen2($msg)<1){$err[]='Короткое сообщение';}
elseif(!isset($err)){
mysql_query("UPDATE `user` SET `os_icon` = '".$icon."' WHERE `id` = '".$user['id']."' LIMIT 1");
mysql_query("UPDATE `user` SET `os_text` = '".$msg."' WHERE `id` = '".$user['id']."' LIMIT 1");
mysql_query("UPDATE `user` SET `operator_icon` = '".$icon1."' WHERE `id` = '".$user['id']."' LIMIT 1");
mysql_query("UPDATE `user` SET `operator_text` = '".$msg1."' WHERE `id` = '".$user['id']."' LIMIT 1");
msg('Добавлено ');}}
//////////////////////////////////////////////
echo'<form action="?" method="post">';
echo'<h3>Выберите Ось:</h3>';
echo'<input type="radio" name="os_icon" value="1"/><img src="/mobile/icon/111.gif" /> ';
echo'<input type="radio" name="os_icon" value="2"/><img src="/mobile/icon/2.gif" /> ';
echo'<input type="radio" name="os_icon" value="3"/><img src="/mobile/icon/3.gif" />';
echo' <input type="radio" name="os_icon" value="4"/><img src="/mobile/icon/4.gif" /> ';
echo' <input type="radio" name="os_icon" value="5"/><img src="/mobile/icon/5.gif" /><br/> ';
echo'Ваша ось: <input type="text" name="os_text" maxlength="70" value="'.$user['os_text'].'"/> <br />';
echo'<input type="submit" value="Добавить"/>';
echo'<h3>Выберите Оператора:</h3>';
echo' <input type="radio" name="operator_icon" value="7"/><img src="/mobile/icon/7.png" /> ';
echo' <input type="radio" name="operator_icon" value="8"/><img src="/mobile/icon/8.png" /> ';
echo' <input type="radio" name="operator_icon" value="9"/><img src="/mobile/icon/9.png" /> ';
echo' <input type="radio" name="operator_icon" value="10"/><img src="/mobile/icon/10.png" /> ';
echo' <input type="radio" name="operator_icon" value="11"/><img src="/mobile/icon/11.png" /> ';
echo' <input type="radio" name="operator_icon" value="12"/><img src="/mobile/icon/12.png" /> <br />';
echo' <input type="radio" name="operator_icon" value="13"/><img src="/mobile/icon/13.png" /> ';
echo' <input type="radio" name="operator_icon" value="14"/><img src="/mobile/icon/14.png" /> ';
echo' <input type="radio" name="operator_icon" value="15"/><img src="/mobile/icon/15.png" /> ';
echo' <input type="radio" name="operator_icon" value="16"/><img src="/mobile/icon/16.png" /> ';
echo' <input type="radio" name="operator_icon" value="17"/><img src="/mobile/icon/17.png" /> ';
echo' <input type="radio" name="operator_icon" value="18"/><img src="/mobile/icon/18.png" /> <br />';
echo' <input type="radio" name="operator_icon" value="19"/><img src="/mobile/icon/19.png" /> ';
echo' <input type="radio" name="operator_icon" value="20"/><img src="/mobile/icon/20.png" /> ';
echo' <input type="radio" name="operator_icon" value="21"/><img src="/mobile/icon/21.png" /> ';
echo' <input type="radio" name="operator_icon" value="22"/><img src="/mobile/icon/22.png" /> ';
echo' <input type="radio" name="operator_icon" value="23"/><img src="/mobile/icon/23.png" /> ';
echo' <input type="radio" name="operator_icon" value="15"/><img src="/mobile/icon/15.png" /> <br />';
echo'Номер: <input type="text" name="operator_text" maxlength="70" value="'.$user['operator_text'].'"/> <br />';
echo'<input type="submit" value="Добавить"/>';
include_once '../sys/inc/tfoot.php'; ////////////Niz
?>