AnonSec Shell
Server IP : 149.202.105.228  /  Your IP : 216.73.216.123
Web Server : Apache
System : Linux webm129.cluster030.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : atfycaf ( 116275)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/atfycaf/www/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/atfycaf/www/contact-us.php
<?php
include 'globalVars.php';

$pageQuery = mysqli_query($conn, "SELECT * FROM pages_". $LANG_DB ." WHERE id = '6'");
while ($r = mysqli_fetch_array($pageQuery)) {
	$pageID			= $r["id"];
	$pageURL		= $r["pageURL"];
	$headerTitle	= $r["headerTitle"];
	$pageMenuTitle	= $r["menuTitle"];
	$metaKey		= $r["metaKey"];
	$metaDesc		= $r["metaDesc"];
	$thisPagePH		= $r["placeHolder"];
}
$pageTitle	= $headerTitle;

$pageDisplay	= "";
$pageContentQuery = mysqli_query($conn, "SELECT moduleContent FROM pagesModules_". $LANG_DB ." WHERE pageID = '$pageID' ORDER BY moduleOrder ASC");
while ($pC = mysqli_fetch_array($pageContentQuery)) {
	$moduleContent	= $pC["moduleContent"];
	if (strstr($moduleContent, "[[TESTIMONIALS_BOX]]")) {
		$includeSlider	= true;
	}
	$moduleContent	= moduleReplace($moduleContent, $LANG_DB, $LANG_DEFAULT_EMAIL, $url, $Iurl);

	$pageDisplay	.= $moduleContent;
}

