..will make a new module and not just some new module, nope let's make a fully automatic injection script! This tutorial is the first step into making this. Let's first explain what we're..
THC xConverter is a tool that makes use of (php) functions in order to calculate, fetch, convert and encrypt data
<?php
/* Native configuration links for menu
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 14-11-2014
*/
if(!defined('IN_SCRIPT')){
exit;
}
if($_CONTEXT['rightdisplay']['show_config']){
include_once($_PATHS['data_root']."/nativeconfig.php");
// filter natives per category
for($i=0;$i<count($_CONTEXT['native']);$i++){
if(!isset($_CONTEXT['cfgcats'][$_CONTEXT['native'][$i][4]])){
$_CONTEXT['cfgcats'][$_CONTEXT['native'][$i][4]] = array();
$_CONTEXT['cfgcats'][$_CONTEXT['native'][$i][4]][] = array($i,$_CONTEXT['native'][$i][0]);
continue;
}
$_CONTEXT['cfgcats'][$_CONTEXT['native'][$i][4]][] = array($i,$_CONTEXT['native'][$i][0]);
}
$_CONTEXT['htmlo'] .= " <div class=\"subname\" id=\"confgrtn\">configuration</div>\n";
$_CONTEXT['htmlo'] .= " <div class=\"confgrtn\">\n";
foreach($_CONTEXT['cfgcats'] as $sKey=>$aValues){
$_CONTEXT['htmlo'] .= " <div class=\"headcat\"><b>".str_replace("_"," ",$sKey)."</b></div>\n";
for($i=0;$i<count($aValues);$i++){
$_CONTEXT['htmlo'] .= " <div class=\"lnk\">- <a class=\"wrapcfg\" id=\"".$aValues[$i][0]."\" href=\"#\">".$aValues[$i][1]."</a></div>\n";
}
}
$_CONTEXT['htmlo'] .= " </div>\n";
}
?>