Thread: [Phpcms-plugins-cvs] admin4phpCMS/modules/phpcms module.ini,NONE,1.1 module_phpcms_en.lng,1.4,1.5 cl
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2005-05-26 15:56:39
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19290/modules/phpcms Modified Files: module_phpcms_en.lng class.module_phpcms.php Added Files: module.ini Log Message: beginning of phpcms-content and filemanager Index: module_phpcms_en.lng =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/module_phpcms_en.lng,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- module_phpcms_en.lng 20 May 2005 05:54:05 -0000 1.4 +++ module_phpcms_en.lng 26 May 2005 15:55:48 -0000 1.5 @@ -335,11 +335,12 @@ label_config_135 = "Apply domain-name manually" label_config_136 = "Document-Root of the account" label_config_137 = "some description needed (21)" +label_config_137a = "Apply Document-Root manually" label_config_138 = "$script-path" label_config_139 = "some description needed (22)" label_config_140 = "Apply $script_path manually" label_config_141 = "$script_name" -label_config_142 = "some description needed (22)" +label_config_142 = "some description needed (23)" label_config_143 = "Apply $script_name manually" label_config_144 = "" label_config_145 = "" @@ -356,15 +357,26 @@ title_headers = "PHP headers information" title_headers_request = "PHP request headers" title_headers_response = "PHP response headers" -label_headers_name = "name" -label_headers_value = "value" +label_headers_name = "Name" +label_headers_value = "Value" title_server = "phpCMS — Server-Info" title_vars = "PHP variables" -label_vars_name = "variable" -label_vars_value = "value" +label_vars_name = "Variable" +label_vars_value = "Value" +title_php = "PHP installation" +label_php_name = "Property" +label_php_value = "Value" +text_php_php_version = "PHP-version" +text_php_zend_version = "PHP-core version (Zend engine)" +text_php_sapi = "Server API" +text_php_hostname = "Server hostname" +text_php_os = "Server OS" +text_php_release = "Server OS-release" +text_php_version = "Server OS-version" +text_php_machine = "Server OS-machine" title_ini = "PHP configuration" label_ini_property ="Property" --- NEW FILE: module.ini --- parser = /cms//parser/ Index: class.module_phpcms.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/class.module_phpcms.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- class.module_phpcms.php 20 May 2005 05:54:05 -0000 1.10 +++ class.module_phpcms.php 26 May 2005 15:55:48 -0000 1.11 @@ -28,8 +28,8 @@ /* * $Log$ -* Revision 1.10 2005/05/20 05:54:05 mjahn -* last step for module_phpcms +* Revision 1.11 2005/05/26 15:55:48 mjahn +* beginning of phpcms-content and filemanager * */ @@ -98,9 +98,7 @@ $this->_registerEvent('PHPCMS_SET_DEFAULTS_VALUE', 'doSetDefaultsValue'); $this->_registerAction('doSetDefaultsValue', '_setDefaultValue'); - $actiondata1 = array ('module' => 'phpcms'); - $this->_callEvent('CONFIG_GET', $actiondata1); - $this->_CONF = array_merge ($this->_CONF, $actiondata1['config']); + $this->_CONF = array_merge ($this->_CONF, parse_ini_file (dirname (__FILE__).'/module.ini')); return true; } @@ -121,7 +119,6 @@ if ($this->display) { $this->_registerAction('doGetData', 'getData'); - $this->_registerAction('doGetLanguage', 'getLanguageData'); switch ($this->action) { case 'cache' : $this->_registerAction('doProcess', 'processCache'); @@ -373,9 +370,13 @@ return true; } - $data = array ('action'=>$this->action, 'session'=>$_SESSION); - $data ['version'] = $this->_DEFAULTS ['VERSION']; - + $data = array ( + 'action'=>$this->action, + 'session'=>$_SESSION, + 'version' => $this->_DEFAULTS ['VERSION'], + 'debugmode' => $this->_DEFAULTS ['DEBUG'] ['value'] + ); + switch ($this->action) { case 'cache': if (count ($this->_CACHE) == 0) { @@ -412,6 +413,13 @@ eval ('$this->_DEFAULTS[\'PROXY_CACHE_TIME\'][\'value\'] = round ('.$this->_DEFAULTS['PROXY_CACHE_TIME']['value'].'/86400);'); $data ['default'] =& $this->_DEFAULTS; + $libfile = $this->docroot.$this->_CONF ['parser'].'/include/class.lib_phpcms.php'; + if (file_exists ($libfile)) { + include_once ($libfile); + $data ['autodetect'] = get_object_vars (new LibphpCMS ()); + } else { + echo $libfile; + } break; case 'indexer': if (count ($this->_indexerProfiles) == 0) { @@ -431,6 +439,7 @@ case 'serverinfo': // PHP-modules $temp = get_loaded_extensions (); + $data ['php'] = array ('php'=>PHP_VERSION, 'zend'=>@zend_version (), 'sapi'=>@php_sapi_name (), 'os'=>@php_uname ('s'), 'hostname'=>@php_uname('n'), 'release'=>@php_uname ('r'), 'version'=>@php_uname ('v'), 'machine'=>@php_uname ('m')); $data ['phpModules'] = array (); sort ($temp); foreach ($temp as $name) { @@ -618,7 +627,7 @@ * load a phpCMS-contentfile and parse it into an array **/ function _loadDefault() { - $_datafile = $this->docroot.$this->_CONF['parser_root'].'/include/default.php'; + $_datafile = $this->docroot.$this->_CONF['parser'].'/include/default.php'; if (function_exists('file_get_contents')) { $_data = file_get_contents($_datafile); } else { @@ -703,7 +712,7 @@ } } - $_datafile = $this->docroot.$this->_CONF['parser_root'].'/include/default.php'; + $_datafile = $this->docroot.$this->_CONF['parser'].'/include/default.php'; if (function_exists('file_get_contents')) { $_data = file_get_contents($_datafile); } else { @@ -860,7 +869,7 @@ return true; } - $_datafile = $this->docroot.$this->_CONF ['parser_root'].'/include/defaults_indexer.php'; + $_datafile = $this->docroot.$this->_CONF ['parser'].'/include/defaults_indexer.php'; if (($fh = fopen ($_datafile, 'wb')) === false) { return false; } @@ -869,7 +878,7 @@ } function _loadIndexer () { - $_datafile = $this->docroot.$this->_CONF ['parser_root'].'/include/defaults_indexer.php'; + $_datafile = $this->docroot.$this->_CONF ['parser'].'/include/defaults_indexer.php'; $data = file ($_datafile); array_pop ($data); array_shift ($data); |