action($action, $type); //allでのみアクセスできるページ $GLOBALS['_OPENPNE_ADMIN_AUTH_ACTIONS'] = array( 'page_insert_c_admin_user', 'page_list_c_admin_user', 'page_passwd', 'do_delete_c_admin_user', 'do_insert_c_admin_user', 'do_passwd', 'do_update_c_commu_is_regist_join', 'do_update_is_login_rejected', ); function init_admin_biz_page(&$smarty) { $is_secure = $GLOBALS['__Framework']['is_secure']; $smarty->assign('inc_header', admin_fetch_inc_header($is_secure)); $smarty->assign('inc_footer', admin_fetch_inc_footer($is_secure)); $v['module_name'] = ADMIN_BIZ_MODULE_NAME; $smarty->assign($v); $smarty->assign_by_ref('hash_tbl', AdminHashTable::singleton()); if ($is_secure) { @session_start(); $smarty->assign('PHPSESSID', md5(session_id())); $auth_type = admin_get_auth_type(); $smarty->assign('auth_type', $auth_type); $act = sprintf('page_%s', $GLOBALS['__Framework']['current_action']); if ($auth_type != 'all' && in_array($act, $GLOBALS['_OPENPNE_ADMIN_AUTH_ACTIONS'])) { admin_biz_client_redirect('top', '指定されたページにはアクセスできません'); } } } function init_admin_biz_do() { $is_secure = $GLOBALS['__Framework']['is_secure']; if ($is_secure) { @session_start(); if ($_REQUEST['sessid'] !== md5(session_id())) { openpne_display_error('前の画面を再読み込みして、操作をやり直してください'); } $auth_type = admin_get_auth_type(); $act = sprintf('do_%s', $GLOBALS['__Framework']['current_action']); if ($auth_type != 'all' && in_array($act, $GLOBALS['_OPENPNE_ADMIN_AUTH_ACTIONS'])) { admin_biz_client_redirect('top', '指定されたページにはアクセスできません'); } } } ?>