..tutorial 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..
THC Sscan is a very versatile tool for scanning (html) files
<?php
/* Render extra html headers
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 14-11-2014
*/
if(!defined('IN_SCRIPT')){
exit;
}
$sDest = $_PATHS['data_root']."/header.php";
(!IsThere($sDest) ? include_once($_PATHS['end']) : include_once($sDest));
// ok let's create the context headers for the html
$_CONTEXT['headers'] = "";
foreach($_HEADER_D[$_JS_PROFILE] as $sItem=>$aValue){
for($x=0;$x<count($aValue);$x++){
// relative path
$aValue[$x] = substr($aValue[$x],strlen($_PATHS['root_http'])+1);
$_CONTEXT['headers'] .= ($sItem=="css" ? "<link rel=\"stylesheet\" href=\"".$aValue[$x]."\" type=\"text/css\" />" : "<script type=\"text/javascript\" src=\"".$aValue[$x]."\"></script>")."\n";
}
}
?>