systeminfo.php

Go to the documentation of this file.
00001 <?php
00002 
00009 class SystemInfo extends oxAdminView
00010 {
00017     public function render()
00018     {
00019         $myConfig  = $this->getConfig();
00020 
00021         parent::render();
00022 
00023         $oAuthUser = oxUser::getAdminUser();
00024         $blisMallAdmin = $oAuthUser->oxuser__oxrights->value == "malladmin";
00025 
00026         if ( $blisMallAdmin && !$myConfig->isDemoShop()) {
00027             $aClass_vars = get_object_vars( $myConfig);
00028             $aSystemInfo = array();
00029             $oSmarty = oxUtilsView::getInstance()->getSmarty();
00030             while (list($name, $value) = each($aClass_vars)) {
00031                 if (gettype($value)=="object")
00032                     continue;
00033                 // security fix - we do not output dbname and dbpwd cause of demoshops
00034                 if ( $name == "oDB" || $name == "dbUser" || $name == "dbPwd" ||
00035                     $name == "oSerial" || $name == "aSerials" || $name == "sSerialNr" )
00036                     continue;
00037                 $value = var_export($value, true);
00038                 $value = str_replace( "\n", "<br>", $value);
00039                 $aSystemInfo[$name] = $value;
00040                 //echo( "$name = $value <br>");
00041             }
00042             $oSmarty->assign( "shop", $this->_aViewData["shop"]);
00043             $oSmarty->assign( "isdemo", $myConfig->isDemoShop());
00044             $oSmarty->assign( "aSystemInfo", $aSystemInfo);
00045             echo $oSmarty->fetch("systeminfo.tpl");
00046             echo( "<br><br>");
00047 
00048             phpinfo();
00049 
00050             exit();
00051         }
00052         else
00053             die("Access denied !");
00054     }
00055 }

Generated on Thu Dec 4 12:04:56 2008 for OXID eShop CE by  doxygen 1.5.5