diff --git a/Rocksolid_Light/rocksolid/mail.php b/Rocksolid_Light/rocksolid/mail.php index ef85288..6e1566e 100644 --- a/Rocksolid_Light/rocksolid/mail.php +++ b/Rocksolid_Light/rocksolid/mail.php @@ -12,6 +12,33 @@ include "newsportal.php"; include "head.inc"; + $logged_in = false; + if(!isset($_POST['username'])) { + $_POST['username'] = $_COOKIE['cookie_name']; + } + $name = $_POST['username']; + if(password_verify($_POST['username'].get_user_config($_POST['username'],'encryptionkey'), $_COOKIE['auth'])) { + $logged_in = true; + } else { + if(check_bbs_auth($_POST['username'], $_POST['password'])) { + $authkey = password_hash($_POST['username'].get_user_config($_POST['username'],'encryptionkey'), PASSWORD_DEFAULT); +?> + +'; + + echo 'mail / '; + echo htmlspecialchars($_POST['username']).''; + echo ''; // New Message button echo '
'; @@ -39,7 +66,7 @@ if(isset($_POST['username'])) { } } } - if(!check_bbs_auth($_POST['username'], $_POST['password'])) { + if($logged_in !== true) { echo ''; echo ''; echo '';
Please Login