if (!$updating && trim($password) == "") { $eflag = true; $fields .= " " . $strPass . ","; } if (trim($areaCode) == "" || trim($phone) == "") { $eflag = true; $fields .= " " . $strPhone . ","; } if (trim($email) == "") { $eflag = true; $fields .= " E-mail" . ","; } else { $result = ValidateMail($email); if (!$result[0]) { $eflag = true; $objErr->display("", "", 2, $strMess5 . $result[1]); } } if ($userType == 2) { if (trim($street) == "") { $eflag = true; $fields .= " " . $strStreet . ","; } if (trim($number) == "") { $eflag = true; $fields .= " " . $strNumber . ","; } if (trim($cep) == "") { $eflag = true; $fields .= " " . $strZip . ","; }
function verifyMod() { // Erro $objM = new message($_SESSION['userLang']); // Verificando se usuário inexistente $sql = "SELECT * FROM User WHERE userId='{$this->userId} '"; $this->bd->query($sql) or $this->bd->error($sql); $count = $this->bd->numRows(); if ($count == 0) { $objM->display("Usu", 4, 2); return true; } // Catching email $row = $this->bd->fetchRow(); // Verificando email if ($row["email"] != $this->email) { $sql = "SELECT * FROM User WHERE email='{$this->email}'"; $this->bd->query($sql) or $this->bd->error($sql); if ($this->bd->numRows()) { $objM->display("Usu", 2, 2); return true; } } return false; }