Public Member Functions | |
main () | |
Initialize module header etc and call extObjContent function. | |
printContent () | |
Print module content (from $this->content). | |
Public Attributes | |
$be_user_Array | |
$CALC_PERMS | |
$pageinfo |
|
Initialize module header etc and call extObjContent function.
Definition at line 82 of file index.php. References $LANG, t3lib_BEfunc::cshItem(), t3lib_SCbase::extObjContent(), and t3lib_BEfunc::readPageAccess(). 00082 { 00083 global $BE_USER,$LANG,$BACK_PATH; 00084 00085 // Access check... 00086 // The page will show only if there is a valid page and if this page may be viewed by the user 00087 $this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause); 00088 $access = is_array($this->pageinfo) ? 1 : 0; 00089 00090 if (($this->id && $access) || ($BE_USER->user['admin'] && !$this->id)) { 00091 $this->CALC_PERMS = $BE_USER->calcPerms($this->pageinfo); 00092 if ($BE_USER->user['admin'] && !$this->id) { 00093 $this->pageinfo=array('title' => '[root-level]','uid'=>0,'pid'=>0); 00094 } 00095 00096 $this->doc = t3lib_div::makeInstance('mediumDoc'); 00097 $this->doc->backPath = $BACK_PATH; 00098 $this->doc->docType = 'xhtml_trans'; 00099 $this->doc->tableLayout = Array ( 00100 '0' => Array ( 00101 '0' => Array('<td valign="top"><b>','</b></td>'), 00102 "defCol" => Array('<td><img src="'.$this->doc->backPath.'clear.gif" width="10" height="1" alt="" /></td><td valign="top"><b>','</b></td>') 00103 ), 00104 "defRow" => Array ( 00105 "0" => Array('<td valign="top">','</td>'), 00106 "defCol" => Array('<td><img src="'.$this->doc->backPath.'clear.gif" width="10" height="1" alt="" /></td><td valign="top">','</td>') 00107 ) 00108 ); 00109 00110 // JavaScript 00111 $this->doc->JScode = $this->doc->wrapScriptTags(' 00112 script_ended = 0; 00113 function jumpToUrl(URL) { // 00114 document.location = URL; 00115 } 00116 '); 00117 $this->doc->postCode=$this->doc->wrapScriptTags(' 00118 script_ended = 1; 00119 if (top.fsMod) top.fsMod.recentIds["web"] = '.intval($this->id).'; 00120 '); 00121 00122 00123 // Setting up the context sensitive menu: 00124 $CMparts=$this->doc->getContextMenuCode(); 00125 $this->doc->bodyTagAdditions = $CMparts[1]; 00126 $this->doc->JScode.=$CMparts[0]; 00127 $this->doc->postCode.= $CMparts[2]; 00128 00129 $headerSection = $this->doc->getHeader('pages',$this->pageinfo,$this->pageinfo['_thePath']).'<br />'. 00130 $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.path',1).': '. 00131 '<span title="'.htmlspecialchars($this->pageinfo['_thePathFull']).'">'.htmlspecialchars(t3lib_div::fixed_lgd_cs($this->pageinfo['_thePath'],-50)).'</span>'; 00132 00133 // Draw the header. 00134 $this->doc->form = '<form action="index.php" method="post" name="webinfoForm">'; 00135 $this->content.=$this->doc->startPage($LANG->getLL('title')); 00136 $this->content.=$this->doc->header($LANG->getLL('title')); 00137 $this->content.=$this->doc->spacer(5); 00138 $this->content.=$this->doc->section('',$this->doc->funcMenu($headerSection,t3lib_BEfunc::getFuncMenu($this->id,'SET[function]',$this->MOD_SETTINGS['function'],$this->MOD_MENU['function']))); 00139 $this->content.=$this->doc->divider(5); 00140 00141 00142 $vContent = $this->doc->getVersionSelector($this->id,1); 00143 if ($vContent) { 00144 $this->content.=$this->doc->section('',$vContent); 00145 } 00146 00147 $this->extObjContent(); 00148 00149 00150 00151 00152 // Info Module CSH: 00153 $this->content.= t3lib_BEfunc::cshItem('_MOD_web_info', '', $GLOBALS['BACK_PATH'], '<br/>|', FALSE, 'margin-top: 30px;'); 00154 00155 // ShortCut 00156 if ($BE_USER->mayMakeShortcut()) { 00157 $this->content.=$this->doc->spacer(20).$this->doc->section('',$this->doc->makeShortcutIcon('id',implode(',',array_keys($this->MOD_MENU)),$this->MCONF['name'])); 00158 } 00159 00160 $this->content.=$this->doc->spacer(10); 00161 } else { 00162 // If no access or if ID == zero 00163 $this->doc = t3lib_div::makeInstance('mediumDoc'); 00164 $this->doc->backPath = $BACK_PATH; 00165 00166 $this->content.=$this->doc->startPage($LANG->getLL('title')); 00167 $this->content.=$this->doc->header($LANG->getLL('title')); 00168 $this->content.=$this->doc->spacer(5); 00169 $this->content.=$this->doc->spacer(10); 00170 } 00171 }
|
|
Print module content (from $this->content).
Definition at line 178 of file index.php. 00178 { 00179 00180 $this->content.=$this->doc->endPage(); 00181 echo $this->content; 00182 }
|
|
|
|
|
|
|