Add old log remover and repair islogin function error
This commit is contained in:
		@@ -4,7 +4,7 @@ class Ajax extends Template
 | 
			
		||||
{
 | 
			
		||||
	function __construct()
 | 
			
		||||
	{
 | 
			
		||||
		global $userManager;
 | 
			
		||||
		$userManager = new UserManager();
 | 
			
		||||
		global $lang;
 | 
			
		||||
 | 
			
		||||
		if (!$userManager->isLogin()){
 | 
			
		||||
 
 | 
			
		||||
@@ -3,8 +3,8 @@ class Automation extends Template
 | 
			
		||||
{
 | 
			
		||||
	function __construct()
 | 
			
		||||
	{
 | 
			
		||||
		global $userManager;
 | 
			
		||||
		global $langMng;
 | 
			
		||||
		$userManager = new UserManager();
 | 
			
		||||
		global $lang;
 | 
			
		||||
 | 
			
		||||
		if (!$userManager->isLogin()){
 | 
			
		||||
			header('Location: ' . BASEURL . 'login');
 | 
			
		||||
 
 | 
			
		||||
@@ -18,8 +18,8 @@ class Log extends Template
 | 
			
		||||
 | 
			
		||||
	function __construct()
 | 
			
		||||
	{
 | 
			
		||||
		global $userManager;
 | 
			
		||||
		global $langMng;
 | 
			
		||||
		$userManager = new UserManager();
 | 
			
		||||
		global $lang;
 | 
			
		||||
 | 
			
		||||
		if (!$userManager->isLogin()){
 | 
			
		||||
			header('Location: ' . BASEURL . 'login');
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@ class Login extends Template
 | 
			
		||||
{
 | 
			
		||||
	function __construct()
 | 
			
		||||
	{
 | 
			
		||||
		global $userManager;
 | 
			
		||||
		$userManager = new UserManager();
 | 
			
		||||
		global $lang;
 | 
			
		||||
 | 
			
		||||
		if ($userManager->isLogin()){
 | 
			
		||||
 
 | 
			
		||||
@@ -4,8 +4,8 @@ class Setting extends Template
 | 
			
		||||
	function __construct()
 | 
			
		||||
	{
 | 
			
		||||
 | 
			
		||||
		global $userManager;
 | 
			
		||||
		global $langMng;
 | 
			
		||||
		$userManager = new UserManager();
 | 
			
		||||
		global $lang;
 | 
			
		||||
 | 
			
		||||
		if (!$userManager->isLogin()){
 | 
			
		||||
			header('Location: ' . BASEURL . 'login');
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user