View Single Post
  #1  
Old 29th August 2019, 20:28
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default account-login successful redirect script
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"), $message1);
    } 
Reply With Quote