..I will show you how to create native tools. I'm not going to make a new tool though, instead I will show you what is required to create one. You can find all the native tools in the..
<?php
/* phpMyAdmin finder */
if(!defined("IN_SCRIPT")){
exit;
}
$aFile = file($_PATHS['module_default_root']."/pma.txt");
echo Screen("<br />\n<b>Looking up phpMyAdmin...</b><blockquote>\n",$_CONTEXT['verbose'],$_CONTEXT['silent']);
$bFound = false;
for($y=0;$y<count($aFile);$y++){
$ch = curl_init();
$sTarget = $sHost."/".trim($aFile[$y]);
curl_setopt($ch, CURLOPT_URL, $sTarget);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101506 Ubuntu/10.04 (lucid) Firefox/3.6.13 GTB7.1');
$sResult = @curl_exec($ch);
$iHTTP = @curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if($iHTTP==200){
echo Screen("<b id=h6>Found phpMyAdmin in ".$sTarget."</b><br>\n\n",$_CONTEXT['verbose'],$_CONTEXT['silent']);
$bFound = true;
break;
}
else{
echo"[".$iHTTP."] => ".$sTarget."<br />";
}
@curl_close($ch);
}
if(!$bFound){
echo Screen("<b id=h7>Failed to find phpMyAdmin</b><br>\n\n",$_CONTEXT['verbose'],$_CONTEXT['silent']);
}
echo Screen("</blockquote>\n",$_CONTEXT['verbose'],$_CONTEXT['silent']);
flush();
ob_flush();
?>