<?php include_once '../doc-typo3-funcs.php'; $doxygen_vars = array( "title" => "TYPO3 4.0.1: typo3_src-4.0.1/t3lib/class.t3lib_tsfebeuserauth.php Source File", "datetime" => "Sat Dec 2 19:22:19 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?> <!-- Generated by Doxygen 1.4.6 --> <div class="tabs"> <ul> <li><a href="main.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="classes.html"><span>Classes</span></a></li> <li id="current"><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> <li> <form action="search.php" method="get"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td><label> <u>S</u>earch for </label></td> <td><input type="text" name="query" value="" size="20" accesskey="s"/></td> </tr> </table> </form> </li> </ul></div> <div class="nav"> <a class="el" href="dir_c8daf1ad746050abf985cc546c89e248.html">typo3_src-4.0.1</a> » <a class="el" href="dir_9d0e5c424a38b69aeeedc616a9634e5f.html">t3lib</a></div> <h1>class.t3lib_tsfebeuserauth.php</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <?php <a name="l00002"></a>00002 <span class="comment">/***************************************************************</span> <a name="l00003"></a>00003 <span class="comment">* Copyright notice</span> <a name="l00004"></a>00004 <span class="comment">*</span> <a name="l00005"></a>00005 <span class="comment">* (c) 1999-2006 Kasper Skaarhoj (kasperYYYY@typo3.com)</span> <a name="l00006"></a>00006 <span class="comment">* All rights reserved</span> <a name="l00007"></a>00007 <span class="comment">*</span> <a name="l00008"></a>00008 <span class="comment">* This script is part of the TYPO3 project. The TYPO3 project is</span> <a name="l00009"></a>00009 <span class="comment">* free software; you can redistribute it and/or modify</span> <a name="l00010"></a>00010 <span class="comment">* it under the terms of the GNU General Public License as published by</span> <a name="l00011"></a>00011 <span class="comment">* the Free Software Foundation; either version 2 of the License, or</span> <a name="l00012"></a>00012 <span class="comment">* (at your option) any later version.</span> <a name="l00013"></a>00013 <span class="comment">*</span> <a name="l00014"></a>00014 <span class="comment">* The GNU General Public License can be found at</span> <a name="l00015"></a>00015 <span class="comment">* http://www.gnu.org/copyleft/gpl.html.</span> <a name="l00016"></a>00016 <span class="comment">* A copy is found in the textfile GPL.txt and important notices to the license</span> <a name="l00017"></a>00017 <span class="comment">* from the author is found in LICENSE.txt distributed with these scripts.</span> <a name="l00018"></a>00018 <span class="comment">*</span> <a name="l00019"></a>00019 <span class="comment">*</span> <a name="l00020"></a>00020 <span class="comment">* This script is distributed in the hope that it will be useful,</span> <a name="l00021"></a>00021 <span class="comment">* but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00022"></a>00022 <span class="comment">* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> <a name="l00023"></a>00023 <span class="comment">* GNU General Public License for more details.</span> <a name="l00024"></a>00024 <span class="comment">*</span> <a name="l00025"></a>00025 <span class="comment">* This copyright notice MUST APPEAR in all copies of the script!</span> <a name="l00026"></a>00026 <span class="comment">***************************************************************/</span> <a name="l00103"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html">00103</a> <span class="keyword">class </span><a class="code" href="classt3lib__tsfeBeUserAuth.html">t3lib_tsfeBeUserAuth</a> <span class="keyword">extends</span> <a class="code" href="classt3lib__beUserAuth.html">t3lib_beUserAuth</a> { <a name="l00104"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#9631e116bd86263b40597fcdc5afd875">00104</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#9631e116bd86263b40597fcdc5afd875">$formfield_uname</a> = ''; <span class="comment">// formfield with login-name</span> <a name="l00105"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#3d4c14d0637aafb410b269f40e60d10e">00105</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#3d4c14d0637aafb410b269f40e60d10e">$formfield_uident</a> = ''; <span class="comment">// formfield with password</span> <a name="l00106"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#03bb4abf8985d1a83ca02c549fd559c3">00106</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#03bb4abf8985d1a83ca02c549fd559c3">$formfield_chalvalue</a> = ''; <span class="comment">// formfield with a unique value which is used to encrypt the password and username</span> <a name="l00107"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#5242313823a6316742a3146dd7fec474">00107</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#5242313823a6316742a3146dd7fec474">$security_level</a> = ''; <span class="comment">// sets the level of security. *'normal' = clear-text. 'challenged' = hashed password/username from form in $formfield_uident. 'superchallenged' = hashed password hashed again with username.</span> <a name="l00108"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#1e5433b6212ad5491f1c544c826e6ff9">00108</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#1e5433b6212ad5491f1c544c826e6ff9">$writeStdLog</a> = 0; <span class="comment">// Decides if the writelog() function is called at login and logout</span> <a name="l00109"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#20f248d8452ab07c2c0cb62c387d7f1c">00109</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#20f248d8452ab07c2c0cb62c387d7f1c">$writeAttemptLog</a> = 0; <span class="comment">// If the writelog() functions is called if a login-attempt has be tried without success</span> <a name="l00110"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#7f838cb71f47b64df03249f7b4427503">00110</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#7f838cb71f47b64df03249f7b4427503">$auth_include</a> = ''; <span class="comment">// this is the name of the include-file containing the login form. If not set, login CAN be anonymous. If set login IS needed.</span> <a name="l00111"></a>00111 <a name="l00112"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#d51cd4ec2fc99d8a424130878d867bfc">00112</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#d51cd4ec2fc99d8a424130878d867bfc">$extNeedUpdate</a>=0; <a name="l00113"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#bf8affdc1c092e9f08d2f009ebcae47f">00113</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#bf8affdc1c092e9f08d2f009ebcae47f">$extPublishList</a>=''; <a name="l00114"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#a480c45ec55b1e2bdc2508ecd7a03901">00114</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#a480c45ec55b1e2bdc2508ecd7a03901">$extPageInTreeInfo</a>=array(); <a name="l00115"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#408b784103abd49a988c5f2342239f20">00115</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#408b784103abd49a988c5f2342239f20">$ext_forcePreview</a>=0; <a name="l00116"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#ef6e6cecfff5f7a68256814bfa9216ee">00116</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#ef6e6cecfff5f7a68256814bfa9216ee">$langSplitIndex</a>=0; <a name="l00117"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#daa9d2596544ddc820f4afdaf164a465">00117</a> var <a class="code" href="classt3lib__tsfeBeUserAuth.html#daa9d2596544ddc820f4afdaf164a465">$extAdmEnabled</a> = 0; <span class="comment">// General flag which is set if the adminpanel should be displayed at all..</span> <a name="l00118"></a>00118 <a name="l00119"></a>00119 <a name="l00120"></a>00120 <a name="l00121"></a>00121 <a name="l00129"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#2a9b93f8ce3f9012e4712cfd3a34bc20">00129</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#2a9b93f8ce3f9012e4712cfd3a34bc20">extInitFeAdmin</a>() { <a name="l00130"></a>00130 $this->extAdminConfig = $this-><a class="code" href="classt3lib__userAuthGroup.html#ee6e2392b93374a5120c3b3a0c369cb4">getTSConfigProp</a>('admPanel'); <a name="l00131"></a>00131 <span class="keywordflow">if</span> (is_array($this->extAdminConfig['enable.'])) { <a name="l00132"></a>00132 reset($this->extAdminConfig['enable.']); <a name="l00133"></a>00133 <span class="keywordflow">while</span>(list($k,$v)=each($this->extAdminConfig['enable.'])) { <a name="l00134"></a>00134 <span class="keywordflow">if</span> ($v) { <a name="l00135"></a>00135 $this->extAdmEnabled=1; <span class="comment">// Enable panel</span> <a name="l00136"></a>00136 <span class="keywordflow">break</span>; <a name="l00137"></a>00137 } <a name="l00138"></a>00138 } <a name="l00139"></a>00139 } <a name="l00140"></a>00140 <a name="l00141"></a>00141 <span class="comment">// Init TSFE_EDIT variables if either the admPanel is enabled or if forceDisplayIcons is set</span> <a name="l00142"></a>00142 <span class="keywordflow">if</span>($this->extAdmEnabled || $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('edit', 'displayIcons')) { <a name="l00143"></a>00143 $this->TSFE_EDIT = <a class="code" href="classt3lib__div.html#7df88440d0445f5a582c01b7dfba0146">t3lib_div::_POST</a>('TSFE_EDIT'); <a name="l00144"></a>00144 } <a name="l00145"></a>00145 } <a name="l00146"></a>00146 <a name="l00154"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#814d84b10bdb34f0297718bfdd35fa4d">00154</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#814d84b10bdb34f0297718bfdd35fa4d">extPrintFeAdminDialog</a>() { <a name="l00155"></a>00155 $out=''; <a name="l00156"></a>00156 <span class="keywordflow">if</span> ($this->uc['TSFE_adminConfig']['display_top']) { <a name="l00157"></a>00157 <span class="keywordflow">if</span> ($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#64f016acf1afd2595f728e0fbf7a3b65">extAdmModuleEnabled</a>('preview')) $out.= $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#b603483ac7c1d5e01d291d90b054644a">extGetCategory_preview</a>(); <a name="l00158"></a>00158 <span class="keywordflow">if</span> ($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#64f016acf1afd2595f728e0fbf7a3b65">extAdmModuleEnabled</a>('cache')) $out.= $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#870bb23e44d8b3b9d40331245976263a">extGetCategory_cache</a>(); <a name="l00159"></a>00159 <span class="keywordflow">if</span> ($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#64f016acf1afd2595f728e0fbf7a3b65">extAdmModuleEnabled</a>('publish')) $out.= $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#f66073d38dfdb279ba37dc42563fe1a3">extGetCategory_publish</a>(); <a name="l00160"></a>00160 <span class="keywordflow">if</span> ($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#64f016acf1afd2595f728e0fbf7a3b65">extAdmModuleEnabled</a>('edit')) $out.= $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#a1e06c4cc713bd66310744a24c1bed5c">extGetCategory_edit</a>(); <a name="l00161"></a>00161 <span class="keywordflow">if</span> ($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#64f016acf1afd2595f728e0fbf7a3b65">extAdmModuleEnabled</a>('tsdebug')) $out.= $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#fdd1af2af010e221ed5c29c1fd4cb4eb">extGetCategory_tsdebug</a>(); <a name="l00162"></a>00162 <span class="keywordflow">if</span> ($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#64f016acf1afd2595f728e0fbf7a3b65">extAdmModuleEnabled</a>('info')) $out.= $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#816491dd3ad6e70a08d172468f394448">extGetCategory_info</a>(); <a name="l00163"></a>00163 } <a name="l00164"></a>00164 <a name="l00165"></a>00165 $header=' <a name="l00166"></a>00166 <tr <span class="keyword">class</span>=<span class="stringliteral">"typo3-adminPanel-hRow"</span> style=<span class="stringliteral">"background-color:#9ba1a8;"</span>> <a name="l00167"></a>00167 <td colspan=<span class="stringliteral">"4"</span> nowrap=<span class="stringliteral">"nowrap"</span>>'. <a name="l00168"></a>00168 $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#cf5fd94effb5a44d11ffcae6d968f609">extItemLink</a>('top<span class="charliteral">','</span><img src=<span class="stringliteral">"'.TYPO3_mainDir.'gfx/ol/'.($this->uc['TSFE_adminConfig']['display_top']?'minus':'plus').'bullet.gif"</span> width=<span class="stringliteral">"18"</span> height=<span class="stringliteral">"16"</span> align=<span class="stringliteral">"absmiddle"</span> border=<span class="stringliteral">"0"</span> alt=<span class="stringliteral">""</span> /><strong>'.$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#6ecf586127adbcd32d6718e8c69e3380">extFw</a>($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">extGetLL</a>('adminOptions')).'</strong>'). <a name="l00169"></a>00169 $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#6ecf586127adbcd32d6718e8c69e3380">extFw</a>(': '.$this->user['username']).' <a name="l00170"></a>00170 <img src=<span class="stringliteral">"clear.gif"</span> width=<span class="stringliteral">"40"</span> height=<span class="stringliteral">"1"</span> alt=<span class="stringliteral">""</span> /> <a name="l00171"></a>00171 <input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[display_top]"</span> value=<span class="stringliteral">"'.$this->uc['TSFE_adminConfig']['display_top'].'"</span> />'.($this->extNeedUpdate?'<input type=<span class="stringliteral">"submit"</span> value=<span class="stringliteral">"'.$this->extGetLL('update').'"</span> /><span class="charliteral">':'</span>').'</td> <a name="l00172"></a>00172 </tr>'; <a name="l00173"></a>00173 <a name="l00174"></a>00174 $query = !<a class="code" href="classt3lib__div.html#df47c9f4e9980aa832b6516b774aeb33">t3lib_div::_GET</a>('<span class="keywordtype">id</span>') ? ('<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"id"</span> value=<span class="stringliteral">"'.$GLOBALS['TSFE']->id.'"</span> />'.chr(10)) : ''; <a name="l00175"></a>00175 <span class="comment">// the dummy field is needed for Firefox: to force a page reload on submit with must change the form value with JavaScript (see "onsubmit" attribute of the "form" element")</span> <a name="l00176"></a>00176 $query.= '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[DUMMY]"</span> value=<span class="stringliteral">""</span>>'; <a name="l00177"></a>00177 foreach (<a class="code" href="classt3lib__div.html#df47c9f4e9980aa832b6516b774aeb33">t3lib_div::_GET</a>() as $k => $v) { <a name="l00178"></a>00178 <span class="keywordflow">if</span> ($k != 'TSFE_ADMIN_PANEL') { <a name="l00179"></a>00179 <span class="keywordflow">if</span> (is_array($v)) { <a name="l00180"></a>00180 $query.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#96c9d8d03fd003c27faeaa687660bd46">extPrintFeAdminDialogHiddenFields</a>($k,$v); <a name="l00181"></a>00181 } <span class="keywordflow">else</span> { <a name="l00182"></a>00182 $query.='<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"'.$k.'"</span> value=<span class="stringliteral">"'.htmlspecialchars($v).'"</span>>'.chr(10); <a name="l00183"></a>00183 } <a name="l00184"></a>00184 } <a name="l00185"></a>00185 } <a name="l00186"></a>00186 <a name="l00187"></a>00187 $out=' <a name="l00188"></a>00188 <!-- <a name="l00189"></a>00189 ADMIN PANEL <a name="l00190"></a>00190 --> <a name="l00191"></a>00191 <a name=<span class="stringliteral">"TSFE_ADMIN"</span>></a> <a name="l00192"></a>00192 <form name=<span class="stringliteral">"TSFE_ADMIN_PANEL_FORM"</span> action=<span class="stringliteral">"'.htmlspecialchars(t3lib_div::getIndpEnv('SCRIPT_NAME')).'#TSFE_ADMIN"</span> method=<span class="stringliteral">"get"</span> style=<span class="stringliteral">"margin:0;"</span> onsubmit=<span class="stringliteral">"document.forms.TSFE_ADMIN_PANEL_FORM[\'TSFE_ADMIN_PANEL[DUMMY]\'].value=Math.random().toString().substring(2,8)"</span>>'. <a name="l00193"></a>00193 $query. <a name="l00194"></a>00194 ' <table border=<span class="stringliteral">"0"</span> cellpadding=<span class="stringliteral">"0"</span> cellspacing=<span class="stringliteral">"0"</span> <span class="keyword">class</span>=<span class="stringliteral">"typo3-adminPanel"</span> style=<span class="stringliteral">"background-color:#f6f2e6; border: 1px solid black; z-index:0; position:absolute;"</span>>'.$header.$out.' <a name="l00195"></a>00195 </table> <a name="l00196"></a>00196 </form>'; <a name="l00197"></a>00197 <a name="l00198"></a>00198 <span class="keywordflow">if</span> ($this->uc['TSFE_adminConfig']['display_top']) { <a name="l00199"></a>00199 $out.='<script type=<span class="stringliteral">"text/javascript"</span> src=<span class="stringliteral">"t3lib/jsfunc.evalfield.js"</span>></script>'; <a name="l00200"></a>00200 $out.=' <a name="l00201"></a>00201 <script type=<span class="stringliteral">"text/javascript"</span>> <a name="l00202"></a>00202 <span class="comment">/*<![CDATA[*/</span> <a name="l00203"></a>00203 var evalFunc = <span class="keyword">new</span> evalFunc(); <a name="l00204"></a>00204 <span class="comment">// TSFEtypo3FormFieldSet()</span> <a name="l00205"></a>00205 function TSFEtypo3FormFieldSet(theField, evallist, is_in, checkbox, checkboxValue) { <span class="comment">//</span> <a name="l00206"></a>00206 var theFObj = <span class="keyword">new</span> evalFunc_dummy (evallist,is_in, checkbox, checkboxValue); <a name="l00207"></a>00207 var theValue = document.TSFE_ADMIN_PANEL_FORM[theField].value; <a name="l00208"></a>00208 <span class="keywordflow">if</span> (checkbox && theValue==checkboxValue) { <a name="l00209"></a>00209 document.TSFE_ADMIN_PANEL_FORM[theField+<span class="stringliteral">"_hr"</span>].value=<span class="stringliteral">""</span>; <a name="l00210"></a>00210 document.TSFE_ADMIN_PANEL_FORM[theField+<span class="stringliteral">"_cb"</span>].checked = <span class="stringliteral">""</span>; <a name="l00211"></a>00211 } <span class="keywordflow">else</span> { <a name="l00212"></a>00212 document.TSFE_ADMIN_PANEL_FORM[theField+<span class="stringliteral">"_hr"</span>].value = evalFunc.outputObjValue(theFObj, theValue); <a name="l00213"></a>00213 document.TSFE_ADMIN_PANEL_FORM[theField+<span class="stringliteral">"_cb"</span>].checked = <span class="stringliteral">"on"</span>; <a name="l00214"></a>00214 } <a name="l00215"></a>00215 } <a name="l00216"></a>00216 <span class="comment">// TSFEtypo3FormFieldGet()</span> <a name="l00217"></a>00217 function TSFEtypo3FormFieldGet(theField, evallist, is_in, checkbox, checkboxValue, checkbox_off) { <span class="comment">//</span> <a name="l00218"></a>00218 var theFObj = <span class="keyword">new</span> evalFunc_dummy (evallist,is_in, checkbox, checkboxValue); <a name="l00219"></a>00219 <span class="keywordflow">if</span> (checkbox_off) { <a name="l00220"></a>00220 document.TSFE_ADMIN_PANEL_FORM[theField].value=checkboxValue; <a name="l00221"></a>00221 }<span class="keywordflow">else</span>{ <a name="l00222"></a>00222 document.TSFE_ADMIN_PANEL_FORM[theField].value = evalFunc.evalObjValue(theFObj, document.TSFE_ADMIN_PANEL_FORM[theField+<span class="stringliteral">"_hr"</span>].value); <a name="l00223"></a>00223 } <a name="l00224"></a>00224 TSFEtypo3FormFieldSet(theField, evallist, is_in, checkbox, checkboxValue); <a name="l00225"></a>00225 } <a name="l00226"></a>00226 <span class="comment">/*]]>*/</span> <a name="l00227"></a>00227 </script> <a name="l00228"></a>00228 <script <a class="code" href="classlanguage.html">language</a>=<span class="stringliteral">"javascript"</span> type=<span class="stringliteral">"text/javascript"</span>>'.$this->extJSCODE.'</script>'; <a name="l00229"></a>00229 } <a name="l00230"></a>00230 <span class="keywordflow">return</span> <span class="stringliteral">"\n\n\n\n"</span>.$out.'<br />'; <a name="l00231"></a>00231 } <a name="l00232"></a>00232 <a name="l00242"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#96c9d8d03fd003c27faeaa687660bd46">00242</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#96c9d8d03fd003c27faeaa687660bd46">extPrintFeAdminDialogHiddenFields</a>($key,&$val) { <a name="l00243"></a>00243 $out=''; <a name="l00244"></a>00244 foreach($val as $k => $v) { <a name="l00245"></a>00245 <span class="keywordflow">if</span> (is_array($v)) { <a name="l00246"></a>00246 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#96c9d8d03fd003c27faeaa687660bd46">extPrintFeAdminDialogHiddenFields</a>($key.<span class="charliteral">'['</span>.$k.<span class="charliteral">']'</span>,$v); <a name="l00247"></a>00247 } <span class="keywordflow">else</span> { <a name="l00248"></a>00248 $out.='<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"'.$key.'['.$k.']"</span> value=<span class="stringliteral">"'.htmlspecialchars($v).'"</span>>'.chr(10); <a name="l00249"></a>00249 } <a name="l00250"></a>00250 } <a name="l00251"></a>00251 <span class="keywordflow">return</span> $out; <a name="l00252"></a>00252 } <a name="l00253"></a>00253 <a name="l00254"></a>00254 <a name="l00255"></a>00255 <a name="l00256"></a>00256 <a name="l00257"></a>00257 <a name="l00258"></a>00258 <a name="l00259"></a>00259 <a name="l00260"></a>00260 <a name="l00261"></a>00261 <a name="l00262"></a>00262 <a name="l00263"></a>00263 <a name="l00264"></a>00264 <a name="l00265"></a>00265 <a name="l00266"></a>00266 <a name="l00267"></a>00267 <a name="l00268"></a>00268 <a name="l00269"></a>00269 <span class="comment">/*****************************************************</span> <a name="l00270"></a>00270 <span class="comment"> *</span> <a name="l00271"></a>00271 <span class="comment"> * Creating sections of the Admin Panel</span> <a name="l00272"></a>00272 <span class="comment"> *</span> <a name="l00273"></a>00273 <span class="comment"> ****************************************************/</span> <a name="l00274"></a>00274 <a name="l00282"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#b603483ac7c1d5e01d291d90b054644a">00282</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#b603483ac7c1d5e01d291d90b054644a">extGetCategory_preview</a>($out='') { <a name="l00283"></a>00283 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#202f3686e2132063d415c959eb99dd83">extGetHead</a>('preview'); <a name="l00284"></a>00284 <span class="keywordflow">if</span> ($this->uc['TSFE_adminConfig']['display_preview']) { <a name="l00285"></a>00285 $this->extNeedUpdate = 1; <a name="l00286"></a>00286 $out.= $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('preview_showHiddenPages', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[preview_showHiddenPages]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[preview_showHiddenPages]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['preview_showHiddenPages']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00287"></a>00287 $out.= $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('preview_showHiddenRecords', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[preview_showHiddenRecords]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[preview_showHiddenRecords]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['preview_showHiddenRecords']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00288"></a>00288 <a name="l00289"></a>00289 <span class="comment">// Simulate date</span> <a name="l00290"></a>00290 $out.= $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('preview_simulateDate', '<input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[preview_simulateDate]_cb"</span> onclick=<span class="stringliteral">"TSFEtypo3FormFieldGet(\'TSFE_ADMIN_PANEL[preview_simulateDate]\', \'datetime\', \'\',1,0,1);"</span> /><input type=<span class="stringliteral">"text"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[preview_simulateDate]_hr"</span> onchange=<span class="stringliteral">"TSFEtypo3FormFieldGet(\'TSFE_ADMIN_PANEL[preview_simulateDate]\', \'datetime\', \'\', 1,0);"</span> /><input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[preview_simulateDate]"</span> value=<span class="stringliteral">"'.$this->uc['TSFE_adminConfig']['preview_simulateDate'].'"</span> />'); <a name="l00291"></a>00291 $this->extJSCODE.= 'TSFEtypo3FormFieldSet(<span class="stringliteral">"TSFE_ADMIN_PANEL[preview_simulateDate]"</span>, <span class="stringliteral">"datetime"</span>, <span class="stringliteral">""</span>, 1,0);'; <a name="l00292"></a>00292 <a name="l00293"></a>00293 <span class="comment">// Simulate fe_user:</span> <a name="l00294"></a>00294 $options = '<option value=<span class="stringliteral">"0"</span>></option>'; <a name="l00295"></a>00295 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery( <a name="l00296"></a>00296 'fe_groups.uid, fe_groups.title', <a name="l00297"></a>00297 'fe_groups,pages', <a name="l00298"></a>00298 'pages.uid=fe_groups.pid AND pages.deleted=0 '.t3lib_BEfunc::deleteClause('fe_groups').' AND '.$this->getPagePermsClause(1) <a name="l00299"></a>00299 ); <a name="l00300"></a>00300 <span class="keywordflow">while</span>($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { <a name="l00301"></a>00301 $options.= '<option value=<span class="stringliteral">"'.$row['uid'].'"</span>'.($this->uc['TSFE_adminConfig']['preview_simulateUserGroup']==$row['uid']?' selected=<span class="stringliteral">"selected"</span><span class="charliteral">':'</span>').<span class="charliteral">'>'</span>.htmlspecialchars(<span class="charliteral">'['</span>.$row['uid'].'] '.$row['title']).'</option>'; <a name="l00302"></a>00302 } <a name="l00303"></a>00303 $out.= $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('preview_simulateUserGroup', '<select name=<span class="stringliteral">"TSFE_ADMIN_PANEL[preview_simulateUserGroup]"</span>>'.$options.'</select>'); <a name="l00304"></a>00304 } <a name="l00305"></a>00305 <span class="keywordflow">return</span> $out; <a name="l00306"></a>00306 } <a name="l00307"></a>00307 <a name="l00315"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#870bb23e44d8b3b9d40331245976263a">00315</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#870bb23e44d8b3b9d40331245976263a">extGetCategory_cache</a>($out='') { <a name="l00316"></a>00316 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#202f3686e2132063d415c959eb99dd83">extGetHead</a>('cache'); <a name="l00317"></a>00317 <span class="keywordflow">if</span> ($this->uc['TSFE_adminConfig']['display_cache']) { <a name="l00318"></a>00318 $this->extNeedUpdate=1; <a name="l00319"></a>00319 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('cache_noCache', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[cache_noCache]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[cache_noCache]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['cache_noCache']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00320"></a>00320 <a name="l00321"></a>00321 $options=''; <a name="l00322"></a>00322 $options.='<option value=<span class="stringliteral">"0"</span>'.($this->uc['TSFE_adminConfig']['cache_clearCacheLevels']==0?' selected=<span class="stringliteral">"selected"</span><span class="charliteral">':'</span>').<span class="charliteral">'>'</span>.$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">extGetLL</a>('div_Levels_0').'</option>'; <a name="l00323"></a>00323 $options.='<option value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['cache_clearCacheLevels']==1?' selected=<span class="stringliteral">"selected"</span><span class="charliteral">':'</span>').<span class="charliteral">'>'</span>.$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">extGetLL</a>('div_Levels_1').'</option>'; <a name="l00324"></a>00324 $options.='<option value=<span class="stringliteral">"2"</span>'.($this->uc['TSFE_adminConfig']['cache_clearCacheLevels']==2?' selected=<span class="stringliteral">"selected"</span><span class="charliteral">':'</span>').<span class="charliteral">'>'</span>.$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">extGetLL</a>('div_Levels_2').'</option>'; <a name="l00325"></a>00325 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('cache_clearLevels', '<select name=<span class="stringliteral">"TSFE_ADMIN_PANEL[cache_clearCacheLevels]"</span>>'.$options.'</select>'. <a name="l00326"></a>00326 '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[cache_clearCacheId]"</span> value=<span class="stringliteral">"'.$GLOBALS['TSFE']->id.'"</span> /><input type=<span class="stringliteral">"submit"</span> value=<span class="stringliteral">"'.$this->extGetLL('update').'"</span> />'); <a name="l00327"></a>00327 <a name="l00328"></a>00328 <span class="comment">// Generating tree:</span> <a name="l00329"></a>00329 $depth=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('cache<span class="charliteral">','</span>clearCacheLevels'); <a name="l00330"></a>00330 $outTable=''; <a name="l00331"></a>00331 $this->extPageInTreeInfo=array(); <a name="l00332"></a>00332 $this->extPageInTreeInfo[]=array($GLOBALS['TSFE']->page['uid'],$GLOBALS['TSFE']->page['title'],$depth+1); <a name="l00333"></a>00333 $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#2e2c0891492f6827945858d8c9a85cc5">extGetTreeList</a>($GLOBALS['TSFE']-><span class="keywordtype">id</span>, $depth,0,$this-><a class="code" href="classt3lib__userAuthGroup.html#927625eea83024e1a88a4ac398f0a55d">getPagePermsClause</a>(1)); <a name="l00334"></a>00334 reset($this->extPageInTreeInfo); <a name="l00335"></a>00335 <span class="keywordflow">while</span>(list(,$row)=each($this->extPageInTreeInfo)) { <a name="l00336"></a>00336 $outTable.='<tr><td nowrap=<span class="stringliteral">"nowrap"</span>><img src=<span class="stringliteral">"clear.gif"</span> width=<span class="stringliteral">"'.(($depth+1-$row[2])*18).'"</span> height=<span class="stringliteral">"1"</span> alt=<span class="stringliteral">""</span> /><img src=<span class="stringliteral">"'.TYPO3_mainDir.'gfx/i/pages.gif"</span> width=<span class="stringliteral">"18"</span> height=<span class="stringliteral">"16"</span> align=<span class="stringliteral">"absmiddle"</span> border=<span class="stringliteral">"0"</span> alt=<span class="stringliteral">""</span> />'.$this->extFw($row[1]).'</td><td><img src=<span class="stringliteral">"clear.gif"</span> width=<span class="stringliteral">"10"</span> height=<span class="stringliteral">"1"</span> alt=<span class="stringliteral">""</span> /></td><td>'.$this->extFw($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#9e292183451e2d3432c8ed96fef017ab">extGetNumberOfCachedPages</a>($row[0])).'</td></tr>'; <a name="l00337"></a>00337 } <a name="l00338"></a>00338 $outTable='<br /><table border=<span class="stringliteral">"0"</span> cellpadding=<span class="stringliteral">"0"</span> cellspacing=<span class="stringliteral">"0"</span>>'.$outTable.'</table>'; <a name="l00339"></a>00339 $outTable.='<input type=<span class="stringliteral">"submit"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[action][clearCache]"</span> value=<span class="stringliteral">"'.$this->extGetLL('cache_doit').'"</span> />'; <a name="l00340"></a>00340 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('cache_cacheEntries', $outTable); <a name="l00341"></a>00341 <a name="l00342"></a>00342 } <a name="l00343"></a>00343 <span class="keywordflow">return</span> $out; <a name="l00344"></a>00344 } <a name="l00345"></a>00345 <a name="l00353"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#f66073d38dfdb279ba37dc42563fe1a3">00353</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#f66073d38dfdb279ba37dc42563fe1a3">extGetCategory_publish</a>($out='') { <a name="l00354"></a>00354 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#202f3686e2132063d415c959eb99dd83">extGetHead</a>('publish'); <a name="l00355"></a>00355 <span class="keywordflow">if</span> ($this->uc['TSFE_adminConfig']['display_publish']) { <a name="l00356"></a>00356 $this->extNeedUpdate=1; <a name="l00357"></a>00357 $options=''; <a name="l00358"></a>00358 $options.='<option value=<span class="stringliteral">"0"</span>'.($this->uc['TSFE_adminConfig']['publish_levels']==0?' selected=<span class="stringliteral">"selected"</span><span class="charliteral">':'</span>').<span class="charliteral">'>'</span>.$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">extGetLL</a>('div_Levels_0').'</option>'; <a name="l00359"></a>00359 $options.='<option value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['publish_levels']==1?' selected=<span class="stringliteral">"selected"</span><span class="charliteral">':'</span>').<span class="charliteral">'>'</span>.$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">extGetLL</a>('div_Levels_1').'</option>'; <a name="l00360"></a>00360 $options.='<option value=<span class="stringliteral">"2"</span>'.($this->uc['TSFE_adminConfig']['publish_levels']==2?' selected=<span class="stringliteral">"selected"</span><span class="charliteral">':'</span>').<span class="charliteral">'>'</span>.$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">extGetLL</a>('div_Levels_2').'</option>'; <a name="l00361"></a>00361 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('publish_levels', '<select name=<span class="stringliteral">"TSFE_ADMIN_PANEL[publish_levels]"</span>>'.$options.'</select>'. <a name="l00362"></a>00362 '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[publish_id]"</span> value=<span class="stringliteral">"'.$GLOBALS['TSFE']->id.'"</span> /><input type=<span class="stringliteral">"submit"</span> value=<span class="stringliteral">"'.$this->extGetLL('update').'"</span> />'); <a name="l00363"></a>00363 <a name="l00364"></a>00364 <span class="comment">// Generating tree:</span> <a name="l00365"></a>00365 $depth=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('publish<span class="charliteral">','</span>levels'); <a name="l00366"></a>00366 $outTable=''; <a name="l00367"></a>00367 $this->extPageInTreeInfo=array(); <a name="l00368"></a>00368 $this->extPageInTreeInfo[]=array($GLOBALS['TSFE']->page['uid'],$GLOBALS['TSFE']->page['title'],$depth+1); <a name="l00369"></a>00369 $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#2e2c0891492f6827945858d8c9a85cc5">extGetTreeList</a>($GLOBALS['TSFE']-><span class="keywordtype">id</span>, $depth,0,$this-><a class="code" href="classt3lib__userAuthGroup.html#927625eea83024e1a88a4ac398f0a55d">getPagePermsClause</a>(1)); <a name="l00370"></a>00370 reset($this->extPageInTreeInfo); <a name="l00371"></a>00371 <span class="keywordflow">while</span>(list(,$row)=each($this->extPageInTreeInfo)) { <a name="l00372"></a>00372 $outTable.='<tr><td nowrap=<span class="stringliteral">"nowrap"</span>><img src=<span class="stringliteral">"clear.gif"</span> width=<span class="stringliteral">"'.(($depth+1-$row[2])*18).'"</span> height=<span class="stringliteral">"1"</span> alt=<span class="stringliteral">""</span> /><img src=<span class="stringliteral">"'.TYPO3_mainDir.'gfx/i/pages.gif"</span> width=<span class="stringliteral">"18"</span> height=<span class="stringliteral">"16"</span> align=<span class="stringliteral">"absmiddle"</span> border=<span class="stringliteral">"0"</span> alt=<span class="stringliteral">""</span> />'.$this->extFw($row[1]).'</td><td><img src=<span class="stringliteral">"clear.gif"</span> width=<span class="stringliteral">"10"</span> height=<span class="stringliteral">"1"</span> alt=<span class="stringliteral">""</span> /></td><td>'.$this->extFw('...').'</td></tr>'; <a name="l00373"></a>00373 } <a name="l00374"></a>00374 $outTable='<br /><table border=<span class="stringliteral">"0"</span> cellpadding=<span class="stringliteral">"0"</span> cellspacing=<span class="stringliteral">"0"</span>>'.$outTable.'</table>'; <a name="l00375"></a>00375 $outTable.='<input type=<span class="stringliteral">"submit"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[action][publish]"</span> value=<span class="stringliteral">"'.$this->extGetLL('publish_doit').'"</span> />'; <a name="l00376"></a>00376 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('publish_tree', $outTable); <a name="l00377"></a>00377 } <a name="l00378"></a>00378 <span class="keywordflow">return</span> $out; <a name="l00379"></a>00379 } <a name="l00380"></a>00380 <a name="l00388"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#a1e06c4cc713bd66310744a24c1bed5c">00388</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#a1e06c4cc713bd66310744a24c1bed5c">extGetCategory_edit</a>($out='') { <a name="l00389"></a>00389 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#202f3686e2132063d415c959eb99dd83">extGetHead</a>('edit'); <a name="l00390"></a>00390 <span class="keywordflow">if</span> ($this->uc['TSFE_adminConfig']['display_edit']) { <a name="l00391"></a>00391 <a name="l00392"></a>00392 <span class="comment">// If another page module was specified, replace the default Page module with the new one</span> <a name="l00393"></a>00393 $newPageModule = trim($GLOBALS['BE_USER']-><a class="code" href="classt3lib__userAuthGroup.html#fff30664946d054d6e69c8ef945f47c6">getTSConfigVal</a>('options.overridePageModule')); <a name="l00394"></a>00394 $pageModule = <a class="code" href="classt3lib__BEfunc.html#7aa45aac5e181ce014288b9f0382675e">t3lib_BEfunc::isModuleSetInTBE_MODULES</a>($newPageModule) ? $newPageModule : 'web_layout'; <a name="l00395"></a>00395 <a name="l00396"></a>00396 $this->extNeedUpdate=1; <a name="l00397"></a>00397 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('edit_displayFieldIcons', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[edit_displayFieldIcons]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[edit_displayFieldIcons]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['edit_displayFieldIcons']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00398"></a>00398 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('edit_displayIcons', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[edit_displayIcons]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[edit_displayIcons]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['edit_displayIcons']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00399"></a>00399 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('edit_editFormsOnPage', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[edit_editFormsOnPage]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[edit_editFormsOnPage]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['edit_editFormsOnPage']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00400"></a>00400 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('edit_editNoPopup', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[edit_editNoPopup]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[edit_editNoPopup]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['edit_editNoPopup']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00401"></a>00401 <a name="l00402"></a>00402 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('', $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#41758a362fd48c8e0a25576e9f4d2a89">ext_makeToolBar</a>()); <a name="l00403"></a>00403 <span class="keywordflow">if</span> (!<a class="code" href="classt3lib__div.html#016d2190758279b2dbb953826c690118">t3lib_div::_GP</a>('ADMCMD_view')) { <a name="l00404"></a>00404 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('', '<a href=<span class="stringliteral">"#"</span> onclick=<span class="stringliteral">"'.</span> <a name="l00405"></a>00405 <span class="stringliteral"> htmlspecialchars('</span> <a name="l00406"></a>00406 <span class="stringliteral"> if (parent.opener && parent.opener.top && parent.opener.top.TS) {</span> <a name="l00407"></a>00407 <span class="stringliteral"> parent.opener.top.fsMod.recentIds["</span>web<span class="stringliteral">"]='.intval($GLOBALS['TSFE']->page['uid']).';</span> <a name="l00408"></a>00408 <span class="stringliteral"> if (parent.opener.top.content && parent.opener.top.content.nav_frame && parent.opener.top.content.nav_frame.refresh_nav) {</span> <a name="l00409"></a>00409 <span class="stringliteral"> parent.opener.top.content.nav_frame.refresh_nav();</span> <a name="l00410"></a>00410 <span class="stringliteral"> }</span> <a name="l00411"></a>00411 <span class="stringliteral"> parent.opener.top.goToModule("</span>'.$pageModule.'<span class="stringliteral">");</span> <a name="l00412"></a>00412 <span class="stringliteral"> parent.opener.top.focus();</span> <a name="l00413"></a>00413 <span class="stringliteral"> } else {</span> <a name="l00414"></a>00414 <span class="stringliteral"> vHWin=window.open(\''.TYPO3_mainDir.'alt_main.php\',\''.md5('Typo3Backend-'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']).'\',\'status=1,menubar=1,scrollbars=1,resizable=1\');</span> <a name="l00415"></a>00415 <span class="stringliteral"> vHWin.focus();</span> <a name="l00416"></a>00416 <span class="stringliteral"> }</span> <a name="l00417"></a>00417 <span class="stringliteral"> return false;</span> <a name="l00418"></a>00418 <span class="stringliteral"> ').</span> <a name="l00419"></a>00419 <span class="stringliteral"> '"</span>>'.$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#6ecf586127adbcd32d6718e8c69e3380">extFw</a>($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">extGetLL</a>('edit_openAB')).'</a>'); <a name="l00420"></a>00420 } <a name="l00421"></a>00421 } <a name="l00422"></a>00422 <span class="keywordflow">return</span> $out; <a name="l00423"></a>00423 } <a name="l00424"></a>00424 <a name="l00432"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#fdd1af2af010e221ed5c29c1fd4cb4eb">00432</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#fdd1af2af010e221ed5c29c1fd4cb4eb">extGetCategory_tsdebug</a>($out='') { <a name="l00433"></a>00433 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#202f3686e2132063d415c959eb99dd83">extGetHead</a>('tsdebug'); <a name="l00434"></a>00434 <span class="keywordflow">if</span> ($this->uc['TSFE_adminConfig']['display_tsdebug']) { <a name="l00435"></a>00435 $this->extNeedUpdate=1; <a name="l00436"></a>00436 <a name="l00437"></a>00437 $content=''; <a name="l00438"></a>00438 $content.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('tsdebug_tree', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_tree]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_tree]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['tsdebug_tree']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00439"></a>00439 $content.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('tsdebug_displayTimes', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_displayTimes]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_displayTimes]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['tsdebug_displayTimes']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00440"></a>00440 $content.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('tsdebug_displayMessages', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_displayMessages]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_displayMessages]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['tsdebug_displayMessages']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00441"></a>00441 $content.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('tsdebug_LR', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_LR]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_LR]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['tsdebug_LR']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00442"></a>00442 $content.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('tsdebug_displayContent', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_displayContent]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_displayContent]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['tsdebug_displayContent']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00443"></a>00443 $content.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('tsdebug_displayQueries', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_displayQueries]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_displayQueries]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['tsdebug_displayQueries']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00444"></a>00444 $content.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>('tsdebug_forceTemplateParsing', '<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_forceTemplateParsing]"</span> value=<span class="stringliteral">"0"</span> /><input type=<span class="stringliteral">"checkbox"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[tsdebug_forceTemplateParsing]"</span> value=<span class="stringliteral">"1"</span>'.($this->uc['TSFE_adminConfig']['tsdebug_forceTemplateParsing']?' checked=<span class="stringliteral">"checked"</span><span class="charliteral">':'</span>').' />'); <a name="l00445"></a>00445 <a name="l00446"></a>00446 $out.='<tr><td colspan=<span class="stringliteral">"4"</span> nowrap=<span class="stringliteral">"nowrap"</span>><table border=<span class="stringliteral">"0"</span> cellpadding=<span class="stringliteral">"0"</span> cellspacing=<span class="stringliteral">"0"</span>>'.$content.'</table></td></tr>'; <a name="l00447"></a>00447 <a name="l00448"></a>00448 $GLOBALS['TT']->printConf['flag_tree'] = $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('tsdebug<span class="charliteral">','</span>tree'); <a name="l00449"></a>00449 $GLOBALS['TT']->printConf['allTime'] = $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('tsdebug<span class="charliteral">','</span>displayTimes'); <a name="l00450"></a>00450 $GLOBALS['TT']->printConf['flag_messages'] = $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('tsdebug<span class="charliteral">','</span>displayMessages'); <a name="l00451"></a>00451 $GLOBALS['TT']->printConf['flag_content'] = $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('tsdebug<span class="charliteral">','</span>displayContent'); <a name="l00452"></a>00452 $GLOBALS['TT']->printConf['flag_queries'] = $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('tsdebug<span class="charliteral">','</span>displayQueries'); <a name="l00453"></a>00453 $out.='<tr><td><img src=<span class="stringliteral">"clear.gif"</span> width=<span class="stringliteral">"50"</span> height=<span class="stringliteral">"1"</span> alt=<span class="stringliteral">""</span> /></td><td colspan=<span class="stringliteral">"3"</span>>'.$GLOBALS['TT']->printTSlog().'</td></tr>'; <a name="l00454"></a>00454 } <a name="l00455"></a>00455 <span class="keywordflow">return</span> $out; <a name="l00456"></a>00456 } <a name="l00457"></a>00457 <a name="l00465"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#816491dd3ad6e70a08d172468f394448">00465</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#816491dd3ad6e70a08d172468f394448">extGetCategory_info</a>($out='') { <a name="l00466"></a>00466 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#202f3686e2132063d415c959eb99dd83">extGetHead</a>('info'); <a name="l00467"></a>00467 <span class="keywordflow">if</span> ($this->uc['TSFE_adminConfig']['display_info']) { <a name="l00468"></a>00468 <a name="l00469"></a>00469 <span class="keywordflow">if</span> (is_array($GLOBALS['TSFE']->imagesOnPage) && $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('cache<span class="charliteral">','</span>noCache')) { <a name="l00470"></a>00470 reset($GLOBALS['TSFE']->imagesOnPage); <a name="l00471"></a>00471 $theBytes=0; <a name="l00472"></a>00472 $count=0; <a name="l00473"></a>00473 $fileTable=''; <a name="l00474"></a>00474 <span class="keywordflow">while</span>(list(,$file)=each($GLOBALS['TSFE']->imagesOnPage)) { <a name="l00475"></a>00475 $fs=@filesize($file); <a name="l00476"></a>00476 $fileTable.='<tr><td>'.$this->extFw($file).'</td><td align=<span class="stringliteral">"right"</span>>'.$this->extFw(<a class="code" href="classt3lib__div.html#0c708e4d01dd1b05ed7922042ca17289">t3lib_div::formatSize</a>($fs)).'</td></tr>'; <a name="l00477"></a>00477 $theBytes+=$fs; <a name="l00478"></a>00478 $count++; <a name="l00479"></a>00479 } <a name="l00480"></a>00480 $fileTable.='<tr><td><strong>'.$this->extFw('Total number of images:').'</strong></td><td>'.$this->extFw($count).'</td></tr>'; <a name="l00481"></a>00481 $fileTable.='<tr><td><strong>'.$this->extFw('Total image file sizes:').'</strong></td><td align=<span class="stringliteral">"right"</span>>'.$this->extFw(<a class="code" href="classt3lib__div.html#0c708e4d01dd1b05ed7922042ca17289">t3lib_div::formatSize</a>($theBytes)).'</td></tr>'; <a name="l00482"></a>00482 $fileTable.='<tr><td><strong>'.$this->extFw('Document size:').'</strong></td><td align=<span class="stringliteral">"right"</span>>'.$this->extFw(<a class="code" href="classt3lib__div.html#0c708e4d01dd1b05ed7922042ca17289">t3lib_div::formatSize</a>(strlen($GLOBALS['TSFE']->content))).'</td></tr>'; <a name="l00483"></a>00483 $fileTable.='<tr><td><strong>'.$this->extFw('Total page load:').'</strong></td><td align=<span class="stringliteral">"right"</span>>'.$this->extFw(<a class="code" href="classt3lib__div.html#0c708e4d01dd1b05ed7922042ca17289">t3lib_div::formatSize</a>(strlen($GLOBALS['TSFE']->content)+$theBytes)).'</td></tr>'; <a name="l00484"></a>00484 $fileTable.='<tr><td>&nbsp;</td></tr>'; <a name="l00485"></a>00485 } <a name="l00486"></a>00486 <a name="l00487"></a>00487 $fileTable.='<tr><td>'.$this->extFw('<span class="keywordtype">id</span>:').'</td><td>'.$this->extFw($GLOBALS['TSFE']-><span class="keywordtype">id</span>).'</td></tr>'; <a name="l00488"></a>00488 $fileTable.='<tr><td>'.$this->extFw('type:').'</td><td>'.$this->extFw($GLOBALS['TSFE']->type).'</td></tr>'; <a name="l00489"></a>00489 $fileTable.='<tr><td>'.$this->extFw('gr_list:').'</td><td>'.$this->extFw($GLOBALS['TSFE']->gr_list).'</td></tr>'; <a name="l00490"></a>00490 $fileTable.='<tr><td>'.$this->extFw('no_cache:').'</td><td>'.$this->extFw($GLOBALS['TSFE']->no_cache).'</td></tr>'; <a name="l00491"></a>00491 $fileTable.='<tr><td>'.$this->extFw('fe_user, name:').'</td><td>'.$this->extFw($GLOBALS['TSFE']->fe_user->user['username']).'</td></tr>'; <a name="l00492"></a>00492 $fileTable.='<tr><td>'.$this->extFw('fe_user, uid:').'</td><td>'.$this->extFw($GLOBALS['TSFE']->fe_user->user['uid']).'</td></tr>'; <a name="l00493"></a>00493 $fileTable.='<tr><td>&nbsp;</td></tr>'; <a name="l00494"></a>00494 <a name="l00495"></a>00495 <span class="comment">// parsetime:</span> <a name="l00496"></a>00496 $fileTable.='<tr><td>'.$this->extFw('Total parsetime:').'</td><td>'.$this->extFw($GLOBALS['TSFE']->scriptParseTime.' ms').'</td></tr>'; <a name="l00497"></a>00497 <a name="l00498"></a>00498 $fileTable='<table border=<span class="stringliteral">"0"</span> cellpadding=<span class="stringliteral">"0"</span> cellspacing=<span class="stringliteral">"0"</span>>'.$fileTable.'</table>'; <a name="l00499"></a>00499 <a name="l00500"></a>00500 $out.='<tr><td><img src=<span class="stringliteral">"clear.gif"</span> width=<span class="stringliteral">"50"</span> height=<span class="stringliteral">"1"</span> alt=<span class="stringliteral">""</span> /></td><td colspan=<span class="stringliteral">"3"</span>>'.$fileTable.'</td></tr>'; <a name="l00501"></a>00501 } <a name="l00502"></a>00502 <span class="keywordflow">return</span> $out; <a name="l00503"></a>00503 } <a name="l00504"></a>00504 <a name="l00505"></a>00505 <a name="l00506"></a>00506 <a name="l00507"></a>00507 <a name="l00508"></a>00508 <a name="l00509"></a>00509 <a name="l00510"></a>00510 <a name="l00511"></a>00511 <a name="l00512"></a>00512 <a name="l00513"></a>00513 <a name="l00514"></a>00514 <a name="l00515"></a>00515 <a name="l00516"></a>00516 <a name="l00517"></a>00517 <a name="l00518"></a>00518 <a name="l00519"></a>00519 <a name="l00520"></a>00520 <a name="l00521"></a>00521 <a name="l00522"></a>00522 <span class="comment">/*****************************************************</span> <a name="l00523"></a>00523 <span class="comment"> *</span> <a name="l00524"></a>00524 <span class="comment"> * Admin Panel Layout Helper functions</span> <a name="l00525"></a>00525 <span class="comment"> *</span> <a name="l00526"></a>00526 <span class="comment"> ****************************************************/</span> <a name="l00527"></a>00527 <a name="l00538"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#202f3686e2132063d415c959eb99dd83">00538</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#202f3686e2132063d415c959eb99dd83">extGetHead</a>($pre) { <a name="l00539"></a>00539 $out.='<img src=<span class="stringliteral">"'.TYPO3_mainDir.'gfx/ol/blank.gif"</span> width=<span class="stringliteral">"18"</span> height=<span class="stringliteral">"16"</span> align=<span class="stringliteral">"absmiddle"</span> border=<span class="stringliteral">"0"</span> alt=<span class="stringliteral">""</span> />'; <a name="l00540"></a>00540 $out.='<img src=<span class="stringliteral">"'.TYPO3_mainDir.'gfx/ol/'.($this->uc['TSFE_adminConfig']['display_'.$pre]?'minus':'plus').'bullet.gif"</span> width=<span class="stringliteral">"18"</span> height=<span class="stringliteral">"16"</span> align=<span class="stringliteral">"absmiddle"</span> border=<span class="stringliteral">"0"</span> alt=<span class="stringliteral">""</span> />'; <a name="l00541"></a>00541 $out.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#6ecf586127adbcd32d6718e8c69e3380">extFw</a>($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">extGetLL</a>($pre)); <a name="l00542"></a>00542 $out=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#cf5fd94effb5a44d11ffcae6d968f609">extItemLink</a>($pre,$out); <a name="l00543"></a>00543 <span class="keywordflow">return</span> ' <a name="l00544"></a>00544 <tr <span class="keyword">class</span>=<span class="stringliteral">"typo3-adminPanel-itemHRow"</span> style=<span class="stringliteral">"background-color:#abbbb4;"</span>> <a name="l00545"></a>00545 <td colspan=<span class="stringliteral">"4"</span> nowrap=<span class="stringliteral">"nowrap"</span> style=<span class="stringliteral">"border-top:dashed 1px #007a8c;"</span>>'.$out.'<input type=<span class="stringliteral">"hidden"</span> name=<span class="stringliteral">"TSFE_ADMIN_PANEL[display_'.$pre.']"</span> value=<span class="stringliteral">"'.$this->uc['TSFE_adminConfig']['display_'.$pre].'"</span> /></td> <a name="l00546"></a>00546 </tr>'; <a name="l00547"></a>00547 } <a name="l00548"></a>00548 <a name="l00558"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#cf5fd94effb5a44d11ffcae6d968f609">00558</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#cf5fd94effb5a44d11ffcae6d968f609">extItemLink</a>($pre,$str) { <a name="l00559"></a>00559 <span class="keywordflow">return</span> '<a href=<span class="stringliteral">"#"</span> style=<span class="stringliteral">"text-decoration:none;"</span> onclick=<span class="stringliteral">"'.</span> <a name="l00560"></a>00560 <span class="stringliteral"> htmlspecialchars('document.TSFE_ADMIN_PANEL_FORM[\'TSFE_ADMIN_PANEL[display_'.$pre.']\'].value='.($this->uc['TSFE_adminConfig']['display_'.$pre]?'0':'1').'; document.TSFE_ADMIN_PANEL_FORM.submit(); return false;').</span> <a name="l00561"></a>00561 <span class="stringliteral"> '"</span>>'.$str.'</a>'; <a name="l00562"></a>00562 } <a name="l00563"></a>00563 <a name="l00574"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">00574</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#879d341013e4163dc8ef115ad046708f">extGetItem</a>($pre,$element) { <a name="l00575"></a>00575 <span class="keywordflow">return</span> ' <a name="l00576"></a>00576 <tr <span class="keyword">class</span>=<span class="stringliteral">"typo3-adminPanel-itemRow"</span>> <a name="l00577"></a>00577 <td><img src=<span class="stringliteral">"clear.gif"</span> width=<span class="stringliteral">"50"</span> height=<span class="stringliteral">"1"</span> alt=<span class="stringliteral">""</span> /></td> <a name="l00578"></a>00578 <td nowrap=<span class="stringliteral">"nowrap"</span>>'.($pre ? $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#6ecf586127adbcd32d6718e8c69e3380">extFw</a>($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">extGetLL</a>($pre)) : '&nbsp;').'</td> <a name="l00579"></a>00579 <td><img src=<span class="stringliteral">"clear.gif"</span> width=<span class="stringliteral">"40"</span> height=<span class="stringliteral">"1"</span> alt=<span class="stringliteral">""</span> /></td> <a name="l00580"></a>00580 <td>'.$element.'</td> <a name="l00581"></a>00581 </tr>'; <a name="l00582"></a>00582 <a name="l00583"></a>00583 } <a name="l00584"></a>00584 <a name="l00591"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#6ecf586127adbcd32d6718e8c69e3380">00591</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#6ecf586127adbcd32d6718e8c69e3380">extFw</a>($str) { <a name="l00592"></a>00592 <span class="keywordflow">return</span> '<font face=<span class="stringliteral">"verdana,arial"</span> size=<span class="stringliteral">"1"</span> color=<span class="stringliteral">"black"</span>>'.$str.'</font>'; <a name="l00593"></a>00593 } <a name="l00594"></a>00594 <a name="l00600"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#41758a362fd48c8e0a25576e9f4d2a89">00600</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#41758a362fd48c8e0a25576e9f4d2a89">ext_makeToolBar</a>() { <a name="l00601"></a>00601 <span class="comment">// If mod.web_list.newContentWiz.overrideWithExtension is set, use that extension's create new content wizard instead:</span> <a name="l00602"></a>00602 $tmpTSc = <a class="code" href="classt3lib__BEfunc.html#3e3f63eb1c3bb4ae0d5ad009dea00cc5">t3lib_BEfunc::getModTSconfig</a>($this->pageinfo['uid'],'mod.web_list'); <a name="l00603"></a>00603 $tmpTSc = $tmpTSc ['properties']['newContentWiz.']['overrideWithExtension']; <a name="l00604"></a>00604 $newContentWizScriptPath = <a class="code" href="classt3lib__extMgm.html#297116a3b1e17045ff193f170b8c4a29">t3lib_extMgm::isLoaded</a>($tmpTSc) ? (<a class="code" href="classt3lib__extMgm.html#e058d5ce8038f7cf52a6726018dce8d7">t3lib_extMgm::extRelPath</a>($tmpTSc).'mod1/db_new_content_el.php') : (TYPO3_mainDir.'sysext/cms/layout/db_new_content_el.php'); <a name="l00605"></a>00605 <a name="l00606"></a>00606 <a name="l00607"></a>00607 $perms = $GLOBALS['BE_USER']->calcPerms($GLOBALS['TSFE']->page); <a name="l00608"></a>00608 $langAllowed = $GLOBALS['BE_USER']->checkLanguageAccess($GLOBALS['TSFE']->sys_language_uid); <a name="l00609"></a>00609 <a name="l00610"></a>00610 $toolBar=''; <a name="l00611"></a>00611 <a class="code" href="classt3lib__userAuth.html#de22b7479cd695a080bfeb892d8a60e2">$id</a> = $GLOBALS['TSFE']->id; <a name="l00612"></a>00612 $toolBar.='<a href=<span class="stringliteral">"'.htmlspecialchars(TYPO3_mainDir.'show_rechis.php?element='.rawurlencode('pages:'.$id).'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))).'#latest"</span>>'. <a name="l00613"></a>00613 '<img src=<span class="stringliteral">"'.TYPO3_mainDir.'gfx/history2.gif"</span> width=<span class="stringliteral">"13"</span> height=<span class="stringliteral">"12"</span> hspace=<span class="stringliteral">"2"</span> border=<span class="stringliteral">"0"</span> align=<span class="stringliteral">"top"</span> title=<span class="stringliteral">"'.$this->extGetLL('edit_recordHistory').'"</span> alt=<span class="stringliteral">""</span> /></a>'; <a name="l00614"></a>00614 <a name="l00615"></a>00615 <span class="keywordflow">if</span> ($perms&16 && $langAllowed) { <a name="l00616"></a>00616 $params = ''; <a name="l00617"></a>00617 <span class="keywordflow">if</span> ($GLOBALS['TSFE']->sys_language_uid) $params = '&sys_language_uid='.$GLOBALS['TSFE']->sys_language_uid; <a name="l00618"></a>00618 $toolBar.='<a href=<span class="stringliteral">"'.htmlspecialchars($newContentWizScriptPath.'?id='.$id.$params.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))).'"</span>>'. <a name="l00619"></a>00619 '<img src=<span class="stringliteral">"'.TYPO3_mainDir.'gfx/new_record.gif"</span> width=<span class="stringliteral">"16"</span> height=<span class="stringliteral">"12"</span> hspace=<span class="stringliteral">"1"</span> border=<span class="stringliteral">"0"</span> align=<span class="stringliteral">"top"</span> title=<span class="stringliteral">"'.$this->extGetLL('edit_newContentElement').'"</span> alt=<span class="stringliteral">""</span> /></a>'; <a name="l00620"></a>00620 } <a name="l00621"></a>00621 <span class="keywordflow">if</span> ($perms&2) { <a name="l00622"></a>00622 $toolBar.='<a href=<span class="stringliteral">"'.htmlspecialchars(TYPO3_mainDir.'move_el.php?table=pages&uid='.$id.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))).'"</span>>'. <a name="l00623"></a>00623 '<img src=<span class="stringliteral">"'.TYPO3_mainDir.'gfx/move_page.gif"</span> width=<span class="stringliteral">"11"</span> height=<span class="stringliteral">"12"</span> hspace=<span class="stringliteral">"2"</span> border=<span class="stringliteral">"0"</span> align=<span class="stringliteral">"top"</span> title=<span class="stringliteral">"'.$this->extGetLL('edit_move_page').'"</span> alt=<span class="stringliteral">""</span> /></a>'; <a name="l00624"></a>00624 } <a name="l00625"></a>00625 <span class="keywordflow">if</span> ($perms&8) { <a name="l00626"></a>00626 $toolBar.='<a href=<span class="stringliteral">"'.htmlspecialchars(TYPO3_mainDir.'db_new.php?id='.$id.'&pagesOnly=1&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))).'"</span>>'. <a name="l00627"></a>00627 '<img src=<span class="stringliteral">"'.TYPO3_mainDir.'gfx/new_page.gif"</span> width=<span class="stringliteral">"13"</span> height=<span class="stringliteral">"12"</span> hspace=<span class="stringliteral">"0"</span> border=<span class="stringliteral">"0"</span> align=<span class="stringliteral">"top"</span> title=<span class="stringliteral">"'.$this->extGetLL('edit_newPage').'"</span> alt=<span class="stringliteral">""</span> /></a>'; <a name="l00628"></a>00628 } <a name="l00629"></a>00629 <span class="keywordflow">if</span> ($perms&2) { <a name="l00630"></a>00630 $params='&edit[pages]['.$id.']=edit'; <a name="l00631"></a>00631 $toolBar.='<a href=<span class="stringliteral">"'.htmlspecialchars(TYPO3_mainDir.'alt_doc.php?'.$params.'&noView=1&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))).'"</span>>'. <a name="l00632"></a>00632 '<img src=<span class="stringliteral">"'.TYPO3_mainDir.'gfx/edit2.gif"</span> width=<span class="stringliteral">"11"</span> height=<span class="stringliteral">"12"</span> hspace=<span class="stringliteral">"2"</span> border=<span class="stringliteral">"0"</span> align=<span class="stringliteral">"top"</span> title=<span class="stringliteral">"'.$this->extGetLL('edit_editPageProperties').'"</span> alt=<span class="stringliteral">""</span> /></a>'; <a name="l00633"></a>00633 } <a name="l00634"></a>00634 <span class="keywordflow">if</span> ($this-><a class="code" href="classt3lib__userAuthGroup.html#ea567f65e97a356fc7730024fa6a4f2f">check</a>('modules<span class="charliteral">','</span>web_list')) { <a name="l00635"></a>00635 $toolBar.='<a href=<span class="stringliteral">"'.htmlspecialchars(TYPO3_mainDir.'db_list.php?id='.$id.'&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI'))).'"</span>>'. <a name="l00636"></a>00636 '<img src=<span class="stringliteral">"'.TYPO3_mainDir.'gfx/list.gif"</span> width=<span class="stringliteral">"11"</span> height=<span class="stringliteral">"11"</span> hspace=<span class="stringliteral">"2"</span> border=<span class="stringliteral">"0"</span> align=<span class="stringliteral">"top"</span> title=<span class="stringliteral">"'.$this->extGetLL('edit_db_list').'"</span> alt=<span class="stringliteral">""</span> /></a>'; <a name="l00637"></a>00637 } <a name="l00638"></a>00638 <span class="keywordflow">return</span> $toolBar; <a name="l00639"></a>00639 } <a name="l00640"></a>00640 <a name="l00641"></a>00641 <a name="l00642"></a>00642 <a name="l00643"></a>00643 <a name="l00644"></a>00644 <a name="l00645"></a>00645 <a name="l00646"></a>00646 <a name="l00647"></a>00647 <a name="l00648"></a>00648 <a name="l00649"></a>00649 <a name="l00650"></a>00650 <a name="l00651"></a>00651 <a name="l00652"></a>00652 <a name="l00653"></a>00653 <a name="l00654"></a>00654 <a name="l00655"></a>00655 <a name="l00656"></a>00656 <a name="l00657"></a>00657 <a name="l00658"></a>00658 <a name="l00659"></a>00659 <span class="comment">/*****************************************************</span> <a name="l00660"></a>00660 <span class="comment"> *</span> <a name="l00661"></a>00661 <span class="comment"> * TSFE BE user Access Functions</span> <a name="l00662"></a>00662 <span class="comment"> *</span> <a name="l00663"></a>00663 <span class="comment"> ****************************************************/</span> <a name="l00664"></a>00664 <a name="l00672"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#d4cbee2ab03ff852e95911efccb9f4ea">00672</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#d4cbee2ab03ff852e95911efccb9f4ea">checkBackendAccessSettingsFromInitPhp</a>() { <a name="l00673"></a>00673 global $TYPO3_CONF_VARS; <a name="l00674"></a>00674 <a name="l00675"></a>00675 <span class="comment">// **********************</span> <a name="l00676"></a>00676 <span class="comment">// Check Hardcoded lock on BE:</span> <a name="l00677"></a>00677 <span class="comment">// **********************</span> <a name="l00678"></a>00678 <span class="keywordflow">if</span> ($TYPO3_CONF_VARS['BE']['adminOnly'] < 0) { <a name="l00679"></a>00679 <span class="keywordflow">return</span> FALSE; <a name="l00680"></a>00680 } <a name="l00681"></a>00681 <a name="l00682"></a>00682 <span class="comment">// **********************</span> <a name="l00683"></a>00683 <span class="comment">// Check IP</span> <a name="l00684"></a>00684 <span class="comment">// **********************</span> <a name="l00685"></a>00685 <span class="keywordflow">if</span> (trim($TYPO3_CONF_VARS['BE']['IPmaskList'])) { <a name="l00686"></a>00686 <span class="keywordflow">if</span> (!<a class="code" href="classt3lib__div.html#abe065a28b50e8a6e4b12523db7d4895">t3lib_div::cmpIP</a>(<a class="code" href="classt3lib__div.html#cd7ecd00954e9a6b0c14eb23cf875d3f">t3lib_div::getIndpEnv</a>('REMOTE_ADDR'), $TYPO3_CONF_VARS['BE']['IPmaskList'])) { <a name="l00687"></a>00687 <span class="keywordflow">return</span> FALSE; <a name="l00688"></a>00688 } <a name="l00689"></a>00689 } <a name="l00690"></a>00690 <a name="l00691"></a>00691 <a name="l00692"></a>00692 <span class="comment">// **********************</span> <a name="l00693"></a>00693 <span class="comment">// Check SSL (https)</span> <a name="l00694"></a>00694 <span class="comment">// **********************</span> <a name="l00695"></a>00695 <span class="keywordflow">if</span> (intval($TYPO3_CONF_VARS['BE']['lockSSL']) && $TYPO3_CONF_VARS['BE']['lockSSL'] != 3) { <a name="l00696"></a>00696 <span class="keywordflow">if</span> (!<a class="code" href="classt3lib__div.html#cd7ecd00954e9a6b0c14eb23cf875d3f">t3lib_div::getIndpEnv</a>('TYPO3_SSL')) { <a name="l00697"></a>00697 <span class="keywordflow">return</span> FALSE; <a name="l00698"></a>00698 } <a name="l00699"></a>00699 } <a name="l00700"></a>00700 <a name="l00701"></a>00701 <span class="comment">// Finally a check from t3lib_beuserauth::backendCheckLogin()</span> <a name="l00702"></a>00702 <span class="keywordflow">if</span> (!$TYPO3_CONF_VARS['BE']['adminOnly'] || $this-><a class="code" href="classt3lib__userAuthGroup.html#4886dfa70720552a3a77a426aa208b11">isAdmin</a>()) { <a name="l00703"></a>00703 <span class="keywordflow">return</span> TRUE; <a name="l00704"></a>00704 } <span class="keywordflow">else</span> <span class="keywordflow">return</span> FALSE; <a name="l00705"></a>00705 } <a name="l00706"></a>00706 <a name="l00707"></a>00707 <a name="l00717"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#0aabc76b01f922377462c203831d31bd">00717</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#0aabc76b01f922377462c203831d31bd">extPageReadAccess</a>($pageRec) { <a name="l00718"></a>00718 <span class="keywordflow">return</span> $this-><a class="code" href="classt3lib__userAuthGroup.html#892ffc167116366b4aab090d48ee979a">isInWebMount</a>($pageRec['uid']) && $this-><a class="code" href="classt3lib__userAuthGroup.html#e49068be4c0d8aa15e2269386239fb0e">doesUserHaveAccess</a>($pageRec,1); <a name="l00719"></a>00719 } <a name="l00720"></a>00720 <a name="l00728"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#64f016acf1afd2595f728e0fbf7a3b65">00728</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#64f016acf1afd2595f728e0fbf7a3b65">extAdmModuleEnabled</a>($key) { <a name="l00729"></a>00729 <span class="comment">// Returns true if the module checked is "preview" and the forcePreview flag is set.</span> <a name="l00730"></a>00730 <span class="keywordflow">if</span> ($key==<span class="stringliteral">"preview"</span> && $this->ext_forcePreview) <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00731"></a>00731 <span class="comment">// If key is not set, only "all" is checked</span> <a name="l00732"></a>00732 <span class="keywordflow">if</span> ($this->extAdminConfig['enable.']['all']) <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00733"></a>00733 <span class="keywordflow">if</span> ($this->extAdminConfig['enable.'][$key]) { <a name="l00734"></a>00734 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00735"></a>00735 } <a name="l00736"></a>00736 } <a name="l00737"></a>00737 <a name="l00744"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#d3b821a4e576ebc726087445b9574c29">00744</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#d3b821a4e576ebc726087445b9574c29">extSaveFeAdminConfig</a>() { <a name="l00745"></a>00745 $input = <a class="code" href="classt3lib__div.html#df47c9f4e9980aa832b6516b774aeb33">t3lib_div::_GET</a>('TSFE_ADMIN_PANEL'); <a name="l00746"></a>00746 <span class="keywordflow">if</span> (is_array($input)) { <a name="l00747"></a>00747 <span class="comment">// Setting</span> <a name="l00748"></a>00748 $this->uc['TSFE_adminConfig'] = array_merge(!is_array($this->uc['TSFE_adminConfig'])?array():$this->uc['TSFE_adminConfig'], $input); <span class="comment">// Candidate for t3lib_div::array_merge() if integer-keys will some day make trouble...</span> <a name="l00749"></a>00749 unset($this->uc['TSFE_adminConfig']['action']); <a name="l00750"></a>00750 <a name="l00751"></a>00751 <span class="comment">// Actions:</span> <a name="l00752"></a>00752 <span class="keywordflow">if</span> ($input['action']['clearCache'] && $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#64f016acf1afd2595f728e0fbf7a3b65">extAdmModuleEnabled</a>('cache')) { <a name="l00753"></a>00753 $this->extPageInTreeInfo=array(); <a name="l00754"></a>00754 $theStartId = intval($input['cache_clearCacheId']); <a name="l00755"></a>00755 $GLOBALS['TSFE']->clearPageCacheContent_pidList($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#2e2c0891492f6827945858d8c9a85cc5">extGetTreeList</a>($theStartId, $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('cache<span class="charliteral">','</span>clearCacheLevels'),0,$this-><a class="code" href="classt3lib__userAuthGroup.html#927625eea83024e1a88a4ac398f0a55d">getPagePermsClause</a>(1)).$theStartId); <a name="l00756"></a>00756 } <a name="l00757"></a>00757 <span class="keywordflow">if</span> ($input['action']['publish'] && $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#64f016acf1afd2595f728e0fbf7a3b65">extAdmModuleEnabled</a>('publish')) { <a name="l00758"></a>00758 $theStartId = intval($input['publish_id']); <a name="l00759"></a>00759 $this->extPublishList = $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#2e2c0891492f6827945858d8c9a85cc5">extGetTreeList</a>($theStartId, $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('publish<span class="charliteral">','</span>levels'),0,$this-><a class="code" href="classt3lib__userAuthGroup.html#927625eea83024e1a88a4ac398f0a55d">getPagePermsClause</a>(1)).$theStartId; <a name="l00760"></a>00760 } <a name="l00761"></a>00761 <a name="l00762"></a>00762 <span class="comment">// Saving</span> <a name="l00763"></a>00763 $this-><a class="code" href="classt3lib__userAuth.html#65af6924cdc30fa7a8972e8b4d47ede7">writeUC</a>(); <a name="l00764"></a>00764 } <a name="l00765"></a>00765 $GLOBALS['TT']->LR = $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('tsdebug<span class="charliteral">','</span>LR'); <a name="l00766"></a>00766 <span class="keywordflow">if</span> ($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('cache<span class="charliteral">','</span>noCache')) {$GLOBALS['TSFE']->set_no_cache();} <a name="l00767"></a>00767 } <a name="l00768"></a>00768 <a name="l00776"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">00776</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>($pre,$val='') { <a name="l00777"></a>00777 <span class="keywordflow">if</span> ($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#64f016acf1afd2595f728e0fbf7a3b65">extAdmModuleEnabled</a>($pre)) { <span class="comment">// Check if module is enabled.</span> <a name="l00778"></a>00778 <span class="comment">// Exceptions where the values can be overridden from backend:</span> <a name="l00779"></a>00779 <span class="comment">// deprecated</span> <a name="l00780"></a>00780 <span class="keywordflow">if</span> ($pre.<span class="charliteral">'_'</span>.$val == 'edit_displayIcons' && $this->extAdminConfig['module.']['edit.']['forceDisplayIcons']) { <a name="l00781"></a>00781 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00782"></a>00782 } <a name="l00783"></a>00783 <span class="keywordflow">if</span> ($pre.<span class="charliteral">'_'</span>.$val == 'edit_displayFieldIcons' && $this->extAdminConfig['module.']['edit.']['forceDisplayFieldIcons']) { <a name="l00784"></a>00784 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00785"></a>00785 } <a name="l00786"></a>00786 <a name="l00787"></a>00787 <span class="comment">// override all settings with user TSconfig</span> <a name="l00788"></a>00788 <span class="keywordflow">if</span> ($this->extAdminConfig['override.'][$pre.<span class="charliteral">'.'</span>][$val] && $val) { <a name="l00789"></a>00789 <span class="keywordflow">return</span> $this->extAdminConfig['override.'][$pre.<span class="charliteral">'.'</span>][$val]; <a name="l00790"></a>00790 } <a name="l00791"></a>00791 <span class="keywordflow">if</span> ($this->extAdminConfig['override.'][$pre]) { <a name="l00792"></a>00792 <span class="keywordflow">return</span> $this->extAdminConfig['override.'][$pre]; <a name="l00793"></a>00793 } <a name="l00794"></a>00794 <a name="l00795"></a>00795 $retVal = $val ? $this->uc['TSFE_adminConfig'][$pre.<span class="charliteral">'_'</span>.$val] : 1; <a name="l00796"></a>00796 <a name="l00797"></a>00797 <span class="keywordflow">if</span> ($pre=='preview' && $this->ext_forcePreview) { <a name="l00798"></a>00798 <span class="keywordflow">if</span> (!$val) { <a name="l00799"></a>00799 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00800"></a>00800 } <span class="keywordflow">else</span> { <a name="l00801"></a>00801 <span class="keywordflow">return</span> $retVal; <a name="l00802"></a>00802 } <a name="l00803"></a>00803 } <a name="l00804"></a>00804 <a name="l00805"></a>00805 <span class="comment">// regular check:</span> <a name="l00806"></a>00806 <span class="keywordflow">if</span> ($this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#d7b62917c243e0fa6191105bde02d018">extIsAdmMenuOpen</a>($pre)) { <span class="comment">// See if the menu is expanded!</span> <a name="l00807"></a>00807 <span class="keywordflow">return</span> $retVal; <a name="l00808"></a>00808 } <a name="l00809"></a>00809 } <a name="l00810"></a>00810 } <a name="l00811"></a>00811 <a name="l00818"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#d7b62917c243e0fa6191105bde02d018">00818</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#d7b62917c243e0fa6191105bde02d018">extIsAdmMenuOpen</a>($pre) { <a name="l00819"></a>00819 <span class="keywordflow">return</span> $this->uc['TSFE_adminConfig']['display_top'] && $this->uc['TSFE_adminConfig']['display_'.$pre]; <a name="l00820"></a>00820 } <a name="l00821"></a>00821 <a name="l00822"></a>00822 <a name="l00823"></a>00823 <a name="l00824"></a>00824 <a name="l00825"></a>00825 <a name="l00826"></a>00826 <a name="l00827"></a>00827 <a name="l00828"></a>00828 <a name="l00829"></a>00829 <a name="l00830"></a>00830 <a name="l00831"></a>00831 <a name="l00832"></a>00832 <a name="l00833"></a>00833 <a name="l00834"></a>00834 <a name="l00835"></a>00835 <a name="l00836"></a>00836 <a name="l00837"></a>00837 <span class="comment">/*****************************************************</span> <a name="l00838"></a>00838 <span class="comment"> *</span> <a name="l00839"></a>00839 <span class="comment"> * TSFE BE user Access Functions</span> <a name="l00840"></a>00840 <span class="comment"> *</span> <a name="l00841"></a>00841 <span class="comment"> ****************************************************/</span> <a name="l00842"></a>00842 <a name="l00853"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#2e2c0891492f6827945858d8c9a85cc5">00853</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#2e2c0891492f6827945858d8c9a85cc5">extGetTreeList</a>(<a class="code" href="classt3lib__userAuth.html#de22b7479cd695a080bfeb892d8a60e2">$id</a>,$depth,$begin=0,$perms_clause) { <a name="l00854"></a>00854 $depth=intval($depth); <a name="l00855"></a>00855 $begin=intval($begin); <a name="l00856"></a>00856 <a class="code" href="classt3lib__userAuth.html#de22b7479cd695a080bfeb892d8a60e2">$id</a>=intval(<a class="code" href="classt3lib__userAuth.html#de22b7479cd695a080bfeb892d8a60e2">$id</a>); <a name="l00857"></a>00857 $theList=''; <a name="l00858"></a>00858 <a name="l00859"></a>00859 <span class="keywordflow">if</span> (<a class="code" href="classt3lib__userAuth.html#de22b7479cd695a080bfeb892d8a60e2">$id</a> && $depth>0) { <a name="l00860"></a>00860 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery( <a name="l00861"></a>00861 'uid,title', <a name="l00862"></a>00862 'pages', <a name="l00863"></a>00863 'pid='.<a class="code" href="classt3lib__userAuth.html#de22b7479cd695a080bfeb892d8a60e2">$id</a>.' AND doktype IN ('.$GLOBALS['TYPO3_CONF_VARS']['FE']['content_doktypes'].') AND deleted=0 AND '.$perms_clause <a name="l00864"></a>00864 ); <a name="l00865"></a>00865 <span class="keywordflow">while</span> ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { <a name="l00866"></a>00866 <span class="keywordflow">if</span> ($begin<=0) { <a name="l00867"></a>00867 $theList.=$row['uid'].<span class="charliteral">','</span>; <a name="l00868"></a>00868 $this->extPageInTreeInfo[]=array($row['uid'],$row['title'],$depth); <a name="l00869"></a>00869 } <a name="l00870"></a>00870 <span class="keywordflow">if</span> ($depth>1) { <a name="l00871"></a>00871 $theList.=$this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#2e2c0891492f6827945858d8c9a85cc5">extGetTreeList</a>($row['uid'], $depth-1,$begin-1,$perms_clause); <a name="l00872"></a>00872 } <a name="l00873"></a>00873 } <a name="l00874"></a>00874 } <a name="l00875"></a>00875 <span class="keywordflow">return</span> $theList; <a name="l00876"></a>00876 } <a name="l00877"></a>00877 <a name="l00884"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#9e292183451e2d3432c8ed96fef017ab">00884</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#9e292183451e2d3432c8ed96fef017ab">extGetNumberOfCachedPages</a>($page_id) { <a name="l00885"></a>00885 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('count(*)', 'cache_pages', 'page_id='.intval($page_id)); <a name="l00886"></a>00886 list($num) = $GLOBALS['TYPO3_DB']->sql_fetch_row($res); <a name="l00887"></a>00887 <span class="keywordflow">return</span> $num; <a name="l00888"></a>00888 } <a name="l00889"></a>00889 <a name="l00890"></a>00890 <a name="l00891"></a>00891 <a name="l00892"></a>00892 <a name="l00893"></a>00893 <a name="l00894"></a>00894 <a name="l00895"></a>00895 <a name="l00896"></a>00896 <a name="l00897"></a>00897 <a name="l00898"></a>00898 <a name="l00899"></a>00899 <a name="l00900"></a>00900 <a name="l00901"></a>00901 <a name="l00902"></a>00902 <a name="l00903"></a>00903 <a name="l00904"></a>00904 <a name="l00905"></a>00905 <a name="l00906"></a>00906 <a name="l00907"></a>00907 <a name="l00908"></a>00908 <a name="l00909"></a>00909 <a name="l00910"></a>00910 <span class="comment">/*****************************************************</span> <a name="l00911"></a>00911 <span class="comment"> *</span> <a name="l00912"></a>00912 <span class="comment"> * Localization handling</span> <a name="l00913"></a>00913 <span class="comment"> *</span> <a name="l00914"></a>00914 <span class="comment"> ****************************************************/</span> <a name="l00915"></a>00915 <a name="l00923"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">00923</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#9bb87048fa8dfc090ebcfb0868ca71db">extGetLL</a>($key) { <a name="l00924"></a>00924 global $LOCAL_LANG; <a name="l00925"></a>00925 <span class="keywordflow">if</span> (!is_array($LOCAL_LANG)) { <a name="l00926"></a>00926 $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_tsfe.php'); <a name="l00927"></a>00927 <span class="preprocessor"> #include('./'.TYPO3_mainDir.'sysext/lang/locallang_tsfe.php');</span> <a name="l00928"></a>00928 <span class="preprocessor"></span> <span class="keywordflow">if</span> (!is_array($LOCAL_LANG)) $LOCAL_LANG=array(); <a name="l00929"></a>00929 } <a name="l00930"></a>00930 <a name="l00931"></a>00931 $labelStr = htmlspecialchars($GLOBALS['LANG']->getLL($key)); <span class="comment">// Label string in the default backend output charset.</span> <a name="l00932"></a>00932 <a name="l00933"></a>00933 <span class="comment">// Convert to utf-8, then to entities:</span> <a name="l00934"></a>00934 <span class="keywordflow">if</span> ($GLOBALS['LANG']->charSet!='utf-8') { <a name="l00935"></a>00935 $labelStr = $GLOBALS['LANG']->csConvObj->utf8_encode($labelStr,$GLOBALS['LANG']->charSet); <a name="l00936"></a>00936 } <a name="l00937"></a>00937 $labelStr = $GLOBALS['LANG']->csConvObj->utf8_to_entities($labelStr); <a name="l00938"></a>00938 <a name="l00939"></a>00939 <span class="comment">// Return the result:</span> <a name="l00940"></a>00940 <span class="keywordflow">return</span> $labelStr; <a name="l00941"></a>00941 } <a name="l00942"></a>00942 <a name="l00943"></a>00943 <a name="l00944"></a>00944 <a name="l00945"></a>00945 <a name="l00946"></a>00946 <a name="l00947"></a>00947 <a name="l00948"></a>00948 <a name="l00949"></a>00949 <a name="l00950"></a>00950 <a name="l00951"></a>00951 <a name="l00952"></a>00952 <a name="l00953"></a>00953 <a name="l00954"></a>00954 <a name="l00955"></a>00955 <span class="comment">/*****************************************************</span> <a name="l00956"></a>00956 <span class="comment"> *</span> <a name="l00957"></a>00957 <span class="comment"> * Frontend Editing</span> <a name="l00958"></a>00958 <span class="comment"> *</span> <a name="l00959"></a>00959 <span class="comment"> ****************************************************/</span> <a name="l00960"></a>00960 <a name="l00967"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#9f81d2e3318a05d0e4e62457a71e3de5">00967</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#9f81d2e3318a05d0e4e62457a71e3de5">extIsEditAction</a>() { <a name="l00968"></a>00968 <span class="keywordflow">if</span> (is_array($this->TSFE_EDIT)) { <a name="l00969"></a>00969 <span class="keywordflow">if</span> ($this->TSFE_EDIT['cancel']) { <a name="l00970"></a>00970 unset($this->TSFE_EDIT['cmd']); <a name="l00971"></a>00971 } <span class="keywordflow">else</span> { <a name="l00972"></a>00972 $cmd = (string)$this->TSFE_EDIT['cmd']; <a name="l00973"></a>00973 <span class="keywordflow">if</span> (($cmd!='edit' || (is_array($this->TSFE_EDIT['data']) && ($this->TSFE_EDIT['update'] || $this->TSFE_EDIT['update_close']))) && $cmd!='<span class="keyword">new</span>') { <a name="l00974"></a>00974 <span class="comment">// $cmd can be a command like "hide" or "move". If $cmd is "edit" or "new" it's an indication to show the formfields. But if data is sent with update-flag then $cmd = edit is accepted because edit may be sendt because of .keepGoing flag.</span> <a name="l00975"></a>00975 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00976"></a>00976 } <a name="l00977"></a>00977 } <a name="l00978"></a>00978 } <a name="l00979"></a>00979 <span class="keywordflow">return</span> <span class="keyword">false</span>; <a name="l00980"></a>00980 } <a name="l00981"></a>00981 <a name="l00989"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#e73a3c6595095f6724e0d307ea7ee53f">00989</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#e73a3c6595095f6724e0d307ea7ee53f">extIsFormShown</a>() { <a name="l00990"></a>00990 <span class="keywordflow">if</span> (is_array($this->TSFE_EDIT)) { <a name="l00991"></a>00991 $cmd=(string)$this->TSFE_EDIT['cmd']; <a name="l00992"></a>00992 <span class="keywordflow">if</span> ($cmd=='edit' || $cmd=='<span class="keyword">new</span>') { <a name="l00993"></a>00993 <span class="keywordflow">return</span> <span class="keyword">true</span>; <a name="l00994"></a>00994 } <a name="l00995"></a>00995 } <a name="l00996"></a>00996 } <a name="l00997"></a>00997 <a name="l01005"></a><a class="code" href="classt3lib__tsfeBeUserAuth.html#1aa20ef26dc3101df5054c7d3399673d">01005</a> function <a class="code" href="classt3lib__tsfeBeUserAuth.html#1aa20ef26dc3101df5054c7d3399673d">extEditAction</a>() { <a name="l01006"></a>01006 global $TCA, $TYPO3_CONF_VARS; <a name="l01007"></a>01007 <span class="comment">// Commands:</span> <a name="l01008"></a>01008 list($table,$uid) = explode(<span class="charliteral">':'</span>,$this->TSFE_EDIT['record']); <a name="l01009"></a>01009 <span class="keywordflow">if</span> ($this->TSFE_EDIT['cmd'] && $table && $uid && isset($TCA[$table])) { <a name="l01010"></a>01010 $tce = <a class="code" href="classt3lib__div.html#b47f8a8e8be44b79a0b8064dcd427bc1">t3lib_div::makeInstance</a>('<a class="code" href="classt3lib__TCEmain.html">t3lib_TCEmain</a>'); <a name="l01011"></a>01011 $tce->stripslashes_values=0; <a name="l01012"></a>01012 $recData=array(); <a name="l01013"></a>01013 $cmdData=array(); <a name="l01014"></a>01014 $cmd=$this->TSFE_EDIT['cmd']; <a name="l01015"></a>01015 <a name="l01016"></a>01016 <span class="comment">// ****************</span> <a name="l01017"></a>01017 <span class="comment">// extEditAction HOOK</span> <a name="l01018"></a>01018 <span class="comment">// ****************</span> <a name="l01019"></a>01019 <span class="keywordflow">if</span> (is_array($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/<span class="keyword">class</span>.t3lib_tsfebeuserauth.php']['<a class="code" href="classt3lib__tsfeBeUserAuth.html#1aa20ef26dc3101df5054c7d3399673d">extEditAction</a>'])) { <a name="l01020"></a>01020 $_params = array(); <a name="l01021"></a>01021 foreach($TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/<span class="keyword">class</span>.t3lib_tsfebeuserauth.php']['extEditAction'] as $_funcRef) { <a name="l01022"></a>01022 <a class="code" href="classt3lib__div.html#1458e987700fb6f722ec5186644f6580">t3lib_div::callUserFunction</a>($_funcRef,$_params,$this); <a name="l01023"></a>01023 } <a name="l01024"></a>01024 } <a name="l01025"></a>01025 <a name="l01026"></a>01026 <span class="keywordflow">switch</span>($cmd) { <a name="l01027"></a>01027 <span class="keywordflow">case</span> 'hide': <a name="l01028"></a>01028 <span class="keywordflow">case</span> 'unhide': <a name="l01029"></a>01029 $hideField = $TCA[$table]['ctrl']['enablecolumns']['disabled']; <a name="l01030"></a>01030 <span class="keywordflow">if</span> ($hideField) { <a name="l01031"></a>01031 $recData[$table][$uid][$hideField]=($cmd=='hide'?1:0); <a name="l01032"></a>01032 $tce->start($recData,Array()); <a name="l01033"></a>01033 $tce->process_datamap(); <a name="l01034"></a>01034 } <a name="l01035"></a>01035 <span class="keywordflow">break</span>; <a name="l01036"></a>01036 <span class="keywordflow">case</span> 'up': <a name="l01037"></a>01037 <span class="keywordflow">case</span> 'down': <a name="l01038"></a>01038 $sortField = $TCA[$table]['ctrl']['sortby']; <a name="l01039"></a>01039 <span class="keywordflow">if</span> ($sortField) { <a name="l01040"></a>01040 <span class="keywordflow">if</span> ($cmd=='up') { <a name="l01041"></a>01041 $op= <span class="charliteral">'<'</span>; <a name="l01042"></a>01042 $desc=' DESC'; <a name="l01043"></a>01043 } <span class="keywordflow">else</span> { <a name="l01044"></a>01044 $op= <span class="charliteral">'>'</span>; <a name="l01045"></a>01045 $desc=''; <a name="l01046"></a>01046 } <a name="l01047"></a>01047 <span class="comment">// Get self:</span> <a name="l01048"></a>01048 $fields = array_unique(<a class="code" href="classt3lib__div.html#cfb87d585b85e9b32841bde40beaa96c">t3lib_div::trimExplode</a>(<span class="charliteral">','</span>,$TCA[$table]['ctrl']['copyAfterDuplFields'].',uid,pid,'.$sortField,1)); <a name="l01049"></a>01049 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(implode(<span class="charliteral">','</span>,$fields), $table, 'uid='.$uid); <a name="l01050"></a>01050 <span class="keywordflow">if</span> ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { <a name="l01051"></a>01051 <span class="comment">// record before or after</span> <a name="l01052"></a>01052 $preview = $this-><a class="code" href="classt3lib__tsfeBeUserAuth.html#40adbd000753c317707f872ac1bfe86d">extGetFeAdminValue</a>('preview'); <a name="l01053"></a>01053 $copyAfterFieldsQuery = ''; <a name="l01054"></a>01054 <span class="keywordflow">if</span> ($preview) {$ignore = array('starttime'=>1, 'endtime'=>1, 'disabled'=>1, 'fe_group'=>1);} <a name="l01055"></a>01055 <span class="keywordflow">if</span> ($TCA[$table]['ctrl']['copyAfterDuplFields']) { <a name="l01056"></a>01056 $cAFields = <a class="code" href="classt3lib__div.html#cfb87d585b85e9b32841bde40beaa96c">t3lib_div::trimExplode</a>(<span class="charliteral">','</span>,$TCA[$table]['ctrl']['copyAfterDuplFields'],1); <a name="l01057"></a>01057 <span class="keywordflow">while</span>(list(,$fN)=each($cAFields)) { <a name="l01058"></a>01058 $copyAfterFieldsQuery.=' AND '.$fN.'=<span class="stringliteral">"'.$row[$fN].'"</span>'; <a name="l01059"></a>01059 } <a name="l01060"></a>01060 } <a name="l01061"></a>01061 <a name="l01062"></a>01062 $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery( <a name="l01063"></a>01063 'uid,pid', <a name="l01064"></a>01064 $table, <a name="l01065"></a>01065 'pid='.intval($row['pid']). <a name="l01066"></a>01066 ' AND '.$sortField.$op.intval($row[$sortField]). <a name="l01067"></a>01067 $copyAfterFieldsQuery. <a name="l01068"></a>01068 $GLOBALS['TSFE']->sys_page->enableFields($table,'',$ignore), <a name="l01069"></a>01069 '', <a name="l01070"></a>01070 $sortField.$desc, <a name="l01071"></a>01071 <span class="charliteral">'2'</span> <a name="l01072"></a>01072 ); <a name="l01073"></a>01073 <span class="keywordflow">if</span> ($row2 = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { <a name="l01074"></a>01074 <span class="keywordflow">if</span>($cmd=='down') { <a name="l01075"></a>01075 $cmdData[$table][$uid]['move']= -$row2['uid']; <a name="l01076"></a>01076 } elseif ($row3 = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { <span class="comment">// Must take the second record above...</span> <a name="l01077"></a>01077 $cmdData[$table][$uid]['move']= -$row3['uid']; <a name="l01078"></a>01078 } <span class="keywordflow">else</span> { <span class="comment">// ... and if that does not exist, use pid</span> <a name="l01079"></a>01079 $cmdData[$table][$uid]['move']= $row['pid']; <a name="l01080"></a>01080 } <a name="l01081"></a>01081 } elseif ($cmd=='up') { <a name="l01082"></a>01082 $cmdData[$table][$uid]['move']= $row['pid']; <a name="l01083"></a>01083 } <a name="l01084"></a>01084 } <a name="l01085"></a>01085 <span class="keywordflow">if</span> (count($cmdData)) { <a name="l01086"></a>01086 $tce->start(Array(),$cmdData); <a name="l01087"></a>01087 $tce->process_cmdmap(); <a name="l01088"></a>01088 } <a name="l01089"></a>01089 } <a name="l01090"></a>01090 <span class="keywordflow">break</span>; <a name="l01091"></a>01091 <span class="keywordflow">case</span> '<span class="keyword">delete</span>': <a name="l01092"></a>01092 $cmdData[$table][$uid]['<span class="keyword">delete</span>']= 1; <a name="l01093"></a>01093 <span class="keywordflow">if</span> (count($cmdData)) { <a name="l01094"></a>01094 $tce->start(Array(),$cmdData); <a name="l01095"></a>01095 $tce->process_cmdmap(); <a name="l01096"></a>01096 } <a name="l01097"></a>01097 <span class="keywordflow">break</span>; <a name="l01098"></a>01098 } <a name="l01099"></a>01099 } <a name="l01100"></a>01100 <span class="comment">// Data:</span> <a name="l01101"></a>01101 <span class="keywordflow">if</span> (($this->TSFE_EDIT['doSave'] || $this->TSFE_EDIT['update'] || $this->TSFE_EDIT['update_close']) && is_array($this->TSFE_EDIT['data'])) { <a name="l01102"></a>01102 $tce = <a class="code" href="classt3lib__div.html#b47f8a8e8be44b79a0b8064dcd427bc1">t3lib_div::makeInstance</a>('<a class="code" href="classt3lib__TCEmain.html">t3lib_TCEmain</a>'); <a name="l01103"></a>01103 $tce->stripslashes_values=0; <a name="l01104"></a>01104 $tce->start($this->TSFE_EDIT['data'],Array()); <a name="l01105"></a>01105 $tce->process_uploads($_FILES); <a name="l01106"></a>01106 $tce->process_datamap(); <a name="l01107"></a>01107 } <a name="l01108"></a>01108 } <a name="l01109"></a>01109 } <a name="l01110"></a>01110 <a name="l01111"></a>01111 <a name="l01112"></a>01112 <span class="keywordflow">if</span> (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/<span class="keyword">class</span>.t3lib_tsfebeuserauth.php']) { <a name="l01113"></a>01113 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/<span class="keyword">class</span>.t3lib_tsfebeuserauth.php']); <a name="l01114"></a>01114 } <a name="l01115"></a>01115 ?> </pre></div><?php include_once '../doc-typo3-funcs.php'; get_footer(); ?>