HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/NVonken/mijneigenlied.com/wwwroot/Core/Page Elements/userbar.element.php
<?php
	
	General::Load("User");
	
	class Element_UserBar
	{
		
		public $elementName = 'UserBar';
		private $_tpl;
		
		public static function Settings()
		{
			return array(	"Pageable" 		=> false,
							"DisplayName" 	=> "User Bar",
							"Version" 		=> 1.0,
							"Filename"		=> "userbar.element.php");
		}
		
		function run()
		{
		
			$this->_tpl = new tpl();
			
			if(User::CheckLogin())
			{
				$user = User::GetUserInfo();
				$this->_tpl->assign('Name',$user->Name);
				$this->_tpl->assign('Id',$user->Id);
									
				return $this->_tpl->parse("General/user-bar-login");
			
			}
			
			return $this->_tpl->parse("General/user-bar");
		}
	}

?>