X-Git-Url: http://git.vanrenterghem.biz/www.vanrenterghem.biz.git/blobdiff_plain/4b1ce0d83844cfd7c55e75a60ccb239882cd62e3..83ab5456767602f2a9860a7db7247f002ec96945:/phpBB2_old/profile.php diff --git a/phpBB2_old/profile.php b/phpBB2_old/profile.php deleted file mode 100644 index 275dd7e..0000000 --- a/phpBB2_old/profile.php +++ /dev/null @@ -1,133 +0,0 @@ - 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/'; - -$server_url = $server_protocol . $server_name . $server_port . $script_name; - -// ----------------------- -// Page specific functions -// -function gen_rand_string($hash) -{ - $chars = array( 'a', 'A', 'b', 'B', 'c', 'C', 'd', 'D', 'e', 'E', 'f', 'F', 'g', 'G', 'h', 'H', 'i', 'I', 'j', 'J', 'k', 'K', 'l', 'L', 'm', 'M', 'n', 'N', 'o', 'O', 'p', 'P', 'q', 'Q', 'r', 'R', 's', 'S', 't', 'T', 'u', 'U', 'v', 'V', 'w', 'W', 'x', 'X', 'y', 'Y', 'z', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0'); - - $max_chars = count($chars) - 1; - srand( (double) microtime()*1000000); - - $rand_str = ''; - for($i = 0; $i < 8; $i++) - { - $rand_str = ( $i == 0 ) ? $chars[rand(0, $max_chars)] : $rand_str . $chars[rand(0, $max_chars)]; - } - - return ( $hash ) ? md5($rand_str) : $rand_str; -} -// -// 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; - } - - include($phpbb_root_path . 'includes/usercp_confirm.'.$phpEx); - 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)); - -?> \ No newline at end of file