101         $myConfig->setConfigParam(
'blAdmin', 
true);
 
  106             $this->_sShopTitle = $oShop->oxshops__oxname->getRawValue();
 
  107             $this->_sShopVersion = $oShop->oxshops__oxversion->value;
 
  121         if (!$this->_oEditShop) {
 
  122             $this->_oEditShop = $this->
getConfig()->getActiveShop();
 
  123             if ($this->_oEditShop->getId() != $sShopId) {
 
  124                 $oEditShop = 
oxNew(
'oxshop');
 
  125                 if ($oEditShop->load($sShopId)) {
 
  126                     $this->_oEditShop = $oEditShop;
 
  152         $this->_iEditLang = $oLang->getEditLanguage();
 
  153         $oLang->setBaseLanguage();
 
  177         $sURL = 
$myConfig->getConfigParam(
'sShopURL') . 
$myConfig->getConfigParam(
'sAdminDir') . 
"/";
 
  179         if (
$myConfig->getConfigParam(
'sAdminSSLURL')) {
 
  180             $sURL = 
$myConfig->getConfigParam(
'sAdminSSLURL');
 
  184         $oViewConf->setViewConfigParam(
'selflink', 
oxRegistry::get(
"oxUtilsUrl")->processUrl($sURL . 
'index.php?editlanguage=' . $this->_iEditLang, 
false));
 
  185         $oViewConf->setViewConfigParam(
'ajaxlink', str_replace(
'&', 
'&', 
oxRegistry::get(
"oxUtilsUrl")->processUrl($sURL . 
'oxajax.php?editlanguage=' . $this->_iEditLang, 
false)));
 
  186         $oViewConf->setViewConfigParam(
'sServiceUrl', $this->
getServiceUrl());
 
  187         $oViewConf->setViewConfigParam(
'blLoadDynContents', 
$myConfig->getConfigParam(
'blLoadDynContents'));
 
  188         $oViewConf->setViewConfigParam(
'sShopCountry', 
$myConfig->getConfigParam(
'sShopCountry'));
 
  191         $iDynInterfaceLanguage = 
$myConfig->getConfigParam(
'iDynInterfaceLanguage');
 
  193         $this->_aViewData[
'adminlang'] = isset($iDynInterfaceLanguage) ? $iDynInterfaceLanguage : $oLang->getTplLanguage();
 
  194         $this->_aViewData[
'charset'] = $this->
getCharSet();
 
  197         $this->_aViewData[
"oActCur"] = 
$myConfig->getActShopCurrencyObject();
 
  209         return $this->
getConfig()->isSsl() ? 
'https' : 
'http';
 
  223         if ($this->_sServiceUrl === null) {
 
  229             $sUrl = $sProtocol . 
'://admin.oxid-esales.com/CE/';
 
  235                 $sLangAbbr = $oLang->getLanguageAbbr($oLang->getTplLanguage());
 
  238             if ($sLangAbbr != 
"de") {
 
  242             $this->_sServiceUrl = $sUrl . $this->
_getShopVersionNr() . 
"/{$sCountry}/{$sLangAbbr}/";
 
  258             $sQ = 
"select oxversion from oxshops where oxid = '$sShopID' ";
 
  259             $sVersion = 
oxDb::getDb()->getOne($sQ, 
false, 
false);
 
  262         $sVersion = preg_replace(
"/(^[^0-9]+)(.+)$/", 
"$2", $sVersion);
 
  264         return trim($sVersion);
 
  283             $sActTab = $iActTab ? 
"&actedit=$iActTab" : 
'';
 
  289             $this->_aViewData[
'listurl'] = $myAdminNavig->getListUrl($sNode) . $sActTab;
 
  292             $this->_aViewData[
'editurl'] = $myAdminNavig->getEditUrl($sNode, $iActTab) . $sActTab;
 
  306         $aHistory = explode(
'|', $myUtilsServer->getOxCookie(
'oxidadminhistory'));
 
  307         if (!is_array($aHistory)) {
 
  311         if (!in_array($sNode, $aHistory)) {
 
  312             $aHistory[] = $sNode;
 
  315         $myUtilsServer->setOxCookie(
'oxidadminhistory', implode(
'|', $aHistory));
 
  336         $this->_aViewData[
'oxid'] = (!$sOxId) ? -1 : $sOxId;
 
  342         $this->_aViewData[
"shopid"] = 
$myConfig->getShopId();
 
  347             $this->_aViewData[
'actshopobj'] = $this->
_getEditShop($sActShopId);
 
  351         $this->_aViewData[
'actlang'] = $iLanguage = $oLang->getBaseLanguage();
 
  353         $this->_aViewData[
'languages'] = $oLang->getLanguageArray($iLanguage);
 
  356         list($this->_aViewData[
'iMaxUploadFileSize'], $this->_aViewData[
'sMaxFormattedFileSize']) = $this->
_getMaxUploadFileInfo(@ini_get(
"upload_max_filesize"));
 
  359         if (!isset($this->_aViewData[
'updatelist'])) {
 
  376         $iMaxFileSize = $iMaxFileSize ? $iMaxFileSize : 
'2M';
 
  379         $iMaxFileSize = trim($iMaxFileSize);
 
  380         $sParam = strtolower($iMaxFileSize{strlen($iMaxFileSize) - 1});
 
  383                 $iMaxFileSize *= 1024;
 
  386                 $iMaxFileSize *= 1024;
 
  389                 $iMaxFileSize *= 1024;
 
  393         $aMarkers = array(
'KB', 
'MB', 
'GB');
 
  394         $sFormattedMaxSize = 
'';
 
  396         $iSize = floor($iMaxFileSize / 1024);
 
  397         while ($iSize && current($aMarkers)) {
 
  398             $sFormattedMaxSize = $iSize . 
" " . current($aMarkers);
 
  399             $iSize = floor($iSize / 1024);
 
  403         return array($iMaxFileSize, $sFormattedMaxSize);
 
  421         $blDeleteCacheOnLogout = $this->
getConfig()->getConfigParam(
'blClearCacheOnLogout');
 
  423         if (!$blDeleteCacheOnLogout || $blForceReset) {
 
  440         $blDeleteCacheOnLogout = $this->
getConfig()->getConfigParam(
'blClearCacheOnLogout');
 
  443         if (!$blDeleteCacheOnLogout) {
 
  444             switch ($sCounterType) {
 
  445                 case 'priceCatArticle':
 
  446                     $myUtilsCount->resetPriceCatArticleCount($sValue);
 
  449                     $myUtilsCount->resetCatArticleCount($sValue);
 
  451                 case 'vendorArticle':
 
  452                     $myUtilsCount->resetVendorArticleCount($sValue);
 
  454                 case 'manufacturerArticle':
 
  455                     $myUtilsCount->resetManufacturerArticleCount($sValue);
 
  496         $sCountry = 
'international';
 
  498         if (!empty($sCountryCode)) {
 
  500             $iEnglishId = array_search(
"en", $aLangIds);
 
  501             if (
false !== $iEnglishId) {
 
  502                 $sViewName = getViewName(
"oxcountry", $iEnglishId);
 
  503                 $sQ = 
"select oxtitle from {$sViewName} where oxisoalpha2 = " . 
oxDb::getDb()->quote($sCountryCode);
 
  504                 $sCountryName = 
oxDb::getDb()->getOne($sQ, 
false, 
false);
 
  506                     $sCountry = $sCountryName;
 
  510                 switch ($sCountryCode) {
 
  514                         return 'international';
 
  519         return strtolower($sCountry);
 
  543         if (self::$_oNaviTree == null) {
 
  544             self::$_oNaviTree = 
oxNew(
'oxnavigationtree');
 
  557         $sClassName = strtolower(get_class($this));
 
  579         $aTypes = array(
'oxarticle', 
'oxcategory', 
'oxvendor', 
'oxcontent', 
'dynamic', 
'oxmanufacturer');
 
  581         foreach ($aTypes as $sType) {
 
  582             $oEncoder->markAsExpired(null, $sShopId, 1, null, 
"oxtype = '{$sType}'");
 
  587         $oTagCloud = 
oxNew(
'oxtagcloud');
 
  588         $oTagCloud->resetCache();
 
  609         if (null === ($sId = $this->_sEditObjectId)) {
 
  625         $this->_sEditObjectId = $sId;
 
  626         $this->_aViewData[
"updatelist"] = 1;