/* Decoded by unphp.net */
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT']; $dirname = dirname( $_SERVER['SCRIPT_NAME'] ); $dirname = str_replace( "\", "/", $dirname ); if ( $dirname == "/" ) { $dirname = ""; } $include_path = $DOCUMENT_ROOT.$dirname; error_reporting(E_ALL); date_default_timezone_set(@date_default_timezone_get()); ini_set('display_errors','On');
include "../resources/admin/include/db_conn.php"; include "../resources/admin/include/functions.php"; include "../resources/admin/include/version.php"; $pIT6egNqGaDT = "design/"; $GgG111gt1f7j = "CentOS Web Panel"; $XXr166g4BjI5 = $_SERVER['SERVER_ADDR']; $nArebgqhzZfd = mysql_connect($db_host, $db_user, $db_pass, $db_name); if (!$nArebgqhzZfd) { ssh_exec('/bin/ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock;ln -s /var/mysql/mysql.sock /tmp/mysql.sock'); ssh_exec('/sbin/service mysqld start'); echo ssh_exec('/sbin/service mysqld status'); echo "
Trying to start mysql server, please wait!
Try to restart CentOS Web Panel with command: service cwpsrv restart
"; echo "**Check your MySQL root password in: /usr/local/cwpsrv/htdocs/resources/admin/include/db_conn.php and /root/.my.cnf
";
echo ""; die('Could not connect: ' . mysql_error()); } $IlZfegdJVkfO = mysql_select_db($db_name,$nArebgqhzZfd) or die("Could not select database {$db_name}");
$ghNbagMlK52N = "C2ZzTjzUprgujP";
$dod144gD9Rsq = $_SERVER['REMOTE_ADDR']; $Spo13egBgjhi = new iYe13cgek1C2( ); $nLr1cbgKfGcS = base64_encode( $Spo13egBgjhi->tOd81gaml8U6( $ghNbagMlK52N, $dod144gD9Rsq, 1 ) );
if (empty($_GET["api"])){ session_name("cwpsrv"); session_start(); if(!$_SESSION['logged']){ header("Location: login.php"); exit; } if ($_SESSION['rkey'] != $nLr1cbgKfGcS){ header("Location: login.php?logout=yes"); } $Gea1bcgATz99 = $_SESSION['username']; if ($Gea1bcgATz99 == "root"){ $Nrl1c0g0X2HG = "admin"; } else{ $Nrl1c0g0X2HG = "client"; if (!file_exists("/home/{$Gea1bcgATz99}")){ header("Location: login.php?logout=yes"); } } }
if(isset($_POST["menuIndexNo"]) && !empty($_POST["menuIndexNo"])){ $menuHitoryArr = array(); if(isset($_SESSION["menuHitoryArr"]) && !empty($_SESSION["menuHitoryArr"])){ $menuHitoryArr = $_SESSION['menuHitoryArr']; $menuHitoryArr[$_POST['menuIndexNo']] = $_POST['menuAction']; $_SESSION['menuHitoryArr'] = $menuHitoryArr; }else{ $menuHitoryArr[$_POST['menuIndexNo']] = $_POST['menuAction']; $_SESSION['menuHitoryArr'] = $menuHitoryArr; } }
$hSi18fgMtArp = hSi18fgMtArp();
if (!empty($_GET['addon'])){ if (file_exists("../resources/".$Nrl1c0g0X2HG."/addons/".$_GET['addon'].".php")) { include "../resources/".$Nrl1c0g0X2HG."/addons/".$_GET['addon'].".php"; exit(); } else { echo "The addon {$_GET['addon']} does not exist."; } } if (!empty($_GET["func"])){ include "../resources/{$Nrl1c0g0X2HG}/include/java_include.php"; } else if (!empty($_GET["api"])){ include "../resources/admin/include/api.php"; } else{ ;print(agF1gTdKEBPd6CaJ($yoptlt1)); echo $Nrl1c0g0X2HG; print(agF1gTdKEBPd6CaJ($dbicvm2)); include "../resources/{$Nrl1c0g0X2HG}/include/javascript.php"; print(agF1gTdKEBPd6CaJ($nrsxka3)); echo $Nrl1c0g0X2HG; print(agF1gTdKEBPd6CaJ($ykbwiu4)); if ($Gea1bcgATz99 == "root"){ echo "