* 3 - Open this file with your browser */ include 'cpconfig.php'; // Edit this file to set the configuration include 'classes/tpl.php'; include 'classes/acl.php'; include 'classes/fields.php'; include 'classes/core.php'; include 'classes/history.php'; // start session session_start(); // check user $acl = new acl(); $acl->validate_user(); $acl->check_session(); $acl->check_logout(); // core functions $core = new core(); // general tpl class $tpl = new tpl(); // Setting credentials for curl commands if (isset($_GET['serverid']) and !empty($_GET['serverid'])) { $whmuser = $servers[$_GET['serverid']]['whmuser']; $ip_server = $servers[$_GET['serverid']]['ip_server']; $server = $servers[$_GET['serverid']]['server']; $hash = $servers[$_GET['serverid']]['hash']; } else { if (!isset($_POST['ajax'])) { // redirecting to the single alone server if exists if (count($servers) == 1 and $_GET['serverid'] !== key($servers)) { header('location:' . THIS_SCRIPT . '?serverid=' . key($servers));