"); writeHeaders($modules); echo (""); /* Setting layout */ echo('
'); writeTop(); echo('
'); echo ('
'); /* Writing menus with all modules and submodules */ /* it returns a list of files to include (components) */ $components=writeMenu($modules); echo ("
"); echo ('
'); /* Main Space for modules content */ importModuleContent($modules, $components); echo ("
"); importCommonLibraries(); importModuleLibraries($modules); importCommonScripts(); importModuleScripts($modules); echo (""); echo (""); /* Main Functions */ function writeTop(){ //echo (''); echo ("

Administra el servidor

"); } function writeHeaders($mod){ ?> "); } } ?> "; require("info.php"); echo ""; foreach ($modules as $module){ echo "
"; require("modules/$module/src/main.html"); echo "
"; // Loading components in module } foreach ($components as $component){ echo "
"; require($component['1']); echo "
"; } } ?> '); echo (''); echo (''); echo (''); echo (''); echo (''); }; function importModuleLibraries($modules){ /* */ foreach ($modules as $module){ if(is_dir("modules/$module/src/lib")){ $scripts=array_diff(scandir("modules/$module/src/lib"), array('..', '.')); foreach ($scripts as $script){ echo (""); } } } }; function importCommonScripts(){ /* Common Scripts */ echo(''); echo(''); }; function importModuleScripts($modules){ /* Reading module Scripts */ foreach ($modules as $module){ $scripts=array_diff(scandir("modules/$module/src/js"), array('..', '.')); foreach ($scripts as $script){ echo (""); } } } ?>