system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
<?PHP
class Lib_FormValidation extends Lib_Validation_Handler
{
function Lib_FormValidation($form)
{
if($form=='insertmember')
$this->validateInsertmember();
elseif($form=='verify')
$this->validateverify();
elseif($form=='login')
$this->validatelogin();
elseif($form=='forgotpassword')
$this->validateforgotpass();
elseif($form=='passverify')
$this->validatepassverify();
elseif($form=='updateuser')
$this->validateupdateuser();
elseif($form=='changepassword')
$this->validatechangepassword();
elseif($form=='contact')
$this->validatecontact();
elseif($form=='suggestion')
$this->validatesuggestion();
elseif($form=='validatemywithdraw')
$this->validatewithdraw();
elseif($form=='productcaptcha')
$this->productcaptcha();
elseif($form=='validatemail')
$this->validatTellToFriend();
elseif($form=='validatecheque')
$this->validateCheque();
elseif($form=='validatechequeinputs')
$this->validateChequeInputs();
elseif($form=='updatesitedetails')
$this->validateSiteDetails();
}
function isValidEmail($email)
{
if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email))
{
return FALSE;
}
$at_position = strrpos($email,'@')+1;
$after_at = substr($email,$at_position);
$tot_extenstions = substr_count($after_at,'.');
if($tot_extenstions>2)
{
return FALSE;
}
else if($tot_extenstions==2)
{
$tot_len = strlen($after_at);
$dot1_position = strpos($after_at,'.');
$dot2_position = strrpos($after_at,'.');
if(($dot2_position - $dot1_position)>5)
return FALSE;
if(($tot_len - $dot2_position)>3)
return FALSE;
}
else
{
$tot_len = strlen($after_at);
$dot1_position = strpos($after_at,'.');
if(($tot_len - $dot1_position)>5)
return FALSE;
}
return TRUE;
}
function validateInsertmember()
{
$message = "Required Field Cannot Be Blank";
$message1="Please Provide a Valid Email Id";
$message2="Enter Alphabets Only";
$message3="Enter AlphaNumeric Only";
$this->Assign("txtusername",trim($_POST['txtusername']),"noempty",$message);
$this->Assign("txtusername",trim($_POST['txtusername']),"nospecial''",$message3);
$this->Assign("txtpassword",trim($_POST['txtpassword']),"noempty",$message);
$this->Assign("txtrepassword",trim($_POST['txtrepassword']),"noempty",$message);
$this->Assign("txtfirstname",trim($_POST['txtfirstname']),"noempty",$message);
if((trim($_POST['txtfirstname'])!=''))
{
$this->Assign("txtfirstname",trim($_POST['txtfirstname']),"nonumber",$message2);
$this->Assign("txtfirstname",trim($_POST['txtfirstname']),"nospecial''",$message2);
}
$this->Assign("txtlastname",trim($_POST['txtlastname']),"noempty",$message);
if($_POST['txtpassword']!='')
{
if(strlen($_POST['txtpassword'])<5 || strlen($_POST['txtpassword'])>16)
{
$message3="Please Enter Minimum-5 characters to Maximum-16 characters";
$this->Assign("txtpassword","","noempty",$message3);
}
}
if(trim($_POST['txtlastname'])!='')
{
$this->Assign("txtlastname",trim($_POST['txtlastname']),"nonumber",$message2);
$this->Assign("txtlastname",trim($_POST['txtlastname']),"nospecial''",$message2);
}
$this->Assign("txtemail",trim($_POST['txtemail']),"noempty",$message);
$this->Assign("txtemail",trim($_POST['txtemail']),"emailcheck",$message1);
$this->Assign("country",trim($_POST['country']),"noempty",$message);
if(trim($_POST['txtseccode'])!='')
{
//$this->Assign("txtaddress",trim($_POST['txtaddress']),"nospecial'., -'",$message3);
$this->Assign("txtseccode",trim($_POST['txtseccode']),"noempty",$message);
if($_POST['txtseccode']!='')
{
$this->Assign("txtseccode",trim($_POST['txtseccode']),"nospecial''",$message);
}
if(strcmp($_SESSION['security_code'],$_POST['txtseccode'])!=0)
{
$message="Invalid Turning Code";
$this->Assign("txtseccode","","noempty",$message);
}
}
$generalsettings = Model_MRegister::getGeneralSettings();
$publickey = $generalsettings[7]['generalsettings_value'];
$privatekey = $generalsettings[8]['generalsettings_value'];
/* $publickey = "6Le9cgYAAAAAAE-qb9QbPYGrTHQLLUr8-eUiwBp1";
$privatekey = "6Le9cgYAAAAAADBhL0znKShXPR9FnfYc2NJ0bFAS ";*/
if (($_POST["recaptcha_response_field"])) {
$resp = Model_MRegister::recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid)
/* {
}
else */
{
# set the error code so that we can display it
$error = $resp->error;
}
}
//$error = null;
//$captch_output = Model_MLogin::recaptcha_get_html($publickey, $error);
$getcaptcha = new Bin_Query();
$getsqltype="select generalsettings_value from generalsettings_table where generalsettings_id='7'";
$getcaptcha->executeQuery($getsqltype);
if($getcaptcha->records[0]['generalsettings_value']==0 && !isset($_POST['recaptcha_response_field']))
{
$this->Assign("captcha","","noempty"," <br> ".$message);
}
if(isset($_POST['recaptcha_response_field']))
{
if($_POST['recaptcha_response_field']=="")
{
$this->Assign("captcha","","noempty",$message);
}
else if (!$resp->is_valid)
$this->Assign("captcha","","noempty","Invalid Captcha Code");
}
$message4="Please Enter A Valid ZipCode";
//$this->Assign("txtzipcode",$_POST['txtzipcode'],"nostring",$message4);
$this->Assign("txtzipcode",$_POST['txtzipcode'],"nospecial''",$message4);
$message5="Please Enter A Valid Phone Number";
$this->Assign("txtphone",$_POST['txtphone'],"nostring",$message5);
$this->Assign("txtphone",$_POST['txtphone'],"nospecial''",$message5);
//$this->Assign("termsandconditions",trim($_POST['termsandconditions']),"noempty",$message);
if(trim($_POST['txtusername'])!='' )
{
$username=$_POST['txtusername'];
if(strlen(trim($_POST['txtusername'])) < 6)
{
$message= "Enter Minimum 6 Characters";
$this->Assign("txtusername","","noempty",$message);
}
if(strlen(trim($_POST['txtusername'])) >20)
{
$message= "Not More Than 20 Character";
$this->Assign("txtusername","","noempty",$message);
}
$query = new Bin_Query();
$sql = "SELECT count(*) as cntt FROM members_table WHERE members_username = '$username' ";
$query->executeQuery($sql);
$count0=($query->records[0]['cntt']);
if($count0!= 0)
{
$message = "User Name already Exists";
$this->Assign("txtusername","","noempty",$message);
}
}
$email=trim($_POST['txtemail']);
if($email!='')
{
$sqll = "SELECT count(*) as cnty FROM members_table WHERE members_email= '$email'";
$query1 = new Bin_Query();
$query1->executeQuery($sqll);
$query1->records[0]['cnty'];
$count1=$query1->records[0]['cnty'];
//print_r($query1->records);exit;
//exit;
if($count1!= 0)
{
$message6 = "Email-Id Already Exists";
$this->Assign("txtemail","","noempty",$message6);
}
}
if(trim($_POST['txtpassword'])!='' and trim($_POST['txtrepassword'])!='')
{
if(strlen(trim($_POST['txtpassword'])) <6)
{
$message= "Enter Minimum six Characters";
$this->Assign("txtpassword","","noempty",$message);
}
if(trim($_POST['txtpassword']) != trim($_POST['txtrepassword']))
{
$message = "RetypePassword does not Match";
$this->Assign("txtrepassword","","noempty",$message);
}
}
if(!isset($_POST['termsandcondition']))
{
$message4="Please accept our terms and condtions";
$this->Assign("termsandcondition","","noempty",$message4);
}
//echo $_SESSION['security_code'];
//Check Level Completion
/************************* Start *********************************/
if(isset($_SESSION['intro_name']))
{
$sponsorname = $_SESSION['intro_name'];
$query="select * from members_table where members_username='$sponsorname' and members_verified=1 and members_status=1 and members_account_status=1";
$obj=new Bin_Query();
if($obj->executeQuery($query))
{
//Checking for Force matrix or Cycling marix
$sql="SELECT * from networksettings_table";
$qry = new Bin_Query();
$qry->executeQuery($sql);
$matrix_type=$qry->records[0]['networksettings_matrix_type'];
if($matrix_type == 'normal')
{
$flag = Model_MSpillover::checkLevelComp($obj->records[0]['members_id']);
}
else if($matrix_type == 'cycle')
{
$flag = Model_MSpilloverCycle::checkLevelComp($obj->records[0]['members_id']);
}
if ($flag==0)
{
unset($_SESSION['intro_name_id']);
unset($_SESSION['intro_name']);
$levelcompmsg = "The Referrer ".ucwords($obj->records[0]['members_username'])." Level Was Completed.<br> You will be added as an Direct Member Only.";
$this->Assign("levelcompmsg","","noempty",$levelcompmsg);
}
}
}
/************************* End *********************************/
$this->PerformValidation('index.php?do=register');
}
function validateverify()
{
$userid=$_GET['userid'];
$message = "Required Field Cannot Be Blank";
$message2="Enter AlphaNumeric Only";
$this->Assign("verify",trim($_POST['verify']),"noempty",$message);
$this->Assign("verify",$_POST['verify'],"nospecial''",$message2);
$this->PerformValidation('index.php?do=register&action=verify&userid='.$userid.'');
}
function validatelogin()
{
$message = "Required Field Cannot Be Blank";
$message2="Enter AlphaNumeric Only";
$this->Assign("txtusername",$_POST['txtusername'],"noempty",$message);
$this->Assign("txtusername",$_POST['txtusername'],"nospecial''",$message2);
$this->Assign("txtpassword",$_POST['txtpassword'],"noempty",$message);
if(isset($_POST['txtverify']))
$this->Assign("txtverify",$_POST['txtverify'],"noempty",$message);
$this->Assign("txtusername",$_POST['txtusername'],"nospecial''",$message2);
if(trim($_POST['txtverify'])!='')
{
if(strcmp($_SESSION['security_code'],$_POST['txtverify'])!=0)
{
$message1="Invalid Turning Code";
$this->Assign("txtverify","","noempty",$message1);
}
}
//include('classes/Controller/CLogin.php');
//include('classes/Model/MLogin.php');
$generalsettings = Model_MLogin::getGeneralSettings();
$publickey = $generalsettings[7]['generalsettings_value'];
$privatekey = $generalsettings[8]['generalsettings_value'];
/* $publickey = "6Le9cgYAAAAAAE-qb9QbPYGrTHQLLUr8-eUiwBp1";
$privatekey = "6Le9cgYAAAAAADBhL0znKShXPR9FnfYc2NJ0bFAS ";*/
if (($_POST["recaptcha_response_field"])) {
$resp = Model_MLogin::recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if ($resp->is_valid)
{
return;
}
else
{
# set the error code so that we can display it
$error = $resp->error;
}
}
//$error = null;
//$captch_output = Model_MLogin::recaptcha_get_html($publickey, $error);
$getcaptcha = new Bin_Query();
$getsqltype="select generalsettings_value from generalsettings_table where generalsettings_id='7'";
$getcaptcha->executeQuery($getsqltype);
if($getcaptcha->records[0]['generalsettings_value']==0 && !isset($_POST['recaptcha_response_field']))
{
$this->Assign("captcha","","noempty"," <br> ".$message);
}
if(isset($_POST['recaptcha_response_field']))
{
if($_POST['recaptcha_response_field']=="")
{
$this->Assign("captcha","","noempty",$message);
}
else if (!$resp->is_valid)
$this->Assign("captcha","","noempty","Invalid Captcha Code");
}
$this->PerformValidation('index.php?do=login');
}
function validateforgotpass()
{
$message = "Required Field Cannot Be Blank";
$message1="Please Enter A Vaild Email-Id";
$this->Assign("txtemail",$_POST['txtemail'],"noempty",$message);
$this->Assign("txtemail",$_POST['txtemail'],"emailcheck",$message1);
if(trim($_POST['txtemail']!=''))
{
$email=trim($_POST['txtemail']);
$queryNew = new Bin_Query();
$sqlNew = "SELECT COUNT(*) AS `cnt` FROM members_table WHERE members_email='$email' and members_verified='1'";
$queryNew->executeQuery($sqlNew);
$count = $queryNew->records[0]['cnt'];
//echo $count;
//print_r($rec);
//exit;
if($count=='0')
{
$message3 = "Please Provide Correct Email Id";
$this->Assign("txtemail","","noempty",$message3);
}
}
$this->PerformValidation('index.php?do=forgotpassword');
}
function validatepassverify()
{
$userid=$_GET['userid'];
$message = "Required Field Cannot Be Blank";
$message2="Enter AlphaNumeric Only";
$this->Assign("txtverify",$_POST['txtverify'],"noempty",$message);
$this->Assign("txtverify",$_POST['txtverify'],"nospecial''",$message2);
$this->PerformValidation("index.php?do=passverify&userid=".$userid);
}
function validateupdateuser()
{
$usrid=$_GET['id'];
$message = "Required Field Cannot Be Blank";
$message1="Enter Alphabets Only ";
$message2="Enter AlphaNumeric Only";
$message3="Please Provide a Valid Email-Id";
$message4="Please Enter Valid Phone Number";
$message5="Please Enter Valid Account Number";
$this->Assign("txtfirstname",$_POST['txtfirstname'],"noempty",$message);
$this->Assign("txtfirstname",$_POST['txtfirstname'],"nonumber",$message1);
$this->Assign("txtfirstname",$_POST['txtfirstname'],"nospecial''",$message1);
$this->Assign("txtlastname",$_POST['txtlastname'],"noempty",$message);
$this->Assign("txtlastname",$_POST['txtlastname'],"nonumber",$message1);
$this->Assign("txtlastname",$_POST['txtlastname'],"nospecial''",$message1);
$this->Assign("txtemail",$_POST['txtemail'],"noempty",$message);
$this->Assign("txtemail",$_POST['txtemail'],"emailcheck",$message3);
if(!empty($_POST['txtemail']))
{
$getvalues = new Bin_Query();
$sql = "SELECT * FROM members_table WHERE members_email = '".$_POST['txtemail']."' and members_id !=$usrid";
if($getvalues->executeQuery($sql))
{
if($getvalues->totrows >= 1)
{
$mess = "Email Id Already Exists";
$this->Assign("txtemail","","noempty",$mess);
}
}
}
//$this->Assign("country",trim($_POST['country']),"noempty",$message);
//$this->Assign("payment",trim($_POST['payment']),"noempty",$message);
//$this->Assign("txtaddress",$_POST['txtaddress'],"nospecial'.,-'",$message2);
$this->Assign("txtcity",$_POST['txtcity'],"nonumber",$message1);
$this->Assign("txtcity",$_POST['txtcity'],"nospecial''",$message1);
$this->Assign("txtstate",$_POST['txtstate'],"nonumber",$message1);
$this->Assign("txtstate",$_POST['txtstate'],"nospecial''",$message1);
$this->Assign("txtzipcode",$_POST['txtzipcode'],"nospecial''",$message2);
$this->Assign("txtphone",$_POST['txtphone'],"nostring",$message4);
$this->Assign("txtaccountnumber",$_POST['txtaccountnumber'],"noempty",$message);
//this->Assign("txtaccountnumber",$_POST['txtaccountnumber'],"nospecial''",$message5);
if(trim($_POST['txtaccountnumber'])!='')
{
$acc=explode('@',$_POST['txtaccountnumber']);
if(count($acc)>1)
{
//$this->Assign("txtaccountnumber",trim($_POST['txtaccountnumber']),"nospecial'@. '","Account Number => ".$this->spcharmessage);
$this->Assign("txtaccountnumber",trim($_POST['txtaccountnumber']),"emailcheck",$message3);
}
else
{
$this->Assign("txtaccountnumber",trim($_POST['txtaccountnumber']),"nospecial'@. '",$message2);
}
}
if($_POST['country']==0)
$this->Assign("country","","noempty",$message);
if($_POST['payment']==0)
$this->Assign("payment","","noempty",$message);
$allowtypes = array('image/pjpeg','image/jpg','image/jpeg', 'image/png', 'image/gif');
if($_FILES['image1']['size'] > 0)
(!in_array(trim($_FILES['image1']['type']),$allowtypes)) ? $this->Assign("image1","","noempty"," Please Upload Image File Format!") : "";
$this->PerformValidation("?do=mprofile&id=".$usrid);
}
function validatechangepassword()
{
$message="Required Fields Cannnot Be Blank";
$message1="Old Password Does Not Match";
$message2="Retype Password Does Not Match";
$this->Assign("txtoldpass",$_POST['txtoldpass'],"noempty",$message);
$this->Assign("txtnewpass",$_POST['txtnewpass'],"noempty",$message);
$this->Assign("txtrenewpass",$_POST['txtrenewpass'],"noempty",$message);
if($_POST['txtnewpass']!='')
{
if(strlen($_POST['txtnewpass'])<5 || strlen($_POST['txtnewpass'])>16)
{
$message3="Please Enter Minimum-5 characters to Maximum-16 characters";
$this->Assign("txtnewpass","","noempty",$message3);
}
}
if(trim($_POST['txtoldpass'])!='')
{
$passenc=md5(md5($_POST['txtoldpass']));
//$passenc=base64_encode($_POST['txtoldpass']);
$select="select count(*) as cnt from members_table where members_password='$passenc' and members_id='".$_SESSION['userid']."'";
$obj=new Bin_Query();
$obj->executeQuery($select);
$count=$obj->records[0]['cnt'];
if($count==0)
{
$this->Assign("txtoldpass","","noempty",$message1);
}
}
if(trim($_POST['txtnewpass'])!= trim($_POST['txtrenewpass']))
{
$this->Assign("txtrenewpass","","noempty",$message2);
}
$this->PerformValidation("?do=mchangepassword");
}
function validatecontact()
{
$message="Required Fields Cannnot Be Blank";
$message1="Enter Alphabets only";
$message2="Enter Alphanumeric Only";
$message3="Please Provide Vaild Email-Id";
$this->Assign("txtname",$_POST['txtname'],"noempty",$message);
$this->Assign("txtemail",$_POST['txtemail'],"noempty",$message);
$this->Assign("txtsubject",$_POST['txtsubject'],"noempty",$message);
$this->Assign("txtsubject",$_POST['txtsubject'],"nospecial' '",$message2);
$this->Assign("txtmessage",trim($_POST['txtmessage']),"noempty",$message);
//$this->Assign("txtmessage",trim($_POST['txtmessage']),"nospecial', .\'",$message2);
$this->PerformValidation("?do=contactus");
}
function validatesuggestion()
{
$message="Required Fields Cannnot Be Blank";
$message1="Enter Alphabets only";
$message2="Enter Alphanumeric Only";
$message3="Please Provide Vaild Email-Id";
$this->Assign("txtname",$_POST['txtname'],"noempty",$message);
$this->Assign("txtemail",$_POST['txtemail'],"noempty",$message);
$this->Assign("txtsubject",$_POST['txtsubject'],"noempty",$message);
$this->Assign("txtsubject",$_POST['txtsubject'],"nospecial' '",$message2);
$this->Assign("txtmessage",trim($_POST['txtmessage']),"noempty",$message);
//$this->Assign("txtmessage",trim($_POST['txtmessage']),"nospecial', .\'",$message2);
$this->PerformValidation("?do=suggestion");
}
function validatewithdraw()
{
$message="Required Fields Cannnot Be Blank";
$message1="Please Provide a Valid Withdraw Amount";
$this->Assign("txtAmount",$_POST['txtAmount'],"noempty",$message);
$this->Assign("txtAmount",$_POST['txtAmount'],"nospecial'.'",$message1);
$this->Assign("txtAmount",$_POST['txtAmount'],"nostring",$message1);
$this->PerformValidation("?do=mywithdraw");
}
function productcaptcha()
{
$message = "Required Field Cannot Be Blank";
$this->Assign("verify",$_POST['txtverify'],"noempty",$message);
if(trim($_POST['txtverify'])!='')
{
if(strcmp($_SESSION['security_code'],$_POST['txtverify'])!=0)
{
$message1="Invalid Turning Code";
$this->Assign("verify","","noempty",$message1);
}
}
$this->PerformValidation('index.php?do=productdownload&id='.$_POST['productid'].'&hist_id='.$_POST['hist_id'].'');
}
function validatTellToFriend()
{
$message = "Required Field Cannot Be Blank";
$message1="Please Provide a Valid Email Id";
$message2="Enter Alphabets Only";
$message3="Enter AlphaNumeric Only";
$message4 = "Please provide AlphaNumeric characters";
$this->Assign("txtname",$_POST['txtname'],"noempty",$message);
$this->Assign("txtname",$_POST['txtname'],"nospecial' .'",$message4);
$this->Assign("txtemail",$_POST['txtemail'],"noempty",$message);
$email = split(',',$_POST['txtemail']);
foreach($email as $key=>$value)
{
if(!empty($value) && !$this->isValidEmail(trim($value)))
$this->Assign("txtemail","","noempty",$message1);
}
$this->Assign("txtsubject",$_POST['txtsubject'],"noempty",$message);
$this->Assign("txtmessage",$_POST['txtmessage'],"noempty",$message);
$this->PerformValidation('index.php?do=mtellafriend');
}
function validateCheque()
{
$message="Required Fields Cannnot Be Blank";
$message1="Please Provide a Valid Withdraw Amount";
$message2="Please Provide Alphabetic characters";
$message3="Please Provide Numeric values";
//noempty
$this->Assign("chq_amount",$_POST['chq_amount'],"noempty",$message);
$this->Assign("chq_payee_name",$_POST['chq_payee_name'],"noempty",$message);
$this->Assign("chq_number",$_POST['chq_number'],"noempty",$message);
$this->Assign("chq_bank_name",$_POST['chq_bank_name'],"noempty",$message);
$this->Assign("chq_branch_name",$_POST['chq_branch_name'],"noempty",$message);
$this->Assign("chq_date",$_POST['chq_date'],"noempty",$message);
$this->Assign("chq_number",$_POST['chq_number'],"nostring",$message3);
$this->Assign("chq_bank_name",$_POST['chq_bank_name'],"nonumber",$message2);
$this->Assign("chq_branch_name",$_POST['chq_branch_name'],"nonumber",$message2);
$this->PerformValidation("?do=checkout&action=showchequeform");
}
function validateChequeInputs()
{
$message="Required Fields Cannnot Be Blank";
$message1="Please Provide a Valid Withdraw Amount";
$message2="Please Provide Alphabetic characters";
$message3="Please Provide Numeric values";
//noempty
$this->Assign("chq_amount",$_POST['chq_amount'],"noempty",$message);
$this->Assign("chq_payee_name",$_POST['chq_payee_name'],"noempty",$message);
$this->Assign("chq_number",$_POST['chq_number'],"noempty",$message);
$this->Assign("chq_bank_name",$_POST['chq_bank_name'],"noempty",$message);
$this->Assign("chq_branch_name",$_POST['chq_branch_name'],"noempty",$message);
$this->Assign("chq_date",$_POST['chq_date'],"noempty",$message);
$this->Assign("chq_number",$_POST['chq_number'],"nostring",$message3);
$this->Assign("chq_bank_name",$_POST['chq_bank_name'],"nonumber",$message2);
$this->Assign("chq_branch_name",$_POST['chq_branch_name'],"nonumber",$message2);
$this->PerformValidation("?do=register&action=showchequeform");
}
function validateSiteDetails()
{
$message="Required Fields Cannnot Be Blank";
//noempty
$this->Assign("txtlogo",$_FILES['txtlogo']['name'],"noempty",$message);
$this->Assign("txttitle",$_POST['txttitle'],"noempty",$message);
$this->Assign("txtbodycontent",$_POST['txtbodycontent'],"noempty",$message);
$imagetypes=array('jpg','jpeg','pjpeg','bmp','gif','png');
if($_FILES['txtlogo']['tmp_name']!='')
{
$message1="Invalid File Format.Valid Image Files are only allowed.";
$file = explode(".",$_FILES['txtlogo']['name']);
if(count($file)>2 || !in_array($file[1],$imagetypes))
{
$this->Assign("txtlogo","","noempty",$message1);
}
}
$this->PerformValidation("?do=sitedetail");
}
}
?>