Go to the documentation of this file.00001 <?php
00002
00008 class SystemInfo extends oxAdminView
00009 {
00010
00017 public function render()
00018 {
00019 $myConfig = $this->getConfig();
00020
00021 parent::render();
00022
00023 $oAuthUser = oxNew('oxuser');
00024 $oAuthUser->loadAdminUser();
00025 $blisMallAdmin = $oAuthUser->oxuser__oxrights->value == "malladmin";
00026
00027 if ($blisMallAdmin && !$myConfig->isDemoShop()) {
00028 $aClassVars = get_object_vars($myConfig);
00029 $aSystemInfo = array();
00030 $aSystemInfo['pkg.info'] = $myConfig->getPackageInfo();
00031 $oSmarty = oxRegistry::get("oxUtilsView")->getSmarty();
00032 while (list($name, $value) = each($aClassVars)) {
00033 if (gettype($value) == "object") {
00034 continue;
00035 }
00036
00037 if ($name == "oDB" || $name == "dbUser" || $name == "dbPwd" ||
00038 $name == "oSerial" || $name == "aSerials" || $name == "sSerialNr"
00039 ) {
00040 continue;
00041 }
00042
00043 $value = var_export($value, true);
00044 $value = str_replace("\n", "<br>", $value);
00045 $aSystemInfo[$name] = $value;
00046
00047 }
00048 $oSmarty->assign("oViewConf", $this->_aViewData["oViewConf"]);
00049 $oSmarty->assign("oView", $this->_aViewData["oView"]);
00050 $oSmarty->assign("shop", $this->_aViewData["shop"]);
00051 $oSmarty->assign("isdemo", $myConfig->isDemoShop());
00052 $oSmarty->assign("aSystemInfo", $aSystemInfo);
00053 echo $oSmarty->fetch("systeminfo.tpl");
00054 echo("<br><br>");
00055
00056 phpinfo();
00057
00058 oxRegistry::getUtils()->showMessageAndExit("");
00059 } else {
00060 return oxRegistry::getUtils()->showMessageAndExit("Access denied !");
00061 }
00062 }
00063 }