소스 검색

made code sane

pull/16/head
mauirixxx 7 년 전
부모
커밋
d03a6c2306
1개의 변경된 파일12개의 추가작업 그리고 9개의 파일을 삭제
  1. +12
    -9
      includes/verifications.php

+ 12
- 9
includes/verifications.php 파일 보기

@@ -30,20 +30,23 @@ function validateUsername($uname) {

####################
# verifying the username doesn't already exist in the database
$username = mysqli_real_escape_string($con, $_POST['username']);
validateUsername($username);
if (!empty($_POST['username'])) {
$username = mysqli_real_escape_string($con, $_POST['username']);
validateUsername($username);
}

####################
# verifying the e-mail address is in a valid format
$verifyemail = validateEmail($_POST['useremail']);
if (empty($verifyemail)) {
echo '<center>This address: ' . $_POST['useremail'] . ' is not a valid e-mail address!<br />Please verify and type it again.<br />';
include_once ('footer.php');
exit();
if (!empty($_POST['useremail'])) {
$verifyemail = validateEmail($_POST['useremail']);
if (empty($verifyemail)) {
echo '<center>This address: ' . $_POST['useremail'] . ' is not a valid e-mail address!<br />Please verify and type it again.<br />';
include_once ('footer.php');
exit();
}
usedEmail($_POST['useremail']);
}

usedEmail($_POST['useremail']);

####################
# verifying passwords match each other



불러오는 중...
취소
저장