?> <table width="100%" border="1" cellspacing="2" cellpadding="0"> <tr> <td></td> <td><p>List of all log files (specified by "error_log" in php.ini file) at or below the current directory.</p> <?php print "<p>error_log setting: $errFile</p>\n"; print "<p>current web directory: $webRoot</p>\n"; print "<p>current file direcory: $dirRoot</p>\n"; foreach ($List as $dir){ $tmp = str_replace("\\", '/', $dir); $ds = $me.'?delete='.$dirRoot.$dir; print '<tr><td><a href="'.$webRoot.$tmp.'" target="_blank">view</a></td><td>'.$dir.'</td><td><a href="'.$ds.'">delete</a></td></tr>'."\n"; } // foreach list print '<tr><td></td><td><form action ="'.$me.'" method="get" name="FindErrLog">'."\n"; ?> <p><input type="submit" name="bnStart" value="Search" border="0"></p> </form></td> </table> </body> </html> <?php flush(); exit; ?>
DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.