2025-06-16 18:28:08 +05:00

22 lines
760 B
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
ini_set('display_errors',0 );
/* ----------------------------------------------------------------------
21.08.2022
Проверяем права доступа
---------------------------------------------------------------------- */
if ( $_SESSION['dostup'] !== 'a') header( 'Location: /login/' );
/* ----------------------------------------------------------------------
12.12.2022
Получаем данные о пользователе
---------------------------------------------------------------------- */
$smarty -> assign( 'userInfo', \core::getUserInfo( $_SESSION['user_id'] ) );
require_once "api/php/list_dir.php";
$list_dir=list_dir('api/modules');
$smarty -> assign( 'mods', $list_dir );
?>