i18n + service manager + web updater

This commit is contained in:
Serghey Rodin 2013-01-29 00:18:09 +02:00
commit 6e631c32a1
84 changed files with 1806 additions and 1458 deletions

View file

@ -1,9 +1,9 @@
<?php
// Init
error_reporting(NULL);
session_start();
$TAB = 'CRON';
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
// Main include
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
// Header
@ -12,9 +12,6 @@ include($_SERVER['DOCUMENT_ROOT'].'/templates/header.html');
// Panel
top_panel($user,$TAB);
$lang = 'ru_RU.utf8';
setlocale(LC_ALL, $lang);
// Data
exec (VESTA_CMD."v-list-cron-jobs $user json", $output, $return_var);
$data = json_decode(implode('', $output), true);
@ -27,5 +24,9 @@ if ($_SESSION['user'] == 'admin') {
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_cron.html');
}
// Back uri
$_SESSION['back'] = $_SERVER['REQUEST_URI'];
// Footer
include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html');