mirror of
				https://github.com/grocy/grocy.git
				synced 2025-10-31 02:36:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
		
			457 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			457 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace Grocy\Services;
 | |
| 
 | |
| class ApplicationService extends BaseService
 | |
| {
 | |
| 	/**
 | |
| 	 * @return boolean
 | |
| 	 */
 | |
| 	public function IsDemoInstallation()
 | |
| 	{
 | |
| 		return file_exists(__DIR__ . '/../data/demo.txt');
 | |
| 	}
 | |
| 
 | |
| 	private $InstalledVersion;
 | |
| 	public function GetInstalledVersion()
 | |
| 	{
 | |
| 		if ($this->InstalledVersion == null)
 | |
| 		{
 | |
| 			$this->InstalledVersion = json_decode(file_get_contents(__DIR__ . '/../version.json'));
 | |
| 		}
 | |
| 
 | |
| 		return $this->InstalledVersion;
 | |
| 	}
 | |
| }
 |