..one or more modules you must have seen the iframes used for realtime result display. In this tutorial I'm going to show you how to insert them into your module and how they..
<?php
/* Delete Directory handler
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 14-11-2014
*/
if(!defined('IN_SCRIPT')){
exit;
}
if(!is_dir($sDest)){
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['error']."Invalid source directory<p><a href=\"development.php?action=list\">[ back ]</a></p></div>\n";
}
else{
$oIterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($sDest),RecursiveIteratorIterator::CHILD_FIRST);
foreach($oIterator as $oPath){
if($oPath->isDir()){
@rmdir($oPath->__toString());
}
else{
@unlink($oPath->__toString());
}
}
@rmdir($sDest);
$sCode .= "<div class=\"spacingmsg\">".$_CONTEXT['result_headers']['result']."Successfully removed directory<p><a href=\"development.php?action=list\">[ back ]</a></p></div>\n";
}
?>