27 $sItem = $sItem ? basename($sItem) :
false;
29 $sItem =
"nav_frame.tpl";
31 if (is_array($aFavorites)) {
32 $myUtilsServer->setOxCookie(
'oxidadminfavorites', implode(
'|', $aFavorites));
38 $this->_aViewData[
"menustructure"] = $oNavTree->getDomXml()->documentElement->childNodes;
41 $sVersion = str_replace(array(
"EE.",
"PE."),
"", $this->_sShopVersion);
42 $this->_aViewData[
"sVersion"] = trim($sVersion);
47 if (
'home.tpl' == $sItem) {
56 $aFavorites = explode(
'|', $myUtilsServer->getOxCookie(
'oxidadminfavorites'));
58 if (is_array($aFavorites) && count($aFavorites)) {
59 $this->_aViewData[
"menufavorites"] = $oNavTree->getListNodes($aFavorites);
60 $this->_aViewData[
"aFavorites"] = $aFavorites;
64 $aHistory = explode(
'|', $myUtilsServer->getOxCookie(
'oxidadminhistory'));
65 if (is_array($aHistory) && count($aHistory)) {
66 $this->_aViewData[
"menuhistory"] = $oNavTree->getListNodes($aHistory);
76 $oShoplist =
oxNew(
'oxShopList');
77 if (!$blisMallAdmin) {
81 $oShop =
oxNew(
'oxShop');
82 $oShop->load($iShopId);
83 $oShoplist->add($oShop);
85 $oShoplist->getIdTitleList();
88 $this->_aViewData[
'shoplist'] = $oShoplist;
100 $this->_aViewData[
'loadbasefrm'] =
true;
106 $this->_aViewData[
'listview'] = $sListView;
107 $this->_aViewData[
'editview'] = $sEditView;
108 $this->_aViewData[
'actedit'] = $iActEdit;
119 $oUser =
oxNew(
"oxuser");
123 $mySession->destroy();
126 if (
$myConfig->getConfigParam(
'blAdodbSessionHandler')) {
128 $oDb->execute(
"delete from oxsessions where SessionID = " . $oDb->quote($mySession->getId()));
132 if (
$myConfig->getConfigParam(
'blClearCacheOnLogout')) {
149 if (
$myConfig->getConfigParam(
'blLoadDynContents') && strpos($sUrl, $this->_sAllowedHost) === 0) {
151 $sPath =
$myConfig->getConfigParam(
'sCompileDir') .
"/" . md5($sUrl) .
'.html';
152 if ($myUtils->getRemoteCachePath($sUrl, $sPath)) {
157 $sCurYear = date(
"Y");
160 $sOutput = file_get_contents($sPath);
163 $sOutput = $oStr->preg_replace(
"/<\/head>/i",
"<base href=\"" . dirname($sUrl) .
'/' .
"\"></head>\n <!-- OXID eShop {$sEdition}, Version {$sVersion}, Shopping Cart System (c) OXID eSales AG 2003 - {$sCurYear} - http://www.oxid-esales.com -->", $sOutput);
166 $myUtils->showMessageAndExit($oStr->preg_replace(
"/href=\"#\"/i",
'href="javascript::void();"', $sOutput));
170 $myUtils->redirect($sUrl,
true, 302);
174 $myUtils->showMessageAndExit(
"");
189 if (!$oSysReq->getSysReqStatus()) {
190 $aMessage[
'warning'] =
oxRegistry::getLang()->translateString(
'NAVIGATION_SYSREQ_MESSAGE');
191 $aMessage[
'warning'] .=
'<a href="?cl=sysreq&stoken=' . $this->
getSession()->getSessionChallengeToken() .
'" target="basefrm">';
192 $aMessage[
'warning'] .=
oxRegistry::getLang()->translateString(
'NAVIGATION_SYSREQ_MESSAGE2') .
'</a>';
196 if ($this->
getConfig()->getConfigParam(
'blCheckForUpdates')) {
198 $aMessage[
'message'] .= $sVersionNotice;
204 if (file_exists($this->
getConfig()->getConfigParam(
'sShopDir') .
'/setup/index.php')) {
205 $aMessage[
'warning'] .= ((!empty($aMessage[
'warning'])) ?
"<br>" :
'') .
oxRegistry::getLang()->translateString(
'SETUP_DIRNOTDELETED_WARNING');
209 $sUpdateDir = $this->
getConfig()->getConfigParam(
'sShopDir') .
'/updateApp/';
210 if (file_exists($sUpdateDir) && !(count(glob(
"$sUpdateDir/*")) === 0)) {
211 $aMessage[
'warning'] .= ((!empty($aMessage[
'warning'])) ?
"<br>" :
'') .
oxRegistry::getLang()->translateString(
'UPDATEAPP_DIRNOTDELETED_WARNING');
215 $sConfPath = $this->
getConfig()->getConfigParam(
'sShopDir') .
"/config.inc.php";
216 if (!is_readable($sConfPath) || is_writable($sConfPath)) {
217 $aMessage[
'warning'] .= ((!empty($aMessage[
'warning'])) ?
"<br>" :
'') .
oxRegistry::getLang()->translateString(
'SETUP_CONFIGPERMISSIONS_WARNING');
232 $sQuery =
'http://admin.oxid-esales.com/' . $sVersion .
'/onlinecheck.php?getlatestversion';
233 if ($sVersion =
oxRegistry::get(
"oxUtilsFile")->readRemoteFileAsString($sQuery)) {
235 if (version_compare($this->
getConfig()->getVersion(), $sVersion) ==
'-1') {
236 return sprintf(
oxRegistry::getLang()->translateString(
'NAVIGATION_NEWVERSIONAVAILABLE'), $sVersion);