Skip to: site menu | section menu | main content

Currently viewing: CILS: » Knowledge Base
set_file('main', 'page_main.tpl'); //initialize data files $dbf =& start_database(1); $adaptor = new mwAdaptor($dbf); $obj_id = 0; if( isset($HTTP_GET_VARS['id']) ) $obj_id = $HTTP_GET_VARS['id']; set_global_conf_vars(); //$obj = $adaptor->get_obj($obj_id); // not neccessary to use adaptor, this's mwlCategory $obj = new mwlCategory($obj_id); $obj->load(); $obj->view($tpl, $navpage); quit_database($dbf); function utime() { $time = explode( " ", microtime() ); $usec = (double)$time[0]; $sec = (double)$time[1]; return $sec + $usec; } ?>