..index page for the suite. It's very easy because the only thing you need to do is change the content of default.php. I don't want to create something like hello world or..
Creates a blueprint/map of a server folder
<?php
/* Validate environments paths
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 07-03-2015
*/
if(!defined('IN_SCRIPT')){
exit;
}
(!IsThere($_PATHS['functions_root']."/getfilebydir.php") ? include_once($_PATHS['end']) : include_once($_PATHS['functions_root']."/getfilebydir.php"));
(!IsThere($_PATHS['functions_root']."/getdirbydir.php") ? include_once($_PATHS['end']) : include_once($_PATHS['functions_root']."/getdirbydir.php"));
$sCode .= " <div class=\"emboss borderr5 border1pxtrans pad5 edgeglow overflw\">\n";
$sCode .= " <div class=\"embosshdrnocenter border1pxtrans pad10\">Validate Paths</div>\n";
foreach($_PATHS as $sName=>$sValue){
$sCode .= " <div class=\"cc_record\">\n";
$sCode .= " <div class=\"flt pad3 w200\"><b>".$sName."</b></div><div class=\"flt pad3 w400\">\n";
// windows and linux compatiblity
if(is_file($sValue)){
// it's a file but does it exist?
$sCode .= (!file_exists($sValue) ? "<font style=\"color:#ff0000\">".$sValue : "<font style=\"color:#6a5acd\">".$sValue)."</font>";
}
elseif(is_dir($sValue)){
// it's a directory, let's get the content
if(!$aDirs = GetDirByDir($sValue)){
$aDirs = array();
}
if(!$aRootFiles = GetFilesByDirectory($sValue)){
$aRootFiles = array();
}
/* map directory */
$sCode .= " <div><b>files:</b> ".count($aRootFiles)." <b>sub-folders:</b>".count($aDirs)."</div>";
}
else{
$aUrl = @parse_url($sValue);
$sCode .= (isset($aUrl['host']) ? $sValue : " [path identifier: ".$sValue."]");
}
$sCode .= " </div>\n";
$sCode .= " </div>\n";
$sCode .= " <div class=\"clear\"></div>\n";
}
$sCode .= " </div>\n";
?>