/**
  * Initialize editor
  *
  * @param integer $pageId
  * @param integer $template_uid
  * @return integer
  * @todo Define visibility
  */
 public function initialize_editor($pageId, $template_uid = 0)
 {
     // Initializes the module. Done in this function because we may need to re-initialize if data is submitted!
     global $tmpl, $tplRow, $theConstants;
     $tmpl = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\TypoScript\\ExtendedTemplateService');
     // Defined global here!
     $tmpl->tt_track = 0;
     // Do not log time-performance information
     $tmpl->init();
     $tmpl->ext_localGfxPrefix = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('tstemplate_ceditor');
     $tmpl->ext_localWebGfxPrefix = $GLOBALS['BACK_PATH'] . \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath('tstemplate_ceditor');
     // Get the row of the first VISIBLE template of the page. whereclause like the frontend.
     $tplRow = $tmpl->ext_getFirstTemplate($pageId, $template_uid);
     // IF there was a template...
     if (is_array($tplRow)) {
         // Gets the rootLine
         $sys_page = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
         $rootLine = $sys_page->getRootLine($pageId);
         // This generates the constants/config + hierarchy info for the template.
         $tmpl->runThroughTemplates($rootLine, $template_uid);
         // The editable constants are returned in an array.
         $theConstants = $tmpl->generateConfig_constants();
         // The returned constants are sorted in categories, that goes into the $tmpl->categories array
         $tmpl->ext_categorizeEditableConstants($theConstants);
         // This array will contain key=[expanded constantname], value=linenumber in template. (after edit_divider, if any)
         $tmpl->ext_regObjectPositions($tplRow['constants']);
         return 1;
     }
 }
 /**
  * Initializes the Module
  *
  * @return 	void
  */
 public function initialize()
 {
     parent::init();
     $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
     $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('recycler') . 'mod1/mod_template.html');
     $this->doc->backPath = $GLOBALS['BACK_PATH'];
     $this->doc->setExtDirectStateProvider();
     $this->pageRenderer = $this->doc->getPageRenderer();
     $this->relativePath = \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath('recycler');
     $this->pageRecord = \TYPO3\CMS\Backend\Utility\BackendUtility::readPageAccess($this->id, $this->perms_clause);
     $this->isAccessibleForCurrentUser = $this->id && is_array($this->pageRecord) || !$this->id && $this->isCurrentUserAdmin();
     //don't access in workspace
     if ($GLOBALS['BE_USER']->workspace !== 0) {
         $this->isAccessibleForCurrentUser = FALSE;
     }
     //read configuration
     $modTS = $GLOBALS['BE_USER']->getTSConfig('mod.recycler');
     if ($this->isCurrentUserAdmin()) {
         $this->allowDelete = TRUE;
     } else {
         $this->allowDelete = $modTS['properties']['allowDelete'] == '1';
     }
     if (isset($modTS['properties']['recordsPageLimit']) && intval($modTS['properties']['recordsPageLimit']) > 0) {
         $this->recordsPageLimit = intval($modTS['properties']['recordsPageLimit']);
     }
 }
Beispiel #3
0
 public function main($parentObject)
 {
     if (\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('static_info_tables') && file_exists(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('static_info_tables') . 'class.tx_staticinfotables_div.php')) {
         require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('static_info_tables') . 'class.tx_staticinfotables_div.php';
     } else {
         $this->pluginButtons = \TYPO3\CMS\Core\Utility\GeneralUtility::rmFromList('language', $this->pluginButtons);
     }
     return parent::main($parentObject);
 }
 /**
  * Initializes the Module
  *
  * @return void
  */
 public function __construct()
 {
     parent::init();
     // Initialize document
     $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
     $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('taskcenter') . 'res/mod_template.html');
     $this->doc->backPath = $GLOBALS['BACK_PATH'];
     $this->doc->getPageRenderer()->loadScriptaculous('effects,dragdrop');
     $this->doc->addStyleSheet('tx_taskcenter', '../' . \TYPO3\CMS\Core\Extension\ExtensionManager::siteRelPath('taskcenter') . 'res/mod_styles.css');
 }
 /**
  * Shows warning message about ENABLE_INSTALL_TOOL file and a button to create this file
  *
  * @return void
  */
 protected function showInstallToolEnableRequest()
 {
     // Create instance of object for output of data
     $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
     $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('install') . 'mod/mod_template.html');
     $this->doc->form = '<form method="post" id="t3-install-form-unlock" action="">';
     $this->doc->addStyleSheet('install', 'stylesheets/install/install.css');
     $this->doc->addStyleSheet('mod-install', \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath('install') . 'mod/mod_styles.css');
     $markers = $buttons = array();
     $markers['CONTENT'] = $this->renderMessage();
     $content = $this->doc->moduleBody('', $buttons, $markers);
     $this->doc->postCode = '<input type="hidden" name="enableInstallTool" value="1" />' . \TYPO3\CMS\Backend\Form\FormEngine::getHiddenTokenField('installToolEnableToken');
     echo $this->doc->render('', $content);
 }
 /**
  * Render sys_notes by pid
  *
  * @param string $pidList comma separated list of page ids
  * @return string
  */
 public function renderByPid($pidList)
 {
     /** @var $repository \TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository */
     $repository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\SysNote\\Domain\\Repository\\SysNoteRepository');
     $notes = $repository->findAllByPidList($pidList);
     $out = '';
     if ($this->notesAvailable($notes)) {
         /** @var $fluidView \TYPO3\CMS\Fluid\View\StandaloneView */
         $fluidView = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Fluid\\View\\StandaloneView');
         $templatePathAndFilename = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('sys_note', 'Resources/Private/Template/List.html');
         $fluidView->setTemplatePathAndFilename($templatePathAndFilename);
         $fluidView->assign('notes', $notes);
         $out = $fluidView->render();
     }
     return $out;
 }
 /**
  * General processor for AJAX requests.
  * (called by typo3/ajax.php)
  *
  * @param array $params Additional parameters (not used here)
  * @param \TYPO3\CMS\Core\Http\AjaxRequestHandler &$ajaxObj The TYPO3AJAX object of this request
  * @return void
  * @author Oliver Hader <*****@*****.**>
  */
 public function processAjaxRequest($params, \TYPO3\CMS\Core\Http\AjaxRequestHandler &$ajaxObj)
 {
     $this->ajaxObj = $ajaxObj;
     // Load the TSref XML information:
     $this->loadFile(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('t3editor') . 'res/tsref/tsref.xml');
     $ajaxIdParts = explode('::', $ajaxObj->getAjaxID(), 2);
     $ajaxMethod = $ajaxIdParts[1];
     $response = array();
     // Process the AJAX requests:
     if ($ajaxMethod == 'getTypes') {
         $ajaxObj->setContent($this->getTypes());
         $ajaxObj->setContentFormat('jsonbody');
     } elseif ($ajaxMethod == 'getDescription') {
         $ajaxObj->addContent('', $this->getDescription(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('typeId'), \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('parameterName')));
         $ajaxObj->setContentFormat('plain');
     }
 }
