Server : LiteSpeed System : Linux us-phx-web1202.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64 User : u615232177 ( 615232177) PHP Version : 8.1.33 Disable Function : NONE Directory : /home/u615232177/domains/adesmiley.com/public_html/admin41345/ |
<?php session_start();
$page_name = basename($_SERVER['PHP_SELF']);
include("headerstrict.php"); ?>
<title>Action Successful</title>
<?php
//lets us know if its coming from a legit source or someone just typed it in the address bar
if ( $_SESSION["action"] == "true" ){
//get the necessary info for success page display
if (isset($_GET['u']) AND isset($_GET['m'])) {
$page_redirect = mysqli_real_escape_string($con,$_GET['u']);
$message = mysqli_real_escape_string($con,$_GET['m']);
}
else{ echo "<meta http-equiv=\"refresh\" content=\"0; url=adminhome.php\">"; exit();}
}
else{ echo "<meta http-equiv=\"refresh\" content=\"0; url=adminhome.php\">"; exit();}
?>
<script>
function startTimer(duration, display) {
var timer = duration, minutes, seconds;
var end =setInterval(function () {
minutes = parseInt(timer / 60, 10)
seconds = parseInt(timer % 60, 10);
minutes = minutes < 10 ? "" + minutes : minutes;
seconds = seconds < 10 ? "" + seconds : seconds;
display.textContent = seconds;
if (--timer < 0) {
window.location = "<?php echo"$page_redirect"; ?>";
clearInterval(end);
}
}, 1000);
}
window.onload = function () {
var fiveMinutes = 5,
display = document.querySelector('#time');
startTimer(fiveMinutes, display);
};
</script>
<!-- ======= Breadcrumbs ======= -->
<section id="breadcrumbs" class="breadcrumbs">
<div class="container"> </div>
</section>
<!-- End Breadcrumbs -->
<!-- ======= Contact Section ======= -->
<section id="contact" class="contact inner-page">
<div class="container" data-aos="fade-up">
<div class="section-title">
<h2 style='color:forestgreen;'>Success</h2>
<p></p>
</div>
<div class="row">
<div class="col-md-12">
<span style='font-weight:900;font-size:26px;'><?php echo"$message"; ?><br/><br/></span>
Redirecting in <span id="time">5</span> <br/>
<a href='<?php echo"$page_redirect"; ?>' style='background:steelblue;color:white;'class='btn btn-large'>Redirect</a>
</div>
</div>
</div>
</section>
<?php
//set the session to false so it wont be used again.
$_SESSION["action"] = "false";
?>
<?php include("footer.php"); ?>