Adds several strtolower() functions
This commit is contained in:
parent
653fca9dd7
commit
fb9b0459bc
4 changed files with 7 additions and 0 deletions
|
@ -65,6 +65,7 @@ class USER {
|
|||
global $db;
|
||||
// Prepare e-mail address
|
||||
$email = $db->escape_string($email);
|
||||
$email = strtolower($email);
|
||||
$password = $db->escape_string($password);
|
||||
$email_part = explode("@", $email);
|
||||
$username = $email_part[0];
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
if(isset($_POST['domain'])){
|
||||
$domain = $db->escape_string($_POST['domain']);
|
||||
$domain = strtolower($domain);
|
||||
|
||||
if($domain !== ""){
|
||||
// Check if domain exists in database
|
||||
|
|
|
@ -6,7 +6,9 @@
|
|||
$id = $db->escape_string($_POST['id']);
|
||||
|
||||
$source = $db->escape_string($_POST['source']);
|
||||
$source = strtolower($source);
|
||||
$destination = $db->escape_string($_POST['destination']);
|
||||
$destination = strtolower($destination);
|
||||
|
||||
if($source !== "" && $destination !== ""){
|
||||
|
||||
|
@ -27,7 +29,9 @@
|
|||
|
||||
else if($savemode === "create"){
|
||||
$source = $db->escape_string($_POST['source']);
|
||||
$source = strtolower($source);
|
||||
$destination = $db->escape_string($_POST['destination']);
|
||||
$destination = strtolower($destination);
|
||||
|
||||
if($source !== "" && $destination !== ""){
|
||||
$sql = "INSERT INTO `".DBT_ALIASES."` (`".DBC_ALIASES_SOURCE."`, `".DBC_ALIASES_DESTINATION."`) VALUES ('$source', '$destination')";
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
else if($savemode === "create"){
|
||||
// Create mode entered
|
||||
$username = $db->escape_string($_POST['username']);
|
||||
$username = strtolower($username);
|
||||
$domain = $db->escape_string($_POST['domain']);
|
||||
if(defined('DBC_USERS_MAILBOXLIMIT')){
|
||||
$mailbox_limit = $db->escape_string($_POST['mailbox_limit']);
|
||||
|
|
Loading…
Add table
Reference in a new issue