<? if (count($output) > 0) { ?> <table border=0 width='100%' cellspacing=0 cellpadding=0> <? //exec("find ./modules -name '_info_.php'",$output); //print_r($output[0]); for ($i=0; $i < count($output); $i++) { $mod_type = ""; // checks if module is a service include $output[$i]; $module_path = str_replace("_info_.php","",$output[$i]); if ($mod_panel == "show" and $mod_type != "service") { addDivs("mod_$mod_name", "$mod_alias", "modules/$mod_name/", "$mod_logs", "$mod_logs_panel"); $mod_panel = ""; $mod_alias = ""; /* echo "<tr>"; echo "<td align='right' style='padding-right:5px; padding-left:5px; padding-bottom:1px; width:10px' nowrap>"; if ($mod_alias != "") { echo $mod_alias; } else { echo $mod_name; } echo "</td>"; echo "<td align='left' style='padding-right:5px; padding-left:5px; ' nowrap>"; if ($mod_panel == "show") {
//if (count($output) > 0) { ?> <div class="rounded-top" align="center"> Modules </div> <div class="rounded-bottom"> <?php if (count($output) > 0) { ?> <table border=0 width='100%' cellspacing=0 cellpadding=0> <?php //exec("find ./modules -name '_info_.php'",$output); //print_r($output[0]); for ($i = 0; $i < count($output); $i++) { include $output[$i]; $module_path = str_replace("_info_.php", "", $output[$i]); if ($mod_panel == "show") { addDivs("mod_{$mod_name}", "{$mod_alias}", "modules/{$mod_name}/", "{$mod_logs}"); $mod_panel = ""; $mod_alias = ""; /* echo "<tr>"; echo "<td align='right' style='padding-right:5px; padding-left:5px; padding-bottom:1px; width:10px' nowrap>"; if ($mod_alias != "") { echo $mod_alias; } else { echo $mod_name; } echo "</td>"; echo "<td align='left' style='padding-right:5px; padding-left:5px; ' nowrap>"; if ($mod_panel == "show") { $isModuleUp = exec($mod_isup); if ($isModuleUp != "") {