00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00051 unset($MCONF);
00052 require('conf.php');
00053 require($BACK_PATH.'init.php');
00054 require($BACK_PATH.'template.php');
00055 $LANG->includeLLFile('EXT:lang/locallang_mod_web_info.xml');
00056 require_once (PATH_t3lib.'class.t3lib_scbase.php');
00057
00058 $BE_USER->modAccess($MCONF,1);
00059
00060
00061
00070 class SC_mod_web_info_index extends t3lib_SCbase {
00071
00072
00073 var $be_user_Array;
00074 var $CALC_PERMS;
00075 var $pageinfo;
00076
00082 var $doc;
00083
00089 function main() {
00090 global $BE_USER,$LANG,$BACK_PATH;
00091
00092
00093
00094 $this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);
00095 $access = is_array($this->pageinfo) ? 1 : 0;
00096
00097 if (($this->id && $access) || ($BE_USER->user['admin'] && !$this->id)) {
00098 $this->CALC_PERMS = $BE_USER->calcPerms($this->pageinfo);
00099 if ($BE_USER->user['admin'] && !$this->id) {
00100 $this->pageinfo=array('title' => '[root-level]','uid'=>0,'pid'=>0);
00101 }
00102
00103 $this->doc = t3lib_div::makeInstance('mediumDoc');
00104 $this->doc->backPath = $BACK_PATH;
00105 $this->doc->docType = 'xhtml_trans';
00106 $this->doc->tableLayout = Array (
00107 '0' => Array (
00108 '0' => Array('<td valign="top"><b>','</b></td>'),
00109 "defCol" => Array('<td><img src="'.$this->doc->backPath.'clear.gif" width="10" height="1" alt="" /></td><td valign="top"><b>','</b></td>')
00110 ),
00111 "defRow" => Array (
00112 "0" => Array('<td valign="top">','</td>'),
00113 "defCol" => Array('<td><img src="'.$this->doc->backPath.'clear.gif" width="10" height="1" alt="" /></td><td valign="top">','</td>')
00114 )
00115 );
00116
00117
00118 $this->doc->JScode = $this->doc->wrapScriptTags('
00119 script_ended = 0;
00120 function jumpToUrl(URL) {
00121 window.location.href = URL;
00122 }
00123 ');
00124 $this->doc->postCode=$this->doc->wrapScriptTags('
00125 script_ended = 1;
00126 if (top.fsMod) top.fsMod.recentIds["web"] = '.intval($this->id).';
00127 ');
00128
00129
00130
00131 $CMparts=$this->doc->getContextMenuCode();
00132 $this->doc->bodyTagAdditions = $CMparts[1];
00133 $this->doc->JScode.=$CMparts[0];
00134 $this->doc->postCode.= $CMparts[2];
00135
00136 $headerSection = $this->doc->getHeader('pages',$this->pageinfo,$this->pageinfo['_thePath']).'<br />'.
00137 $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.path',1).': '.
00138 '<span title="'.htmlspecialchars($this->pageinfo['_thePathFull']).'">'.htmlspecialchars(t3lib_div::fixed_lgd_cs($this->pageinfo['_thePath'],-50)).'</span>';
00139
00140
00141 $this->doc->form = '<form action="index.php" method="post" name="webinfoForm">';
00142 $this->content.=$this->doc->startPage($LANG->getLL('title'));
00143 $this->content.=$this->doc->header($LANG->getLL('title'));
00144 $this->content.=$this->doc->spacer(5);
00145 $this->content.=$this->doc->section('',$this->doc->funcMenu($headerSection,t3lib_BEfunc::getFuncMenu($this->id,'SET[function]',$this->MOD_SETTINGS['function'],$this->MOD_MENU['function'])));
00146 $this->content.=$this->doc->divider(5);
00147
00148
00149 $vContent = $this->doc->getVersionSelector($this->id,1);
00150 if ($vContent) {
00151 $this->content.=$this->doc->section('',$vContent);
00152 }
00153
00154 $this->extObjContent();
00155
00156
00157
00158
00159
00160 $this->content.= t3lib_BEfunc::cshItem('_MOD_web_info', '', $GLOBALS['BACK_PATH'], '<br/>|', FALSE, 'margin-top: 30px;');
00161
00162
00163 if ($BE_USER->mayMakeShortcut()) {
00164 $this->content.=$this->doc->spacer(20).$this->doc->section('',$this->doc->makeShortcutIcon('id',implode(',',array_keys($this->MOD_MENU)),$this->MCONF['name']));
00165 }
00166
00167 $this->content.=$this->doc->spacer(10);
00168 } else {
00169
00170 $this->doc = t3lib_div::makeInstance('mediumDoc');
00171 $this->doc->backPath = $BACK_PATH;
00172
00173 $this->content.=$this->doc->startPage($LANG->getLL('title'));
00174 $this->content.=$this->doc->header($LANG->getLL('title'));
00175 $this->content.=$this->doc->spacer(5);
00176 $this->content.=$this->doc->spacer(10);
00177 }
00178 }
00179
00185 function printContent() {
00186 $this->content.= $this->doc->endPage();
00187 $this->content = $this->doc->insertStylesAndJS($this->content);
00188 echo $this->content;
00189 }
00190 }
00191
00192
00193 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/mod/web/info/index.php']) {
00194 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/mod/web/info/index.php']);
00195 }
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209 $SOBE = t3lib_div::makeInstance('SC_mod_web_info_index');
00210 $SOBE->init();
00211
00212
00213 foreach($SOBE->include_once as $INC_FILE) include_once($INC_FILE);
00214 $SOBE->checkExtObj();
00215
00216
00217 foreach($SOBE->include_once as $INC_FILE) include_once($INC_FILE);
00218 $SOBE->checkSubExtObj();
00219
00220 $SOBE->main();
00221 $SOBE->printContent();
00222 ?>
This documentation has been generated automatically from TYPO3 source code using
Doxygen and is provided as is by
Cast Iron Coding
as a courtesy to other TYPO3 developers and users. Please consider
Cast Iron Coding — a full-service web development
agency in Portland, Oregon specializing in TYPO3 extension development — for all of your TYPO3 development and consulting needs!