virt2/api/code/admin.php

11 lines
268 B
PHP
Raw Permalink Normal View History

<?php
if ($_SESSION['dostup']!=='a' && $_SESSION['dostup']!=='e')header( 'Location: /403/' );
unset($a);
$a['id']=1;
$db->get_val('zametka', $a, 'txt');
$txt=$db->result;
$smarty -> assign( 'txt', $txt );
//узнаем количество обращений
?>