..we are going to create a new app for the hacksuite. We're not going to do anything fancy here, we will make a simple app to get familiar how to write compatible scripts for the..
Creates a blueprint/map of a server folder
<?php
/* General output, depending on the template you would normally see this in the right container
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 21-03-2015
*/
if(!defined('IN_SCRIPT')){
exit;
}
$_CONTEXT['htmlo'] .= " </div>\n";
$_CONTEXT['htmlo'] .= " <div class=\"data\">\n";
if(!defined('DEFAULT_PAGE')){
$_CONTEXT['htmlo'] .= " <div class=\"title\">".(isset($_CONTEXT['subtitle']) ? $_CONTEXT['subtitle'] : "No title set for page")."</div>\n";
}
$_CONTEXT['htmlo'] .= " <div class=\"clickwrap\"></div>\n";
// output of the main content
$_CONTEXT['htmlo'] .= ($sCode=="" ? " [ no code data defined, expecting variable <b>\$sCode</b> ]" : $sCode)."\n";
// debugging?
if($_CONTEXT['debug']==true && @count($_CONTEXT['errors'])>0){
// here we go, dump the environment
$_CONTEXT['htmlo'] .= "<hr>\n";
for($x=0;$x<count($_CONTEXT['debug_vars']);$x++){
$_CONTEXT['htmlo'] .= "<b>\$".$_CONTEXT['debug_vars'][$x]."</b><br>\n".var_export(${$_CONTEXT['debug_vars'][$x]},true)."<br>\n";
}
}
$_CONTEXT['htmlo'] .= " </div>\n";
$_CONTEXT['htmlo'] .= "</div>\n";
$_CONTEXT['htmlo'] .= "</div>\n";
$sDest = $_PATHS['style_root']."/page_footer.php";
(!IsThere($sDest) ? include_once($_PATHS['end']) : include_once($sDest));
$_CONTEXT['htmlo'] .= "</body>\n";
?>