<?php

/*
 * @deprecated since 6.0, the classname tx_scheduler_CronCmd_Normalize and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/scheduler/Classes/CronCommand/NormalizeCommand.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('scheduler') . 'Classes/CronCommand/NormalizeCommand.php';
<?php

/*
 * @deprecated since 6.0, the classname tx_lowlevel_missing_files and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/integrity/Classes/MissingFilesCommand.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('integrity') . 'Classes/MissingFilesCommand.php';
<?php

/*
 * @deprecated since 6.0, the classname t3lib_utility_Dependency_Element and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/version/Classes/Dependency/ElementEntity.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('version') . 'Classes/Dependency/ElementEntity.php';
Beispiel #11
0
<?php

/*
 * @deprecated since 6.0, the classname tx_form_System_Validate_Inarray and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/form/Classes/Validation/InArrayValidator.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('form') . 'Classes/Validation/InArrayValidator.php';
<?php

/*
 * @deprecated since 6.0, the classname t3lib_TStemplate and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/core/Classes/TypoScript/TemplateService.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('core') . 'Classes/TypoScript/TemplateService.php';
<?php

/*
 * @deprecated since 6.0, the classname tslib_pibase and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/frontend/Classes/Plugin/AbstractPlugin.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('frontend') . 'Classes/Plugin/AbstractPlugin.php';
Beispiel #14
0
<?php

/*
 * @deprecated since 6.0, the classname Tx_Extensionmanager_Utility_ListTest and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/extensionmanager/Tests/Unit/Utility/ListUtilityTest.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Tests/Unit/Utility/ListUtilityTest.php';
Beispiel #15
0
<?php

/*
 * @deprecated since 6.0, the classname tx_form_View_Confirmation_Additional_Legend and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/form/Classes/View/Confirmation/Additional/LegendAdditionalElementView.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('form') . 'Classes/View/Confirmation/Additional/LegendAdditionalElementView.php';
Beispiel #16
0
<?php

/*
 * @deprecated since 6.0, the classname tx_form_Domain_Model_Element_AbstractPlain and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/form/Classes/Domain/Model/Element/AbstractPlainElement.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('form') . 'Classes/Domain/Model/Element/AbstractPlainElement.php';
Beispiel #17
0
<?php

/*
 * @deprecated since 6.0, the classname Tx_Extensionmanager_Utility_Download and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/extensionmanager/Classes/Utility/DownloadUtility.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('extensionmanager') . 'Classes/Utility/DownloadUtility.php';
<?php

/*
 * @deprecated since 6.0, the classname tx_rtehtmlarea_insertsmiley and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/rtehtmlarea/Classes/Extension/InsertSmiley.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('rtehtmlarea') . 'Classes/Extension/InsertSmiley.php';
Beispiel #19
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    \TYPO3\CMS\Core\Extension\ExtensionManager::insertModuleFunction('web_ts', 'tx_tstemplateanalyzer', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'class.tx_tstemplateanalyzer.php', 'LLL:EXT:tstemplate/ts/locallang.xml:templateAnalyzer');
}
<?php

/*
 * @deprecated since 6.0, the classname t3lib_tree_AbstractTree and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/backend/Classes/Tree/AbstractTree.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('backend') . 'Classes/Tree/AbstractTree.php';
<?php

/*
 * @deprecated since 6.0, the classname tx_scheduler_CachingFrameworkGarbageCollection_AdditionalFieldProvider and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/scheduler/Classes/Task/CachingFrameworkGarbageCollectionAdditionalFieldProvider.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('scheduler') . 'Classes/Task/CachingFrameworkGarbageCollectionAdditionalFieldProvider.php';
Beispiel #22
0
 *  from the author is found in LICENSE.txt distributed with these scripts.
 *
 *
 *  This script is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/
/**
 * Web>File: Editing documents
 *
 * Revised for TYPO3 3.6 2/2003 by Kasper Skårhøj
 * XHTML compliant (except textarea field)
 *
 * @author Kasper Skårhøj <*****@*****.**>
 */
