diff --git a/inc/account/account.register.php b/inc/account/account.register.php index 2b3815e..25dcf30 100644 --- a/inc/account/account.register.php +++ b/inc/account/account.register.php @@ -153,7 +153,7 @@ function Register() // @$Enter is the main input arrays into the SDL $Enter = $Account->register( array( - 'username' => $_POST['r_login'], + 'username' => strtoupper($_POST['r_login']), 'sha_pass_hash' => $Account->sha_password($_POST['r_login'],$_POST['r_pass']), 'sha_pass_hash2' => $Account->sha_password($_POST['r_login'],$_POST['r_cpass']), 'email' => $_POST['r_email'], diff --git a/inc/admin/template_files/admin.news.php b/inc/admin/template_files/admin.news.php index bfbc052..3d0c5f8 100644 --- a/inc/admin/template_files/admin.news.php +++ b/inc/admin/template_files/admin.news.php @@ -19,7 +19,7 @@ { if(isset($_POST['subject'])) { - addNews($_POST['subject'],$_POST['message'],$user['username']); + addNews($_POST['subject'],$_POST['message'],$user['id']); } ?>