View Single Post
  #3  
Old 1st September 2019, 15:59
LeeHowarth LeeHowarth is offline
TT
 
Join Date: Nov 2008
Posts: 100
Default
I would not use this code, it's alot of crap to be honest.

what is the purpose of:

Code:
 $successful = true; 
 if($successful === true){  
 }
Secondly, javascript should not be used to redirect a user, what happens if they don't have javascript enabled?

A better approach is to use the meta tag.

And lastly

Code:
 } else { 
        show_error_msg(T_("ACCESS_DENIED"), $message, 1);
Will cause a syntax error.
Reply With Quote
The Following 2 Users Say Thank You to LeeHowarth For This Useful Post:
BamBam0077 (11th September 2019), papad (4th September 2019)