Documentation TYPO3 par Ameos

index.php

00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *  
00005 *  (c) 1999-2004 Kasper Skaarhoj (kasperYYYY@typo3.com)
00006 *  All rights reserved
00007 *
00008 *  This script is part of the TYPO3 project. The TYPO3 project is 
00009 *  free software; you can redistribute it and/or modify
00010 *  it under the terms of the GNU General Public License as published by
00011 *  the Free Software Foundation; either version 2 of the License, or
00012 *  (at your option) any later version.
00013 * 
00014 *  The GNU General Public License can be found at
00015 *  http://www.gnu.org/copyleft/gpl.html.
00016 *  A copy is found in the textfile GPL.txt and important notices to the license 
00017 *  from the author is found in LICENSE.txt distributed with these scripts.
00018 *
00019 * 
00020 *  This script is distributed in the hope that it will be useful,
00021 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023 *  GNU General Public License for more details.
00024 *
00025 *  This copyright notice MUST APPEAR in all copies of the script!
00026 ***************************************************************/
00034 unset($MCONF);
00035 require ("conf.php");
00036 require ($BACK_PATH."init.php");
00037 require ($BACK_PATH."template.php");
00038 $LANG->includeLLFile("EXT:taskcenter/task/locallang.php");
00039 require_once(PATH_t3lib."class.t3lib_scbase.php");
00040 require_once("class.mod_user_task.php");
00041 
00042 $BE_USER->modAccess($MCONF,1);
00043 
00044 
00045 // ***************************
00046 // Script Classes
00047 // ***************************
00048 class SC_mod_user_task_index extends t3lib_SCbase {
00049         var $BE_USER;
00050         
00051         function main() {
00052                 global $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;
00053 
00054                 $this->doc = t3lib_div::makeInstance("mediumDoc");
00055                 $this->doc->form='<form action="index.php" method="POST" name="editform">';
00056                 $this->backPath = $this->doc->backPath = $BACK_PATH;
00057 
00058                 $this->doc->JScode = '
00059                 <script language="javascript" type="text/javascript">
00060                         script_ended = 0;
00061                         function jumpToUrl(URL) {
00062                                 document.location = URL;
00063                         }
00064                         '.(is_object($this->extObj)?$this->extObj->JScode():"").'
00065                 </script>
00066                 ';
00067                 
00068                 $this->content="";
00069                 $this->content.=$this->doc->startPage($this->MOD_MENU["function"][$this->MOD_SETTINGS["function"]]);
00070                 $this->content.=$this->doc->header($this->MOD_MENU["function"][$this->MOD_SETTINGS["function"]]);
00071                 $this->content.=$this->doc->spacer(5);
00072 
00073 
00074                 /*
00075                 if (!$BE_USER->isAdmin())       {
00076                                         // This is used to test with other users. Development ONLY!
00077                                 $BE_USER = t3lib_div::makeInstance("t3lib_beUserAuth"); // New backend user object
00078                                 $BE_USER->OS = TYPO3_OS;
00079                                 $BE_USER->setBeUserByUid(4);
00080                                 $BE_USER->fetchGroupData();
00081                 }
00082                 */
00083 
00084                 if (is_object($this->extObj))   {
00085                         $this->extObj->backPath = $this->backPath;
00086                         $this->extObj->mod_user_task_init($BE_USER);
00087                         $this->content.=$this->extObj->main();
00088                 }
00089         }
00090         function printContent() {
00091 
00092                 $this->content.=$this->doc->endPage();
00093                 echo $this->content;
00094         }
00095 }
00096 
00097 // Include extension?
00098 if (defined("TYPO3_MODE") && $TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/taskcenter/task/index.php"])   {
00099         include_once($TYPO3_CONF_VARS[TYPO3_MODE]["XCLASS"]["ext/taskcenter/task/index.php"]);
00100 }
00101 
00102 
00103 
00104 
00105 
00106 
00107 
00108 
00109 
00110 
00111 
00112 
00113 // Make instance:
00114 $SOBE = t3lib_div::makeInstance("SC_mod_user_task_index");
00115 $SOBE->init();
00116 
00117 // Include files?
00118 foreach($SOBE->include_once as $INC_FILE)       include_once($INC_FILE);
00119 $SOBE->checkExtObj();   // Checking for first level external objects
00120 
00121 $SOBE->main();
00122 $SOBE->printContent();
00123 ?>


Généré par Les experts TYPO3 avec  doxygen 1.4.6