BUG 10106 "Verify php settings" SOLVED

- New feature
- Verify php settings
- Added new feature
- Added new options in ADMIN>Settings:
    * Check PM requirements
    * PHP Information
* Available from version 2.0.46
This commit is contained in:
Victor Saisa Lopez
2012-12-03 08:47:48 -04:00
parent c1e477c5d0
commit 9077ab1cd9
11 changed files with 317 additions and 3 deletions

View File

@@ -0,0 +1,41 @@
<?php
$option = (isset($_GET["option"]))? $_GET["option"] : null;
switch ($option) {
case "phpinfo":
phpinfo();
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
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
$oHeadPublisher->assign("SYSINFO_PHP", "\"" . $systemInfo->php->version . "\", " . $systemInfo->php->result);
$oHeadPublisher->assign("SYSINFO_MYSQL", "\"" . $systemInfo->mysql->version . "\", " . $systemInfo->mysql->result);
$oHeadPublisher->assign("SYSINFO_MSSQL", "\"" . $systemInfo->mssql->version . "\", " . $systemInfo->mssql->result);
$oHeadPublisher->assign("SYSINFO_CURL", "\"" . $systemInfo->curl->version . "\", " . $systemInfo->curl->result);
$oHeadPublisher->assign("SYSINFO_OPENSSL", "\"" . $systemInfo->openssl->version . "\", " . $systemInfo->openssl->result);
$oHeadPublisher->assign("SYSINFO_DOMXML", "\"" . $systemInfo->dom->version . "\", " . $systemInfo->dom->result);
$oHeadPublisher->assign("SYSINFO_GD", "\"" . $systemInfo->gd->version . "\", " . $systemInfo->gd->result);
$oHeadPublisher->assign("SYSINFO_MULTIBYTESTRING", "\"" . $systemInfo->multibyte->version . "\", " . $systemInfo->multibyte->result);
$oHeadPublisher->assign("SYSINFO_SOAP", "\"" . $systemInfo->soap->version . "\", " . $systemInfo->soap->result);
$oHeadPublisher->assign("SYSINFO_LDAP", "\"" . $systemInfo->ldap->version . "\", " . $systemInfo->ldap->result);
$oHeadPublisher->assign("SYSINFO_MEMORYLIMIT", "\"" . $systemInfo->memory->version . "\", " . $systemInfo->memory->result);
G::RenderPage("publish", "extJs");
break;
}