$GLOBALS['BACK_PATH'] = '';
require 'init.php';
/*
 * @deprecated since 6.0, the classname SC_file_edit and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/backend/Classes/Controller/File/EditFileController.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('backend') . 'Classes/Controller/File/EditFileController.php';
// Make instance:
$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\File\\EditFileController');
$SOBE->init();
$SOBE->main();
$SOBE->printContent();
<?php

/*
 * @deprecated since 6.0, the classname tx_rtehtmlarea_textstyle and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/rtehtmlarea/Classes/Extension/TextStyle.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('rtehtmlarea') . 'Classes/Extension/TextStyle.php';
Beispiel #24
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Register backend modules, but not in frontend or within upgrade wizards
if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
    // Module Web->Info->Log
    \TYPO3\CMS\Core\Extension\ExtensionManager::insertModuleFunction('web_info', 'TYPO3\\CMS\\Belog\\Module\\BackendLogModuleBootstrap', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($_EXTKEY) . 'Classes/class.tx_belog_webinfo_bootstrap.php', 'Log');
    // Module Tools->Log
    \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($_EXTKEY, 'tools', 'log', '', array('Tools' => 'index', 'WebInfo' => 'index'), array('access' => 'admin', 'icon' => 'EXT:belog/ext_icon.gif', 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf'));
}
Beispiel #25
0
<?php

/*
 * @deprecated since 6.0, the classname tx_form_View_Wizard_Load and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/form/Classes/View/Wizard/LoadWizardView.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('form') . 'Classes/View/Wizard/LoadWizardView.php';
Beispiel #26
0
<?php

/*
 * @deprecated since 6.0, the classname tx_form_Domain_Model_Attributes_Readonly and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/form/Classes/Domain/Model/Attribute/ReadonlyAttribute.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('form') . 'Classes/Domain/Model/Attribute/ReadonlyAttribute.php';
<?php

/*
 * @deprecated since 6.0, the classname tx_scheduler_Module and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/scheduler/Classes/Controller/SchedulerModuleController.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('scheduler') . 'Classes/Controller/SchedulerModuleController.php';
Beispiel #28
0
 * Revised for TYPO3 3.6 November/2003 by Kasper Skårhøj
 * XHTML compliant
 *
 * @author Kasper Skårhøj <*****@*****.**>
 */
unset($MCONF);
require 'conf.php';
require $BACK_PATH . 'init.php';
$LANG->includeLLFile('EXT:lang/locallang_mod_web_info.xml');
$BE_USER->modAccess($MCONF, 1);
/*
 * @deprecated since 6.0, the classname SC_mod_web_info_index and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/info/Classes/Controller/InfoModuleController.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('info') . 'Classes/Controller/InfoModuleController.php';
// Make instance:
$SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Info\\Controller\\InfoModuleController');
$SOBE->init();
// Include files?
foreach ($SOBE->include_once as $INC_FILE) {
    include_once $INC_FILE;
}
// Checking for first level external objects
$SOBE->checkExtObj();
// Repeat Include files! - if any files has been added by second-level extensions
foreach ($SOBE->include_once as $INC_FILE) {
    include_once $INC_FILE;
}
// Checking second level external objects
$SOBE->checkSubExtObj();
<?php

/*
 * @deprecated since 6.0, the classname tslib_ExtDirectEid and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/frontend/Classes/Controller/ExtDirectEidController.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('frontend') . 'Classes/Controller/ExtDirectEidController.php';
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
 *  free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  The GNU General Public License can be found at
 *  http://www.gnu.org/copyleft/gpl.html.
 *
 *  This script is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  This copyright notice MUST APPEAR in all copies of the script!
 ***************************************************************/
/**
 * Module extension (addition to function menu) 'Indexed search' for the 'indexed_search' extension.
 *
 * @author Kasper Skårhøj <*****@*****.**>
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('indexed_search') . 'class.indexer.php';
/*
 * @deprecated since 6.0, the classname tx_indexedsearch_modfunc1 and this file is obsolete
 * and will be removed by 7.0. The class was renamed and is now located at:
 * typo3/sysext/indexed_search/Classes/Controller/IndexedPagesController.php
 */
require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('indexed_search') . 'Classes/Controller/IndexedPagesController.php';