mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 10:37:39 -07:00
user function
This commit is contained in:
parent
7bfebfff62
commit
e734d14637
43 changed files with 1280 additions and 54 deletions
|
@ -22,6 +22,17 @@ if ($_SESSION['user'] == 'admin') {
|
|||
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_cron.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_cron.html');
|
||||
} else {
|
||||
|
||||
exec (VESTA_CMD."v_list_cron_jobs $user json", $output, $return_var);
|
||||
check_error($return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
$data = array_reverse($data);
|
||||
unset($output);
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_cron.html');
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_cron.html');
|
||||
|
||||
}
|
||||
|
||||
// Footer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue