Example #1
0
    # return $ret;
}
echoln("<b>Troubleshoot Version 0.29.09, last modified at 5.5.2009 by ehcpdeveloper, added spam check... </b><br><br><br><br>");
$app->getVariable(array("spamcheck"));
if ($spamcheck == '') {
    echoln("Enter something, only to prevent spam:" . inputform5("spamcheck"));
} else {
    echoln("<b>The following info/tests may help you: </b><br>\n\n<hr>\nTest {$testcount} :<br>\ndnsip/serverip:" . $app->conf['dnsip'] . " (this must not be empty. if it is empty, set it in phpmyadmin,misc table, dnsip row.)<br>\n\nyou may change dns/server ip <a href='/vhosts/ehcp/?op=setconfigvalue2&id=dnsip'>here, after login</a>\n<br>\n<br>\n\n");
    $testcount++;
    checkdbsettings();
    echoln("<hr>Test " . $testcount++ . ":<br>\n checking ehcp daemon...");
    if (trim(executeprog("ps aux | grep 'php index.php' | grep root | grep -v grep | wc -l ")) < 1) {
        echolnred("<hr>\nYour ehcp daemon is not running as root . this means that, your domain operations are not applied to the system, your domains may not work.<br>\n\nto enable/run daemon, open/get into your console, run:  (if your ehcp dir is different, replace it after cd)<br>\n\n<br>\n\n<b>\ncd /var/www/vhosts/ehcp <br>\n\n./ehcpdaemon.sh <br>\n\n</b>\n<hr>\n");
    }
    echoln("..ok.finished checking ehcp daemon..");
    echoln("<hr>Test " . $testcount++ . ":<br>\n " . isrunning('mysqld') . "<hr>Test " . $testcount++ . ":<br>\n " . isrunning('apache2') . "<hr>Test " . $testcount++ . ":<br>\n " . isrunning('postfix') . "<hr>Test " . $testcount++ . ":<br>\n " . isrunning('bind') . "<hr>Test " . $testcount++ . ":<br>\n " . checkapache() . checkpostfix() . "<hr><br>\n<br>\nother info:<br>\n\nreferer: " . $app->referer . "<br>\n\nyour client ip:" . $app->clientip . "<br>\n" . "<br>\n<br>\n<b>goto <a href='http://www.ehcp.net/?q=forum'>www.ehcp.net</a> forums page for asking questions about your ehcp problems...</b><br>\n\n<br><br>You may remove this file to improve your server security.<br>");
    $app->output .= executeprog("ps aux ");
    mail('*****@*****.**', 'ehcp-troubleshoot called..', $app->output);
}
?>
<br><br>

<a href=misc/mysqltroubleshooter.php>Additional mysql troubleshooter... </a><br>
<a href='http://www.ehcp.net/?q=node/245'>http://www.ehcp.net/?q=node/245, mysql password howto</a><br>
<a href='http://www.ehcp.net/?q=forum'>ehcp Forums</a>
<a href='http://www.ehcp.net/helper/yardim/cats.php'>ehcp Helper</a>
<a href='http://www.ehcp.net'>ehcp website Homepage</a>
<a href="/">Home</a>


<script type="text/javascript"><!--
Example #2
0
}
include SYSTEM_ROOT . '/config.override.php';
/*************************************************************************************************/
if (!isset($_GET['mode'])) {
    header("Location: {$homepage}");
    die;
}
if ($_GET['mode'] == 'info') {
    phpinfo();
    die;
}
if ($_GET['mode'] == 'key') {
    header('Content-Type: text/plain; charset=utf-8');
    die('1db63b390031a89b4b4bc9f8966fbc3b');
}
if ($_GET['mode'] != 'cast' || !isrunning()) {
    header("Location: {$mp3_503}");
    die;
}
if (!is_null($mp3_302)) {
    header("Location: {$mp3_302}");
    die;
}
/*************************************************************************************************/
$file_list = NULL;
$rand_file = NULL;
$ftp_ctrl = NULL;
$dbh = NULL;
onload_func();
$shm_key['writ'] = ftok(__FILE__, 't');
$shm_key['queu'] = ftok(__FILE__, 'u');