..we 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..
xAnalyze is a module that can search through corrupt data and configuration files in order to find the exact position of errors
<?php
/* Path editor
Author: Remco Kouw
Site: http://www.hacksuite.com
Last Edit: 21-02-2015
*/
if(!defined('IN_SCRIPT')){
exit;
}
$_CONTEXT['subtitle'] = "Path Editor";
$sDest = $_PATHS['data_root']."/allowed_paths.php";
(!IsThere($sDest) ? include_once($_PATHS['end']) : include($sDest));
$sJSDev = "<script type=\"text/javascript\" src=\"Templates/".$_PATHS['style_user']."/js/path_edit.js\"></script>\n";
$_CONTEXT['headers'] = isset($_CONTEXT['headers']) ? $_CONTEXT['headers'].$sJSDev : $sJSDev;
$sSelect = "no folders allowed";
if(false!==($iSelect = @count($_CONTEXT['allowedpaths']))){
$sSelect = "<select name=\"sFolderName\">";
for($x=0;$x<$iSelect;$x++){
$sSelect .= "<option value=\"".$_CONTEXT['allowedpaths'][$x]."\">".$_CONTEXT['allowedpaths'][$x]."</option>\n";
}
$sSelect .= "</select>\n";
}
$sCode .= " <form class=\"pathform\"><div class=\"cc_summary emboss borderr5 border1pxtrans pad5 edgeglow\">\n";
$sCode .= " <div class=\"embosshdrnocenter border1pxtrans pad5\">EDIT PATHS</div>\n";
$sCode .= " <div class=\"cc_record\">\n";
$sCode .= " <div class=\"flt pad3 w150\"><b>path variable</b></div><div class=\"flt pad3\">".$sSelect."</div>\n";
$sCode .= " </div>\n";
$sCode .= " <div class=\"clear\" id=\"pathnames\"></div>\n";
$sCode .= " <div class=\"cc_record\">\n";
$sCode .= " <div class=\"flt pad3\"><input type=\"submit\" name=\"submit\" class=\"editpath\" value=\"Edit\" /></div>\n";
$sCode .= " </div>\n";
$sCode .= " <div class=\"clear\"></div>\n";
$sCode .= " </div></form>\n";
?>