if (isset($_POST["submitContact"])) {

	require('phpCaptcha.php');

	$contactName	= htmlspecialchars(str_replace(array("<script>", "<script type", "</script>"), array("", "", ""), $_POST['contactName']), ENT_QUOTES, 'UTF-8') ;
	$emailAddress	= htmlspecialchars(str_replace(array("<script>", "<script type", "</script>"), array("", "", ""), $_POST['emailAddress']), ENT_QUOTES, 'UTF-8') ;
	$contactTel		= htmlspecialchars(str_replace(array("<script>", "<script type", "</script>"), array("", "", ""), $_POST['contactTel']), ENT_QUOTES, 'UTF-8') ;
	$contactMessage	= htmlspecialchars(str_replace(array("<script>", "<script type", "</script>"), array("", "", ""), $_POST['contactMessage']), ENT_QUOTES, 'UTF-8') ;

	if (ValidateCaptcha($_POST['userCode'])) {
		$formError = false;
		
		$mailto		= $LANG_CONTACT_EMAIL_ADDRESS;//$LANG_DEFAULT_EMAIL ;
		$subject	= "Message From the $companyName $LANG_SITE Website" ;
		$formurl	= "$url"."$pageURL.html" ;
		
		$uself		= 0;
		$headersep	= (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;
				
		$http_referrer = getenv( "HTTP_REFERER" );
		if (empty($contactName) || empty($emailAddress) || empty($contactMessage)){
			$formError = true;
			$pageTitle = $LANG_ERROR_FORM;
			$pageText = "<p>$LANG_ERROR_COMPLETE</p>";
			$pageText .= "<ul class=\"errList\">";
			
			if (empty($contactName) || ereg( "[\r\n]", $contactName ) ) {
				$pageText .= "<li>$LANG_ERROR_NAME</li>";
			}
			
			if (empty($emailAddress) || ereg( "[\r\n]", $emailAddress ) ) {
				$pageText .= "<li>$LANG_ERROR_EMAIL_VALID</li>";
			}
			$pageText	.= "</ul>";
		} else {
			$pageTitle	= $LANG_THANKS;
			$pageText	= "<p>". $LANG_CONTACT_THANKS_MSG ."</p>";
		}
		
		$contactMessage	= stripslashes( $contactMessage );

		if ($formError == false) {
			$messageproper =
			
			"<p>This message was sent from:<br>" .
			"<a href=\"$url"."$pageURL.html\">$url"."$pageURL.html</a></p>" .
			"<p>------------------------------------------------------------</p>" .
			"<p>Name: $contactName<br>" .
			"Telephone Number: $contactTel<br>".
			"Email Address: <a href=\"mailto:$emailAddress\">$emailAddress</a><br>" .
			"Message: $contactMessage</p>" .
			"<p>------------------------------------------------------------</p>" ;

			$headers[] = 'MIME-Version: 1.0';
			$headers[] = 'Content-type: text/html; charset=utf-8';
			$headers[] = 'From: '. $contactName .' <'. $emailAddress .'>';

			mail($mailto, $subject, "<html><body>". $messageproper ."</body></html>", implode("\r\n", $headers));
		}
		
	} else {
		$formError	= true;
		$pageTitle	= $LANG_ERROR_CAPTCHA;
		$pageText	= "<p>". $LANG_ERROR_CAPTCHA_MSG ."</p>";
	}
} else {
	$formError		= false;
	$contactName	= "" ;
	$emailAddress	= "" ;
	$contactTel		= "" ;
	$contactMessage	= "" ;
	$pageText		= "" ;
}

include 'header.php';
?>
	<div id="pageBreadcrumb">
		<div class="container">
			<ol id="pagesBreadcrumb" itemscope itemtype="http://schema.org/BreadcrumbList">
				<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="<?php echo $url ?>" itemprop="item"><span itemprop="name"><i class="fa fa-home" aria-hidden="true" title="<?php echo $LANG_MENU_HOME_TITLE ?>"></i></span></a><meta itemprop="position" content="1" /></li>
				<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"><a href="<?php echo $url . $pageURL ?>.html" itemprop="item"><span itemprop="name"><?php echo $headerTitle ?></span></a><meta itemprop="position" content="2" /></li>
			</ol>
		</div>
	</div>
<?php
if (!isset($_POST["submitContact"])) {
	echo $pageDisplay;
} else {
	?>
<div class="mainContent tb40">
	<div class="container">
		<div class="textBox">
			<h1><?php echo $pageTitle ?></h1>
			<?php echo $pageText ?>
		</div>
	</div>
</div>
	<?php
}
if (!isset($_POST["submitContact"]) || $formError == true) {
	?>
	<div class="textBoxForm mainContent tb40">
		<div class="container">
			<div class="textBox">
				<form action="<?php echo $url . $pageURL ?>.html" method="post">
					<div class="contactCols">
						<div class="formInput<?php if (($formError == true) && ($contactName == "")) {?> errorForm<?php } ?>">
							<input type="text" name="contactName" placeholder="<?php echo $LANG_FORM_NAME_PH ?>" value="<?php echo $contactName ?>" required />
							<div class="formLabel">
								<label class="labelName"><?php echo $LANG_FORM_NAME ?></label>
							</div>
						</div>

						<div class="formInput<?php if (($formError == true) && ($contactTel == "")) {?> errorForm<?php } ?>">
							<input type="tel" name="contactTel" placeholder="<?php echo $LANG_FORM_TEL_PH ?>" value="<?php echo $contactTel ?>" />
							<div class="formLabel">
								<label class="labelName"><?php echo $LANG_FORM_TEL ?></label>
							</div>
						</div>

						<div class="formInput<?php if (($formError == true) && ($emailAddress == "")) {?> errorForm<?php } ?>">
							<input type="email" name="emailAddress" placeholder="<?php echo $LANG_FORM_EMAIL_PH ?>" value="<?php echo $emailAddress ?>" required />
							<div class="formLabel">
								<label class="labelName"><?php echo $LANG_FORM_EMAIL ?></label>
							</div>
						</div>
					</div>

					<div class="contactCols">
						<div class="formInput<?php if (($formError == true) && ($contactMessage == "")) {?> errorForm<?php } ?>">
							<textarea name="contactMessage" rows="5" cols="20" required><?php echo $contactMessage ?></textarea>
							<div class="formLabel">
								<label class="labelName"><?php echo $LANG_FORM_CONTACT_MSG ?></label>
							</div>
						</div>
					</div>

					<div id="captchaVerification">
						<h3><?php echo $LANG_FORM_VER_TITLE ?></h3>
						<iframe src="<?php echo $url ?>captcha/" scrolling="no" width="200" height="100" frameborder="0" align="middle" marginwidth="10" name="captcha"></iframe>
						<div class="formInput">
							<input type="text" name="userCode" required />
							<div class="formLabel">
								<label class="labelName"><?php echo $LANG_FORM_VER_MSG ?></label>
							</div>
						</div>
					</div>
					<input type="submit" name="submitContact" value="<?php echo $LANG_FORM_SEND_MSG ?>" class="submitButton" />
				</form>
			</div>
		</div>
	</div>
	<?php
}

include 'footer.php';
?>

Anon7 - 2022
AnonSec Team