From geeklog-cvs at lists.geeklog.net Sun Nov 1 03:32:34 2009 From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net) Date: Sun, 01 Nov 2009 03:32:34 -0500 Subject: [geeklog-cvs] geeklog: Minor German translation update Message-ID: changeset 7426:1a195ed188fe url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/1a195ed188fe user: Dirk Haun date: Sun Nov 01 09:04:51 2009 +0100 description: Minor German translation update diffstat: language/german.php | 4 ++-- language/german_formal.php | 4 ++-- language/german_formal_utf-8.php | 4 ++-- language/german_utf-8.php | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diffs (84 lines): diff -r 7fcb2cf3765b -r 1a195ed188fe language/german.php --- a/language/german.php Sat Oct 31 23:30:59 2009 +0100 +++ b/language/german.php Sun Nov 01 09:04:51 2009 +0100 @@ -1601,7 +1601,7 @@ 'list_all' => 'Alle auflisten', 'meta_description' => 'Meta Description', 'meta_keywords' => 'Meta Keywords', - 'na' => 'N/A', + 'na' => 'n/v', 'token_expiry' => 'Du solltest Deine ?nderungen bis sp?testens %s durchf?hren. Danach wird das Security-Token, das in diese Seite eingebettet ist, ung?ltig und Du w?rdest Deine ?nderungen verlieren.' ); @@ -1976,7 +1976,7 @@ 20 => array('Exakter Ausdruck' => 'phrase', 'Alle Worte' => 'all', 'Eines der Worte' => 'any'), 21 => array('HTML 4.01 Transitional' => 'html401transitional', 'HTML 4.01 Strict' => 'html401strict', 'XHTML 1.0 Transitional' => 'xhtml10transitional', 'XHTML 1.0 Strict' => 'xhtml10strict'), 22 => array('Strict' => 'DENY', 'Same Origin' => 'SAMEORIGIN', '(disabled)' => ''), - 23 => array('Disabled' => 0, 'Enabled' => 1, 'Enabled (Default for Homepage only)' => 2) + 23 => array('Aktiviert' => 0, 'Deaktiviert' => 1, 'Aktiviert (Default nur auf der Startseite)' => 2) ); ?> diff -r 7fcb2cf3765b -r 1a195ed188fe language/german_formal.php --- a/language/german_formal.php Sat Oct 31 23:30:59 2009 +0100 +++ b/language/german_formal.php Sun Nov 01 09:04:51 2009 +0100 @@ -1602,7 +1602,7 @@ 'list_all' => 'Alle auflisten', 'meta_description' => 'Meta Description', 'meta_keywords' => 'Meta Keywords', - 'na' => 'N/A', + 'na' => 'n/v', 'token_expiry' => 'Sie sollten Ihre ?nderungen bis sp?testens %s durchf?hren. Danach wird das Security-Token, das in diese Seite eingebettet ist, ung?ltig und Sie w?rden Ihre ?nderungen verlieren.' ); @@ -1977,7 +1977,7 @@ 20 => array('Exakter Ausdruck' => 'phrase', 'Alle Worte' => 'all', 'Eines der Worte' => 'any'), 21 => array('HTML 4.01 Transitional' => 'html401transitional', 'HTML 4.01 Strict' => 'html401strict', 'XHTML 1.0 Transitional' => 'xhtml10transitional', 'XHTML 1.0 Strict' => 'xhtml10strict'), 22 => array('Strict' => 'DENY', 'Same Origin' => 'SAMEORIGIN', '(disabled)' => ''), - 23 => array('Disabled' => 0, 'Enabled' => 1, 'Enabled (Default for Homepage only)' => 2) + 23 => array('Aktiviert' => 0, 'Deaktiviert' => 1, 'Aktiviert (Default nur auf der Startseite)' => 2) ); ?> diff -r 7fcb2cf3765b -r 1a195ed188fe language/german_formal_utf-8.php --- a/language/german_formal_utf-8.php Sat Oct 31 23:30:59 2009 +0100 +++ b/language/german_formal_utf-8.php Sun Nov 01 09:04:51 2009 +0100 @@ -1602,7 +1602,7 @@ 'list_all' => 'Alle auflisten', 'meta_description' => 'Meta Description', 'meta_keywords' => 'Meta Keywords', - 'na' => 'N/A', + 'na' => 'n/v', 'token_expiry' => 'Sie sollten Ihre ??nderungen bis sp??testens %s durchf??hren. Danach wird das Security-Token, das in diese Seite eingebettet ist, ung??ltig und Sie w??rden Ihre ??nderungen verlieren.' ); @@ -1977,7 +1977,7 @@ 20 => array('Exakter Ausdruck' => 'phrase', 'Alle Worte' => 'all', 'Eines der Worte' => 'any'), 21 => array('HTML 4.01 Transitional' => 'html401transitional', 'HTML 4.01 Strict' => 'html401strict', 'XHTML 1.0 Transitional' => 'xhtml10transitional', 'XHTML 1.0 Strict' => 'xhtml10strict'), 22 => array('Strict' => 'DENY', 'Same Origin' => 'SAMEORIGIN', '(disabled)' => ''), - 23 => array('Disabled' => 0, 'Enabled' => 1, 'Enabled (Default for Homepage only)' => 2) + 23 => array('Aktiviert' => 0, 'Deaktiviert' => 1, 'Aktiviert (Default nur auf der Startseite)' => 2) ); ?> diff -r 7fcb2cf3765b -r 1a195ed188fe language/german_utf-8.php --- a/language/german_utf-8.php Sat Oct 31 23:30:59 2009 +0100 +++ b/language/german_utf-8.php Sun Nov 01 09:04:51 2009 +0100 @@ -1601,7 +1601,7 @@ 'list_all' => 'Alle auflisten', 'meta_description' => 'Meta Description', 'meta_keywords' => 'Meta Keywords', - 'na' => 'N/A', + 'na' => 'n/v', 'token_expiry' => 'Du solltest Deine ??nderungen bis sp??testens %s durchf??hren. Danach wird das Security-Token, das in diese Seite eingebettet ist, ung??ltig und Du w??rdest Deine ??nderungen verlieren.' ); @@ -1976,7 +1976,7 @@ 20 => array('Exakter Ausdruck' => 'phrase', 'Alle Worte' => 'all', 'Eines der Worte' => 'any'), 21 => array('HTML 4.01 Transitional' => 'html401transitional', 'HTML 4.01 Strict' => 'html401strict', 'XHTML 1.0 Transitional' => 'xhtml10transitional', 'XHTML 1.0 Strict' => 'xhtml10strict'), 22 => array('Strict' => 'DENY', 'Same Origin' => 'SAMEORIGIN', '(disabled)' => ''), - 23 => array('Disabled' => 0, 'Enabled' => 1, 'Enabled (Default for Homepage only)' => 2) + 23 => array('Aktiviert' => 0, 'Deaktiviert' => 1, 'Aktiviert (Default nur auf der Startseite)' => 2) ); ?> From geeklog-cvs at lists.geeklog.net Sun Nov 1 03:32:35 2009 From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net) Date: Sun, 01 Nov 2009 03:32:35 -0500 Subject: [geeklog-cvs] geeklog: Update documentation + version number Message-ID: changeset 7427:7915c1f5f403 url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/7915c1f5f403 user: Dirk Haun date: Sun Nov 01 09:20:01 2009 +0100 description: Update documentation + version number diffstat: public_html/admin/install/lib-install.php | 2 +- public_html/docs/english/changes.html | 2 ++ public_html/docs/history | 7 +++++-- 3 files changed, 8 insertions(+), 3 deletions(-) diffs (41 lines): diff -r 1a195ed188fe -r 7915c1f5f403 public_html/admin/install/lib-install.php --- a/public_html/admin/install/lib-install.php Sun Nov 01 09:04:51 2009 +0100 +++ b/public_html/admin/install/lib-install.php Sun Nov 01 09:20:01 2009 +0100 @@ -56,7 +56,7 @@ * This constant defines Geeklog's version number. It will be written to * siteconfig.php and the database (in the latter case minus any suffix). */ - define('VERSION', '1.6.1hg'); + define('VERSION', '1.6.1b1'); } if (!defined('XHTML')) { define('XHTML', ' /'); diff -r 1a195ed188fe -r 7915c1f5f403 public_html/docs/english/changes.html --- a/public_html/docs/english/changes.html Sun Nov 01 09:04:51 2009 +0100 +++ b/public_html/docs/english/changes.html Sun Nov 01 09:20:01 2009 +0100 @@ -34,6 +34,8 @@
  • The Migrate option in the install script can now also be applied to an existing database (i.e. you don't need to import a database dump to update your URLs and paths).
  • +
  • The Database Backup admin panel now includes options to optimize the + database and convert tables to InnoDB (MySQL only).
  • Bugfixes

    diff -r 1a195ed188fe -r 7915c1f5f403 public_html/docs/history --- a/public_html/docs/history Sun Nov 01 09:04:51 2009 +0100 +++ b/public_html/docs/history Sun Nov 01 09:20:01 2009 +0100 @@ -1,8 +1,10 @@ Geeklog History/Changes: -Nov 1, 2009 (1.6.1) ------------ - +Nov 1, 2009 (1.6.1b1) +----------- + +- Fixed an old bug that could cause SQL errors when a user changed their "Show + & hide boxes" settings [Dirk] - Searching by author threw an error on PHP 4 (bug #0001008) [Dirk] - Moved the functionality of the toinnodb.php script into the Database Backups admin panel [Dirk] From geeklog-cvs at lists.geeklog.net Sun Nov 1 04:05:49 2009 From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net) Date: Sun, 01 Nov 2009 04:05:49 -0500 Subject: [geeklog-cvs] geeklog: Modernized the "timezone hack", made the config option ... Message-ID: changeset 7428:df55886043f2 url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/df55886043f2 user: Dirk Haun date: Sun Sep 20 11:00:03 2009 +0200 description: Modernized the "timezone hack", made the config option a dropdown, and moved all timezone-related code into a new TimeZoneConfig class diffstat: public_html/admin/configuration.php | 17 ++- public_html/admin/install/config-install.php | 2 +- public_html/docs/history | 2 + public_html/lib-common.php | 13 +- public_html/usersettings.php | 33 +--- sql/updates/mssql_1.6.0_to_1.6.1.php | 4 + sql/updates/mysql_1.6.0_to_1.6.1.php | 4 + system/classes/timezoneconfig.class.php | 260 ++++++++++++++++++++++++++++++++ 8 files changed, 300 insertions(+), 35 deletions(-) diffs (truncated from 426 to 300 lines): diff -r 30e040149cbe -r df55886043f2 public_html/admin/configuration.php --- a/public_html/admin/configuration.php Sun Sep 20 10:41:17 2009 +0200 +++ b/public_html/admin/configuration.php Sun Sep 20 11:00:03 2009 +0200 @@ -8,7 +8,7 @@ // | | // | Loads the administration UI and sends input to config.class | // +---------------------------------------------------------------------------+ -// | Copyright (C) 2007-2008 by the following authors: | +// | Copyright (C) 2007-2009 by the following authors: | // | | // | Authors: Aaron Blankstein - kantai AT gmail DOT com | // +---------------------------------------------------------------------------+ @@ -84,6 +84,21 @@ return $themes; } +/** +* Helper function: Provide timezone dropdown +* +* @return array Array of (timezone-long-name, timezone-short-name) pairs +* +*/ +function configmanager_select_timezone_helper() +{ + global $_CONF; + + require_once $_CONF['path_system'] . 'classes/timezoneconfig.class.php'; + + return array_flip(TimeZoneConfig::listAvailableTimeZones()); +} + // MAIN $display = ''; diff -r 30e040149cbe -r df55886043f2 public_html/admin/install/config-install.php --- a/public_html/admin/install/config-install.php Sun Sep 20 10:41:17 2009 +0200 +++ b/public_html/admin/install/config-install.php Sun Sep 20 11:00:03 2009 +0200 @@ -291,7 +291,7 @@ $c->add('thousand_separator',",",'text',6,29,NULL,440,TRUE); $c->add('decimal_separator',".",'text',6,29,NULL,450,TRUE); $c->add('decimal_count',"2",'text',6,29,NULL,460,TRUE); - $c->add('timezone','Etc/GMT-6','text',6,29,NULL,490,FALSE); + $c->add('timezone','UTC','select',6,29,NULL,490,FALSE); // Subgroup: Miscellaneous $c->add('sg_misc', NULL, 'subgroup', 7, 0, NULL, 0, TRUE); diff -r 30e040149cbe -r df55886043f2 public_html/docs/history --- a/public_html/docs/history Sun Sep 20 10:41:17 2009 +0200 +++ b/public_html/docs/history Sun Sep 20 11:00:03 2009 +0200 @@ -3,6 +3,8 @@ Oct ??, 2009 (1.6.1) ------------ +- Modernized the "timezone hack", made the config option a dropdown, and moved + all timezone-related code into a new TimeZoneConfig class [Dirk] - Changing the Post Mode in Advanced Editor mode selected the wrong tab (bug #0000980, patch provided by dengen) - Made the former $cc parameter for COM_mail an optional array of additional diff -r 30e040149cbe -r df55886043f2 public_html/lib-common.php --- a/public_html/lib-common.php Sun Sep 20 10:41:17 2009 +0200 +++ b/public_html/lib-common.php Sun Sep 20 11:00:03 2009 +0200 @@ -130,12 +130,6 @@ exit; } -// timezone hack - set the webserver's timezone -if( !empty( $_CONF['timezone'] ) && !ini_get( 'safe_mode' ) && - function_exists( 'putenv' )) { - putenv( 'TZ=' . $_CONF['timezone'] ); -} - // +---------------------------------------------------------------------------+ // | Library Includes: You shouldn't have to touch anything below here | @@ -160,6 +154,13 @@ } /** +* Set the webserver's timezone +*/ + +require_once $_CONF['path_system'] . 'classes/timezoneconfig.class.php'; +TimeZoneConfig::setSystemTimeZone(); + +/** * Include plugin class. * This is a poorly implemented class that was not very well thought out. * Still very necessary diff -r 30e040149cbe -r df55886043f2 public_html/usersettings.php --- a/public_html/usersettings.php Sun Sep 20 10:41:17 2009 +0200 +++ b/public_html/usersettings.php Sun Sep 20 11:00:03 2009 +0200 @@ -518,36 +518,15 @@ $preferences->set_var ('theme_selection', ''); } - require_once ('Date/TimeZone.php'); // Timezone - if (empty($_USER['tzid']) && isset($_CONF['timezone'])) { - $timezone = $_CONF['timezone']; - } else if (!empty($_USER['tzid'])) { - $timezone = $_USER['tzid']; - } else { - $tz_obj = Date_TimeZone::getDefault(); - $timezone = $tz_obj->id; - } - $selection = ''; - $preferences->set_var ('timezone_selector', $selection); - $preferences->set_var ('lang_timezone', $LANG04[158]); + $preferences->set_var('timezone_selector', $selection); + $preferences->set_var('lang_timezone', $LANG04[158]); if ($A['noicons'] == '1') { $preferences->set_var ('noicons_checked', 'checked="checked"'); diff -r 30e040149cbe -r df55886043f2 sql/updates/mssql_1.6.0_to_1.6.1.php --- a/sql/updates/mssql_1.6.0_to_1.6.1.php Sun Sep 20 10:41:17 2009 +0200 +++ b/sql/updates/mssql_1.6.0_to_1.6.1.php Sun Sep 20 11:00:03 2009 +0200 @@ -23,6 +23,10 @@ $c->add('meta_description','Geeklog, the open source content management system designed with security in mind.','text',0,0,NULL,2010,TRUE); $c->add('meta_keywords','Geeklog, Blog, Content Management System, CMS, Open Source, Security','text',0,0,NULL,2020,TRUE); + // the timezone config option is a dropdown now + $utc = addslashes(serialize('UTC')); // change default timezone to UTC + DB_query("UPDATE {$_TABLES['conf_values']} SET type = 'select', selectionArray = -1, default_value = '$utc' WHERE name = 'timezone' AND group_name = 'Core'"); + return true; } diff -r 30e040149cbe -r df55886043f2 sql/updates/mysql_1.6.0_to_1.6.1.php --- a/sql/updates/mysql_1.6.0_to_1.6.1.php Sun Sep 20 10:41:17 2009 +0200 +++ b/sql/updates/mysql_1.6.0_to_1.6.1.php Sun Sep 20 11:00:03 2009 +0200 @@ -24,6 +24,10 @@ $c->add('meta_description','Geeklog, the open source content management system designed with security in mind.','text',0,0,NULL,2010,TRUE); $c->add('meta_keywords','Geeklog, Blog, Content Management System, CMS, Open Source, Security','text',0,0,NULL,2020,TRUE); + // the timezone config option is a dropdown now + $utc = addslashes(serialize('UTC')); // change default timezone to UTC + DB_query("UPDATE {$_TABLES['conf_values']} SET type = 'select', selectionArray = -1, default_value = '$utc' WHERE name = 'timezone' AND group_name = 'Core'"); + return true; } diff -r 30e040149cbe -r df55886043f2 system/classes/timezoneconfig.class.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/system/classes/timezoneconfig.class.php Sun Sep 20 11:00:03 2009 +0200 @@ -0,0 +1,260 @@ +id; + } + + return $timezone; + } + + /** + * Provide a dropdown menu of the available timezones + * + * @return string HTML for the dropdown + * @static + * + */ + function getTimeZoneDropDown($selected = '', $attributes = array()) + { + $timezones = TimeZoneConfig::listAvailableTimeZones(); + + $selection = ' $value) { + $selection .= sprintf(' %s="%s"', $name, $value); + } + $selection .= '>' . LB; + + foreach ($timezones as $tzid => $tzdisplay) { + $selection .= '