99 $myConfig->setConfigParam(
'blAdmin',
true);
104 $this->_sShopTitle = $oShop->oxshops__oxname->getRawValue();
105 $this->_sShopVersion = $oShop->oxshops__oxversion->value;
119 if (!$this->_oEditShop) {
120 $this->_oEditShop = $this->
getConfig()->getActiveShop();
121 if ($this->_oEditShop->getId() != $sShopId) {
122 $oEditShop =
oxNew(
'oxshop');
123 if ($oEditShop->load($sShopId)) {
124 $this->_oEditShop = $oEditShop;
150 $this->_iEditLang = $oLang->getEditLanguage();
151 $oLang->setBaseLanguage();
175 $sURL =
$myConfig->getConfigParam(
'sShopURL') .
$myConfig->getConfigParam(
'sAdminDir') .
"/";
177 if (
$myConfig->getConfigParam(
'sAdminSSLURL')) {
178 $sURL =
$myConfig->getConfigParam(
'sAdminSSLURL');
182 $oViewConf->setViewConfigParam(
'selflink',
oxRegistry::get(
"oxUtilsUrl")->processUrl($sURL .
'index.php?editlanguage=' . $this->_iEditLang,
false));
183 $oViewConf->setViewConfigParam(
'ajaxlink', str_replace(
'&',
'&',
oxRegistry::get(
"oxUtilsUrl")->processUrl($sURL .
'oxajax.php?editlanguage=' . $this->_iEditLang,
false)));
184 $oViewConf->setViewConfigParam(
'sServiceUrl', $this->
getServiceUrl());
185 $oViewConf->setViewConfigParam(
'blLoadDynContents',
$myConfig->getConfigParam(
'blLoadDynContents'));
186 $oViewConf->setViewConfigParam(
'sShopCountry',
$myConfig->getConfigParam(
'sShopCountry'));
189 $iDynInterfaceLanguage =
$myConfig->getConfigParam(
'iDynInterfaceLanguage');
191 $this->_aViewData[
'adminlang'] = isset($iDynInterfaceLanguage) ? $iDynInterfaceLanguage : $oLang->getTplLanguage();
192 $this->_aViewData[
'charset'] = $this->
getCharSet();
195 $this->_aViewData[
"oActCur"] =
$myConfig->getActShopCurrencyObject();
207 return $this->
getConfig()->isSsl() ?
'https' :
'http';
219 if ($this->_sServiceUrl === null) {
225 $sUrl = $sProtocol .
'://admin.oxid-esales.com/CE/';
231 $sLangAbbr = $oLang->getLanguageAbbr($oLang->getTplLanguage());
234 if ($sLangAbbr !=
"de") {
238 $this->_sServiceUrl = $sUrl . $this->
_getShopVersionNr() .
"/{$sCountry}/{$sLangAbbr}/";
254 $sQ =
"select oxversion from oxshops where oxid = '$sShopID' ";
255 $sVersion =
oxDb::getDb()->getOne($sQ,
false,
false);
258 $sVersion = preg_replace(
"/(^[^0-9]+)(.+)$/",
"$2", $sVersion);
260 return trim($sVersion);
279 $sActTab = $iActTab ?
"&actedit=$iActTab" :
'';
285 $this->_aViewData[
'listurl'] = $myAdminNavig->getListUrl($sNode) . $sActTab;
288 $this->_aViewData[
'editurl'] = $myAdminNavig->getEditUrl($sNode, $iActTab) . $sActTab;
302 $aHistory = explode(
'|', $myUtilsServer->getOxCookie(
'oxidadminhistory'));
303 if (!is_array($aHistory)) {
307 if (!in_array($sNode, $aHistory)) {
308 $aHistory[] = $sNode;
311 $myUtilsServer->setOxCookie(
'oxidadminhistory', implode(
'|', $aHistory));
332 $this->_aViewData[
'oxid'] = (!$sOxId) ? -1 : $sOxId;
338 $this->_aViewData[
"shopid"] =
$myConfig->getShopId();
343 $this->_aViewData[
'actshopobj'] = $this->
_getEditShop($sActShopId);
347 $this->_aViewData[
'actlang'] = $iLanguage = $oLang->getBaseLanguage();
349 $this->_aViewData[
'languages'] = $oLang->getLanguageArray($iLanguage);
352 list($this->_aViewData[
'iMaxUploadFileSize'], $this->_aViewData[
'sMaxFormattedFileSize']) = $this->
_getMaxUploadFileInfo(@ini_get(
"upload_max_filesize"));
355 if (!isset($this->_aViewData[
'updatelist'])) {
372 $iMaxFileSize = $iMaxFileSize ? $iMaxFileSize :
'2M';
375 $iMaxFileSize = trim($iMaxFileSize);
376 $sParam = strtolower($iMaxFileSize{strlen($iMaxFileSize) - 1});
379 $iMaxFileSize *= 1024;
382 $iMaxFileSize *= 1024;
385 $iMaxFileSize *= 1024;
389 $aMarkers = array(
'KB',
'MB',
'GB');
390 $sFormattedMaxSize =
'';
392 $iSize = floor($iMaxFileSize / 1024);
393 while ($iSize && current($aMarkers)) {
394 $sFormattedMaxSize = $iSize .
" " . current($aMarkers);
395 $iSize = floor($iSize / 1024);
399 return array($iMaxFileSize, $sFormattedMaxSize);
417 $blDeleteCacheOnLogout = $this->
getConfig()->getConfigParam(
'blClearCacheOnLogout');
419 if (!$blDeleteCacheOnLogout || $blForceReset) {
436 $blDeleteCacheOnLogout = $this->
getConfig()->getConfigParam(
'blClearCacheOnLogout');
439 if (!$blDeleteCacheOnLogout) {
440 switch ($sCounterType) {
441 case 'priceCatArticle':
442 $myUtilsCount->resetPriceCatArticleCount($sValue);
445 $myUtilsCount->resetCatArticleCount($sValue);
447 case 'vendorArticle':
448 $myUtilsCount->resetVendorArticleCount($sValue);
450 case 'manufacturerArticle':
451 $myUtilsCount->resetManufacturerArticleCount($sValue);
492 $sCountry =
'international';
494 if (!empty($sCountryCode)) {
496 $iEnglishId = array_search(
"en", $aLangIds);
497 if (
false !== $iEnglishId) {
498 $sViewName = getViewName(
"oxcountry", $iEnglishId);
499 $sQ =
"select oxtitle from {$sViewName} where oxisoalpha2 = " .
oxDb::getDb()->quote($sCountryCode);
500 $sCountryName =
oxDb::getDb()->getOne($sQ,
false,
false);
502 $sCountry = $sCountryName;
506 switch ($sCountryCode) {
510 return 'international';
515 return strtolower($sCountry);
539 if (self::$_oNaviTree == null) {
540 self::$_oNaviTree =
oxNew(
'oxnavigationtree');
553 $sClassName = strtolower(get_class($this));
575 $aTypes = array(
'oxarticle',
'oxcategory',
'oxvendor',
'oxcontent',
'dynamic',
'oxmanufacturer');
577 foreach ($aTypes as $sType) {
578 $oEncoder->markAsExpired(null, $sShopId, 1, null,
"oxtype = '{$sType}'");
582 $oTagCloud =
oxNew(
'oxtagcloud');
583 $oTagCloud->resetCache();
603 if (null === ($sId = $this->_sEditObjectId)) {
619 $this->_sEditObjectId = $sId;
620 $this->_aViewData[
"updatelist"] = 1;