tools_main.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class Tools_Main extends oxAdminDetails
00009 {
00016     public function render()
00017     {
00018         if ($this->getConfig()->isDemoShop()) {
00019             oxUtils::getInstance()->showMessageAndExit( "Access denied !" );
00020         }
00021 
00022         parent::render();
00023 
00024         $oAuthUser = oxNew( 'oxuser' );
00025         $oAuthUser->loadAdminUser();
00026         $this->_aViewData["blIsMallAdmin"] = $oAuthUser->oxuser__oxrights->value == "malladmin";
00027         
00028         $blShowUpdateViews = $this->getConfig()->getConfigParam( 'blShowUpdateViews' );
00029         $this->_aViewData['showViewUpdate'] = ( isset( $blShowUpdateViews ) && !$blShowUpdateViews ) ? false : true;
00030 
00031         return "tools_main.tpl";
00032     }
00033 }