80 ) ? ':' . trim($board_config['server_port']) . '/' : '/'; $server_url = $server_protocol . $server_name . $server_port . $script_name; // ----------------------- // Page specific functions // function gen_rand_string($hash) { $rand_str = dss_rand(); return ( $hash ) ? md5($rand_str) : substr($rand_str, 0, 8); } // // End page specific functions // --------------------------- // // Start of program proper // if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) { $mode = ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; $mode = htmlspecialchars($mode); if ( $mode == 'viewprofile' ) { include($phpbb_root_path . 'includes/usercp_viewprofile.'.$phpEx); exit; } else if ( $mode == 'editprofile' || $mode == 'register' ) { if ( !$userdata['session_logged_in'] && $mode == 'editprofile' ) { redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true)); } include($phpbb_root_path . 'includes/usercp_register.'.$phpEx); exit; } else if ( $mode == 'confirm' ) { // Visual Confirmation if ( $userdata['session_logged_in'] ) { exit; } // Start Anti-Spam ACP MOD include($phpbb_root_path . 'includes/usercp_captcha.'.$phpEx); // End Anti-Spam ACP MOD exit; } else if ( $mode == 'sendpassword' ) { include($phpbb_root_path . 'includes/usercp_sendpasswd.'.$phpEx); exit; } else if ( $mode == 'activate' ) { include($phpbb_root_path . 'includes/usercp_activate.'.$phpEx); exit; } else if ( $mode == 'email' ) { include($phpbb_root_path . 'includes/usercp_email.'.$phpEx); exit; } } redirect(append_sid("index.$phpEx", true)); ?>