PHP Code:
else {
$successful = true;
if($successful === true){
echo "<div style='background-color: #353939;border: 1px solid #666;color:green;'>
<text>Successful Message</text>
</div> <div style='padding: 0.1em;'></div>
<text>Thank You!, Accessing Account </text>
<script>
setTimeout(function () { window.location.href= 'index.php'; // the redirect goes here
},5000); // 5 seconds
</script>";
die();
} else {
// go fuck yourself for not believing!!
// header("Refresh: 0; url=index.php");
// die();
} else {
show_error_msg(T_("ACCESS_DENIED"), $message, 1);
}