core/api/modules/admin/index.php

14 lines
516 B
PHP
Raw Normal View History

2022-12-11 13:55:49 +05:00
<?php
2022-12-17 18:15:09 +05:00
if ( $_SESSION['dostup']!='a' ) header( 'Location: /login/' );// && $dostup!='m'
2022-12-11 13:55:49 +05:00
2022-12-17 18:15:09 +05:00
$zametka=\DB::getValue('SELECT `txt` FROM `zametka` WHERE `user_id`=' . $_SESSION['user_id']);
$smarty -> assign( 'zametka', $zametka );
$smarty -> assign( 'userInfo', \core::getUserInfo( $_SESSION['user_id'] ) );
2022-12-11 13:55:49 +05:00
2022-12-17 18:15:09 +05:00
$tasks=\DB::getAll("SELECT * FROM `tasks` WHERE `user_id`=? OR `isp_id`=? ORDER BY `id` DESC LIMIT 10", array($_SESSION['user_id'], $_SESSION['user_id']));
$smarty -> assign( 'tasks', $tasks );
2022-12-11 13:55:49 +05:00
?>