mirror of
				https://github.com/usmannasir/cyberpanel.git
				synced 2025-11-03 20:05:58 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			436 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			436 B
		
	
	
	
		
			Python
		
	
	
	
	
	
import json
 | 
						|
 | 
						|
class CLMain():
 | 
						|
    def __init__(self):
 | 
						|
        self.path = '/usr/local/CyberCP/version.txt'
 | 
						|
        #versionInfo = json.loads(open(self.path, 'r').read())
 | 
						|
        self.version = '2.4'
 | 
						|
        self.build = '3'
 | 
						|
 | 
						|
        ipFile = "/etc/cyberpanel/machineIP"
 | 
						|
        f = open(ipFile)
 | 
						|
        ipData = f.read()
 | 
						|
        self.ipAddress = ipData.split('\n', 1)[0]
 | 
						|
 | 
						|
        self.initialMeta = {
 | 
						|
            "result": "ok"
 | 
						|
        } |