示例#1
0
 * 1 - Copy this file, cpconfig.php and classes/ folder in a public folder 
 * 2 - Edit cpconfig.php and set correct values for your servers and user
 * 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