<?php include_once '../doc-typo3-funcs.php'; $doxygen_vars = array( "title" => "TYPO3 4.0.1: t3lib_basicFileFunctions Class Reference", "datetime" => "Sat Dec 2 19:25:43 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 id="current"><a href="classes.html"><span>Classes</span></a></li> <li><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="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div> <h1>t3lib_basicFileFunctions Class Reference</h1><!-- doxytag: class="t3lib_basicFileFunctions" -->Inheritance diagram for t3lib_basicFileFunctions:<p><center><img src="classt3lib__basicFileFunctions__inherit__graph.png" border="0" usemap="#t3lib__basicFileFunctions__inherit__map" alt="Inheritance graph"></center> <map name="t3lib__basicFileFunctions__inherit__map"> <area href="classt3lib__extFileFunctions.html" shape="rect" coords="6,514,206,940" alt=""> </map> <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classt3lib__basicFileFunctions-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#cb4216ea549f496f66c865ea3d851163">init</a> ($mounts, $f_ext)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#ec70c9dfd1db2a02881195e228507d7d">getTotalFileInfo</a> ($wholePath)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#23ec7c8f4641a3b09387c76e426d274b">is_allowed</a> ($iconkey, $type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#f98da4969a4b7f30ae21b396fab54439">checkIfFullAccess</a> ($theDest)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#a10aea10557a78598bb963b4e2b412f9">is_webpath</a> ($path)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#2ffff20721ff0e9675e23825b2cbdfa6">checkIfAllowed</a> ($ext, $theDest, $filename='')</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#aee53ff6f0b94734f2da0052c7968816">checkFileNameLen</a> ($fileName)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#76c7a8883057f01e11c52a72659490af">is_directory</a> ($theDir)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#0ab7e72f2dda4562dc13bf5ae549d4d8">isPathValid</a> ($theFile)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#b1666354e4dcde7da32b186074209d99">getUniqueName</a> ($theFile, $theDest, $dontCheckForUnique=0)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#1e3e196d567005e88e6e327e6fc2d4b6">checkPathAgainstMounts</a> ($thePath)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#b0280502f5908fc18962fcea248ab2ab">findFirstWebFolder</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#658627827460f190510888cea00e5f88">blindPath</a> ($thePath)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#d9329bd3e0be2a1cbaa566b345df9929">findTempFolder</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#15ce99ac301b949ce6398c1c99351fdc">cleanDirectoryName</a> ($theDir)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#50366a579253b9f79804df30ec4d74c9">rmDoubleSlash</a> ($string)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#d09eabaac46d863fab78400f5b252c2b">slashPath</a> ($path)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#4bebf55d42f542fd842e23a9d2ca686d">cleanFileName</a> ($fileName, $charset='')</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#fcb9cc2f020b800b081f2a2b84dcab39">formatSize</a> ($sizeInBytes)</td></tr> <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="49c1b975b447ea060e975c60a9443b83"></a><!-- doxytag: member="t3lib_basicFileFunctions::$getUniqueNamePrefix" ref="49c1b975b447ea060e975c60a9443b83" args="" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#49c1b975b447ea060e975c60a9443b83">$getUniqueNamePrefix</a> = ''</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2ab4c1eeaaac3fad9d1ca3a6302109c2"></a><!-- doxytag: member="t3lib_basicFileFunctions::$maxNumber" ref="2ab4c1eeaaac3fad9d1ca3a6302109c2" args="" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#2ab4c1eeaaac3fad9d1ca3a6302109c2">$maxNumber</a> = 20</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="98ebde485eda2cb6d174e03f276fe16f"></a><!-- doxytag: member="t3lib_basicFileFunctions::$uniquePrecision" ref="98ebde485eda2cb6d174e03f276fe16f" args="" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#98ebde485eda2cb6d174e03f276fe16f">$uniquePrecision</a> = 6</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f2170fa6090837d0b5a299e258d83300"></a><!-- doxytag: member="t3lib_basicFileFunctions::$maxInputNameLen" ref="f2170fa6090837d0b5a299e258d83300" args="" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#f2170fa6090837d0b5a299e258d83300">$maxInputNameLen</a> = 60</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc1786aed87fb6bfc65679d5afa1a2a7"></a><!-- doxytag: member="t3lib_basicFileFunctions::$tempFN" ref="cc1786aed87fb6bfc65679d5afa1a2a7" args="" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#cc1786aed87fb6bfc65679d5afa1a2a7">$tempFN</a> = '_temp_'</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8b7194f21b8c2d43753a0e7edb417c41"></a><!-- doxytag: member="t3lib_basicFileFunctions::$f_ext" ref="8b7194f21b8c2d43753a0e7edb417c41" args="" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#8b7194f21b8c2d43753a0e7edb417c41">$f_ext</a> = Array()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8015a387ca29ea2c64ebb3c340990618"></a><!-- doxytag: member="t3lib_basicFileFunctions::$mounts" ref="8015a387ca29ea2c64ebb3c340990618" args="" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#8015a387ca29ea2c64ebb3c340990618">$mounts</a> = Array()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e573865a85552614f260c24bc738b986"></a><!-- doxytag: member="t3lib_basicFileFunctions::$webPath" ref="e573865a85552614f260c24bc738b986" args="" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#e573865a85552614f260c24bc738b986">$webPath</a> = ''</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4a72b7f7ab91959fa7bdc044ce6b278c"></a><!-- doxytag: member="t3lib_basicFileFunctions::$isInit" ref="4a72b7f7ab91959fa7bdc044ce6b278c" args="" --> </td><td class="memItemRight" valign="bottom"><a class="el" href="classt3lib__basicFileFunctions.html#4a72b7f7ab91959fa7bdc044ce6b278c">$isInit</a> = 0</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> <p> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00081">81</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>.<hr><h2>Member Function Documentation</h2> <a class="anchor" name="658627827460f190510888cea00e5f88"></a><!-- doxytag: member="t3lib_basicFileFunctions::blindPath" ref="658627827460f190510888cea00e5f88" args="($thePath)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::blindPath </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>thePath</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Removes filemount part of a path, thus blinding the position. Takes a path, $thePath, and removes the part of the path which equals the filemount.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>$thePath is a path which MUST be found within one of the internally set filemounts, $this->mounts </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>string The processed input path </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00362">362</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. </td> </tr> </table> <a class="anchor" name="aee53ff6f0b94734f2da0052c7968816"></a><!-- doxytag: member="t3lib_basicFileFunctions::checkFileNameLen" ref="aee53ff6f0b94734f2da0052c7968816" args="($fileName)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::checkFileNameLen </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>fileName</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns true if the input filename string is shorter than $this->maxInputNameLen.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Filename, eg "somefile.html" </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>boolean </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00241">241</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> Referenced by <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00713">t3lib_extFileFunctions::func_newfile()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00683">t3lib_extFileFunctions::func_newfolder()</a>, and <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00637">t3lib_extFileFunctions::func_rename()</a>. </td> </tr> </table> <a class="anchor" name="2ffff20721ff0e9675e23825b2cbdfa6"></a><!-- doxytag: member="t3lib_basicFileFunctions::checkIfAllowed" ref="2ffff20721ff0e9675e23825b2cbdfa6" args="($ext, $theDest, $filename='')" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::checkIfAllowed </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname" nowrap> <em>ext</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>$ </td> <td class="mdname" nowrap> <em>theDest</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>$ </td> <td class="mdname" nowrap> <em>filename</em> = <code>''</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> If the filename is given, check it against the TYPO3_CONF_VARS[BE][fileDenyPattern] + Checks if the $ext fileextension is allowed in the path $theDest (this is based on whether $theDest is below the $this->webPath)<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>File extension, eg. "php" or "html" </td></tr> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Absolute path for which to test </td></tr> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Filename to check against TYPO3_CONF_VARS[BE][fileDenyPattern] </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>boolean True if extension/filename is allowed </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00231">231</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00172">is_allowed()</a>, <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00211">is_webpath()</a>, and <a class="el" href="class_8t3lib__div_8php-source.html#l03385">t3lib_div::verifyFilenameAgainstDenyPattern()</a>. <p> Referenced by <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00451">t3lib_extFileFunctions::func_copy()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00750">t3lib_extFileFunctions::func_edit()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00542">t3lib_extFileFunctions::func_move()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00713">t3lib_extFileFunctions::func_newfile()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00637">t3lib_extFileFunctions::func_rename()</a>, and <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00782">t3lib_extFileFunctions::func_upload()</a>. </td> </tr> </table> <a class="anchor" name="f98da4969a4b7f30ae21b396fab54439"></a><!-- doxytag: member="t3lib_basicFileFunctions::checkIfFullAccess" ref="f98da4969a4b7f30ae21b396fab54439" args="($theDest)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::checkIfFullAccess </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>theDest</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns true if you can operate of ANY file ('*') in the space $theDest is in ('webspace' / 'ftpspace')<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Absolute path </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>boolean </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00197">197</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00211">is_webpath()</a>. <p> Referenced by <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00451">t3lib_extFileFunctions::func_copy()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00542">t3lib_extFileFunctions::func_move()</a>, and <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00821">t3lib_extFileFunctions::func_unzip()</a>. </td> </tr> </table> <a class="anchor" name="1e3e196d567005e88e6e327e6fc2d4b6"></a><!-- doxytag: member="t3lib_basicFileFunctions::checkPathAgainstMounts" ref="1e3e196d567005e88e6e327e6fc2d4b6" args="($thePath)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::checkPathAgainstMounts </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>thePath</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Checks if $thePath is a path under one of the paths in $this->mounts See comment in the header of this class.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>$thePath MUST HAVE a trailing '/' in order to match correctly with the mounts </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>string The key to the first mount found, otherwise nothing is returned. </dd></dl> <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classt3lib__basicFileFunctions.html#cb4216ea549f496f66c865ea3d851163">init()</a> </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00326">326</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__div_8php-source.html#l01132">t3lib_div::isFirstPartOfStr()</a>. <p> Referenced by <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00328">t3lib_extFileFunctions::findRecycler()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00451">t3lib_extFileFunctions::func_copy()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00384">t3lib_extFileFunctions::func_delete()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00750">t3lib_extFileFunctions::func_edit()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00542">t3lib_extFileFunctions::func_move()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00713">t3lib_extFileFunctions::func_newfile()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00683">t3lib_extFileFunctions::func_newfolder()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00637">t3lib_extFileFunctions::func_rename()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00821">t3lib_extFileFunctions::func_unzip()</a>, and <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00782">t3lib_extFileFunctions::func_upload()</a>. </td> </tr> </table> <a class="anchor" name="15ce99ac301b949ce6398c1c99351fdc"></a><!-- doxytag: member="t3lib_basicFileFunctions::cleanDirectoryName" ref="15ce99ac301b949ce6398c1c99351fdc" args="($theDir)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::cleanDirectoryName </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>theDir</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Removes all dots, slashes and spaces after a path...<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Input string </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>string Output string </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00412">412</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> Referenced by <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00328">t3lib_extFileFunctions::findRecycler()</a>, and <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00251">is_directory()</a>. </td> </tr> </table> <a class="anchor" name="4bebf55d42f542fd842e23a9d2ca686d"></a><!-- doxytag: member="t3lib_basicFileFunctions::cleanFileName" ref="4bebf55d42f542fd842e23a9d2ca686d" args="($fileName, $charset='')" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::cleanFileName </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname" nowrap> <em>fileName</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>$ </td> <td class="mdname" nowrap> <em>charset</em> = <code>''</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns a string where any character not matching [.a-zA-Z0-9_-] is substituted by '_'<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Input string, typically the body of a filename </td></tr> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Charset of the a filename (defaults to current charset; depending on context) </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>string Output string with any characters not matching [.a-zA-Z0-9_-] is substituted by '_' </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00446">446</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__div_8php-source.html#l03984">t3lib_div::makeInstance()</a>. <p> Referenced by <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00713">t3lib_extFileFunctions::func_newfile()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00683">t3lib_extFileFunctions::func_newfolder()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00637">t3lib_extFileFunctions::func_rename()</a>, and <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00782">t3lib_extFileFunctions::func_upload()</a>. </td> </tr> </table> <a class="anchor" name="b0280502f5908fc18962fcea248ab2ab"></a><!-- doxytag: member="t3lib_basicFileFunctions::findFirstWebFolder" ref="b0280502f5908fc18962fcea248ab2ab" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::findFirstWebFolder </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Find first web folder (relative to PATH_site.'fileadmin') in filemounts array<p> <dl compact><dt><b>Returns:</b></dt><dd>string The key to the first mount inside PATH_site."fileadmin" found, otherwise nothing is returned. </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00342">342</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__div_8php-source.html#l01132">t3lib_div::isFirstPartOfStr()</a>. </td> </tr> </table> <a class="anchor" name="d9329bd3e0be2a1cbaa566b345df9929"></a><!-- doxytag: member="t3lib_basicFileFunctions::findTempFolder" ref="d9329bd3e0be2a1cbaa566b345df9929" args="()" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::findTempFolder </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Find temporary folder Finds the first $this->tempFN ('_temp_' usually) -folder in the internal array of filemounts, $this->mounts<p> <dl compact><dt><b>Returns:</b></dt><dd>string Returns the path if found, otherwise nothing if error. </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00378">378</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. </td> </tr> </table> <a class="anchor" name="fcb9cc2f020b800b081f2a2b84dcab39"></a><!-- doxytag: member="t3lib_basicFileFunctions::formatSize" ref="fcb9cc2f020b800b081f2a2b84dcab39" args="($sizeInBytes)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::formatSize </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>sizeInBytes</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Formats an integer, $sizeInBytes, to Mb or Kb or just bytes<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>integer</em> </td><td>Bytes to be formated </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>string Formatted with M,K or appended. </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00480">480</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. </td> </tr> </table> <a class="anchor" name="ec70c9dfd1db2a02881195e228507d7d"></a><!-- doxytag: member="t3lib_basicFileFunctions::getTotalFileInfo" ref="ec70c9dfd1db2a02881195e228507d7d" args="($wholePath)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::getTotalFileInfo </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>wholePath</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns an array with a whole lot of fileinformation.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Filepath to existing file. Should probably be absolute. Filefunctions are performed on this value. </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>array Information about the file in the filepath </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00152">152</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__div_8php-source.html#l00994">t3lib_div::split_fileref()</a>. </td> </tr> </table> <a class="anchor" name="b1666354e4dcde7da32b186074209d99"></a><!-- doxytag: member="t3lib_basicFileFunctions::getUniqueName" ref="b1666354e4dcde7da32b186074209d99" args="($theFile, $theDest, $dontCheckForUnique=0)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::getUniqueName </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname" nowrap> <em>theFile</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>$ </td> <td class="mdname" nowrap> <em>theDest</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>$ </td> <td class="mdname" nowrap> <em>dontCheckForUnique</em> = <code>0</code></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns the destination path/filename of a unique filename/foldername in that path. If $theFile exists in $theDest (directory) the file have numbers appended up to $this->maxNumber. Hereafter a unique string will be appended. This function is used by fx. TCEmain when files are attached to records and needs to be uniquely named in the uploads/* folders<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>The input filename to check </td></tr> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>The directory for which to return a unique filename for $theFile. $theDest MUST be a valid directory. Should be absolute. </td></tr> <tr><td valign="top"></td><td valign="top"><em>boolean</em> </td><td>If set the filename is returned with the path prepended without checking whether it already existed! </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>string The destination absolute filepath (not just the name!) of a unique filename/foldername in that path. </dd></dl> <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classt3lib__TCEmain.html#bfef134e83aac320e49eb4f4714bf4e0">t3lib_TCEmain::checkValue()</a> </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00283">283</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00251">is_directory()</a>, and <a class="el" href="class_8t3lib__div_8php-source.html#l00994">t3lib_div::split_fileref()</a>. <p> Referenced by <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00451">t3lib_extFileFunctions::func_copy()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00542">t3lib_extFileFunctions::func_move()</a>, and <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00782">t3lib_extFileFunctions::func_upload()</a>. </td> </tr> </table> <a class="anchor" name="cb4216ea549f496f66c865ea3d851163"></a><!-- doxytag: member="t3lib_basicFileFunctions::init" ref="cb4216ea549f496f66c865ea3d851163" args="($mounts, $f_ext)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::init </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname" nowrap> <em>mounts</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>$ </td> <td class="mdname" nowrap> <em>f_ext</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Constructor This function should be called to initialise the internal arrays $this->mounts and $this->f_ext<p> A typical example of the array $mounts is this: $mounts[xx][path] = (..a mounted path..) the 'xx'-keys is just numerical from zero. There are also a [name] and [type] value that just denotes the mountname and type. Not used for athentication here. $this->mounts is traversed in the function checkPathAgainstMounts($thePath), and it is checked that $thePath is actually below one of the mount-paths The mountpaths are with a trailing '/'. $thePath must be with a trailing '/' also! As you can see, $this->mounts is very critical! This is the array that decides where the user will be allowed to copy files!! Typically the global var $WEBMOUNTS would be passed along as $mounts<p> A typical example of the array $f_ext is this: $f_ext['webspace']['allow']=''; $f_ext['webspace']['deny']='php3,php'; $f_ext['ftpspace']['allow']='*'; $f_ext['ftpspace']['deny']=''; The control of fileextensions goes in two catagories. Webspace and Ftpspace. Webspace is folders accessible from a webbrowser (below TYPO3_DOCUMENT_ROOT) and ftpspace is everything else. The control is done like this: If an extension matches 'allow' then the check returns true. If not and an extension matches 'deny' then the check return false. If no match at all, returns true. You list extensions comma-separated. If the value is a '*' every extension is allowed The list is case-insensitive when used in this class (see <a class="el" href="classt3lib__basicFileFunctions.html#cb4216ea549f496f66c865ea3d851163">init()</a>) Typically TYPO3_CONF_VARS['BE']['fileExtensions'] would be passed along as $f_ext.<p> Example: $basicff->init($GLOBALS['FILEMOUNTS'],$TYPO3_CONF_VARS['BE']['fileExtensions']);<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>array</em> </td><td>Contains the paths of the file mounts for the current BE user. Normally $GLOBALS['FILEMOUNTS'] is passed. This variable is set during backend user initialization; $FILEMOUNTS = $BE_USER->returnFilemounts(); (see typo3/init.php) </td></tr> <tr><td valign="top"></td><td valign="top"><em>array</em> </td><td>Array with information about allowed and denied file extensions. Typically passed: $TYPO3_CONF_VARS['BE']['fileExtensions'] </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>void </dd></dl> <dl compact><dt><b>See also:</b></dt><dd>typo3/init.php, <a class="el" href="classt3lib__userAuthGroup.html#cecc25ae9266a954d47a340c0e390065">t3lib_userAuthGroup::returnFilemounts()</a> </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00133">133</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00089">$f_ext</a>, <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00090">$mounts</a>, <a class="el" href="incfile_8php-source.html#l00046">t3lib_div::getIndpEnv()</a>, and <a class="el" href="class_8t3lib__div_8php-source.html#l00980">t3lib_div::uniqueList()</a>. </td> </tr> </table> <a class="anchor" name="23ec7c8f4641a3b09387c76e426d274b"></a><!-- doxytag: member="t3lib_basicFileFunctions::is_allowed" ref="23ec7c8f4641a3b09387c76e426d274b" args="($iconkey, $type)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::is_allowed </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname" nowrap> <em>iconkey</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>$ </td> <td class="mdname" nowrap> <em>type</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Checks if a $iconkey (fileextension) is allowed according to $this->f_ext.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>The extension to check, eg. "php" or "html" etc. </td></tr> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Either "webspage" or "ftpspace" - points to a key in $this->f_ext </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>boolean True if file extension is allowed. </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00172">172</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__div_8php-source.html#l00835">t3lib_div::inList()</a>. <p> Referenced by <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00231">checkIfAllowed()</a>. </td> </tr> </table> <a class="anchor" name="76c7a8883057f01e11c52a72659490af"></a><!-- doxytag: member="t3lib_basicFileFunctions::is_directory" ref="76c7a8883057f01e11c52a72659490af" args="($theDir)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::is_directory </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>theDir</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Cleans $theDir for slashes in the end of the string and returns the new path, if it exists on the server.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Directory path to check </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>string Returns the cleaned up directory name if OK, otherwise false. </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00251">251</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00412">cleanDirectoryName()</a>, and <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00268">isPathValid()</a>. <p> Referenced by <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00451">t3lib_extFileFunctions::func_copy()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00384">t3lib_extFileFunctions::func_delete()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00542">t3lib_extFileFunctions::func_move()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00713">t3lib_extFileFunctions::func_newfile()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00683">t3lib_extFileFunctions::func_newfolder()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00821">t3lib_extFileFunctions::func_unzip()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00782">t3lib_extFileFunctions::func_upload()</a>, and <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00283">getUniqueName()</a>. </td> </tr> </table> <a class="anchor" name="a10aea10557a78598bb963b4e2b412f9"></a><!-- doxytag: member="t3lib_basicFileFunctions::is_webpath" ref="a10aea10557a78598bb963b4e2b412f9" args="($path)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::is_webpath </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>path</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Checks if $this->webPath (should be TYPO3_DOCUMENT_ROOT) is in the first part of $path Returns true also if $this->init is not set or if $path is empty...<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Absolute path to check </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>boolean </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00211">211</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__div_8php-source.html#l01132">t3lib_div::isFirstPartOfStr()</a>, and <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00432">slashPath()</a>. <p> Referenced by <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00231">checkIfAllowed()</a>, and <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00197">checkIfFullAccess()</a>. </td> </tr> </table> <a class="anchor" name="0ab7e72f2dda4562dc13bf5ae549d4d8"></a><!-- doxytag: member="t3lib_basicFileFunctions::isPathValid" ref="0ab7e72f2dda4562dc13bf5ae549d4d8" args="($theFile)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::isPathValid </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>theFile</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Wrapper for <a class="el" href="classt3lib__div.html#beba21fa59f1c0160c54d4174d19baf4">t3lib_div::validPathStr()</a><p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Filepath to evaluate </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>boolean True, if no '//', '..' or '\' is in the $theFile </dd></dl> <dl compact><dt><b>See also:</b></dt><dd><a class="el" href="classt3lib__div.html#beba21fa59f1c0160c54d4174d19baf4">t3lib_div::validPathStr()</a> </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00268">268</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> References <a class="el" href="class_8t3lib__div_8php-source.html#l03346">t3lib_div::validPathStr()</a>. <p> Referenced by <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00328">t3lib_extFileFunctions::findRecycler()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00451">t3lib_extFileFunctions::func_copy()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00384">t3lib_extFileFunctions::func_delete()</a>, <a class="el" href="class_8t3lib__extfilefunc_8php-source.html#l00542">t3lib_extFileFunctions::func_move()</a>, and <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00251">is_directory()</a>. </td> </tr> </table> <a class="anchor" name="50366a579253b9f79804df30ec4d74c9"></a><!-- doxytag: member="t3lib_basicFileFunctions::rmDoubleSlash" ref="50366a579253b9f79804df30ec4d74c9" args="($string)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::rmDoubleSlash </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>string</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Converts any double slashes (//) to a single slash (/)<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Input value </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>string Returns the converted string </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00422">422</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. </td> </tr> </table> <a class="anchor" name="d09eabaac46d863fab78400f5b252c2b"></a><!-- doxytag: member="t3lib_basicFileFunctions::slashPath" ref="d09eabaac46d863fab78400f5b252c2b" args="($path)" --><p> <table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">t3lib_basicFileFunctions::slashPath </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">$ </td> <td class="mdname1" valign="top" nowrap> <em>path</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td> <p> Returns a string which has a slash '/' appended if it doesn't already have that slash<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>string</em> </td><td>Input string </td></tr> </table> </dl> <dl compact><dt><b>Returns:</b></dt><dd>string Output string with a slash in the end (if not already there) </dd></dl> <p> Definition at line <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00432">432</a> of file <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a>. <p> Referenced by <a class="el" href="class_8t3lib__basicfilefunc_8php-source.html#l00211">is_webpath()</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li>typo3_src-4.0.1/t3lib/<a class="el" href="class_8t3lib__basicfilefunc_8php-source.html">class.t3lib_basicfilefunc.php</a></ul> <?php include_once '../doc-typo3-funcs.php'; get_footer(); ?>