{% else-1 %}
Nets * 0.72
(21 дек 2015, 10:56) (0/0) [0]
<?php

foreach (['start', 'home', 'compress', 'sess', 'settings', 'db_connect', 'ipua', 'fnc', 'user'] AS $name)
{
require_once ('../sys/inc/'.$name.'.php');
}

only_reg ();

$set['title'] = 'time test';
require_once ('../sys/inc/thead.php');

title ().aut ();

// Включить\Выключить
if (isset($_GET['go']))
{
mysql_query("UPDATE `user` SET `time_user` = '".($user['time_user'] == 1 ? '0' : '1')."' WHERE `id` = '$user[id]' LIMIT 1"*;
}

echo $user['time_user'] == 1 ? 'Включено' : 'Выключено';

echo "<form method="get" action="?go">";
echo "<input class="button" type="submit" value="Включить/Выключить время" />";
echo "</form>n";

require_once ('../sys/inc/tfoot.php');

?>
  • 1 из 1