mirror of
				https://github.com/ShaYmez/FreeSTAR-Status-Engine.git
				synced 2025-11-04 04:30:22 -05:00 
			
		
		
		
	Implement version check
This commit is contained in:
		
							parent
							
								
									13288ecb4f
								
							
						
					
					
						commit
						cd0147e319
					
				@ -54,7 +54,13 @@ if (isset($_GET['subscriber_logout'])){
 | 
				
			|||||||
  unset($_SESSION['subscriber_id']);
 | 
					  unset($_SESSION['subscriber_id']);
 | 
				
			||||||
  header('Location: index.php');
 | 
					  header('Location: index.php');
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					$db = SSDB();
 | 
				
			||||||
 | 
					$versionfile = fopen("versionfile", "r") or die("Unable to open version file!");
 | 
				
			||||||
 | 
					$appversion = fread($versionfile,filesize("versionfile"));
 | 
				
			||||||
 | 
					fclose($versionfile);
 | 
				
			||||||
 | 
					if($db->getSetting($mysqli,"dbConfigVersion") != $appversion){
 | 
				
			||||||
 | 
					  die("Database needs to be updated. Please update the database and try again.");
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
Template::render_header("Status");
 | 
					Template::render_header("Status");
 | 
				
			||||||
?>
 | 
					?>
 | 
				
			||||||
    <div class="text-center">
 | 
					    <div class="text-center">
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user