mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
refactoring cron section: new html formating
This commit is contained in:
parent
c080bcad00
commit
a1c8045d58
10 changed files with 614 additions and 471 deletions
|
@ -13,26 +13,18 @@ top_panel($user,$TAB);
|
|||
|
||||
// Data
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
|
||||
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/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