29         $oShop = 
oxNew(
'oxshop');
 
   30         $oShop->loadInLang($this->_iEditLang, $this->_aViewData[
'edit']->getId());
 
   31         $this->_aViewData[
'edit'] = $oShop;
 
   34         $sQ = 
"select oxstdurl, oxobjectid from oxseo where oxtype='static' and oxshopid=" . 
oxDb::getDb()->quote($oShop->getId()) . 
" group by oxobjectid order by oxstdurl";
 
   36         $oList = 
oxNew(
'oxlist');
 
   37         $oList->init(
'oxbase', 
'oxseo');
 
   38         $oList->selectString($sQ);
 
   40         $this->_aViewData[
'aStaticUrls'] = $oList;
 
   45         return "shop_seo.tpl";
 
   56         if ($this->_sActSeoObject) {
 
   59             $sActObject = $aStatUrl[
'oxseo__oxobjectid'];
 
   62         if ($sActObject && $sActObject != 
'-1') {
 
   63             $this->_aViewData[
'sActSeoObject'] = $sActObject;
 
   66             $sQ = 
"select oxseourl, oxlang from oxseo where oxobjectid = " . $oDb->quote($sActObject) . 
" and oxshopid = " . $oDb->quote($iShopId);
 
   67             $oRs = $oDb->execute($sQ);
 
   68             if ($oRs != 
false && $oRs->recordCount() > 0) {
 
   70                     $aSeoUrls[$oRs->fields[
'oxlang']] = array($sActObject, $oRs->fields[
'oxseourl']);
 
   73                 $this->_aViewData[
'aSeoUrls'] = $aSeoUrls;
 
   88         $oShop = 
oxNew(
'oxshop');
 
   89         if ($oShop->loadInLang($this->_iEditLang, $this->getEditObjectId())) {
 
   92             $oShop->setLanguage(0);
 
   94             $oShop->setLanguage($this->_iEditLang);
 
  113         if (isset($aUrls[
'oxseo__oxstdurl']) && $aUrls[
'oxseo__oxstdurl']) {
 
  114             $aUrls[
'oxseo__oxstdurl'] = $this->
_cleanupUrl($aUrls[
'oxseo__oxstdurl']);
 
  117         if (isset($aUrls[
'oxseo__oxseourl']) && is_array($aUrls[
'oxseo__oxseourl'])) {
 
  118             foreach ($aUrls[
'oxseo__oxseourl'] as $iPos => $sUrl) {
 
  119                 $aUrls[
'oxseo__oxseourl'][$iPos] = $this->
_cleanupUrl($sUrl);
 
  136         while ((stripos($sUrl, 
'&') !== 
false) || (stripos($sUrl, 
'&&') !== 
false)) {
 
  137             $sUrl = str_replace(
'&', 
'&', $sUrl);
 
  138             $sUrl = str_replace(
'&&', 
'&', $sUrl);
 
  142         return str_replace(
'&', 
'&', $sUrl);
 
  159             if (($sObjectid = $aStaticUrl[
'oxseo__oxobjectid']) && $sObjectid != 
'-1') {
 
  163                 $oDb->execute(
"delete from oxseo where oxtype='static' and oxobjectid = " . $oDb->quote($sObjectid) . 
" and oxshopid = " . $oDb->quote($soxId));