mirror of
				https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
				synced 2025-10-31 03:50:20 -04:00 
			
		
		
		
	Removed redundant code
- $tg_user was no longer used for validating if a subscriber was logged in or not, as this has been moved to a $_SESSION variable.
This commit is contained in:
		
							parent
							
								
									c08264f4f7
								
							
						
					
					
						commit
						7ee0aa3540
					
				| @ -9,8 +9,6 @@ $some = array(_("Some systems are experiencing major outages"), _("Some systems | |||||||
| $all = array(_("Our systems are experiencing major outages."), _("Our systems are experiencing minor outages"), _("Our systems are under maintenance"), _("All systems operational")); | $all = array(_("Our systems are experiencing major outages."), _("Our systems are experiencing minor outages"), _("Our systems are under maintenance"), _("All systems operational")); | ||||||
| $permissions = array(_("Super admin"), _("Admin"), _("Editor")); | $permissions = array(_("Super admin"), _("Admin"), _("Editor")); | ||||||
| 
 | 
 | ||||||
| require_once("classes/telegram.php");  |  | ||||||
| 
 |  | ||||||
| /** | /** | ||||||
| * Class that encapsulates methods to render header and footer | * Class that encapsulates methods to render header and footer | ||||||
| */ | */ | ||||||
| @ -23,10 +21,6 @@ class Template{ | |||||||
|   public static function render_header($page_name, $admin = false){ |   public static function render_header($page_name, $admin = false){ | ||||||
|     if (!$admin) |     if (!$admin) | ||||||
|     { |     { | ||||||
|          |  | ||||||
|       $telegram = new Telegram(); |  | ||||||
|       $tg_user = $telegram->getTelegramUserData();  // TODO Is this needed any longer?
 |  | ||||||
|        |  | ||||||
|       // Create subscriber menu sections for later inclusion
 |       // Create subscriber menu sections for later inclusion
 | ||||||
|       // Check if we are on admin menu, if so do not display
 |       // Check if we are on admin menu, if so do not display
 | ||||||
|       $arr_url = explode("/", $_SERVER['PHP_SELF']); |       $arr_url = explode("/", $_SERVER['PHP_SELF']); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user