( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/tmpr/../tmpr/../tmpr/../tmpr/..//tmpr/../gold/activate.php
<?php
include('../Connections/videoondemand.php'); 
require_once("includes/inc_files.php");

if($session->is_logged_in()) {
  redirect_to("index.php");
}

if((empty($_GET['email'])) || (empty($_GET['hash']))) {
    $message = "";
    
  } else {
	$user_email = trim($_GET['email']);
	$hash = trim($_GET['hash']);
	
	global $database;
	
	// Escape email and hash values to help prevent sql injection.
	$user_email = $database->escape_value($user_email);
	$hash = $database->escape_value($hash);
	
	// Check if the provided information is in the database
	Activation::check_activation($user_email, $hash);
}

if (isset($_POST['submit'])) { // Form has been submitted.
	$user_email = trim($_POST['email']);
	$hash = trim($_POST['hash']);
	
	
	if ((!$user_email == "") && (!$hash == "")) {
		Activation::check_activation($user_email, $hash);
	} else {
		$message = "<div class='text-white'><p>Nothing Entered.</p><a href='#' class='notification-close warning-notification-close'>x</a></div><!--.notification-box .notification-box-warning end-->";
	}
} else { // Form has not been submitted.
	$user_email = "";
	$hash = "";
}

	
if (isset($_POST['resend_code'])) { // Form has been submitted.
	$user_email = trim($_POST['email']);
	
	if (!$user_email == "") {
		Activation::check_resend_code($user_email);
	} else {
		$message = "<div class='text-white'><p>Nothing Entered.</p><a href='#' class='notification-close warning-notification-close'>x</a></div><!--.notification-box .notification-box-warning end-->";
	}
} else { // Form has not been submitted.
	$user_email = "";
	$hash = "";
}

?>
<?php require_once("includes/templates/header.tpl"); ?>
<?php /*?>
<section class="title">Activate your Account</section><?php */?>
	<div class="container">	
		<?php echo output_message($message); ?>
		<section id="main" class="formee">
			<?php if((!isset($_GET['email'])) && (!isset($_GET['hash'])) ) : ?>
				<?php /*?><form action="activate.php" method="post">
					<div class="grid-6-12" >
						<h1 class="h3 font-thin text-white m-b-lg m-t-lg">Activate Account</h1>
						<label>Email</label>
		                <input type="text" name="email" maxlength="255" value="<?php echo htmlentities($user_email); ?>" />
						<label>Confirm Code</label>
						<input type="text" name="hash" maxlength="255" value="<?php echo htmlentities($hash); ?>" />
						<p />
						<input type="submit" class="button" name="submit" value="Send Confirm Code" />
			        </div>
				</form><?php */?>
				<form action="activate.php" method="post">
					<div class="grid-6-12">
						<h3 class="h3 font-thin text-white m-b-lg m-t-lg">Activate your Account</h3>
						<label>Email</label>
		                <input type="text" name="email" maxlength="200" value="<?php echo htmlentities($user_email); ?>" />
						<p />
						<input type="submit" class="button" name="resend_code" value="Resend Activation Code" />
			        </div>
				</form>
			<?php endif ?>
		</section><!--#main end-->
	<div class="clear"></div><!--.clear end-->
</div><!--.container end-->

<?php require_once("includes/templates/footer.tpl"); ?>