1<?php 2// $Id: index.php,v 1.38 2003/11/12 15:10:20 leyeti Exp $ 3 4$myEnv["module"] = "overview"; 5$myEnv["output"] = "html"; 6$myEnv["stdsmenu"] = false; 7 8include("../../config.inc.php"); 9include(INCLUDEPATH . "container.inc.php"); 10 11// adding file revision into global array 12if(function_exists("revisionInit")) revisionInit("\$Revision: 1.38 $", __FILE__); 13 14$tabs = array(); 15$i = 0; 16$j = 0; 17if(is_array($_SESSION["MGW"]->settings["overview_get_modules"])){ 18 $_SESSION["MGW"]->settings["overview_get_modules"] = array_unique ($_SESSION["MGW"]->settings["overview_get_modules"]); 19 foreach ($_SESSION["MGW"]->settings["overview_get_modules"] as $module) { 20 $inc_file = ROOTPATH."/modules/".$module."/inc/overview.inc.php"; 21 if(!empty($module) && file_exists($inc_file) && isModuleInstalled($module) && isModuleActive($module) && queryRights2_bool('root_modules_'.$module.'_accessmodule')) { 22 include_once($inc_file); 23 $func = "get".$module; 24 $tabs[$j][]= $func(); 25 $i++; 26 if($i%3==0) $j++; 27 } 28 } 29} 30 31// refresh overview for local subnets 32if((substr($_SERVER["REMOTE_ADDR"],0,8) == '192.168.') || 33 (substr($_SERVER["REMOTE_ADDR"],0,7) == '172.16.') || 34 (substr($_SERVER["REMOTE_ADDR"],0,3) == '10.') || 35 (substr($_SERVER["REMOTE_ADDR"],0,6) == '127.0.') 36 ) 37 $smarty->assign('refreshjs', " onLoad=window.setTimeout(\"location.href='index.php?".SID."'\",900000)"); 38 39$smarty->assign('tabs', $tabs); 40$smarty->assign('fullname', $_SESSION["MGW"]->fullusername); 41$smarty->display("overview.tpl"); 42?> 43