Skip to content

Commit

Permalink
Merge branch 'jsnider2-master'
Browse files Browse the repository at this point in the history
Attempt to merge
  • Loading branch information
campZero committed Jan 28, 2017
2 parents 22858b4 + 6c28279 commit 7bdf237
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions includes/mysql_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ function dbconnect($dbhost, $dbuser, $dbpass, $dbname ) {
die(_FATALERROR." "._NOTCONNECTED);
}
mysql_select_db($dbname, $mysql_access);
mysql_query("SET SESSION sql_mode = 'MYSQL40'");
return $mysql_access;
}

Expand Down
1 change: 1 addition & 0 deletions includes/mysqli_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function dbconnect($dbhost, $dbuser, $dbpass, $dbname ) {
include(_BASEDIR."languages/en.php"); // Because we haven't got a language set yet.
die(_FATALERROR." "._NOTCONNECTED);
}
mysqli_query($mysql_access, "SET SESSION sql_mode = 'MYSQL40'");
return $mysql_access;
}

Expand Down
2 changes: 1 addition & 1 deletion install/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function random_string ($charset_string, $length)
$penname = descript($_POST['newpenname']);
if((!$_POST['email']) && !isADMIN) $fail .= "<div style='text-align: center;'>"._EMAILREQUIRED." "._TRYAGAIN."</div>";
if($penname && !preg_match("!^[a-z0-9_ ]{3,30}$!i", $penname)) $fail = "<div style='text-align: center;'>"._BADUSERNAME." "._TRYAGAIN."</div>";
if(!preg_match("/[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+/i", $_POST[email])) $fail = "<div style='text-align: center;'>"._INVALIDEMAIL." "._TRYAGAIN."</div>";
if(!preg_match("/^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9.-]+$/", $_POST[email])) $fail = "<div style='text-align: center;'>"._INVALIDEMAIL." "._TRYAGAIN."</div>";
if($_POST['password'] == $_POST['password2']) $encryptpassword = md5($_POST[password]);
else $fail = write_message(_PASSWORDTWICE);
if(!isset($fail)) {
Expand Down

0 comments on commit 7bdf237

Please sign in to comment.