mirror of
				https://github.com/optim-enterprises-bv/control-pane.git
				synced 2025-10-30 17:37:59 +00:00 
			
		
		
		
	* Locale is now Localization
This commit is contained in:
		| @@ -2,7 +2,7 @@ | ||||
|  | ||||
| require_once("cbsd.php"); | ||||
| require_once('config.php'); | ||||
| require_once('locale.php'); | ||||
| require_once('localization.php'); | ||||
| require_once('db.php'); | ||||
| require_once('forms.php'); | ||||
| require_once('utils.php'); | ||||
| @@ -87,7 +87,7 @@ class ClonOS { | ||||
|  | ||||
| 		$this->config=new Config(); | ||||
|  | ||||
| 		$this->_locale = new Locale($this->realpath_public); | ||||
| 		$this->_locale = new Localization($this->realpath_public); | ||||
|  | ||||
| 		$this->_client_ip=$_SERVER['REMOTE_ADDR']; | ||||
|  | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| <?php | ||||
| 
 | ||||
| class Locale | ||||
| class Localization | ||||
| { | ||||
| 	private $language='en'; | ||||
| 	private $translate_arr=array(); | ||||
| @@ -30,7 +30,7 @@ class Menu | ||||
| 	public $title='Error'; | ||||
| 	public $first_key=array(); | ||||
|  | ||||
| 	function __construct(Locale $lang, $uri_chunks) | ||||
| 	function __construct(Localization $lang, $uri_chunks) | ||||
| 	{ | ||||
| 		$menu_config = Config::$menu; | ||||
| 		$this->first_key = array_key_first($menu_config); | ||||
|   | ||||
| @@ -11,7 +11,7 @@ require_once($_real_path.'/php/clonos.php'); | ||||
| require_once($_real_path.'/php/menu.php'); | ||||
| $chunks=Utils::gen_uri_chunks($uri); | ||||
| $clonos=new ClonOS($_real_path, $chunks); | ||||
| $locale = new Locale($_real_path.'/public/'); # /usr/home/web/cp/clonos/public/ | ||||
| $locale = new Localization($_real_path.'/public/'); # /usr/home/web/cp/clonos/public/ | ||||
| $menu=new Menu($locale, $chunks); | ||||
|  | ||||
| if(isset($_GET['upload'])){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Momchil Bozhinov
					Momchil Bozhinov