2012-12-03 08:47:48 -04:00
|
|
|
<?php
|
2014-06-20 16:08:47 -04:00
|
|
|
global $RBAC;
|
|
|
|
|
$RBAC->requirePermissions( 'PM_SETUP' );
|
|
|
|
|
|
2012-12-03 08:47:48 -04:00
|
|
|
$option = (isset($_GET["option"]))? $_GET["option"] : null;
|
|
|
|
|
|
|
|
|
|
switch ($option) {
|
|
|
|
|
case "phpinfo":
|
2013-09-05 11:41:29 -04:00
|
|
|
phpinfo(INFO_GENERAL + INFO_CREDITS + INFO_CONFIGURATION + INFO_MODULES + INFO_ENVIRONMENT + INFO_VARIABLES);
|
2012-12-03 08:47:48 -04:00
|
|
|
break;
|
|
|
|
|
case "php":
|
|
|
|
|
$oHeadPublisher = &headPublisher::getSingleton();
|
|
|
|
|
$oHeadPublisher->addContent("setup/phpInfo"); //Adding a html file .html
|
|
|
|
|
$oHeadPublisher->addExtJsScript("setup/phpInfo", false); //Adding a javascript file .js
|
|
|
|
|
|
2013-01-02 11:15:46 -04:00
|
|
|
G::RenderPage("publish", "extJs");
|
|
|
|
|
break;
|
|
|
|
|
case "processInfo":
|
|
|
|
|
$oHeadPublisher = &headPublisher::getSingleton();
|
|
|
|
|
$oHeadPublisher->addContent("setup/dbInfo"); //Adding a html file .html
|
|
|
|
|
$oHeadPublisher->addExtJsScript("setup/dbInfo", false); //Adding a javascript file .js
|
|
|
|
|
|
2012-12-03 08:47:48 -04:00
|
|
|
G::RenderPage("publish", "extJs");
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
require_once (PATH_CONTROLLERS . "installer.php");
|
|
|
|
|
|
|
|
|
|
$installer = new Installer();
|
|
|
|
|
|
|
|
|
|
$systemInfo = $installer->getSystemInfo();
|
|
|
|
|
|
|
|
|
|
$oHeadPublisher = &headPublisher::getSingleton();
|
|
|
|
|
$oHeadPublisher->addContent("setup/systemInfo"); //Adding a html file .html
|
|
|
|
|
$oHeadPublisher->addExtJsScript("setup/systemInfo", false); //Adding a javascript file .js
|
|
|
|
|
|
2013-02-01 12:17:00 -04:00
|
|
|
$oHeadPublisher->assign("SYSINFO_PHP", "\"" . $systemInfo->php->version . "\", " . (($systemInfo->php->result)? 1 : 0));
|
|
|
|
|
$oHeadPublisher->assign("SYSINFO_MYSQL", "\"" . $systemInfo->mysql->version . "\", " . (($systemInfo->mysql->result)? 1 : 0));
|
|
|
|
|
$oHeadPublisher->assign("SYSINFO_MSSQL", "\"" . $systemInfo->mssql->version . "\", " . (($systemInfo->mssql->result)? 1 : 0));
|
|
|
|
|
$oHeadPublisher->assign("SYSINFO_CURL", "\"" . $systemInfo->curl->version . "\", " . (($systemInfo->curl->result)? 1 : 0));
|
|
|
|
|
$oHeadPublisher->assign("SYSINFO_OPENSSL", "\"" . $systemInfo->openssl->version . "\", " . (($systemInfo->openssl->result)? 1 : 0));
|
|
|
|
|
$oHeadPublisher->assign("SYSINFO_DOMXML", "\"" . $systemInfo->dom->version . "\", " . (($systemInfo->dom->result)? 1 : 0));
|
|
|
|
|
$oHeadPublisher->assign("SYSINFO_GD", "\"" . $systemInfo->gd->version . "\", " . (($systemInfo->gd->result)? 1 : 0));
|
|
|
|
|
$oHeadPublisher->assign("SYSINFO_MULTIBYTESTRING", "\"" . $systemInfo->multibyte->version . "\", " . (($systemInfo->multibyte->result)? 1 : 0));
|
|
|
|
|
$oHeadPublisher->assign("SYSINFO_SOAP", "\"" . $systemInfo->soap->version . "\", " . (($systemInfo->soap->result)? 1 : 0));
|
|
|
|
|
$oHeadPublisher->assign("SYSINFO_LDAP", "\"" . $systemInfo->ldap->version . "\", " . (($systemInfo->ldap->result)? 1 : 0));
|
|
|
|
|
$oHeadPublisher->assign("SYSINFO_MEMORYLIMIT", "\"" . $systemInfo->memory->version . "\", " . (($systemInfo->memory->result)? 1 : 0));
|
2012-12-03 08:47:48 -04:00
|
|
|
|
|
|
|
|
G::RenderPage("publish", "extJs");
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|