Beispiel #1
0
 /**
  * Constructor
  * @global object $objTemplate
  */
 function __construct($pageContent)
 {
     $this->pageContent = $pageContent;
     $this->_objTpl = new \Cx\Core\Html\Sigma('.');
     \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl);
     $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE);
     $this->mediaPath = ASCMS_MARKET_MEDIA_PATH . '/';
     $this->mediaWebPath = ASCMS_MARKET_MEDIA_WEB_PATH . '/';
     //get settings
     $this->settings = $this->getSettings();
     //check community modul
     $objModulManager = new \Cx\Core\ComponentManager\Controller\ComponentManager();
     $arrInstalledModules = $objModulManager->getModules();
     if (in_array(23, $arrInstalledModules)) {
         $this->communityModul = true;
     } else {
         $this->communityModul = false;
     }
     //ipn Check
     if (isset($_GET['act'])) {
         switch ($_GET['act']) {
             case "paypalIpnCheck":
                 $objPaypal = new \PayPal();
                 $objPaypal->ipnCheck();
                 exit;
                 break;
             default:
                 //nothging
                 break;
         }
     }
 }
 /**
  * Load the component Component Manager.
  *
  * @param \Cx\Core\ContentManager\Model\Entity\Page $page       The resolved page
  */
 public function load(\Cx\Core\ContentManager\Model\Entity\Page $page)
 {
     global $_ARRAYLANG, $subMenuTitle;
     $subMenuTitle = $_ARRAYLANG['TXT_MODULE_MANAGER'];
     \Permission::checkAccess(23, 'static');
     $this->cx->getTemplate()->addBlockfile('CONTENT_OUTPUT', 'content_master', 'LegacyContentMaster.html');
     $cachedRoot = $this->cx->getTemplate()->getRoot();
     $this->cx->getTemplate()->setRoot($this->getDirectory() . '/View/Template/Backend');
     $objComponentManager = new \Cx\Core\ComponentManager\Controller\ComponentManager();
     $objComponentManager->getModulesPage();
     $this->cx->getTemplate()->setRoot($cachedRoot);
 }
Beispiel #3
0
 /**
  * Constructor
  */
 function __construct($pageContent)
 {
     $this->pageContent = $pageContent;
     $this->_objTpl = new \Cx\Core\Html\Sigma(ASCMS_DOCUMENT_ROOT);
     \Cx\Core\Csrf\Controller\Csrf::add_placeholder($this->_objTpl);
     $this->_objTpl->setErrorHandling(PEAR_ERROR_DIE);
     $cx = \Cx\Core\Core\Controller\Cx::instanciate();
     $this->path = ASCMS_DIR_PATH . '/';
     $this->webPath = ASCMS_DIR_WEB_PATH . '/';
     $this->imagePath = ASCMS_DIR_PATH . '/View/Media';
     $this->imageWebPath = ASCMS_DIR_WEB_PATH . '/View/Media';
     $this->mediaPath = $cx->getWebsiteMediaDirectoryPath() . '/';
     $this->mediaWebPath = $cx->getWebsiteMediaDirectoryWebPath() . '/';
     $this->rssPath = ASCMS_DIRECTORY_FEED_PATH . '/';
     $this->rssWebPath = ASCMS_DIRECTORY_FEED_WEB_PATH . '/';
     $this->folderImageLarge = "<img src='../../modules/Directory/View/Media/_folder_24.gif' alt='' />";
     $this->folderImageSmall = "<img src='../../modules/Directory/View/Media/_folder.gif' alt='' />";
     //create latest xml. (Dave, 2009-03-04: This sucks, as it causes the start
     //                    page to break if the FTP server doesn't work. And why
     //                    the hell do we need to re-create the RSS here anyhow?)
     #$this->createRSSlatest();
     //get settings
     $this->settings = $this->getSettings();
     //check community modul
     $objModulManager = new \Cx\Core\ComponentManager\Controller\ComponentManager();
     $arrInstalledModules = $objModulManager->getModules();
     if (in_array(23, $arrInstalledModules)) {
         $this->communityModul = true;
     } else {
         $this->communityModul = false;
     }
 }