KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/smartny/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/smartny/contact.php
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$company = $_POST['company'];
$website = $_POST['website'];


$platform     = $_POST['platform'];
$service      = $_POST['service'];
$captura       = $_POST['capture'];
$vtext = "smart";

 # if (!preg_match("/^[a-zA-Z -]*$/",$name)) 
 #   {
	#	echo "Oops -  Enter letters, space or hyphen!" . " -" . "<a href='contact.html' #style='text-decoration:none;color:#ff0099;'> Return to site</a>";
#	exit;
 #   }

if (strlen($name) < 6)
{
	echo "Oops -  Enter full name!" . " -" . "<a href='contact.html' style='text-decoration:none;color:#ff0099;'> Return to site</a>";
	exit;
}

if (strlen($company) < 6)
{
	echo "Oops -  Enter full company name!" . " -" . "<a href='contact.html' style='text-decoration:none;color:#ff0099;'> Return to site</a>";
	exit;
}


 if (!preg_match("/^[a-zA-Z -.]*$/",$name)) 
    {
		echo "Oops -  Enter name letters, space,period or hyphen!" . " -" . "<a href='contact.html' style='text-decoration:none;color:#ff0099;'> Return to site</a>";
    }

if (filter_var($email, FILTER_VALIDATE_EMAIL))
{
    
} else {
	
	echo "Oops - email is wrong format!" . " -" . "<a href='contact.html' style='text-decoration:none;color:#ff0099;'> Return to site</a>";
exit; // capture test
}


if (strcasecmp($captura, $vtext) != 0)
 {
   echo $captura;
   echo $vtext;
   echo "Oops - word is wrong, try again!" . " -" . "<a href='contact.html' style='text-decoration:none;color:#ff0099;'> Return to site</a>";
   exit; // capture test 
  }

 //$website2 = filter_var($website, FILTER_SANITIZE_URL);

    // Validate URL
  //  if (filter_var($website2, FILTER_VALIDATE_URL)) {
  //      echo("$website2 is a valid URL");
  //  } else {
   //     echo("$website2 is not a valid URL");
   //     echo "Oops - website name is wrong format!" . " -" . "<a href='contact.html' style='text-decoration:none;color:#ff0099;'> Return to site</a>";
  //    exit; // capture test
   //     }


$frame    = "FM";
$arbor    = "PTC";
$mword    = "MSW";
$otool    = "OtherP";


$maxit    = "MAX";
$lexmgr   = "LEX";
$textmine = "STM";
$mining   = "TMS";
$programs = "PGM";
$dicts    = "SAI";
$othersrv = "OTHER";


if (strcmp($platform,$frame)==0)   $platform = "Adobe FrameMaker (FM2022)";
if (strcmp($platform,$arbor)==0)   $platform = "PTC Arbotext Editor";
if (strcmp($platform,$mword)==0)   $platform = "Microsoft Word";
if (strcmp($platform,$otool)==0)   $platform = "Text Mining Service";


if (strcmp($service,$maxit)==0)    $service = "MAXit Checker";
if (strcmp($service,$lexmgr)==0)   $service = "Lexicon Manager";
if (strcmp($service,$textmine)==0) $service = "Text Miner";
if (strcmp($service,$mining)==0)   $service = "Text Mining Service";
if (strcmp($service,$programs)==0) $service = "AI Programming";
if (strcmp($service,$dicts)==0)    $service = "Dictionaries";
if (strcmp($service,$othersrv)==0) $service = "Other Services";

$message = $_POST['message'];

$formcontent=" From: $name \n 
Email: $email \n 
Company $company \n 
Website: $website \n 
Platform: $platform \n 
Service: $service \n
Message: $message";

// echo $formcontent;

$recipient = "[email protected]";
$subject = "Contact Form";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
// echo "Thank You - We will Reply soon.";

// echo "Thanks - We will reply!" . " -" . "<a href='contact.html' style='text-decoration:none;color:#ff0099;'> Return to site</a>";
?>

Anon7 - 2021