Exemplo n.º 1
0
include SITE_ROOT . DS . 'public' . DS . 'layouts' . DS . "nav.php";
?>

<?php 
echo isset($valid) ? $valid->form_errors() : "";
echo isset($valid) ? $valid->form_warnings() : "";
?>

<?php 
if (isset($message)) {
    echo output_message($message);
}
?>

<?php 
checking(false);
?>







<h4 class="text-center"><a href="<?php 
echo $_SERVER["PHP_SELF"];
?>
"><?php 
echo $page . " " . $class_name::$page_name;
?>
</a> </h4>
Exemplo n.º 2
0
$redir = $ac['quiet'] == 'yes' ? ' > ' . (is_windows() ? 'nul' : '/dev/null') : '';
quietechorun("\"{$ac['PHP']}\" -q \"{$ac['basedir']}/scripts/file-entities.php\"{$redir}");
checking("for if we should generate a simplified file");
if ($ac["GENERATE"] != "no") {
    if (!file_exists($ac["GENERATE"])) {
        checkerror("Can't find {$ac["GENERATE"]}");
    }
    $tmp = realpath($ac["GENERATE"]);
    $ac["GENERATE"] = str_replace($ac["ROOTDIR"] . $ac["LANGDIR"], "", $tmp);
    $str = "\n<!ENTITY developer.include.file SYSTEM 'file:///{$ac["GENERATE"]}'>";
    file_put_contents("{$ac["basedir"]}/entities/file-entities.ent", $str, FILE_APPEND);
    $ac["INPUT_FILENAME"] = "developer.template.xml";
    $ac["FORCE_DOM_SAVE"] = "yes";
}
checkvalue($ac["GENERATE"]);
checking('whether to save an invalid .manual.xml');
checkvalue($ac['FORCE_DOM_SAVE']);
echo "Loading and parsing {$ac["INPUT_FILENAME"]}... ";
flush();
$dom = new DOMDocument();
// realpath() is important: omitting it causes severe performance degradation
// and doubled memory usage on Windows.
$didLoad = $dom->load(realpath("{$ac['srcdir']}/{$ac["INPUT_FILENAME"]}"), $LIBXML_OPTS);
// Check if the XML was simply broken, if so then just bail out
if ($didLoad === false) {
    echo "failed.\n";
    print_xml_errors();
    errors_are_bad(1);
}
echo "done.\n";
echo "Validating {$ac["INPUT_FILENAME"]}... ";
Exemplo n.º 3
0
}
// }}}
checking(_T("Extension Compatibility"));
// {{{
$loadedZendExtensions = get_loaded_extensions(true);
$extensionGood = true;
if (array_search("Zend Optimizer", $loadedZendExtensions) !== false) {
    result(N_("info"), _T("Zend Optimizer loaded"), _T("Optimizer feature of 'Zend Optimizer' is disabled by XCache due to compatibility reason; the Loader of it is still available, encoded files are still supported"));
    $extensionGood = false;
}
if (array_search("the ionCube PHP Loader", $loadedZendExtensions) !== false) {
    result(N_("info"), _T("the ionCube PHP Loader loaded"), _T("Compatibility with this the ionCube PHp Loader' is taken care of; But in case if there's any problem, report to ionCube team and/or XCache devs"));
    $extensionGood = false;
}
if (!$extensionGood) {
    result(N_("info"), _T("Looks good"));
}
// }}}
checking(_T("SAPI Compatibility"));
// {{{
if (php_sapi_name() == "cgi" || php_sapi_name() == "cgi-fcgi" && !isset($_SERVER["FCGI_ROLE"])) {
    result(N_("error"), _T("CGI is not supported"), _T("Use FastCGI or FPM instead"));
} else {
    if (php_sapi_name() == "cgi-fcgi" && isset($_SERVER["FCGI_ROLE"]) && (int) getenv("PHP_FCGI_CHILDREN") < 1) {
        result(N_("error"), "PHP_FCGI_CHILDREN<1", _T("PHP_FCGI_CHILDREN should be >= 1 and use 1 group of parent/childs model. See http://xcache.lighttpd.net/wiki/Faq"));
    } else {
        result(N_("info"), _T("Looks good"));
    }
}
// }}}
include "./diagnosis.tpl.php";