set_filenames(array('admin' => 'admin.tpl')); $template->assign_vars( array( 'U_HISTORY'=>add_session_id($link_start.'stats' ), 'U_FAQ'=>add_session_id($link_start.'help' ), 'U_SITES'=>add_session_id($link_start.'remote_site'), 'U_MAINTENANCE'=>add_session_id($link_start.'maintenance'), 'U_CONFIG_GENERAL'=>add_session_id($conf_link.'general' ), 'U_CONFIG_COMMENTS'=>add_session_id($conf_link.'comments' ), 'U_CONFIG_DISPLAY'=>add_session_id($conf_link.'default' ), 'U_CONFIG_UPLOAD'=>add_session_id($conf_link.'upload' ), 'U_CONFIG_SESSION'=>add_session_id($conf_link.'session' ), 'U_CONFIG_METADATA'=>add_session_id($conf_link.'metadata' ), 'U_CATEGORIES'=>add_session_id($link_start.'cat_list' ), 'U_CAT_UPLOAD'=>add_session_id($opt_link.'upload'), 'U_CAT_COMMENTS'=>add_session_id($opt_link.'comments'), 'U_CAT_VISIBLE'=>add_session_id($opt_link.'visible'), 'U_CAT_STATUS'=>add_session_id($opt_link.'status'), 'U_CAT_OPTIONS'=>add_session_id($link_start.'cat_options'), 'U_CAT_UPDATE'=>add_session_id($link_start.'update'), 'U_WAITING'=>add_session_id($link_start.'waiting' ), 'U_COMMENTS'=>add_session_id($link_start.'comments' ), 'U_CADDIE'=>add_session_id($link_start.'element_set&cat=caddie'), 'U_THUMBNAILS'=>add_session_id($link_start.'thumbnail' ), 'U_USERS'=>add_session_id($link_start.'user_list' ), 'U_GROUPS'=>add_session_id($link_start.'group_list' ), 'U_RETURN'=>add_session_id(PHPWG_ROOT_PATH.'category.php') ) ); if ($conf['allow_random_representative']) { $template->assign_block_vars( 'representative', array( 'URL' => add_session_id($opt_link.'representative') ) ); } //------------------------------------------------------------- content display $page['errors'] = array(); $page['infos'] = array(); include(PHPWG_ROOT_PATH.'admin/'.$page['page'].'.php'); // +-----------------------------------------------------------------------+ // | errors & infos | // +-----------------------------------------------------------------------+ if (count($page['errors']) != 0) { $template->assign_block_vars('errors',array()); foreach ($page['errors'] as $error) { $template->assign_block_vars('errors.error',array('ERROR'=>$error)); } } if (count($page['infos']) != 0) { $template->assign_block_vars('infos',array()); foreach ($page['infos'] as $info) { $template->assign_block_vars('infos.info',array('INFO'=>$info)); } } $template->parse('admin'); include(PHPWG_ROOT_PATH.'include/page_tail.php'); // +-----------------------------------------------------------------------+ // | order permission refreshment | // +-----------------------------------------------------------------------+ $query = ' UPDATE '.USER_CACHE_TABLE.' SET need_update = \'true\' ;'; pwg_query($query); ?>