Migration SVN
This commit is contained in:
42
web/hosting/crons.php
Executable file
42
web/hosting/crons.php
Executable file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
require_once('../../system/configuration.php');
|
||||
require(PATH_SYSTEM.'core.php');
|
||||
try
|
||||
{
|
||||
$cron = new cron();
|
||||
|
||||
$_SESSION['user']->userCheckAccess(LEVEL_CUSTOMER);
|
||||
$_SESSION['hosting']->userCheckAccess();
|
||||
|
||||
|
||||
if ( $_SESSION['hosting']->information_hosting->offer_crons_number == 0 ) $base_tpl = 'error/not_in_offer';
|
||||
else {
|
||||
|
||||
// Crons specific menu
|
||||
$crons_menu = array();
|
||||
$crons_menu['hosting/crons.xhtml'] = 'mnu_list_crons';
|
||||
$crons_menu['hosting/crons-add.xhtml'] = "mnu_add_cron";
|
||||
$_SESSION['template']->addMenu('crons', $crons_menu);
|
||||
|
||||
if ( isset($_GET['action']) and $_GET['action'] == 'add') {
|
||||
$base_tpl = 'hosting/crons/add';
|
||||
$_SESSION['template']->getWords(array('CRON_MIN_TIME' => CRON_MIN_TIME));
|
||||
} else {
|
||||
$base_tpl = 'hosting/crons/list';
|
||||
$pages_count = $cron->userCountTotalPages();
|
||||
$_SESSION['template']->getWords(array('pages_count' => $pages_count));
|
||||
} // End of listing
|
||||
|
||||
}
|
||||
|
||||
// Template
|
||||
$_SESSION['template']->loadCSS(array('crons.css'));
|
||||
$_SESSION['template']->loadTemplate('_contentbegin');
|
||||
$_SESSION['template']->loadTemplate($base_tpl);
|
||||
$_SESSION['template']->loadTemplate('_contentend');
|
||||
$_SESSION['template']->getWords(array('sql' => $_SESSION['database']->executed_req));
|
||||
$_SESSION['template']->parseTemplate();
|
||||
} catch (myException $error) {
|
||||
$error->displayErrorMessage();
|
||||
}
|
||||
?>
|
||||
36
web/hosting/domainnames.php
Executable file
36
web/hosting/domainnames.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
require_once('../../system/configuration.php');
|
||||
require(PATH_SYSTEM.'core.php');
|
||||
try
|
||||
{
|
||||
$vhost = new vhost();
|
||||
|
||||
$_SESSION['user']->userCheckAccess(LEVEL_CUSTOMER);
|
||||
$_SESSION['hosting']->userCheckAccess();
|
||||
|
||||
$_SESSION['template']->loadJS('vhosts.js');
|
||||
|
||||
if ( $_SESSION['hosting']->information_hosting->offer_virtualhosts_number == 0 ) $base_tpl = 'error/not_in_offer';
|
||||
else {
|
||||
// VHosts specific menu
|
||||
$vhosts_menu = array();
|
||||
$vhosts_menu['hosting/domainnames.xhtml'] = 'mnu_list_vhosts';
|
||||
$vhosts_menu['hosting/domainnames-add.xhtml'] = "mnu_add_vhost";
|
||||
$_SESSION['template']->addMenu('vhosts', $vhosts_menu);
|
||||
|
||||
if ( isset($_GET['action']) and $_GET['action'] == 'add') {
|
||||
$base_tpl = 'hosting/vhosts/add';
|
||||
} else {
|
||||
$base_tpl = 'hosting/vhosts/list';
|
||||
$pages_count = $vhost->userCountTotalPages();
|
||||
$_SESSION['template']->getWords(array('pages_count' => $pages_count));
|
||||
}
|
||||
}
|
||||
$_SESSION['template']->loadTemplate('_contentbegin');
|
||||
$_SESSION['template']->loadTemplate($base_tpl);
|
||||
$_SESSION['template']->loadTemplate('_contentend');
|
||||
$_SESSION['template']->getWords(array('sql' => $_SESSION['database']->executed_req));
|
||||
$_SESSION['template']->parseTemplate();
|
||||
} catch (myException $error) {
|
||||
$error->displayErrorMessage();
|
||||
}
|
||||
33
web/hosting/hosting.php
Executable file
33
web/hosting/hosting.php
Executable file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
require_once('../../system/configuration.php');
|
||||
require(PATH_SYSTEM.'core.php');
|
||||
try
|
||||
{
|
||||
|
||||
$_SESSION['user']->userCheckAccess(LEVEL_CUSTOMER);
|
||||
|
||||
// Initialize the hosting
|
||||
if ( isset($_GET['action']) and textVerification::verifHostingID($_GET['action']) ) {
|
||||
$_SESSION['hosting']->userSetCurrentHosting($_GET['action']);
|
||||
$_SESSION['hosting']->userInitializeHosting();
|
||||
} else redirect('myhostings.xhtml');
|
||||
|
||||
// Check autorization for the specified hosting
|
||||
$_SESSION['hosting']->userCheckAccess();
|
||||
|
||||
// Re-initialize the sidebar
|
||||
$_SESSION['template']->userSetRightsDisplay();
|
||||
|
||||
// Load CSS
|
||||
$_SESSION['template']->loadCSS(array('hosting.css'));
|
||||
|
||||
// Template
|
||||
$_SESSION['template']->loadTemplate('_contentbegin');
|
||||
$_SESSION['template']->loadTemplate('hosting/hosting');
|
||||
$_SESSION['template']->loadTemplate('_contentend');
|
||||
$_SESSION['template']->getWords(array('sql' => $_SESSION['database']->executed_req));
|
||||
$_SESSION['template']->parseTemplate();
|
||||
} catch (myException $error) {
|
||||
$error->displayErrorMessage();
|
||||
}
|
||||
?>
|
||||
24
web/hosting/informations.php
Executable file
24
web/hosting/informations.php
Executable file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
require_once('../../system/configuration.php');
|
||||
require(PATH_SYSTEM.'core.php');
|
||||
try
|
||||
{
|
||||
|
||||
$_SESSION['user']->userCheckAccess(LEVEL_CUSTOMER);
|
||||
$_SESSION['hosting']->userCheckAccess();
|
||||
|
||||
|
||||
|
||||
// Load CSS
|
||||
$_SESSION['template']->loadCSS(array('informations.css'));
|
||||
|
||||
// Template
|
||||
$_SESSION['template']->loadTemplate('_contentbegin');
|
||||
$_SESSION['template']->loadTemplate('hosting/informations');
|
||||
$_SESSION['template']->loadTemplate('_contentend');
|
||||
$_SESSION['template']->getWords(array('sql' => $_SESSION['database']->executed_req));
|
||||
$_SESSION['template']->parseTemplate();
|
||||
} catch (myException $error) {
|
||||
$error->displayErrorMessage();
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user