phpcms-plugins-cvs Mailing List for phpCMS-plugins
Brought to you by:
mjahn
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(40) |
Jun
(38) |
Jul
(36) |
Aug
(46) |
Sep
(13) |
Oct
(1) |
Nov
|
Dec
(57) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(2) |
Feb
(19) |
Mar
|
Apr
(43) |
May
(119) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Martin J. <mj...@us...> - 2005-05-26 16:08:11
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/media In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/media Removed Files: background.png empty.png layout.css logo.png print.css style.css Log Message: some maintenance --- logo.png DELETED --- --- background.png DELETED --- --- layout.css DELETED --- --- empty.png DELETED --- --- print.css DELETED --- --- style.css DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:08:08
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/default Removed Files: ApacheLogVisits.html ApacheLogsReader.html Stats.html _modules_statistik_class_apache_logs_reader_php.html _modules_statistik_class_stat_phpcms_php.html _modules_statistik_input_test_logsreader_php.html _modules_statistik_pie3d_csimex1_php.html Log Message: some maintenance --- _modules_statistik_pie3d_csimex1_php.html DELETED --- --- Stats.html DELETED --- --- _modules_statistik_class_stat_phpcms_php.html DELETED --- --- ApacheLogVisits.html DELETED --- --- _modules_statistik_input_test_logsreader_php.html DELETED --- --- ApacheLogsReader.html DELETED --- --- _modules_statistik_class_apache_logs_reader_php.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:08:08
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_user Removed Files: _modules_user_class_module_user_php.html _modules_user_class_phpcms_auth_php.html _modules_webdav_class_module_webdav_php.html module_user.html phpCMSAuth.html Log Message: some maintenance --- _modules_user_class_module_user_php.html DELETED --- --- _modules_user_class_phpcms_auth_php.html DELETED --- --- module_user.html DELETED --- --- _modules_webdav_class_module_webdav_php.html DELETED --- --- phpCMSAuth.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:08:08
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_webdav In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_webdav Removed Files: module_webdav.html Log Message: some maintenance --- module_webdav.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:08:08
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_statistic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_statistic Removed Files: ApacheLogVisits.html _modules_statistik_class_module_statistik_php.html _modules_statistik_class_statistic_apache_php.html _modules_statistik_class_statistic_common_php.html _modules_statistik_class_statistic_phpcms_php.html module_statistik.html statistic_common.html statistic_phpcms.html Log Message: some maintenance --- ApacheLogVisits.html DELETED --- --- _modules_statistik_class_statistic_apache_php.html DELETED --- --- _modules_statistik_class_statistic_common_php.html DELETED --- --- _modules_statistik_class_module_statistik_php.html DELETED --- --- module_statistik.html DELETED --- --- statistic_common.html DELETED --- --- _modules_statistik_class_statistic_phpcms_php.html DELETED --- --- statistic_phpcms.html DELETED --- |
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_phpcms In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_phpcms Removed Files: _modules_phpcms_class_module_phpcms_php.html _modules_phpcms_class_phpcms_menu_php.html module_phpcms.html phpcms_menu.html Log Message: some maintenance --- phpcms_menu.html DELETED --- --- _modules_phpcms_class_phpcms_menu_php.html DELETED --- --- _modules_phpcms_class_module_phpcms_php.html DELETED --- --- module_phpcms.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:08:07
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_mail In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_mail Removed Files: _modules_mail_class_module_mail_php.html module_mail.html Log Message: some maintenance --- _modules_mail_class_module_mail_php.html DELETED --- --- module_mail.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:08:06
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_statistik In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_statistik Removed Files: _modules_hilfe_class_module_hilfe_php.html Log Message: some maintenance --- _modules_hilfe_class_module_hilfe_php.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:08:06
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_log In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_log Removed Files: _modules_log_class_module_log_php.html module_log.html Log Message: some maintenance --- _modules_log_class_module_log_php.html DELETED --- --- module_log.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:08:06
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_layout In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_layout Removed Files: _modules_layout_class_module_layout_php.html module_layout.html Log Message: some maintenance --- module_layout.html DELETED --- --- _modules_layout_class_module_layout_php.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:08:01
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS Removed Files: _include_class_actionhandler_php.html _include_class_eventhandler_php.html _include_class_framework_php.html _include_class_module_php.html _index_php.html _info_php.html actionHandler.html eventHandler.html framework.html Log Message: some maintenance --- eventHandler.html DELETED --- --- _include_class_actionhandler_php.html DELETED --- --- _include_class_eventhandler_php.html DELETED --- --- _include_class_framework_php.html DELETED --- --- actionHandler.html DELETED --- --- framework.html DELETED --- --- _info_php.html DELETED --- --- _index_php.html DELETED --- --- _include_class_module_php.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:08:00
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_help In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_help Removed Files: module_hilfe.html Log Message: some maintenance --- module_hilfe.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:08:00
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_filemanager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_filemanager Removed Files: _modules_filemanager_class_file_util_php.html _modules_filemanager_class_module_filemanager_php.html _modules_filemanager_config_filemanager_php.html file_util.html module_filemanager.html Log Message: some maintenance --- _modules_filemanager_class_file_util_php.html DELETED --- --- file_util.html DELETED --- --- _modules_filemanager_class_module_filemanager_php.html DELETED --- --- _modules_filemanager_config_filemanager_php.html DELETED --- --- module_filemanager.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:07:59
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_error In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_error Removed Files: _modules_error_class_module_error_php.html module_error.html Log Message: some maintenance --- _modules_error_class_module_error_php.html DELETED --- --- module_error.html DELETED --- |
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_editor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_editor Removed Files: _modules_editor_class_module_editor_php.html _modules_editor_class_module_image_editor_php.html _modules_editor_class_module_phpcms_editor_php.html _modules_editor_class_module_text_editor_php.html _modules_editor_class_module_xml_editor_php.html _modules_editor_class_module_zip_editor_php.html module_editor.html module_image_editor.html module_phpcms_editor.html module_text_editor.html module_xml_editor.html module_zip_editor.html Log Message: some maintenance --- _modules_editor_class_module_phpcms_editor_php.html DELETED --- --- module_zip_editor.html DELETED --- --- _modules_editor_class_module_editor_php.html DELETED --- --- _modules_editor_class_module_text_editor_php.html DELETED --- --- _modules_editor_class_module_zip_editor_php.html DELETED --- --- _modules_editor_class_module_image_editor_php.html DELETED --- --- module_xml_editor.html DELETED --- --- _modules_editor_class_module_xml_editor_php.html DELETED --- --- module_image_editor.html DELETED --- --- module_editor.html DELETED --- --- module_text_editor.html DELETED --- --- module_phpcms_editor.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:07:58
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_config Removed Files: _modules_config_class_module_config_php.html module_config.html Log Message: some maintenance --- module_config.html DELETED --- --- _modules_config_class_module_config_php.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:07:58
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500 Removed Files: .cvsignore Benutzerhandbuch.lyx classtrees_admin4phpCMS.html classtrees_default.html elementindex.html elementindex_admin4phpCMS.html elementindex_default.html errors.html fdl.txt gpl.txt index.html li_admin4phpCMS.html li_default.html ric_Changelog.html ric_INSTALL.html todolist.html Log Message: some maintenance --- .cvsignore DELETED --- --- elementindex.html DELETED --- --- gpl.txt DELETED --- --- index.html DELETED --- --- fdl.txt DELETED --- --- elementindex_default.html DELETED --- --- ric_INSTALL.html DELETED --- --- todolist.html DELETED --- --- errors.html DELETED --- --- li_default.html DELETED --- --- ric_Changelog.html DELETED --- --- classtrees_admin4phpCMS.html DELETED --- --- classtrees_default.html DELETED --- --- Benutzerhandbuch.lyx DELETED --- --- li_admin4phpCMS.html DELETED --- --- elementindex_admin4phpCMS.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:07:58
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/__examplesource In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/__examplesource Removed Files: exsource_artin_devel_admin4phpCMS_modules_config_config.xml_8a8c560ef80a7a5b4c8b8756941a6850.html Log Message: some maintenance --- exsource_artin_devel_admin4phpCMS_modules_config_config.xml_8a8c560ef80a7a5b4c8b8756941a6850.html DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 16:07:57
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/docs/admin4phpCMS/module_debug In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22500/admin4phpCMS/module_debug Removed Files: _modules_debug_class_module_debug_php.html module_debug.html Log Message: some maintenance --- _modules_debug_class_module_debug_php.html DELETED --- --- module_debug.html DELETED --- |
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); |
From: Martin J. <mj...@us...> - 2005-05-26 15:56:35
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19290/modules/phpcms/templates Modified Files: module_phpcms.tpl phpcms-config.tpl phpcms-server.tpl Log Message: beginning of phpcms-content and filemanager Index: phpcms-config.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/phpcms-config.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- phpcms-config.tpl 20 May 2005 05:54:04 -0000 1.4 +++ phpcms-config.tpl 26 May 2005 15:55:55 -0000 1.5 @@ -760,15 +760,15 @@ </span> <label class="horizontal"> <span>{#status_on#}</span> - <input type="radio" name="showexpert" value="on" onclick="showArea ('expert');" onkeypress="showArea ('expert');" /> + <input type="radio" name="showexpert" value="on" checked="checked" onclick="showArea ('expert');" onkeypress="showArea ('expert');" /> </label> <label class="horizontal"> <span>{#status_off#}</span> - <input type="radio" name="showexpert" value="off" checked="checked" onclick="hideArea ('expert');" onkeypress="hideArea ('expert');" /> + <input type="radio" name="showexpert" value="off" onclick="hideArea ('expert');" onkeypress="hideArea ('expert');" /> </label> <br style="clear:both;" /> </div> - <div id="expert" class="hidden"> + <div id="expert"> <input type="hidden" name="type[ERROR_ALL]" value="string" /> <div class="label"> <span class="info"> @@ -808,7 +808,7 @@ <input type="hidden" name="func[DOMAIN_NAME]" value="$PHP->GetDomainName()" /> <div class="label"> <span class="info"> - {#label_config_131#} + {#label_config_131#}<br /><small>{$moduledata.autodetect._domain_name}</small> <span> {#label_config_132#} </span> @@ -834,7 +834,7 @@ <input type="hidden" name="func[DOCUMENT_ROOT]" value="$PHP->GetDocRoot()" /> <div class="label"> <span class="info"> - {#label_config_136#} + {#label_config_136#}<br /><small>{$moduledata.autodetect._document_root}</small> <span> {#label_config_137#} </span> @@ -852,15 +852,15 @@ <div id="doc_root" {if ($moduledata.default.DOCUMENT_ROOT.type == 'func')} class="hidden"{/if}> <label> <span class="info"> - Apply Document-Root manually + {#label_config_137a#} </span> <input type="text" name="values[DOCUMENT_ROOT]" value="{if ($moduledata.default.DOCUMENT_ROOT.type == 'string')}{$moduledata.default.DOCUMENT_ROOT.value}{/if}" /> </label> </div> <input type="hidden" name="func[SCRIPT_PATH]" value="$PHP->GetScriptPath()" /> <div class="label"> - <span> - {#label_config_138#} + <span class="info"> + {#label_config_138#}<br /><small>{$moduledata.autodetect._path_info}</small> <span> {#label_config_139#} </span> @@ -886,8 +886,11 @@ <input type="hidden" name="func[SCRIPT_NAME]" value="$PHP->GetScriptName()" /> <div class="label"> - <span> - {#label_config_141#} + <span class="info"> + {#label_config_141#}<br /><small>{$moduledata.autodetect._script_name}</small> + <span> + {#label_config_142#} + </span> </span> <label class="horizontal"> <span>{#label_config_133#}</span> @@ -902,7 +905,7 @@ <div id="script_name" {if ($moduledata.default.SCRIPT_NAME.type == 'func')} class="hidden"{/if}> <label> <span> - {#label_config_142#} + {#label_config_143#} </span> <input type="text" name="values[SCRIPT_NAME]" value="{if ($moduledata.default.SCRIPT_NAME.type == 'string')}{$moduledata.default.SCRIPT_NAME.value}{/if}" /> </label> Index: module_phpcms.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/module_phpcms.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- module_phpcms.tpl 20 May 2005 05:54:04 -0000 1.4 +++ module_phpcms.tpl 26 May 2005 15:55:55 -0000 1.5 @@ -1,4 +1,7 @@ {config_load file="`$MODULE_PATH`/phpcms/module_phpcms_`$LANG`.lng" section="phpcms" scope="local"} +{if ($moduledata.debugmode == 1)} +<p class="warning">Warning: The phpCMS-System is running in DEBUG-Mode. This is not optimal for the security of the phpCMS-Installation</p> +{/if} {if ($moduledata.action == 'config')} {include file="$INDEX_PATH/modules/phpcms/templates/phpcms-config.tpl"} Index: phpcms-server.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms/templates/phpcms-server.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- phpcms-server.tpl 20 May 2005 05:54:04 -0000 1.3 +++ phpcms-server.tpl 26 May 2005 15:55:55 -0000 1.4 @@ -164,6 +164,64 @@ {/if} {/if} +<h2>{#title_php#}</h2> +<table id="table_php"> + <colgroup span="2"> + </colgroup> + <thead> + <tr> + <th>{#label_php_name#}</th> + <th>{#label_php_value#}</th> + </tr> + </thead> + <tfoot> + <tr> + <td>{#label_php_name#}</td> + <td>{#label_php_value#}</td> + </tr> + </tfoot> + <tbody> + <tr class="line1"> + <td>{#text_php_php_version#}</td> + <td>{$moduledata.php.php}</td> + </tr> + <tr class="line2"> + <td>{#text_php_zend_version#}</td> + <td>{$moduledata.php.zend}</td> + </tr> + <tr class="line1"> + <td>{#text_php_sapi#}</td> + <td>{$moduledata.php.sapi}</td> + </tr> + <tr class="line2"> + <td>{#text_php_hostname#}</td> + <td>{$moduledata.php.hostname}</td> + </tr> + <tr class="line1"> + <td>{#text_php_os#}</td> + <td>{$moduledata.php.os}</td> + </tr> + <tr class="line2"> + <td>{#text_php_release#}</td> + <td>{$moduledata.php.release}</td> + </tr> + <tr class="line1"> + <td>{#text_php_version#}</td> + <td>{$moduledata.php.version}</td> + </tr> + <tr class="line2"> + <td>{#text_php_machine#}</td> + <td>{$moduledata.php.machine}</td> + </tr> + </tbody> +</table> +<script type="text/javascript"> +<!-- +initTable("table_php"); +--> +</script> + + <h2>{#title_vars#}</h2> <table id="table_server"> <colgroup span="2"> |
From: Martin J. <mj...@us...> - 2005-05-26 15:56:34
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/user In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19290/modules/user Modified Files: class.module_user.php Added Files: module.ini Log Message: beginning of phpcms-content and filemanager --- NEW FILE: module.ini --- userfile = "user.db" permfile = "perm.db" Index: class.module_user.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/user/class.module_user.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- class.module_user.php 20 May 2005 05:54:05 -0000 1.14 +++ class.module_user.php 26 May 2005 15:55:55 -0000 1.15 @@ -30,6 +30,9 @@ /* * $Log$ +* Revision 1.15 2005/05/26 15:55:55 mjahn +* beginning of phpcms-content and filemanager +* * Revision 1.14 2005/05/20 05:54:05 mjahn * last step for module_phpcms * @@ -100,6 +103,7 @@ **/ class module_user extends module { + var $_CONF = array ('userfile'=>'user.db', 'permfile'=>'perm.db'); /** * @var object $_USER reference to the user- and permission-managment-object * @access private @@ -131,11 +135,9 @@ $this->_registerAction ('doGetUserStatus', 'getUserStatus'); // get module-config from config-module - $actiondata1 = array ('module'=>'user'); - $this->_callEvent ('CONFIG_GET', $actiondata1); - $this->CONF =& $actiondata1 ['config']; - - $this->_USER = new Auth('File', dirname (__FILE__).'/'.$this->CONF ['userfile'], '', false); + $this->_CONF = array_merge ($this->_CONF, parse_ini_file (dirname (__FILE__).'/module.ini')); + + $this->_USER = new Auth('File', dirname (__FILE__).'/'.$this->_CONF ['userfile'], '', false); $this->_USER->setShowLogin (false); $GLOBALS ['user4phpcms'] =& $this->_USER; @@ -145,7 +147,8 @@ /** * Parse the URI-params * - * @param array $actiondata $actiondata contains the URI-param-arrays + * @param array $actiondata $actiondata contains the URI-param-arrays + * @todo implement a login function for all the login-attempts due to security-reasons **/ function parseParam (&$actiondata) { @@ -179,22 +182,22 @@ if (true || $this->_USER->getUsername () == 'Martin Jahn') { - $this->_selectedUser = array (); - - if ($actiondata ['post'] ['submit-deluser'] == -1) { - // delete multiple user - $this->adminAction = 'delete-user'; - foreach ($actiondata ['post'] as $id=>$value) { - if (substr ($id, 0, 12) != 'select-user-') { - continue; + $this->_selectedUser = array (); + + if ($actiondata ['post'] ['submit-deluser'] == -1) { + // delete multiple user + $this->adminAction = 'delete-user'; + foreach ($actiondata ['post'] as $id=>$value) { + if (substr ($id, 0, 12) != 'select-user-') { + continue; + } + $this->_selectedUser [] = substr ($id, 12); } - $this->_selectedUser [] = substr ($id, 12); + } else { + // delete one user + $this->adminAction = 'delete-user'; + $this->_selectedUser = array ($actiondata ['post'] ['submit-deluser']); } - } else { - // delete one user - $this->adminAction = 'delete-user'; - $this->_selectedUser = array ($actiondata ['post'] ['submit-deluser']); - } } } |
From: Martin J. <mj...@us...> - 2005-05-26 15:56:32
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19290 Modified Files: Todo Changelog Log Message: beginning of phpcms-content and filemanager Index: Todo =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/Todo,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Todo 21 May 2004 19:50:28 -0000 1.1 +++ Todo 26 May 2005 15:55:52 -0000 1.2 @@ -1 +1,11 @@ -There's already much to do \ No newline at end of file +There's already much to do + +The following modules have to be coded: + * Statistic (some things are already coded) + * Online-Editor + * User-managment + * Rights-managment + * Pluginmanager + * WebDAV + * WebFTP + * WebMail Index: Changelog =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/Changelog,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- Changelog 20 May 2005 05:54:05 -0000 1.12 +++ Changelog 26 May 2005 15:55:52 -0000 1.13 @@ -1,3 +1,14 @@ +May 26 2005 (mjahn) + * replaced the module config with + + modules.ini in directory modules/ + + module.ini in the module's directory for configdata + +May 24 2005 (mjahn) + * optimized phpcms-config for showing the values of the autoedetected + variables (script_name, script_path, document_root and domain_name) + via class.lib_phpcms.php + * begin of integration of tinyMCE into module phpcms-content + May 15 2005 (mjahn) * included AJAX-files into distribution (tools directory) * optimized languagefiles and templates of module phpCMS |
From: Martin J. <mj...@us...> - 2005-05-26 15:56:32
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms-content In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19290/modules/phpcms-content Modified Files: class.module_phpcms_content.php Added Files: module_phpcms-content_en.lng Removed Files: module_phpcms_de.lng module_phpcms_en.lng Log Message: beginning of phpcms-content and filemanager --- module_phpcms_en.lng DELETED --- Index: class.module_phpcms_content.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms-content/class.module_phpcms_content.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- class.module_phpcms_content.php 15 May 2005 12:24:03 -0000 1.2 +++ class.module_phpcms_content.php 26 May 2005 15:55:52 -0000 1.3 @@ -28,6 +28,9 @@ /* * $Log$ +* Revision 1.3 2005/05/26 15:55:52 mjahn +* beginning of phpcms-content and filemanager +* * Revision 1.2 2005/05/15 12:24:03 mjahn * Commit as backup during development * @@ -57,7 +60,7 @@ $actiondata1 = array ('module' => 'phpcms-content'); $this->_callEvent('CONFIG_GET', $actiondata1); $this->_CONF = $actiondata1['config']; - + $this->docroot = dirname (realpath ($_SERVER ['DOCUMENT_ROOT']).'/.'); return true; } // function init () @@ -74,17 +77,18 @@ if (isset ($actiondata['request']['action'])) { $this->action = $actiondata['request']['action']; } - if ($this->display) { $this->_registerAction('doGetData', 'getData'); - $this->_registerAction('doGetLanguage', 'getLanguageData'); switch ($this->action) { - case 'config' : - $this->_registerAction('doProcess', 'processConfig'); - $this->_configaction = ''; - if (isset ($actiondata['request']['configform-submit'])) { - $this->_configaction = 'save'; - $this->_formdata = $actiondata['post']; + case 'content' : + $this->_registerAction('doProcess', 'processContent'); + $this->_contentaction = ''; + if (isset ($actiondata['request']['contentaction'])) { + $this->_contentaction = strip_tags ($actiondata['request']['contentaction']); + } + $this->_contentfile = ''; + if (isset ($actiondata['request']['contentfile'])) { + $this->_contentfile = strip_tags ($actiondata['request']['contentfile']); } break; default:; @@ -140,20 +144,10 @@ function getphpCMSMenu (&$actiondata) { if (!isset ($this->menu_loaded) || !$this->menu_loaded) { - // load menu from menufile - $actiondata1 = array ('id'=>'TEMPLATE_DIR'); - $this->_callEvent ('PHPCMS_GET_DEFAULT_VALUE', $actiondata1); - $this->templatedir = $actiondata1 ['value']; } } - - function getphpCMSMenuData () { - - return array (); - } - /** * Get content of the module * @@ -168,13 +162,11 @@ return true; } $data = array ('action'=>$this->action); - switch ($this->action) { case 'content':$data = array_merge ($data, $this->getphpCMSContentData ());break; case 'config':$data = array_merge ($data, $this->getphpCMSConfigData ());break; } - $data = array ('action'=>$this->action); if (isset ($this->_error) && count ($this->_error) > 0) { $data ['error'] = $this->_error; } @@ -188,37 +180,101 @@ function processConfig (&$actiondata) { } - function getphpCMSContentData () { - // get templatefiles - - // get menufiles - - // get menudata of current menufile - - // get contentfile of selected menuentry - + function processContent (&$actiondata) { + // get contentfile + if (trim ($this->_contentfile) && file_exists ($this->docroot.$this->_contentfile)) { + $this->_getContentData (); + } + + // get projectdata + $projectfile = ''; + if (isset ($this->contents ['PROJECT'])) { + $projectfile = trim ($this->contents ['PROJECT']); + } + $projectdata = $this->_getProjectData ($projectfile); + // get menudata of current menufile / projectfile + $menufile = $this->docroot.$projectdata ['MENU']; + include_once (dirname (__FILE__).'/includes/class.phpcmsMenu.php'); + $this->menu = new phpcmsMenu (); + $this->menu->load ($menufile); // end } - function getLanguageData (&$actiondata) { - - $langAvailable = array ('de', 'en'); - - $data = $actiondata [$actiondata ['tag']]; - - foreach ($langAvailable as $lang) { - if (!file_exists (dirname (__FILE__).'/module_phpcms-content_'.$lang.'.lng')) { + function getphpCMSContentData () { + return array ('menu'=>$this->menu->menu, 'contents'=>$this->contents); + } + + function getphpCMSConfigData () { + return array ('menu'=>$this->menu->menu, 'contents'=>$this->contents); + } + + function _getContentData () { + $contents = file ($this->docroot.$this->_contentfile); + $this->contents = array (); + $temp = ''; + $fieldname = ''; + for ($i = 0; $i < count ($contents); $i++) { + $start = strpos ($contents [$i], '{'); + $ende = strpos ($contents [$i], '}', $start + 1); + // is there a new field-definition? + if ($start == 1 && $ende > $start) { + // oh, we got a new field definition in the contentfile + if (!isset ($this->contents [$fieldname])) { + // save the content in front of the new field-definition in the old field + $temp .= substr ($contents [$i], 0, $start - 1); + $this->contents [$fieldname] = $temp; + } + // get the new fieldname + $fieldname = substr ($contents [$i], $start + 1, $ende - $start); + // save content between the fieldname and the end of the line in the new field + $temp = substr ($contents [$i], $ende + 1, strlen ($contents [$i]) - $ende); + continue;; + } + $temp .= $contents [$i]; + } + if (!isset ($this->contents [$fieldname])) { + $this->contents [$fieldname] = $temp; + } + } + + function _getProjectData ($projectfile = '') { + if (trim ($projectfile) == '') { + // get projectdir + $actiondata1 = array ('id'=>'GLOBAL_PROJECT_FILE'); + $this->_callEvent ('PHPCMS_GET_DEFAULTS_VALUE', $actiondata1); + $projectfile = $actiondata1 ['value']; + } + if (!file_exists ($this->docroot.$projectfile)) { + return false; + } + $data = file ($this->docroot.$projectfile); + $ret = array (); + $vars = array (); + for ($i = 0; $i < count ($data); $i++) { + $line = trim ($data [$i]); + if ($line {0} == ';') { + // the line is commented out continue; } - if (isset ($data [$lang])) { - $data [$lang] = array_merge ($data [$lang], parse_ini_file (dirname (__FILE__).'/module_phpcms-content_'.$lang.'.lng')); - } else { - $data [$lang] = parse_ini_file (dirname (__FILE__).'/module_phpcms-content_'.$lang.'.lng', true); + // search for the symbol ':=' + $trenner = strpos ($line, ':='); + if ($trenner < 2) { + continue; + } + + $fieldname = substr ($line, 0, $trenner - 1); + $value = substr ($line, $trenner + 2, strlen ($line)); + + // replace variables ($home) + if ($fieldname == 'HOME') { + $vars ['$home'] = $value; } + + $value = str_replace (array_keys ($vars), array_values ($vars), $value); + $value = str_replace ('//', '/', $value); + $ret [$fieldname] = trim ($value); } - $actiondata [$actiondata ['tag']] = $data; - - return true; + return $ret; } } --- NEW FILE: module_phpcms-content_en.lng --- [editor] title_editor = "Editor" title_menu = "Menu" title_menu_options = "Options" button_new = "New" button_open ="Open" button_save = "Save" button_delete = "Delete" button_saveexit = "Save and quit" --- module_phpcms_de.lng DELETED --- |
From: Martin J. <mj...@us...> - 2005-05-26 15:56:24
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19290/include Modified Files: class.framework.php Log Message: beginning of phpcms-content and filemanager Index: class.framework.php =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/include/class.framework.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- class.framework.php 7 Apr 2005 14:09:09 -0000 1.9 +++ class.framework.php 26 May 2005 15:55:31 -0000 1.10 @@ -34,6 +34,9 @@ /* * $Log$ +* Revision 1.10 2005/05/26 15:55:31 mjahn +* beginning of phpcms-content and filemanager +* * Revision 1.9 2005/04/07 14:09:09 mjahn * Commit as backup during development * @@ -113,22 +116,9 @@ $actiondata = array ('eventname'=>'DISPLAY', 'eventaction'=>'doDisplay'); $this->eventhandler->event ('REGISTER_EVENT', $actiondata); - // load the configuration module - // this is done hardcoded because of the configuration module - $actiondata = array ('filename'=>dirname(__FILE__).'/../modules/config/class.module_config.php', 'class'=>'module_config'); - $this->eventhandler->event ('LOAD_MODULE', $actiondata); - - // parse the configuration file - $actiondata = array (); - $this->eventhandler->event ('CONFIG_READ', $actiondata); - - // get configuration data with the modules to load - $actiondata = array (); - $this->eventhandler->event ('CONFIG_GET', $actiondata); - $config =& $actiondata['config']; - - // load all the needed modules + // read the modules.ini file and load the modules $moduledir = realpath (dirname (__FILE__).'/../modules/'); + $config = parse_ini_file ($moduledir.'/modules.ini', true); foreach ($config as $id=>$module) { // calculate the path to the module file |