db_connect(); global $db_host, $db_user, $db_pass, $db_name; $dcon=mysqli_connect($db_host, $db_user, $db_pass, $db_name) or die(mysqli_error()); $Query1=$dbCon->slctQuery('users','Email','where Email!=""'); $row1=mysqli_fetch_array($Query1); extract($row1); // Adding BotDetect Captcha to the page $ExampleCaptcha = new Captcha("ExampleCaptcha"); $ExampleCaptcha->UserInputID = "CaptchaCode"; $ExampleCaptcha->CodeLength = 5; $ExampleCaptcha->ImageWidth = 250; $ExampleCaptcha->CustomLightColor = "Black"; $ExampleCaptcha->CustomDarkColor = "White"; $ExampleCaptcha->ImageStyle = ImageStyle::BlackOverlap; $bErr = false; $cErr = false; // when the form is submitted if($_POST){ // validate the Captcha to check we're not dealing with a bot $isHuman = $ExampleCaptcha->Validate(); if (!$isHuman) { // Captcha validation failed, show error message $msg = "You have entered the wrong code!"; $bErr = true; } else { // Captcha validation passed, perform protected action $fname=$_POST['fname']; $lname=$_POST['lname']; $score=$_POST['score']; $testimony=$_POST['testimonial']; $email=$_POST['email']; $cdate=$_POST['date2']; $testimonial1 = htmlentities($testimony); $testimonial = mysqli_real_escape_string($dcon, $testimonial1); $testiconvert = htmlspecialchars_decode($testimonial, ENT_COMPAT); $testicontent = html_entity_decode($testiconvert); $testicontent1 = strip_tags($testicontent); $emailtestimony = stripslashes($testicontent1); if ($score!=0) { mysqli_query($dcon, "INSERT INTO testimonial (Fname,Lname,Rating,Testimonial,Email,Date, Status)Values('$fname','$lname','$score','$testimonial','$email','$cdate',0)")or die(mysqli_error($dcon)); } else{} require 'phpmailer/PHPMailerAutoload.php'; //$mail->SMTPDebug = 3; // Enable verbose debug output $mail = new PHPMailer(true); $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'secure.emailsrvr.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'leasing@rentaptsonline.com'; // SMTP username $mail->Password = '%56yMyO7Wbpg'; // SMTP password $mail->SMTPSecure = 'ssl'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 465; // TCP port to connect to $mail->CharSet = 'UTF-8'; //$toaddress = $Email; $toaddress = 'office@rosepointeapartments.com'; $name=$fname." ".$lname; $mail->setFrom('leasing@rentaptsonline.com', ''.$name.' | Add A Testimonial'); $mail->addAddress($toaddress); //$mail->addReplyTo($email); $mail->isHTML(true); // Set email format to HTML $mail->Subject = '🏠 New Apartment Testimonial | www.RosePointeApartments.Com'; $mail->Body = '

Rose Pointe Apartments of Fullerton CA 
By The ANZA Company
You have a new review to approve. Please login to your Admin Dashboard to view.
Email Subject: New Apartment Testimonial
Name: '.$name.'
Date: '.$cdate.'
Email: '.$email.'
Experience / Ratings: '.$score.'
Message / Reviews: '.stripslashes($emailtestimony).'
'; if($score!=0 && substr_count($cmessage,'a href=')==0 && substr_count($cmessage,'www.')==0 && substr_count($cmessage,'http://')==0 && substr_count($cmessage,'src=')==0 && substr_count($cmessage,'.exe')==0 && substr_count($cmessage,'.php')==0 && substr_count($cmessage,'.net')==0 && substr_count($cmessage,'.com')==0) { if(!$mail->send()) { echo 'Message could not be sent.'; } else { header('location: 92832-testimonial-done.html#main-content'); } } else { $cErr = true; $msg = "Sending Error. There was an error in the information that you have presented.
Your request is not successful."; } } } $Query=mysqli_query($dcon, "Select * from add_testimonial_info where ID=1")or die(mysqli_error()); $information=mysqli_fetch_array($Query); extract($information); ?>

Rose Pointe Apartment Testimonials, For Rent Apts - Fullerton 92832 | RosePointeApartments.Com

  • Add a Testimonial

  • ".html_entity_decode($add_testimonial_info)."

    "; }else{ } ?>
  • Check out what other's have to say about us! Or add your own personal experience, We'd love to hear from you.



    Html(); ?>
    '.$msg.'
    '; } else{} ?>