..a different index page for the suite. It's very easy because the only thing you need to do is change the content of default.php. I don't want to create something like hello world..
THC Sscan is a very versatile tool for scanning (html) files
<?php
/* This is the task bot */
if(!isset($_GET['start']) || !isset($_GET['module'])){
// prevent errors from occuring when someone doesn't specify the correct parameters (if error reporting displays warnings)
exit;
}
include_once("./Functions/raw_to_array.php");
$sDest = "./Data/running.txt";
if(false!==($aFileData = RawToArray($sDest))){
for($x=0;$x<count($aFileData);$x++){
if($aFileData[$x][2]==0 && $aFileData[$x][1]==$_GET['start'] && $aFileData[$x][0]==$_GET['module']){
// note for later releases, set task class dynamic, eg task_long for very long tasks
echo"<div class=\"task\"><b>".$_GET['module']."</b>: ".(time() - $aFileData[$x][1])." (s)</div>\n";
break;
}
elseif($aFileData[$x][2]!=0 && $aFileData[$x][1]==$_GET['start'] && $aFileData[$x][0]==$_GET['module']){
echo"<div class=\"task\"><b>".$_GET['module']."</b>: completed</div>\n";
break;
}
}
}
else{
echo"<div class=\"task\"><b>no tasks running</b></div>\n";
}
?>