Fatal error issue on Email PW Page
I am getting this error on my email pw page
Fatal error: Call to undefined function wa_securityassist_definition() in /home4/siteezy/public_html/ecommercewebsite/UserRegistrationSystem/EmailPW.php on line 63
Here is my Code:
<?php require_once("../WA_SecurityAssist/WA_SHA1Encryption.php"); ?>
<?php
require_once("../WA_SecurityAssist/WA_RandomPassword.php");
?>
<?php require_once('../Connections/localhost.php');?>
<?php require_once("../WA_DataAssist/WA_AppBuilder_PHP.php"); ?>
<?php require_once('../Connections/Connection.php'); ?>
<?php require_once( "../webassist/security_assist/helper_php.php" ); ?>
<?php if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$colname_NewUserPassword = "-1";
if (isset($_POST['emailAddress'])) {
$colname_NewUserPassword = $_POST['emailAddress'];
}
mysql_select_db($database_Connection, $Connection);
$query_NewUserPassword = sprintf("SELECT * FROM siteezyeceusers WHERE UserEmail = %s", GetSQLValueString($colname_NewUserPassword, "text"));
$NewUserPassword = mysql_query($query_NewUserPassword, $Connection) or die(mysql_error());
$row_NewUserPassword = mysql_fetch_assoc($NewUserPassword);
$totalRows_NewUserPassword = mysql_num_rows($NewUserPassword);
mysql_select_db($database_Connection, $Connection);
$query_Design = "SELECT * FROM siteezyecdesign";
$Design = mysql_query($query_Design, $Connection) or die(mysql_error());
$row_Design = mysql_fetch_assoc($Design);
$totalRows_Design = mysql_num_rows($Design);
mysql_select_db($database_Connection, $Connection);
$query_AdminEmail = "SELECT * FROM siteezyecadminpaypal";
$AdminEmail = mysql_query($query_AdminEmail, $Connection) or die(mysql_error());
$row_AdminEmail = mysql_fetch_assoc($AdminEmail);
$totalRows_AdminEmail = mysql_num_rows($AdminEmail);
function WA_SecurityAssist_Email_1_SendMail($WA_Auth_Parameter){
$WA_MailObject = WA_SecurityAssist_Definition("","25","","","");
$WA_MailObject = WA_SecurityAssist_SendMail($WA_MailObject,"","","",$WA_Auth_Parameter["toAddress"],"",$WA_Auth_Parameter["fromAddress"],$WA_Auth_Parameter["subject"],$WA_Auth_Parameter["mailBody"]);
$WA_MailObject = null;
}// WA_SecurityAssist_Email_1_SendMail
if(isset($_POST["Send"]) || isset($_POST["Send_x"])){
//WA SecurityAssist Email object="mail"
$WA_Auth_Parameter = array(
"connection" => $Connection,
"database" => $database_Connection,
"tableName" => "siteezyeceusers",
"filterColumn" => "UserEmail",
"filterEncryption" => "",
"columnValue" => "".((isset($_POST["emailAddress"]))?$_POST["emailAddress"]:"") ."",
"columnType" => "text",
"usernameColumn" => "UserName",
"usernameEncryption" => "",
"passwordColumn" => "UserPassword",
"passwordEncryption" => "",
"selectColumns" => array("UserName","UserPassword","UserEmail"),
"sessionVariables" => array(""),
"successRedirect" => "LogIn.php",
"failRedirect" => "EmailPW.php",
"keepQueryString" => FALSE,
"toAddressColumn" => "UserEmail",
"toAddressEncryption" => "",
"fromAddress" => "".$row_AdminEmail['EmailFromAddress'] ."",
"fromAddressDisplay" => "".$row_AdminEmail['EmailForm'] ."",
"subject" => "Forgot Password",
"mailBody" => "Dear [UserFirstName] [UserLastName],
Please use the details below to access your account
User name: [UserName]
Password: [UserPassword]
",
"emailFunction" => "WA_SecurityAssist_Email_1_SendMail"
);
WA_Auth_ForgotPassword($WA_Auth_Parameter);
}?>
Thanks