From dhaun at qs1489.pair.com Thu May 1 04:46:24 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 08:46:24 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install/language english.php, 1.8, 1.9 german.php, 1.4, 1.5 Message-ID: <20080501084624.BC6DD10FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language In directory qs1489.pair.com:/tmp/cvs-serv82897/language Modified Files: english.php german.php Log Message: Added UTF-8 option (bug #0000610) Index: english.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language/english.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** english.php 29 Mar 2008 22:21:08 -0000 1.8 --- english.php 1 May 2008 08:46:22 -0000 1.9 *************** *** 142,146 **** 89 => 'Current Version:', 90 => 'Empty database?', ! 91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.' ); --- 142,147 ---- 89 => 'Current Version:', 90 => 'Empty database?', ! 91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.', ! 92 => 'Use UTF-8' ); Index: german.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language/german.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** german.php 2 Jan 2008 13:29:02 -0000 1.4 --- german.php 1 May 2008 08:46:22 -0000 1.5 *************** *** 142,150 **** 89 => 'Aktuelle Version:', 90 => 'Empty database?', ! 91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.' ); // +---------------------------------------------------------------------------+ ! // success.php (TBD) $LANG_SUCCESS = array( --- 142,151 ---- 89 => 'Aktuelle Version:', 90 => 'Empty database?', ! 91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.', ! 92 => 'Benutze UTF-8' ); // +---------------------------------------------------------------------------+ ! // success.php $LANG_SUCCESS = array( *************** *** 174,178 **** // +---------------------------------------------------------------------------+ ! // help.php (TBD) $LANG_HELP = array( --- 175,179 ---- // +---------------------------------------------------------------------------+ ! // help.php $LANG_HELP = array( From dhaun at qs1489.pair.com Thu May 1 04:46:24 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 08:46:24 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install index.php, 1.36, 1.37 Message-ID: <20080501084624.ADA0110FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install In directory qs1489.pair.com:/tmp/cvs-serv82897 Modified Files: index.php Log Message: Added UTF-8 option (bug #0000610) Index: index.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/index.php,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** index.php 20 Apr 2008 08:26:50 -0000 1.36 --- index.php 1 May 2008 08:46:22 -0000 1.37 *************** *** 118,122 **** function INST_installEngine($install_type, $install_step) { ! global $_CONF, $LANG_INSTALL, $_DB, $_TABLES, $gl_path, $html_path, $dbconfig_path, $siteconfig_path, $display, $language; switch ($install_step) { --- 118,122 ---- function INST_installEngine($install_type, $install_step) { ! global $_CONF, $LANG_INSTALL, $LANG_CHARSET, $_DB, $_TABLES, $gl_path, $html_path, $dbconfig_path, $siteconfig_path, $display, $language; switch ($install_step) { *************** *** 170,173 **** --- 170,181 ---- $site_mail = isset($_POST['site_mail']) ? $_POST['site_mail'] : ($_CONF['site_mail'] == 'admin at example.com' ? $_CONF['site_mail'] : 'admin@' . $host_name); $noreply_mail = isset($_POST['noreply_mail']) ? $_POST['noreply_mail'] : ($_CONF['noreply_mail'] == 'noreply at example.com' ? $_CONF['noreply_mail'] : 'noreply@' . $host_name); + if (isset($_POST['utf8']) && ($_POST['utf8'] == 'on')) { + $utf8 = true; + } else { + $utf8 = false; + if (strcasecmp($LANG_CHARSET, 'utf-8') == 0) { + $utf8 = true; + } + } if ($install_type == 'install') { *************** *** 204,209 ****

  ' . $LANG_INSTALL[46] . '

!

--- 212,223 ----

  ' . $LANG_INSTALL[46] . '

!

'; ! ! if ($install_type == 'install') { ! $display .= ' !

'; ! } + $display .= ' *************** *** 213,217 **** /** ! * Page 2 - Enter information into config.php * and ask about InnoDB tables (if supported) */ --- 227,231 ---- /** ! * Page 2 - Enter information into db-config.php * and ask about InnoDB tables (if supported) */ *************** *** 230,233 **** --- 244,248 ---- $site_mail = $_POST['site_mail']; $noreply_mail = $_POST['noreply_mail']; + $utf8 = (isset($_POST['utf8']) && ($_POST['utf8'] == 'on')) ? true : false; // If using MySQL check to make sure the version is supported *************** *** 313,320 **** $dbconfig_file = fopen($dbconfig_path, 'w'); if (!fwrite($dbconfig_file, $dbconfig_data)) { ! exit($LANG_INSTALL[26] . ' ' . $dbconfig_path . $LANG_INSTALL[58]); } fclose($dbconfig_file); require $dbconfig_path; require_once $siteconfig_path; --- 328,342 ---- $dbconfig_file = fopen($dbconfig_path, 'w'); if (!fwrite($dbconfig_file, $dbconfig_data)) { ! exit($LANG_INSTALL[26] . ' ' . $dbconfig_path ! . $LANG_INSTALL[58]); } fclose($dbconfig_file); + // for the default charset, patch siteconfig.php again + if (!INST_setDefaultCharset($siteconfig_path, $utf8)) { + exit($LANG_INSTALL[26] . ' ' . $siteconfig_path + . $LANG_INSTALL[58]); + } + require $dbconfig_path; require_once $siteconfig_path; *************** *** 328,331 **** --- 350,356 ---- . '&site_mail=' . urlencode($site_mail) . '&noreply_mail=' . urlencode($noreply_mail); + if ($utf8) { + $req_string .= '&utf8=true'; + } switch ($install_type) { *************** *** 340,344 **** ! '; // If using MySQL check to see if InnoDB is supported --- 365,370 ---- ! ! '; // If using MySQL check to see if InnoDB is supported *************** *** 445,448 **** --- 471,479 ---- } + $utf8 = false; + if ((isset($_POST['utf8']) && $_POST['utf8'] == 'true') || (isset($_GET['utf8']) && $_GET['utf8'] == 'true')) { + $utf8 = true; + } + // We need all this just to do one DB query require_once $dbconfig_path; *************** *** 519,524 **** $config->set_default('default_photo', urldecode($site_url) . '/default.jpg'); ! $charset = ''; // TBD: needs to be set ... ! $lng = INST_getDefaultLanguage($gl_path . 'language/', $language, $charset); if (!empty($lng)) { $config->set('language', $lng); --- 550,554 ---- $config->set_default('default_photo', urldecode($site_url) . '/default.jpg'); ! $lng = INST_getDefaultLanguage($gl_path . 'language/', $language, $utf8); if (!empty($lng)) { $config->set('language', $lng); *************** *** 601,607 **** * server. If they aren't display a warning message. * ! * @param string $dbconfig_path Path to config.php ! * @param string $siteconfig_path Path to lib-common.php ! * @return boolean true if both files are writeable * */ --- 631,636 ---- * server. If they aren't display a warning message. * ! * @param array $files list of files to check ! * @return boolean true if all files are writeable * */ *************** *** 617,620 **** --- 646,650 ---- } } + return $writable; } *************** *** 895,906 **** * @param string $langpath path where the language files are kept * @param string $language language used in the install script ! * @param string $charset character set: UTF-8 or something else * @return string name of default language (for the config) * */ ! function INST_getDefaultLanguage($langpath, $language, $charset = '') { ! if (strcasecmp('UTF-8', $charset) == 0) { ! $lngname = $language . '_' . strtolower($charset); } else { $lngname = $language; --- 925,936 ---- * @param string $langpath path where the language files are kept * @param string $language language used in the install script ! * @param boolean $utf8 whether to use UTF-8 * @return string name of default language (for the config) * */ ! function INST_getDefaultLanguage($langpath, $language, $utf8 = false) { ! if ($utf8) { ! $lngname = $language . '_utf-8'; } else { $lngname = $language; *************** *** 910,915 **** if (!file_exists($langpath . $lngfile)) { // doesn't exist - fall back to English ! if (strcasecmp('UTF-8', $charset) == 0) { ! $lngname = 'english_' . strtolower($charset); } else { $lngname = 'english'; --- 940,945 ---- if (!file_exists($langpath . $lngfile)) { // doesn't exist - fall back to English ! if ($utf8) { ! $lngname = 'english_utf-8'; } else { $lngname = 'english'; *************** *** 1464,1467 **** --- 1494,1537 ---- return $disabled; + } + + /** + * Change default character set to UTF-8 + * + * @param string $siteconfig_path complete path to siteconfig.php + * @param boolen $utf8 true: use UTF-8 + * @return boolean true: success; false: an error occured + * @note Yes, this means that we need to patch siteconfig.php a second time. + * + */ + function INST_setDefaultCharset($siteconfig_path, $utf8 = false) + { + global $LANG_CHARSET; + + $result = true; + + $siteconfig_file = fopen($siteconfig_path, 'r'); + $siteconfig_data = fread($siteconfig_file, filesize($siteconfig_path)); + fclose($siteconfig_file); + + if ($utf8) { + $new_charset = 'utf-8'; + } else { + $new_charset = $LANG_CHARSET; + } + + require_once $siteconfig_path; + + $siteconfig_data = str_replace("\$_CONF['default_charset'] = '{$_CONF['default_charset']}';", + "\$_CONF['default_charset'] = '{$new_charset}';", + $siteconfig_data); + + $siteconfig_file = fopen($siteconfig_path, 'w'); + if (!fwrite($siteconfig_file, $siteconfig_data)) { + $result = false; + } + @fclose($siteconfig_file); + + return $result; } From dhaun at qs1489.pair.com Thu May 1 05:52:58 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 09:52:58 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install help.php, 1.3, 1.4 index.php, 1.37, 1.38 Message-ID: <20080501095258.5CCF910FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install In directory qs1489.pair.com:/tmp/cvs-serv85242 Modified Files: help.php index.php Log Message: Added missing help links; moved InnoDB note to the help screen; cosmetics Index: help.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/help.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** help.php 29 Mar 2008 22:17:47 -0000 1.3 --- help.php 1 May 2008 09:52:56 -0000 1.4 *************** *** 9,13 **** // | Support for Geeklog installation script. | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2007 by the following authors: | // | | // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | --- 9,13 ---- // | Support for Geeklog installation script. | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2008 by the following authors: | // | | // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | *************** *** 87,124 ****

' . $LANG_HELP[0] . '

' . $LANG_INSTALL[32] . '

!

' . $LANG_HELP[1] . '

' . $LANG_INSTALL[33] . '

!

' . $LANG_HELP[2] . '

' . $LANG_INSTALL[34] . '

!

' . $LANG_HELP[3] . '

' . $LANG_INSTALL[39] . '

!

' . $LANG_HELP[4] . '

' . $LANG_INSTALL[40] . '

!

' . $LANG_HELP[5] . '

' . $LANG_INSTALL[41] . '

!

' . $LANG_HELP[6] . '

' . $LANG_INSTALL[42] . '

!

' . $LANG_HELP[7] . '

' . $LANG_INSTALL[43] . '

!

' . $LANG_HELP[8] . '

' . $LANG_INSTALL[45] . '

!

' . $LANG_HELP[9] . '

' . $LANG_INSTALL[47] . '

!

' . $LANG_HELP[10] . '

' . $LANG_INSTALL[48] . '

!

' . $LANG_HELP[11] . '

' . $LANG_INSTALL[49] . '

!

' . $LANG_HELP[12] . '

--- 87,127 ----

' . $LANG_HELP[0] . '

' . $LANG_INSTALL[32] . '

!

' . $LANG_HELP[1] . '

' . $LANG_INSTALL[33] . '

!

' . $LANG_HELP[2] . '

' . $LANG_INSTALL[34] . '

!

' . $LANG_HELP[3] . '

' . $LANG_INSTALL[39] . '

!

' . $LANG_HELP[4] . '

' . $LANG_INSTALL[40] . '

!

' . $LANG_HELP[5] . '

' . $LANG_INSTALL[41] . '

!

' . $LANG_HELP[6] . '

' . $LANG_INSTALL[42] . '

!

' . $LANG_HELP[7] . '

' . $LANG_INSTALL[43] . '

!

' . $LANG_HELP[8] . '

' . $LANG_INSTALL[45] . '

!

' . $LANG_HELP[9] . '

' . $LANG_INSTALL[47] . '

!

' . $LANG_HELP[10] . '

' . $LANG_INSTALL[48] . '

!

' . $LANG_HELP[11] . '

' . $LANG_INSTALL[49] . '

!

' . $LANG_HELP[12] . '

! !

' . $LANG_INSTALL[92] . '

!

' . $LANG_HELP[13] . '

*************** *** 130,132 **** echo $display; ! ?> \ No newline at end of file --- 133,135 ---- echo $display; ! ?> Index: index.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/index.php,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** index.php 1 May 2008 08:46:22 -0000 1.37 --- index.php 1 May 2008 09:52:56 -0000 1.38 *************** *** 196,220 ****

!

!

' . $innodbnote . '

!

!

!

!

!

' . $LANG_INSTALL[44] . '

!

  ' . $LANG_INSTALL[46] . '

!

  ' . $LANG_INSTALL[46] . '

!

!

'; if ($install_type == 'install') { $display .= ' !

'; } --- 196,220 ----

!

!

' . $innodbnote . '

!

!

!

!

!

' . $LANG_INSTALL[44] . '

!

  ' . $LANG_INSTALL[46] . '

!

  ' . $LANG_INSTALL[46] . '

!

!

'; if ($install_type == 'install') { $display .= ' !

'; } From dhaun at qs1489.pair.com Thu May 1 05:52:58 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 09:52:58 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install/language english.php, 1.9, 1.10 german.php, 1.5, 1.6 Message-ID: <20080501095258.7828510FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language In directory qs1489.pair.com:/tmp/cvs-serv85242/language Modified Files: english.php german.php Log Message: Added missing help links; moved InnoDB note to the help screen; cosmetics Index: english.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language/english.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** english.php 1 May 2008 08:46:22 -0000 1.9 --- english.php 1 May 2008 09:52:56 -0000 1.10 *************** *** 89,93 **** 36 => 'MySQL with InnoDB Table support', 37 => 'Microsoft SQL', ! 38 => 'InnoDB Tables may improve performance on (very) large sites, but they also make database backups more complicated.', 39 => 'Database Hostname', 40 => 'Database Name', --- 89,93 ---- 36 => 'MySQL with InnoDB Table support', 37 => 'Microsoft SQL', ! 38 => '', 39 => 'Database Hostname', 40 => 'Database Name', *************** *** 181,185 **** 1 => 'The name of your website.', 2 => 'A simple description of your website.', ! 3 => 'Geeklog can be installed using either a MySQL or Microsoft SQL database. If you are not sure which option to select contact your hosting provider.', 4 => 'The network name (or IP address) of your database server. This is typically "localhost". If you are not sure contact your hosting provider.', 5 => 'The name of your database. If you are not sure what this is contact your hosting provider.', --- 181,185 ---- 1 => 'The name of your website.', 2 => 'A simple description of your website.', ! 3 => 'Geeklog can be installed using either a MySQL or Microsoft SQL database. If you are not sure which option to select contact your hosting provider.

Note: InnoDB Tables may improve performance on (very) large sites, but they also make database backups more complicated.', 4 => 'The network name (or IP address) of your database server. This is typically "localhost". If you are not sure contact your hosting provider.', 5 => 'The name of your database. If you are not sure what this is contact your hosting provider.', *************** *** 190,194 **** 10 => 'Some hosting services have a preconfigured admin directory. In that case, you need to rename Geeklog\'s admin directory to something like "myadmin" and change the following URL as well. Leave as is until you experience any problems accessing Geeklog\'s admin menu.', 11 => 'This is the return address for all email sent by Geeklog and contact info displayed in syndication feeds.', ! 12 => 'This is the sender\'s address of emails sent by the system when users register, etc. This should be either the same as Site Email or a bouncing address to prevent spammers from getting your email address by registering on the site. If this is NOT the same as above, there will be a message in sent messages that replying to those emails is recommended.' ); --- 190,195 ---- 10 => 'Some hosting services have a preconfigured admin directory. In that case, you need to rename Geeklog\'s admin directory to something like "myadmin" and change the following URL as well. Leave as is until you experience any problems accessing Geeklog\'s admin menu.', 11 => 'This is the return address for all email sent by Geeklog and contact info displayed in syndication feeds.', ! 12 => 'This is the sender\'s address of emails sent by the system when users register, etc. This should be either the same as Site Email or a bouncing address to prevent spammers from getting your email address by registering on the site. If this is NOT the same as above, there will be a message in sent messages that replying to those emails is recommended.', ! 13 => 'Indicate whether to use UTF-8 as the default character set for your site. Recommended especially for multi-lingual setups.' ); Index: german.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language/german.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** german.php 1 May 2008 08:46:22 -0000 1.5 --- german.php 1 May 2008 09:52:56 -0000 1.6 *************** *** 89,93 **** 36 => 'MySQL mit Support f?r InnoDB-Tabellen', 37 => 'Microsoft SQL', ! 38 => 'InnoDB-Tabellen k?nnen zu besserer Performance auf (sehr) gro?en Websites f?hren, machen den Backup-Prozess aber komplizierter.', 39 => 'Datenbank-Server', 40 => 'Name der Datenbank', --- 89,93 ---- 36 => 'MySQL mit Support f?r InnoDB-Tabellen', 37 => 'Microsoft SQL', ! 38 => '', 39 => 'Datenbank-Server', 40 => 'Name der Datenbank', *************** *** 179,194 **** $LANG_HELP = array( 0 => 'Geeklog Installation Support', ! 1 => 'Site name', ! 2 => 'Slogan', ! 3 => 'Database type', ! 4 => 'Hostname', ! 5 => 'Name', ! 6 => 'Username', ! 7 => 'Password', ! 8 => 'Prefix', ! 9 => 'Site URL', ! 10 => 'Admin Directory Url', ! 11 => 'Site Email', ! 12 => 'Site No-Reply' ); --- 179,195 ---- $LANG_HELP = array( 0 => 'Geeklog Installation Support', ! 1 => 'The name of your website.', ! 2 => 'A simple description of your website.', ! 3 => 'Geeklog can be installed using either a MySQL or Microsoft SQL database. If you are not sure which option to select contact your hosting provider.

Hinweis: InnoDB-Tabellen k?nnen zu besserer Performance auf (sehr) gro?en Websites f?hren, machen den Backup-Prozess aber komplizierter.', ! 4 => 'The network name (or IP address) of your database server. This is typically "localhost". If you are not sure contact your hosting provider.', ! 5 => 'The name of your database. If you are not sure what this is contact your hosting provider.', ! 6 => 'Your database user account. If you are not sure what this is contact your hosting provider.', ! 7 => 'Your database account password. If you are not sure what this is contact your hosting provider.', ! 8 => 'Some users want to install multiple copies of Geeklog on the same database. In order for each copy of Geeklog to function correctly it must have its own unique table prefix (i.e. gl1_, gl2_, etc).', ! 9 => 'Make sure this is the correct URL to your site, i.e. to where Geeklog\'s index.php file resides (no trailing slash).', ! 10 => 'Some hosting services have a preconfigured admin directory. In that case, you need to rename Geeklog\'s admin directory to something like "myadmin" and change the following URL as well. Leave as is until you experience any problems accessing Geeklog\'s admin menu.', ! 11 => 'This is the return address for all email sent by Geeklog and contact info displayed in syndication feeds.', ! 12 => 'This is the sender\'s address of emails sent by the system when users register, etc. This should be either the same as Site Email or a bouncing address to prevent spammers from getting your email address by registering on the site. If this is NOT the same as above, there will be a message in sent messages that replying to those emails is recommended.', ! 13 => 'Indicate whether to use UTF-8 as the default character set for your site. Recommended especially for multi-lingual setups.' ); From dhaun at qs1489.pair.com Thu May 1 05:52:58 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 09:52:58 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install/layout style.css, 1.4, 1.5 Message-ID: <20080501095258.7EB7710FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/layout In directory qs1489.pair.com:/tmp/cvs-serv85242/layout Modified Files: style.css Log Message: Added missing help links; moved InnoDB note to the help screen; cosmetics Index: style.css =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/layout/style.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** style.css 25 Nov 2007 06:58:55 -0000 1.4 --- style.css 1 May 2008 09:52:56 -0000 1.5 *************** *** 368,370 **** font-family: "Monaco"; font-size: 8pt; ! } \ No newline at end of file --- 368,373 ---- font-family: "Monaco"; font-size: 8pt; ! } ! .indent { ! margin-left:1em; ! } From dhaun at qs1489.pair.com Thu May 1 07:51:28 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 11:51:28 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/webservices/atom index.php, 1.3, 1.4 Message-ID: <20080501115128.4B42710FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/webservices/atom In directory qs1489.pair.com:/tmp/cvs-serv90079/public_html/webservices/atom Modified Files: index.php Log Message: Need to check the PHP version here (not in lib-webservices.php, where it's too late) Index: index.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/webservices/atom/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.php 2 Jan 2008 14:40:22 -0000 1.3 --- index.php 1 May 2008 11:51:26 -0000 1.4 *************** *** 33,37 **** require_once '../../lib-common.php'; ! require_once $_CONF['path_system'] . '/lib-webservices.php'; /* Check if WS component is enabled */ --- 33,43 ---- require_once '../../lib-common.php'; ! ! /* Check for PHP5 */ ! if (PHP_VERSION < 5) { ! $_CONF['disable_webservices'] = true; ! } else { ! require_once $_CONF['path_system'] . '/lib-webservices.php'; ! } /* Check if WS component is enabled */ From dhaun at qs1489.pair.com Thu May 1 09:23:30 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 13:23:30 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install index.php, 1.38, 1.39 Message-ID: <20080501132330.95CCB10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install In directory qs1489.pair.com:/tmp/cvs-serv93479 Modified Files: index.php Log Message: Handle $_CONF['default_charset'] for upgrades Index: index.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/index.php,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** index.php 1 May 2008 09:52:56 -0000 1.38 --- index.php 1 May 2008 13:23:28 -0000 1.39 *************** *** 334,340 **** // for the default charset, patch siteconfig.php again ! if (!INST_setDefaultCharset($siteconfig_path, $utf8)) { ! exit($LANG_INSTALL[26] . ' ' . $siteconfig_path ! . $LANG_INSTALL[58]); } --- 334,343 ---- // for the default charset, patch siteconfig.php again ! if ($install_type != 'upgrade') { ! if (!INST_setDefaultCharset($siteconfig_path, ! ($utf8 ? 'utf-8' : $LANG_CHARSET))) { ! exit($LANG_INSTALL[26] . ' ' . $siteconfig_path ! . $LANG_INSTALL[58]); ! } } *************** *** 628,633 **** /** ! * Check to see if config.php and lib-common.php are writeable by the web ! * server. If they aren't display a warning message. * * @param array $files list of files to check --- 631,635 ---- /** ! * Check to see if required files are writeable by the web server. * * @param array $files list of files to check *************** *** 639,643 **** $writable = true; foreach ($files as $file) { ! if (!$tmp_file = @fopen ($file, 'a')) { // Unable to modify $writable = false; --- 641,645 ---- $writable = true; foreach ($files as $file) { ! if (!$tmp_file = @fopen($file, 'a')) { // Unable to modify $writable = false; *************** *** 1362,1365 **** --- 1364,1374 ---- $config->set($key, $val); } + + if (!INST_setDefaultCharset($siteconfig_path, + $_CONF['default_charset'])) { + exit($LANG_INSTALL[26] . ' ' . $siteconfig_path + . $LANG_INSTALL[58]); + } + require $siteconfig_path; require $dbconfig_path; *************** *** 1500,1512 **** * * @param string $siteconfig_path complete path to siteconfig.php ! * @param boolen $utf8 true: use UTF-8 * @return boolean true: success; false: an error occured * @note Yes, this means that we need to patch siteconfig.php a second time. * */ ! function INST_setDefaultCharset($siteconfig_path, $utf8 = false) { - global $LANG_CHARSET; - $result = true; --- 1509,1519 ---- * * @param string $siteconfig_path complete path to siteconfig.php ! * @param string $charset default character set to use * @return boolean true: success; false: an error occured * @note Yes, this means that we need to patch siteconfig.php a second time. * */ ! function INST_setDefaultCharset($siteconfig_path, $charset) { $result = true; *************** *** 1515,1529 **** fclose($siteconfig_file); ! if ($utf8) { ! $new_charset = 'utf-8'; ! } else { ! $new_charset = $LANG_CHARSET; ! } ! ! require_once $siteconfig_path; ! ! $siteconfig_data = str_replace("\$_CONF['default_charset'] = '{$_CONF['default_charset']}';", ! "\$_CONF['default_charset'] = '{$new_charset}';", ! $siteconfig_data); $siteconfig_file = fopen($siteconfig_path, 'w'); --- 1522,1531 ---- fclose($siteconfig_file); ! $siteconfig_data = preg_replace ! ( ! '/\$_CONF\[\'default_charset\'\] = \'[^\']*\';/', ! "\$_CONF['default_charset'] = '" . $charset . "';", ! $siteconfig_data ! ); $siteconfig_file = fopen($siteconfig_path, 'w'); From dhaun at qs1489.pair.com Thu May 1 11:43:18 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 15:43:18 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.691,1.692 Message-ID: <20080501154318.4DD8710FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html In directory qs1489.pair.com:/tmp/cvs-serv98201/public_html Modified Files: lib-common.php Log Message: Revert earlier change - COM_showMessage should be restricted to fixed predefined messages Index: lib-common.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v retrieving revision 1.691 retrieving revision 1.692 diff -C2 -d -r1.691 -r1.692 *** lib-common.php 26 Apr 2008 17:58:37 -0000 1.691 --- lib-common.php 1 May 2008 15:43:16 -0000 1.692 *************** *** 4403,4408 **** * Displays a message on the webpage * ! * Receives either a message number and gets the according message from the ! * language file or gets a message in cleartext and displays it then to the user * * @param int $msg ID of message to show --- 4403,4408 ---- * Displays a message on the webpage * ! * Pulls $msg off the URL string and gets the corresponding message and returns ! * it for display on the calling page * * @param int $msg ID of message to show *************** *** 4417,4444 **** $retval = ''; ! $timestamp = strftime( $_CONF['daytime'] ); ! if($msg > 0) { ! if(!empty($plugin)) { $var = 'PLG_' . $plugin . '_MESSAGE' . $msg; global $$var; ! if(isset($$var)) { $message = $$var; } else { ! $message = sprintf( $MESSAGE[61], $plugin ); ! COM_errorLog ($MESSAGE[61]. ": " . $var,1); } } else { $message = $MESSAGE[$msg]; } ! } else if (strlen($msg) > 0) { ! $message = $msg; } - $retval .= COM_startBlock( $MESSAGE[40] . ' - ' . $timestamp, '', - COM_getBlockTemplate( '_msg_block', 'header' )) - . '

' - . $message . '

' - . COM_endBlock( COM_getBlockTemplate( '_msg_block', 'footer' )); return $retval; --- 4417,4443 ---- $retval = ''; ! if ($msg > 0) { ! $timestamp = strftime($_CONF['daytime']); ! if (!empty($plugin)) { $var = 'PLG_' . $plugin . '_MESSAGE' . $msg; global $$var; ! if (isset($$var)) { $message = $$var; } else { ! $message = sprintf($MESSAGE[61], $plugin); ! COM_errorLog($MESSAGE[61] . ": " . $var, 1); } } else { $message = $MESSAGE[$msg]; } ! ! $retval .= COM_startBlock($MESSAGE[40] . ' - ' . $timestamp, '', ! COM_getBlockTemplate('_msg_block', 'header')) ! . '

' ! . $message . '

' ! . COM_endBlock(COM_getBlockTemplate('_msg_block', 'footer')); } return $retval; From dhaun at qs1489.pair.com Thu May 1 13:01:46 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 17:01:46 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system lib-webservices.php,1.35,1.36 Message-ID: <20080501170146.055C510FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system In directory qs1489.pair.com:/tmp/cvs-serv1723/system Modified Files: lib-webservices.php Log Message: It doesn't work, but I didn't want to lose the code: This is how WSSE authentication _would_ work if we had access to the user's _unencrypted_ password ... Index: lib-webservices.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-webservices.php,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** lib-webservices.php 31 Mar 2008 20:03:23 -0000 1.35 --- lib-webservices.php 1 May 2008 17:01:43 -0000 1.36 *************** *** 718,722 **** function WS_authenticate() { ! global $_CONF, $_USER, $_GROUPS, $_RIGHTS, $WS_VERBOSE; $uid = ''; --- 718,722 ---- function WS_authenticate() { ! global $_CONF, $_TABLES, $_USER, $_GROUPS, $_RIGHTS, $WS_VERBOSE; $uid = ''; *************** *** 733,736 **** --- 733,797 ---- COM_errorLog("WS: Attempting to log in user '$username'"); } + + /** this does not work! ******************************************************* + + } elseif (!empty($_SERVER['HTTP_X_WSSE']) && + (strpos($_SERVER['HTTP_X_WSSE'], 'UsernameToken') !== false)) { + + // this is loosely based on a code snippet taken from Elgg (elgg.org) + + $wsse = str_replace('UsernameToken', '', $_SERVER['HTTP_X_WSSE']); + $wsse = explode(',', $wsse); + + $username = ''; + $pwdigest = ''; + $created = ''; + $nonce = ''; + + foreach ($wsse as $element) { + $element = explode('=', $element); + $key = array_shift($element); + if (count($element) == 1) { + $val = $element[0]; + } else { + $val = implode('=', $element); + } + $key = trim($key); + $val = trim($val, "\x22\x27"); + if ($key == 'Username') { + $username = $val; + } elseif ($key == 'PasswordDigest') { + $pwdigest = $val; + } elseif ($key == 'Created') { + $created = $val; + } elseif ($key == 'Nonce') { + $nonce = $val; + } + } + + if (!empty($username) && !empty($pwdigest) && !empty($created) && + !empty($nonce)) { + + $uname = addslashes($username); + $pwd = DB_getItem($_TABLES['users'], 'passwd', + "username = '$uname'"); + // ... and here we would need the _unencrypted_ password + + if (!empty($pwd)) { + $mydigest = pack('H*', sha1($nonce . $created . $pwd)); + $mydigest = base64_encode($mydigest); + + if ($pwdigest == $mydigest) { + $password = $pwd; + } + } + } + + if ($WS_VERBOSE) { + COM_errorLog("WS: Attempting to log in user '$username' (via WSSE)"); + } + + ******************************************************************************/ + } elseif (!empty($_SERVER['REMOTE_USER'])) { /* PHP installed as CGI may not have access to authorization headers of From dhaun at qs1489.pair.com Thu May 1 13:23:43 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 17:23:43 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs install.html, 1.51, 1.52 support.html, 1.23, 1.24 Message-ID: <20080501172343.6E4A010FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv2488 Modified Files: install.html support.html Log Message: Minor documentation updates Index: install.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/install.html,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** install.html 29 Mar 2008 22:29:55 -0000 1.51 --- install.html 1 May 2008 17:23:41 -0000 1.52 *************** *** 16,25 ****
  • Installation Requirements
  • !
  • New Installation !
  • Upgrading !
  • Common Problems and Troubleshooting
  • --- 16,25 ----
  • Installation Requirements
  • !
  • New Installation !
  • Upgrading !
  • Common Problems and Troubleshooting
  • *************** *** 36,40 ****

    Installation Requirements

    !

    Required Software

    To install and use Geeklog you will need to have a server running Apache or Microsoft IIS with PHP 4.1.0 or higher installed. You will also need either MySQL 3.23.2 or greater or Microsoft SQL Server 2000 or newer.

    --- 36,40 ----

    Installation Requirements

    !

    Required Software

    To install and use Geeklog you will need to have a server running Apache or Microsoft IIS with PHP 4.1.0 or higher installed. You will also need either MySQL 3.23.2 or greater or Microsoft SQL Server 2000 or newer.

    *************** *** 51,55 **** !

    New Installation

      --- 51,55 ---- !

      New Installation

        *************** *** 61,65 ****

        tar -zxvf geeklog-1.5.0.tar.gz

        !

        Note: Some users have reported that WinZip corrupts certain Geeklog files during decompression. This will cause errors during the installation process. You are strongly urged not to use WinZip. Try WinRAR if you must decompress the file locally.

      1. --- 61,65 ----

        tar -zxvf geeklog-1.5.0.tar.gz

        !

        Note: Some users have reported that WinZip corrupts certain Geeklog files during decompression. This will cause errors during the installation process. You are strongly urged not to use WinZip. Try 7-Zip or WinRAR if you must decompress the file locally.

      2. *************** *** 92,96 **** !

        Upgrading

        Upgrading is no different than a New Installation except your database already exists and needs to be updated.

        --- 92,96 ---- !

        Upgrading

        Upgrading is no different than a New Installation except your database already exists and needs to be updated.

        *************** *** 109,113 ****

        tar -zxvf geeklog-1.5.0.tar.gz

        !

        Note: Some users have reported that WinZip corrupts certain Geeklog files during decompression. This will cause errors during the installation process. You are strongly urged not to use WinZip. Try WinRAR if you must decompress the file locally.

      3. --- 109,113 ----

        tar -zxvf geeklog-1.5.0.tar.gz

        !

        Note: Some users have reported that WinZip corrupts certain Geeklog files during decompression. This will cause errors during the installation process. You are strongly urged not to use WinZip. Try 7-Zip or WinRAR if you must decompress the file locally.

      4. *************** *** 127,131 **** !

        Common Problems and Troubleshooting

        Before you go any further, please open siteconfig.php and double check your paths! Bad paths, or typos in the paths, will cause all sorts of errors in Geeklog.

        --- 127,131 ---- !

        Common Problems and Troubleshooting

        Before you go any further, please open siteconfig.php and double check your paths! Bad paths, or typos in the paths, will cause all sorts of errors in Geeklog.

        *************** *** 170,174 ****

        As noted at the top of this document this is usually caused by one of the following:

          !
        • Uncompressing the tarball with certain versions of WinZip (try using WinRAR instead)
        • Editing the lib-common.php with Dreamweaver or other so-called WYSIWYG HTML editors (use a simple text editor instead)
        • Editing the lib-common.php with "on-site" text editors built into tools like Cpanel (again, use a simple text editor instead)
        • --- 170,174 ----

          As noted at the top of this document this is usually caused by one of the following:

            !
          • Uncompressing the tarball with certain versions of WinZip (try using 7-Zip or WinRAR instead)
          • Editing the lib-common.php with Dreamweaver or other so-called WYSIWYG HTML editors (use a simple text editor instead)
          • Editing the lib-common.php with "on-site" text editors built into tools like Cpanel (again, use a simple text editor instead)
          • Index: support.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/support.html,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** support.html 24 Apr 2008 19:34:52 -0000 1.23 --- support.html 1 May 2008 17:23:41 -0000 1.24 *************** *** 61,65 ****

            Security Issues

            !

            The Geeklog developers take security very seriously. Should you need to report a security issue with Geeklog, please email details to geeklog-security at lists.geeklog.net. Thank you.

            Note: Posts to geeklog-security are of course not discarded and you don't (and can't, actually) subscribe to this list. Simply send an email to this address and we will get back to you ASAP.

            --- 61,65 ----

            Security Issues

            !

            The Geeklog developers take security very seriously. Should you need to report a security issue with Geeklog, please email details to geeklog-security(at)lists.geeklog.net. Thank you.

            Note: Posts to geeklog-security are of course not discarded and you don't (and can't, actually) subscribe to this list. Simply send an email to this address and we will get back to you ASAP.

            From mjervis at qs1489.pair.com Thu May 1 14:35:16 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 18:35:16 +0000 Subject: [geeklog-cvs] Geeklog-1.x/sql mssql_tableanddata.php,1.36,1.37 Message-ID: <20080501183516.DD72110FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/sql In directory qs1489.pair.com:/tmp/cvs-serv5455/sql Modified Files: mssql_tableanddata.php Log Message: Fixes for MSSQL install (Partial II) Index: mssql_tableanddata.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/sql/mssql_tableanddata.php,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** mssql_tableanddata.php 26 Apr 2008 08:45:40 -0000 1.36 --- mssql_tableanddata.php 1 May 2008 18:35:14 -0000 1.37 *************** *** 1720,1725 **** set identity_insert {$_TABLES['users']} on ! INSERT INTO {$_TABLES['users']} (uid, username, fullname, passwd, email, homepage, sig, regdate, cookietimeout, theme, status) VALUES (1,'Anonymous','Anonymous','',NULL,NULL,'',getdate(),0,NULL,3) ! INSERT INTO {$_TABLES['users']} (uid, username, fullname, passwd, email, homepage, sig, regdate, cookietimeout, theme, status) VALUES (2,'Admin','Geeklog SuperUser','5f4dcc3b5aa765d61d8327deb882cf99','root at localhost','http://www.geeklog.net/','',getdate(),28800,NULL,3) set identity_insert {$_TABLES['users']} off --- 1720,1725 ---- set identity_insert {$_TABLES['users']} on ! INSERT INTO {$_TABLES['users']} (uid, username, fullname, passwd, email, homepage, sig, regdate, cookietimeout, theme, status, num_reminders) VALUES (1,'Anonymous','Anonymous','',NULL,NULL,'',getdate(),0,NULL,3,0) ! INSERT INTO {$_TABLES['users']} (uid, username, fullname, passwd, email, homepage, sig, regdate, cookietimeout, theme, status, num_reminders) VALUES (2,'Admin','Geeklog SuperUser','5f4dcc3b5aa765d61d8327deb882cf99','root at localhost','http://www.geeklog.net/','',getdate(),28800,NULL,3,0) set identity_insert {$_TABLES['users']} off From mjervis at qs1489.pair.com Thu May 1 14:35:16 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 18:35:16 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin database.php, 1.46, 1.47 Message-ID: <20080501183516.D06CC10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin In directory qs1489.pair.com:/tmp/cvs-serv5455/public_html/admin Modified Files: database.php Log Message: Fixes for MSSQL install (Partial II) Index: database.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/database.php,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** database.php 29 Feb 2008 08:22:52 -0000 1.46 --- database.php 1 May 2008 18:35:14 -0000 1.47 *************** *** 287,291 **** // Perform the backup if asked if (SEC_checkToken()) { ! $display .= dobackup(); } } else if ($mode == 'delete') { --- 287,291 ---- // Perform the backup if asked if (SEC_checkToken()) { ! $display .= dobackup(); } } else if ($mode == 'delete') { From mjervis at qs1489.pair.com Thu May 1 14:35:16 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 18:35:16 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes config.class.php, 1.36, 1.37 Message-ID: <20080501183516.EB66E10FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes In directory qs1489.pair.com:/tmp/cvs-serv5455/system/classes Modified Files: config.class.php Log Message: Fixes for MSSQL install (Partial II) Index: config.class.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/config.class.php,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** config.class.php 13 Apr 2008 11:28:12 -0000 1.36 --- config.class.php 1 May 2008 18:35:14 -0000 1.37 *************** *** 281,285 **** if ($_DB_dbms == 'mssql') { $sql_query = str_replace("\\'","''",$sql_query); ! $sql_query = str_replace('\\"','"',$sql_query); $_DB->dbQuery($sql_query, 0, 1); } else { --- 281,285 ---- if ($_DB_dbms == 'mssql') { $sql_query = str_replace("\\'","''",$sql_query); ! $sql_query = str_replace('\\"','""',$sql_query); $_DB->dbQuery($sql_query, 0, 1); } else { From dhaun at qs1489.pair.com Thu May 1 15:23:49 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 19:23:49 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system lib-security.php,1.67,1.68 Message-ID: <20080501192349.ED1B610FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system In directory qs1489.pair.com:/tmp/cvs-serv7076/system Modified Files: lib-security.php Log Message: Sanitize service filename Index: lib-security.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-security.php,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -d -r1.67 -r1.68 *** lib-security.php 9 Mar 2008 10:23:13 -0000 1.67 --- lib-security.php 1 May 2008 19:23:47 -0000 1.68 *************** *** 813,816 **** --- 813,817 ---- } + $service = COM_sanitizeFilename($service); $servicefile = $_CONF['path_system'] . 'classes/authentication/' . $service . '.auth.class.php'; From dhaun at qs1489.pair.com Thu May 1 15:26:47 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 19:26:47 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes/authentication/ldap - New directory Message-ID: <20080501192647.DC0E110FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes/authentication/ldap In directory qs1489.pair.com:/tmp/cvs-serv7249/ldap Log Message: Directory /cvsroot/geeklog/Geeklog-1.x/system/classes/authentication/ldap added to the repository From dhaun at qs1489.pair.com Thu May 1 15:27:50 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 19:27:50 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes/authentication LDAP.auth.class.php, NONE, 1.1 Message-ID: <20080501192750.19A6110FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes/authentication In directory qs1489.pair.com:/tmp/cvs-serv7297/system/classes/authentication Added Files: LDAP.auth.class.php Log Message: LDAP remote authentication module, provided by Jessica Blank / MTV Networks --- NEW FILE: LDAP.auth.class.php --- ascii2hex($without_salt[0]); } else { // assume no encryption $crypt_method = ''; $correct_cyphertext = $password; } } } switch ($crypt_method) { case 'md5': if (preg_match("/^\$/", $correct_cyphertext)) { // passwd/style-shadow MD5, starting with '$' $password_cyphertext = crypt($password); } else { // hexadecimal MD5 $password_cyphertext = md5($password); } break; case 'smd5'; // $salt was set above. $password_cyphertext = md5($password . $salt); break; case 'crypt': case 'des': $password_cyphertext = crypt($password, substr($correct_cyphertext, 0, 2)); break; default: // no encryption at all! $password_cyphertext = $password; break; } if ($password_cyphertext == $correct_cyphertext) { // Set some variables pulled from the LDAP server... $this->fullname = $A[0]['cn'][0]; $this->email = $A[0]['mail'][0]; return true; // Password given was CORRECT! } else { return false; // Password given was NOT correct. } } } } ?> From dhaun at qs1489.pair.com Thu May 1 15:27:50 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 19:27:50 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes/authentication/ldap config.php, NONE, 1.1 Message-ID: <20080501192750.2800E10FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes/authentication/ldap In directory qs1489.pair.com:/tmp/cvs-serv7297/system/classes/authentication/ldap Added Files: config.php Log Message: LDAP remote authentication module, provided by Jessica Blank / MTV Networks --- NEW FILE: config.php --- From dhaun at qs1489.pair.com Thu May 1 15:27:50 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 19:27:50 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs history,1.618,1.619 Message-ID: <20080501192750.0F6D510FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv7297/public_html/docs Modified Files: history Log Message: LDAP remote authentication module, provided by Jessica Blank / MTV Networks Index: history =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/history,v retrieving revision 1.618 retrieving revision 1.619 diff -C2 -d -r1.618 -r1.619 *** history 26 Apr 2008 21:32:13 -0000 1.618 --- history 1 May 2008 19:27:47 -0000 1.619 *************** *** 12,15 **** --- 12,16 ---- Other changes: + - LDAP remote authentication module, provided by Jessica Blank / MTV Networks - The {lang_attribute} can only properly be set in a multi-language setup (bug #0000616) [Dirk] From mjervis at qs1489.pair.com Thu May 1 15:43:44 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 19:43:44 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin story.php,1.266,1.267 Message-ID: <20080501194344.4DD5210FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin In directory qs1489.pair.com:/tmp/cvs-serv7887/public_html/admin Modified Files: story.php Log Message: Story security. Index: story.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/story.php,v retrieving revision 1.266 retrieving revision 1.267 diff -C2 -d -r1.266 -r1.267 *** story.php 30 Dec 2007 12:15:47 -0000 1.266 --- story.php 1 May 2008 19:43:42 -0000 1.267 *************** *** 633,636 **** --- 633,638 ---- $story_templates->set_var('lang_cancel', $LANG_ADMIN['cancel']); $story_templates->set_var('lang_delete', $LANG_ADMIN['delete']); + $story_templates->set_var('gltoken_name', CSRF_TOKEN); + $story_templates->set_var('gltoken', SEC_createToken()); $story_templates->parse('output','editor'); $display .= $story_templates->finish($story_templates->get_var('output')); *************** *** 721,730 **** COM_accessLog ("User {$_USER['username']} tried to illegally delete story submission $sid."); echo COM_refresh ($_CONF['site_admin_url'] . '/index.php'); ! } else { DB_delete ($_TABLES['storysubmission'], 'sid', $sid, $_CONF['site_admin_url'] . '/moderation.php'); } ! } else { echo STORY_deleteStory ($sid); } } else if (($mode == $LANG_ADMIN['preview']) && !empty ($LANG_ADMIN['preview'])) { --- 723,738 ---- COM_accessLog ("User {$_USER['username']} tried to illegally delete story submission $sid."); echo COM_refresh ($_CONF['site_admin_url'] . '/index.php'); ! } else if (SEC_checkToken()) { DB_delete ($_TABLES['storysubmission'], 'sid', $sid, $_CONF['site_admin_url'] . '/moderation.php'); + } else { + COM_accessLog ("User {$_USER['username']} tried to illegally delete story submission $sid and failed CSRF checks."); + echo COM_refresh ($_CONF['site_admin_url'] . '/index.php'); } ! } else if (SEC_checkToken()) { echo STORY_deleteStory ($sid); + } else { + COM_accessLog ("User {$_USER['username']} tried to delete story and failed CSRF checks $sid."); + echo COM_refresh ($_CONF['site_admin_url'] . '/index.php'); } } else if (($mode == $LANG_ADMIN['preview']) && !empty ($LANG_ADMIN['preview'])) { *************** *** 760,764 **** $display .= COM_siteFooter(); echo $display; ! } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save'])) { submitstory (); } else { // 'cancel' or no mode at all --- 768,772 ---- $display .= COM_siteFooter(); echo $display; ! } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save']) && SEC_checkToken()) { submitstory (); } else { // 'cancel' or no mode at all From mjervis at qs1489.pair.com Thu May 1 15:43:44 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 19:43:44 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes story.class.php, 1.24, 1.25 Message-ID: <20080501194344.769DF10FE17@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes In directory qs1489.pair.com:/tmp/cvs-serv7887/system/classes Modified Files: story.class.php Log Message: Story security. Index: story.class.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/story.class.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** story.class.php 12 Apr 2008 19:28:41 -0000 1.24 --- story.class.php 1 May 2008 19:43:42 -0000 1.25 *************** *** 373,377 **** $this->_expire = $story['expireunix']; } else { ! $this->_expire = ''; } --- 373,377 ---- $this->_expire = $story['expireunix']; } else { ! $this->_expire = '0'; } *************** *** 1508,1512 **** while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($in, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/raw]'); --- 1508,1512 ---- while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($inlower, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/raw]'); *************** *** 1542,1546 **** while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($in, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/code]'); --- 1542,1546 ---- while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($inlower, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/code]'); From mjervis at qs1489.pair.com Thu May 1 15:43:44 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 19:43:44 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/admin/story storyeditor.thtml, 1.20, 1.21 storyeditor_advanced.thtml, 1.31, 1.32 Message-ID: <20080501194344.6794A10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story In directory qs1489.pair.com:/tmp/cvs-serv7887/public_html/layout/professional/admin/story Modified Files: storyeditor.thtml storyeditor_advanced.thtml Log Message: Story security. Index: storyeditor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story/storyeditor.thtml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** storyeditor.thtml 30 Dec 2007 12:16:37 -0000 1.20 --- storyeditor.thtml 1 May 2008 19:43:42 -0000 1.21 *************** *** 226,229 **** --- 226,230 ---- + Index: storyeditor_advanced.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story/storyeditor_advanced.thtml,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** storyeditor_advanced.thtml 20 Jan 2008 08:37:41 -0000 1.31 --- storyeditor_advanced.thtml 1 May 2008 19:43:42 -0000 1.32 *************** *** 217,220 **** --- 217,221 ---- + From mjervis at qs1489.pair.com Thu May 1 15:43:44 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Thu, 01 May 2008 19:43:44 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs theme.html,1.75,1.76 Message-ID: <20080501194344.5915010FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv7887/public_html/docs Modified Files: theme.html Log Message: Story security. Index: theme.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/theme.html,v retrieving revision 1.75 retrieving revision 1.76 diff -C2 -d -r1.75 -r1.76 *** theme.html 24 Apr 2008 19:26:55 -0000 1.75 --- theme.html 1 May 2008 19:43:42 -0000 1.76 *************** *** 210,213 **** --- 210,215 ----
            • admin/plugins/editor.thtml
            • +
            • admin/story/storyeditor.thtml
            • +
            • admin/story/storyeditor_advanced.thtml
            From dhaun at qs1489.pair.com Thu May 1 16:10:40 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 20:10:40 +0000 Subject: [geeklog-cvs] tools/lm/include core.inc,1.1,1.2 Message-ID: <20080501201040.89D2010FE12@qs1489.pair.com> Update of /cvsroot/geeklog/tools/lm/include In directory qs1489.pair.com:/tmp/cvs-serv8862/include Modified Files: core.inc Log Message: Special fix for a common URL mistake in some language files Index: core.inc =================================================================== RCS file: /cvsroot/geeklog/tools/lm/include/core.inc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** core.inc 27 Apr 2008 17:11:13 -0000 1.1 --- core.inc 1 May 2008 20:10:38 -0000 1.2 *************** *** 32,35 **** --- 32,48 ---- // $Id$ + /** + * Helper function: Fix URL in some language files + * + */ + function Core_fix_storydenialmsg(&$access) + { + if (isset($access['storydenialmsg'])) { + $access['storydenialmsg'] = str_replace('', + '', + $access['storydenialmsg']); + } + } + // save the english text strings $ENG01 = $LANG01; *************** *** 161,164 **** --- 174,178 ---- mergeArrays($ENGMS, $MESSAGE, 'MESSAGE', 'confirmation and error messages'); + Core_fix_storydenialmsg($LANG_ACCESS); mergeArrays($ENGAC, $LANG_ACCESS, 'LANG_ACCESS'); mergeArrays($ENGDB, $LANG_DB_BACKUP, 'LANG_DB_BACKUP', 'admin/database.php'); From dhaun at qs1489.pair.com Thu May 1 17:01:49 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 21:01:49 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system lib-story.php,1.124,1.125 Message-ID: <20080501210149.E7B9710FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system In directory qs1489.pair.com:/tmp/cvs-serv10622 Modified Files: lib-story.php Log Message: Fixes for E_ALL Index: lib-story.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-story.php,v retrieving revision 1.124 retrieving revision 1.125 diff -C2 -d -r1.124 -r1.125 *** lib-story.php 20 Feb 2008 20:23:00 -0000 1.124 --- lib-story.php 1 May 2008 21:01:47 -0000 1.125 *************** *** 1036,1040 **** } ! $gl_edit = $args['gl_edit']; if ($gl_edit) { /* This is EDIT mode, so there should be an old sid */ --- 1036,1043 ---- } ! $gl_edit = false; ! if (isset($args['gl_edit'])) { ! $gl_edit = $args['gl_edit']; ! } if ($gl_edit) { /* This is EDIT mode, so there should be an old sid */ *************** *** 1061,1067 **** } if (!empty($args['content'])) { $content = $args['content']; ! } else { $content = $args['summary']; } --- 1064,1071 ---- } + $content = ''; if (!empty($args['content'])) { $content = $args['content']; ! } else if (!empty($args['summary'])) { $content = $args['summary']; } *************** *** 1184,1188 **** $story = new Story(); ! if ($args['gl_edit'] && !empty($args['gl_etag'])) { /* First load the original story to check if it has been modified */ $result = $story->loadFromDatabase($args['sid']); --- 1188,1196 ---- $story = new Story(); ! $gl_edit = false; ! if (isset($args['gl_edit'])) { ! $gl_edit = $args['gl_edit']; ! } ! if ($gl_edit && !empty($args['gl_etag'])) { /* First load the original story to check if it has been modified */ $result = $story->loadFromDatabase($args['sid']); From dhaun at qs1489.pair.com Thu May 1 17:08:33 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 21:08:33 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install/language english.php, 1.10, 1.11 Message-ID: <20080501210833.7C12210FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language In directory qs1489.pair.com:/tmp/cvs-serv10887 Modified Files: english.php Log Message: Typo Index: english.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language/english.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** english.php 1 May 2008 09:52:56 -0000 1.10 --- english.php 1 May 2008 21:08:31 -0000 1.11 *************** *** 73,77 **** 20 => 'Warning!', 21 => 'Your Geeklog and site will not work properly until the errors listed above are corrected. Not following this step is the #1 reason why people receive errors when they first try to use Geeklog. Please make the necessary changes before you continue.', ! 22 => 'unkown', 23 => 'Choose your installation method:', 24 => 'New Install', --- 73,77 ---- 20 => 'Warning!', 21 => 'Your Geeklog and site will not work properly until the errors listed above are corrected. Not following this step is the #1 reason why people receive errors when they first try to use Geeklog. Please make the necessary changes before you continue.', ! 22 => 'unknown', 23 => 'Choose your installation method:', 24 => 'New Install', From dhaun at qs1489.pair.com Thu May 1 17:09:02 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Thu, 01 May 2008 21:09:02 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install/language german.php, 1.6, 1.7 Message-ID: <20080501210902.8CE9610FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language In directory qs1489.pair.com:/tmp/cvs-serv10907 Modified Files: german.php Log Message: Translated some texts - still far from done Index: german.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/language/german.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** german.php 1 May 2008 09:52:56 -0000 1.6 --- german.php 1 May 2008 21:09:00 -0000 1.7 *************** *** 56,69 **** 2 => 'Zuverl?ssigkeit eingebaut', 3 => 'Geeklog-Installation', ! 4 => 'PHP 4.1.0 required', ! 5 => 'Sorry, but Geeklog requires at least PHP 4.1.0 to run (you have version ', ! 6 => '). Please upgrade your PHP install or ask your hosting service to do it for you.', ! 7 => 'Unable to locate Geeklog files', ! 8 => 'The installation script was unable to locate critical Geeklog files. This is probably because you have moved them from their default location. Please specify the paths to the files and directories below:', 9 => 'Willkommen und Danke, dass Du Geeklog gew?hlt hast!', ! 10 => 'File/Directory', ! 11 => 'Permissions', ! 12 => 'Change to', ! 13 => 'Currently', 14 => 'Change directory to', 15 => 'Export of Geeklog headlines is switched off. The backend directory was not tested', --- 56,69 ---- 2 => 'Zuverl?ssigkeit eingebaut', 3 => 'Geeklog-Installation', ! 4 => 'PHP 4.1.0 ben?tigt', ! 5 => 'Sorry, Geeklog ben?tigt mindestens PHP 4.1.0 (Du hast Version '), ! 6 => '). Bitte aktualisiere Deine PHP-Installation oder bitte Deinen Hosting-Provider darum.', ! 7 => 'Geeklog-Dateien nicht gefunden', ! 8 => 'Das Installations-Skript hat einige wichtige Geeklog-Dateien nicht gefunden. Wahrscheinlich hast Du diese in andere Verzeichnisse verschoben. Bitte gib hier die Pfade zu den Dateien und Verzeichnissen an:', 9 => 'Willkommen und Danke, dass Du Geeklog gew?hlt hast!', ! 10 => 'Datei/Verzeichnis', ! 11 => 'Zugriffsrechte', ! 12 => '?ndern auf', ! 13 => 'Derzeit', 14 => 'Change directory to', 15 => 'Export of Geeklog headlines is switched off. The backend directory was not tested', *************** *** 71,77 **** 18 => 'Images in articles are disabled. The articles directory was not tested', 19 => 'Geeklog requires certain files and directories to be writeable by the web server. Below is a list of which files and directories need to be changed.', ! 20 => 'Warning!', 21 => 'Your Geeklog and site will not work properly until the errors listed above are corrected. Please make the necessary changes before you continue.', ! 22 => 'unkown', 23 => 'Bitte w?hle eine Installationsmethode:', 24 => 'Neuinstallation', --- 71,77 ---- 18 => 'Images in articles are disabled. The articles directory was not tested', 19 => 'Geeklog requires certain files and directories to be writeable by the web server. Below is a list of which files and directories need to be changed.', ! 20 => 'Warnung!', 21 => 'Your Geeklog and site will not work properly until the errors listed above are corrected. Please make the necessary changes before you continue.', ! 22 => 'unbekannt', 23 => 'Bitte w?hle eine Installationsmethode:', 24 => 'Neuinstallation', *************** *** 110,114 **** 57 => 'Sorry, but the installer could not find the database you specified. Either the database does not exist or you misspelled the name. Please go back and try again.', 58 => '. Did you make sure the file is write-able by the web server?', ! 59 => 'Notice:', 60 => 'InnoDB tables are not supported by your version of MySQL. Would you like to continue the installation without InnoDB support?', 61 => 'zur?ck', --- 110,114 ---- 57 => 'Sorry, but the installer could not find the database you specified. Either the database does not exist or you misspelled the name. Please go back and try again.', 58 => '. Did you make sure the file is write-able by the web server?', ! 59 => 'Hinweis:', 60 => 'InnoDB tables are not supported by your version of MySQL. Would you like to continue the installation without InnoDB support?', 61 => 'zur?ck', *************** *** 141,145 **** 88 => 'Change directory and containing files to', 89 => 'Aktuelle Version:', ! 90 => 'Empty database?', 91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.', 92 => 'Benutze UTF-8' --- 141,145 ---- 88 => 'Change directory and containing files to', 89 => 'Aktuelle Version:', ! 90 => 'Leere Datenbank?', 91 => 'It appears that either your database is empty or the database credentials you entered are incorrect. Or maybe you wanted to perform a New Install (instead of an Upgrade)? Please go back and try again.', 92 => 'Benutze UTF-8' From dhaun at qs1489.pair.com Fri May 2 07:32:11 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 11:32:11 +0000 Subject: [geeklog-cvs] Geeklog-1.x/sql/updates mssql_1.4.1_to_1.5.0.php, 1.14, 1.15 Message-ID: <20080502113211.E001E10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/sql/updates In directory qs1489.pair.com:/tmp/cvs-serv40868/sql/updates Modified Files: mssql_1.4.1_to_1.5.0.php Log Message: Copied the code to initialize the config over from the MySQL file - the rest of the file is still incomplete Index: mssql_1.4.1_to_1.5.0.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/sql/updates/mssql_1.4.1_to_1.5.0.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** mssql_1.4.1_to_1.5.0.php 8 Mar 2008 21:53:34 -0000 1.14 --- mssql_1.4.1_to_1.5.0.php 2 May 2008 11:32:09 -0000 1.15 *************** *** 51,55 **** function create_ConfValues() { ! global $_TABLES; // Create conf_values table for new configuration system DB_query (" --- 51,56 ---- function create_ConfValues() { ! global $_CONF, $_TABLES; ! // Create conf_values table for new configuration system DB_query (" *************** *** 66,257 **** ON [PRIMARY] "); ! require_once($_CONF['path_system'] . 'classes/config.class.php'); $c = config::get_instance(); ! $c->add('path_html','','text',0,1,NULL,10,TRUE); $c->add('site_url','','text',0,0,NULL,20,TRUE); $c->add('site_admin_url','','text',0,0,NULL,30,TRUE); - $c->add('site_mail','','text',0,3,NULL,40,TRUE); - $c->add('noreply_mail','','text',0,3,NULL,50,TRUE); $c->add('site_name','','text',0,0,NULL,60,TRUE); $c->add('site_slogan','','text',0,0,NULL,70,TRUE); $c->add('microsummary_short','GL: ','text',0,0,NULL,80,TRUE); ! $c->add('path_log','','text',0,1,NULL,90,TRUE); ! $c->add('path_language','','text',0,1,NULL,100,TRUE); ! $c->add('backup_path','','text',0,1,NULL,110,TRUE); ! $c->add('path_data','','text',0,1,NULL,120,TRUE); ! $c->add('path_images','','text',0,1,NULL,130,TRUE); $c->add('have_pear','','select',0,4,1,135,TRUE); $c->add('path_pear','','text',0,4,NULL,140,TRUE); ! $c->add('mail_settings',array ('backend' => 'mail', 'sendmail_path' => '/usr/bin/sendmail', 'sendmail_args' => '', 'host' => 'smtp.example.com','port' => '25', 'auth' => false, 'username' => 'smtp-username','password' => 'smtp-password'),'@text',0,3,NULL,160,TRUE); ! $c->add('allow_mysqldump',0,'select',0,5,0,170,TRUE); $c->add('mysqldump_path','/usr/bin/mysqldump','text',0,5,NULL,175,TRUE); $c->add('mysqldump_options','-Q','text',0,5,NULL,180,TRUE); ! $c->add('theme','professional','text',2,2,NULL,190,TRUE); ! $c->add('menu_elements',array('contribute','search','stats','directory','plugins'),'%text',2,2,NULL,200,TRUE); ! $c->add('path_themes','','text',2,2,NULL,210,TRUE); ! $c->add('disable_new_user_registration',FALSE,'select',4,6,0,220,TRUE); ! $c->add('allow_user_themes',1,'select',4,6,0,230,TRUE); ! $c->add('allow_user_language',1,'select',4,6,0,240,TRUE); ! $c->add('allow_user_photo',1,'select',4,6,0,250,TRUE); ! $c->add('allow_username_change',0,'select',4,6,0,260,TRUE); ! $c->add('allow_account_delete',0,'select',4,6,0,270,TRUE); ! $c->add('hide_author_exclusion',0,'select',4,6,0,280,TRUE); ! $c->add('show_fullname',0,'select',4,6,0,290,TRUE); ! $c->add('show_servicename',TRUE,'select',4,6,1,300,TRUE); ! $c->add('custom_registration',FALSE,'select',4,6,1,310,TRUE); ! $c->add('user_login_method',array('standard' => true, 'openid' => false, '3rdparty' => false),'@select',4,6,1,320,TRUE); ! $c->add('spamx',128,'text',4,8,NULL,330,TRUE); ! $c->add('sort_admin',TRUE,'select',7,9,1,340,TRUE); ! $c->add('language','english','text',6,11,NULL,350,TRUE); ! $c->add('locale','en_GB','text',6,10,NULL,360,TRUE); ! $c->add('date','%A, %B %d %Y @ %I:%M %p %Z','text',6,10,NULL,370,TRUE); ! $c->add('daytime','%m/%d %I:%M%p','text',6,10,NULL,380,TRUE); ! $c->add('shortdate','%x','text',6,10,NULL,390,TRUE); ! $c->add('dateonly','%d-%b','text',6,10,NULL,400,TRUE); ! $c->add('timeonly','%I:%M%p','text',6,10,NULL,410,TRUE); ! $c->add('week_start','Sun','text',6,10,14,420,TRUE); ! $c->add('hour_mode',12,'select',6,10,6,430,TRUE); ! $c->add('thousand_separator',",",'text',6,10,NULL,440,TRUE); ! $c->add('decimal_separator',".",'text',6,10,NULL,450,TRUE); ! $c->add('decimal_count',"2",'text',6,10,NULL,460,TRUE); ! $c->add('language_files',array('en'=>'english_utf-8', 'de'=>'german_formal_utf-8'),'*text',6,11,NULL,470,FALSE); ! $c->add('languages',array('en'=>'English', 'de'=>'Deutsch'),'*text',6,11,NULL,480,FALSE); ! $c->add('timezone','Etc/GMT-6','text',6,10,NULL,490,FALSE); ! $c->add('site_disabled_msg','Geeklog Site is down. Please come back soon.','text',0,0,NULL,510,TRUE); ! $c->add('rootdebug',FALSE,'select',7,12,1,520,TRUE); ! $c->add('cookie_session','gl_session','text',7,13,NULL,530,TRUE); ! $c->add('cookie_name','geeklog','text',7,13,NULL,540,TRUE); ! $c->add('cookie_password','password','text',7,13,NULL,550,TRUE); ! $c->add('cookie_theme','theme','text',7,13,NULL,560,TRUE); ! $c->add('cookie_language','language','text',7,13,NULL,570,TRUE); ! $c->add('cookie_ip',0,'select',7,13,0,580,TRUE); ! $c->add('default_perm_cookie_timeout',28800,'text',7,13,NULL,590,TRUE); ! $c->add('session_cookie_timeout',7200,'text',7,13,NULL,600,TRUE); ! $c->add('cookie_path','/','text',7,13,NULL,610,TRUE); ! $c->add('cookiedomain','','text',7,13,NULL,620,TRUE); ! $c->add('cookiesecure',0,'text',7,13,NULL,630,TRUE); ! $c->add('lastlogin',TRUE,'select',4,14,1,640,TRUE); ! $c->add('pdf_enabled',0,'select',7,7,0,660,TRUE); ! $c->add('num_search_results',10,'text',0,15,NULL,670,TRUE); ! $c->add('loginrequired',0,'select',4,14,0,680,TRUE); ! $c->add('submitloginrequired',0,'select',4,14,0,690,TRUE); ! $c->add('commentsloginrequired',0,'select',4,14,0,700,TRUE); ! $c->add('statsloginrequired',0,'select',4,14,0,710,TRUE); ! $c->add('searchloginrequired',0,'select',4,14,0,720,TRUE); ! $c->add('profileloginrequired',0,'select',4,14,0,730,TRUE); ! $c->add('emailuserloginrequired',0,'select',4,14,0,740,TRUE); ! $c->add('emailstoryloginrequired',0,'select',4,14,0,750,TRUE); ! $c->add('directoryloginrequired',0,'select',4,14,0,760,TRUE); ! $c->add('storysubmission',1,'select',4,17,0,770,TRUE); ! $c->add('usersubmission',0,'select',4,16,0,780,TRUE); ! $c->add('listdraftstories',0,'select',4,17,0,790,TRUE); ! $c->add('notification',array(),'%text',7,7,NULL,800,TRUE); ! $c->add('postmode','plaintext','select',4,17,5,810,TRUE); ! $c->add('speedlimit',45,'text',4,17,NULL,820,TRUE); ! $c->add('skip_preview',0,'text',4,17,NULL,830,TRUE); ! $c->add('advanced_editor',FALSE,'select',4,17,1,840,TRUE); ! $c->add('wikitext_editor',FALSE,'select',4,17,1,850,TRUE); ! $c->add('cron_schedule_interval',86400,'text',7,7,NULL,860,TRUE); ! $c->add('sortmethod','sortnum','text',3,18,NULL,870,TRUE); ! $c->add('showstorycount',1,'select',3,18,0,880,TRUE); ! $c->add('showsubmissioncount',1,'select',3,18,0,890,TRUE); ! $c->add('hide_home_link',0,'select',3,18,0,900,TRUE); ! $c->add('whosonline_threshold',300,'text',3,19,NULL,910,TRUE); ! $c->add('whosonline_anonymous',0,'select',3,19,0,920,TRUE); ! $c->add('emailstories',0,'select',3,20,0,930,TRUE); ! $c->add('emailstorieslength',1,'text',3,20,NULL,940,TRUE); ! $c->add('emailstoriesperdefault',0,'select',3,20,0,950,TRUE); ! $c->add('allow_domains','','text',4,16,NULL,960,TRUE); ! $c->add('disallow_domains','','text',4,16,NULL,970,TRUE); ! $c->add('newstoriesinterval',86400,'text',3,21,NULL,980,TRUE); ! $c->add('newcommentsinterval',172800,'text',3,21,NULL,990,TRUE); ! $c->add('newtrackbackinterval',172800,'text',3,21,NULL,1000,TRUE); ! $c->add('hidenewstories',0,'select',3,21,0,1010,TRUE); ! $c->add('hidenewcomments',0,'select',3,21,0,1020,TRUE); ! $c->add('hidenewtrackbacks',0,'select',3,21,0,1030,TRUE); ! $c->add('hidenewplugins',0,'select',3,21,0,1040,TRUE); ! $c->add('title_trim_length',20,'text',3,21,NULL,1050,TRUE); ! $c->add('trackback_enabled',TRUE,'select',1,22,1,1060,TRUE); ! $c->add('pingback_enabled',TRUE,'select',1,23,1,1070,TRUE); ! $c->add('ping_enabled',TRUE,'select',1,23,1,1080,TRUE); ! $c->add('trackback_code',0,'select',1,22,3,1090,TRUE); ! $c->add('multiple_trackbacks',0,'select',1,22,2,1100,TRUE); ! $c->add('trackbackspeedlimit',300,'text',1,22,NULL,1110,TRUE); ! $c->add('check_trackback_link',2,'select',1,22,4,1120,TRUE); ! $c->add('pingback_self',0,'select',1,23,13,1130,TRUE); ! $c->add('pingback_excerpt',TRUE,'select',1,23,1,1140,TRUE); ! $c->add('link_documentation',1,'select',7,9,0,1150,TRUE); ! $c->add('link_versionchecker',1,'select',7,9,0,1160,TRUE); ! $c->add('maximagesperarticle',5,'text',1,24,NULL,1170,TRUE); ! $c->add('limitnews',10,'text',1,24,NULL,1180,TRUE); ! $c->add('minnews',1,'text',1,24,NULL,1190,TRUE); ! $c->add('contributedbyline',1,'select',1,24,0,1200,TRUE); ! $c->add('hideviewscount',0,'select',1,24,0,1210,TRUE); ! $c->add('hideemailicon',0,'select',1,24,0,1220,TRUE); ! $c->add('hideprintericon',0,'select',1,24,0,1230,TRUE); ! $c->add('allow_page_breaks',1,'select',1,24,0,1240,TRUE); ! $c->add('page_break_comments','last','select',1,24,7,1250,TRUE); ! $c->add('article_image_align','right','select',1,24,8,1260,TRUE); ! $c->add('show_topic_icon',1,'select',1,24,0,1270,TRUE); ! $c->add('draft_flag',0,'select',1,24,0,1280,TRUE); ! $c->add('frontpage',1,'select',1,24,0,1290,TRUE); ! $c->add('hide_no_news_msg',0,'select',1,24,0,1300,TRUE); ! $c->add('hide_main_page_navigation',0,'select',1,24,0,1310,TRUE); ! $c->add('onlyrootfeatures',0,'select',1,24,0,1320,TRUE); ! $c->add('aftersave_story','item','select',1,24,9,1330,TRUE); ! $c->add('aftersave_user','item','select',1,24,9,1340,TRUE); ! $c->add('show_right_blocks',FALSE,'select',2,25,1,1350,TRUE); ! $c->add('showfirstasfeatured',0,'select',2,25,0,1360,TRUE); ! $c->add('backend',1,'select',0,26,0,1380,TRUE); ! $c->add('rdf_file','','text',0,26,NULL,1390,TRUE); ! $c->add('rdf_limit',10,'text',0,26,NULL,1400,TRUE); ! $c->add('rdf_storytext',1,'text',0,26,NULL,1410,TRUE); ! $c->add('rdf_language','en-gb','text',0,26,NULL,1420,TRUE); ! $c->add('syndication_max_headlines',0,'text',0,26,NULL,1430,TRUE); ! $c->add('copyrightyear','2008','text',0,0,NULL,1440,FALSE); ! $c->add('image_lib','','select',5,27,10,1450,TRUE); ! $c->add('path_to_mogrify','','text',5,27,NULL,1460,FALSE); ! $c->add('path_to_netpbm','','text',5,27,NULL,1470,FALSE); ! $c->add('debug_image_upload',FALSE,'select',5,28,1,1480,FALSE); ! $c->add('keep_unscaled_image',0,'select',5,28,0,1490,TRUE); ! $c->add('allow_user_scaling',1,'select',5,28,0,1500,TRUE); ! $c->add('max_image_width',160,'text',5,29,NULL,1510,TRUE); ! $c->add('max_image_height',160,'text',5,29,NULL,1520,TRUE); ! $c->add('max_image_size',1048576,'text',5,29,NULL,1530,TRUE); ! $c->add('max_topicicon_width',48,'text',5,30,NULL,1540,TRUE); ! $c->add('max_topicicon_height',48,'text',5,30,NULL,1550,TRUE); ! $c->add('max_topicicon_size',65536,'text',5,30,NULL,1560,TRUE); ! $c->add('max_photo_width',128,'text',5,31,NULL,1570,TRUE); ! $c->add('max_photo_height',128,'text',5,31,NULL,1580,TRUE); ! $c->add('max_photo_size',65536,'text',5,31,NULL,1590,TRUE); ! $c->add('use_gravatar',FALSE,'select',5,32,1,1600,TRUE); ! $c->add('gravatar_rating','R','text',5,32,NULL,1610,FALSE); ! $c->add('force_photo_width',75,'text',5,31,NULL,1620,FALSE); ! $c->add('default_photo','http://example.com/default.jpg','text',5,31,NULL,1630,FALSE); ! $c->add('commentspeedlimit',45,'text',4,33,NULL,1640,TRUE); ! $c->add('comment_limit',100,'text',4,33,NULL,1650,TRUE); ! $c->add('comment_mode','threaded','select',4,33,11,1660,TRUE); ! $c->add('comment_code',0,'select',4,33,0,1670,TRUE); ! $c->add('passwordspeedlimit',300,'text',4,14,NULL,1680,TRUE); ! $c->add('login_attempts',3,'text',4,14,NULL,1690,TRUE); ! $c->add('login_speedlimit',300,'text',4,14,NULL,1700,TRUE); ! $c->add('user_html',array ('p' => array(), 'b' => array(), 'strong' => array(),'i' => array(), 'a' => array('href' => 1, 'title' => 1, 'rel' => 1),'em' => array(),'br' => array(),'tt' => array(),'hr' => array(), 'li' => array(), 'ol' => array(), 'ul' => array(), 'code' => array(), 'pre' => array()),'**placeholder',7,34,NULL,1710,TRUE); $c->add('admin_html',array ('p' => array('class' => 1, 'id' => 1, 'align' => 1), 'div' => array('class' => 1, 'id' => 1), 'span' => array('class' => 1, 'id' => 1), 'table' => array('class' => 1, 'id' => 1, 'width' => 1, 'border' => 1, 'cellspacing' => 1, 'cellpadding' => 1), 'tr' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1), 'th' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1, 'colspan' => 1, 'rowspan' => 1), 'td' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1, 'colspan' => 1, 'rowspan' => 1)),'**placeholder',7,34,NULL,1720,TRUE); $c->add('skip_html_filter_for_root',0,'select',7,34,0,1730,TRUE); ! $c->add('allowed_protocols',array('http','ftp','https'),'%text',0,0,NULL,1740,TRUE); ! $c->add('disable_autolinks',0,'select',7,7,0,1750,TRUE); $c->add('censormode',1,'select',7,35,0,1760,TRUE); $c->add('censorreplace','*censormode*','text',7,35,NULL,1770,TRUE); $c->add('censorlist', array('fuck','cunt','fucker','fucking','pussy','cock','c0ck',' cum ','twat','clit','bitch','fuk','fuking','motherfucker'),'%text',7,35,NULL,1780,TRUE); $c->add('ip_lookup','/nettools/whois.php?domain=*','text',7,36,NULL,1790,FALSE); ! $c->add('url_rewrite',FALSE,'select',0,0,1,1800,TRUE); ! $c->add('default_permissions_block',array(3, 2, 2, 2),'@select',7,37,12,1810,TRUE); $c->add('default_permissions_story',array(3, 2, 2, 2),'@select',7,37,12,1820,TRUE); ! $c->add('default_permissions_topic',array(3, 2, 2, 2),'@select',7,37,12,1830,TRUE); ! $c->add('disable_webservices', 0, 'select', 7, 38, 0, 1840, TRUE); ! $c->add('restrict_webservices', 0, 'select', 7, 38, 0, 1850, TRUE); ! $c->add('atom_max_stories', 10, 'text', 7, 38, 0, 1860, TRUE); } --- 67,365 ---- ON [PRIMARY] "); ! ! require_once $_CONF['path_system'] . 'classes/config.class.php'; $c = config::get_instance(); ! // Subgroup: Site ! $c->add('sg_site', NULL, 'subgroup', 0, 0, NULL, 0, TRUE); ! ! $c->add('fs_site', NULL, 'fieldset', 0, 0, NULL, 0, TRUE); $c->add('site_url','','text',0,0,NULL,20,TRUE); $c->add('site_admin_url','','text',0,0,NULL,30,TRUE); $c->add('site_name','','text',0,0,NULL,60,TRUE); $c->add('site_slogan','','text',0,0,NULL,70,TRUE); $c->add('microsummary_short','GL: ','text',0,0,NULL,80,TRUE); ! $c->add('site_disabled_msg','Geeklog Site is down. Please come back soon.','text',0,0,NULL,510,TRUE); ! $c->add('copyrightyear','2008','text',0,0,NULL,1440,FALSE); ! $c->add('url_rewrite',FALSE,'select',0,0,1,1800,TRUE); ! ! $c->add('fs_mail', NULL, 'fieldset', 0, 1, NULL, 0, TRUE); ! $c->add('site_mail','','text',0,1,NULL,40,TRUE); ! $c->add('noreply_mail','','text',0,1,NULL,50,TRUE); ! $c->add('mail_settings',array ('backend' => 'mail', 'sendmail_path' => '/usr/bin/sendmail', 'sendmail_args' => '', 'host' => 'smtp.example.com','port' => '25', 'auth' => false, 'username' => 'smtp-username','password' => 'smtp-password'),'@text',0,1,NULL,160,TRUE); ! ! $c->add('fs_syndication', NULL, 'fieldset', 0, 2, NULL, 0, TRUE); ! $c->add('backend',1,'select',0,2,0,1380,TRUE); ! $c->add('rdf_file','','text',0,2,NULL,1390,TRUE); ! $c->add('rdf_limit',10,'text',0,2,NULL,1400,TRUE); ! $c->add('rdf_storytext',1,'text',0,2,NULL,1410,TRUE); ! $c->add('rdf_language','en-gb','text',0,2,NULL,1420,TRUE); ! $c->add('syndication_max_headlines',0,'text',0,2,NULL,1430,TRUE); ! ! $c->add('fs_paths', NULL, 'fieldset', 0, 3, NULL, 0, TRUE); ! $c->add('path_html','','text',0,3,NULL,10,TRUE); ! $c->add('path_log','','text',0,3,NULL,90,TRUE); ! $c->add('path_language','','text',0,3,NULL,100,TRUE); ! $c->add('backup_path','','text',0,3,NULL,110,TRUE); ! $c->add('path_data','','text',0,3,NULL,120,TRUE); ! $c->add('path_images','','text',0,3,NULL,130,TRUE); ! ! $c->add('fs_pear', NULL, 'fieldset', 0, 4, NULL, 0, TRUE); $c->add('have_pear','','select',0,4,1,135,TRUE); $c->add('path_pear','','text',0,4,NULL,140,TRUE); ! ! $c->add('fs_mysql', NULL, 'fieldset', 0, 5, NULL, 0, TRUE); ! $c->add('allow_mysqldump',1,'select',0,5,0,170,TRUE); $c->add('mysqldump_path','/usr/bin/mysqldump','text',0,5,NULL,175,TRUE); $c->add('mysqldump_options','-Q','text',0,5,NULL,180,TRUE); ! ! $c->add('fs_search', NULL, 'fieldset', 0, 6, NULL, 0, TRUE); ! $c->add('num_search_results',10,'text',0,6,NULL,670,TRUE); ! ! // Subgroup: Stories and Trackback ! $c->add('sg_stories', NULL, 'subgroup', 1, 0, NULL, 0, TRUE); ! ! $c->add('fs_story', NULL, 'fieldset', 1, 7, NULL, 0, TRUE); ! $c->add('maximagesperarticle',5,'text',1,7,NULL,1170,TRUE); ! $c->add('limitnews',10,'text',1,7,NULL,1180,TRUE); ! $c->add('minnews',1,'text',1,7,NULL,1190,TRUE); ! $c->add('contributedbyline',1,'select',1,7,0,1200,TRUE); ! $c->add('hideviewscount',0,'select',1,7,0,1210,TRUE); ! $c->add('hideemailicon',0,'select',1,7,0,1220,TRUE); ! $c->add('hideprintericon',0,'select',1,7,0,1230,TRUE); ! $c->add('allow_page_breaks',1,'select',1,7,0,1240,TRUE); ! $c->add('page_break_comments','last','select',1,7,7,1250,TRUE); ! $c->add('article_image_align','right','select',1,7,8,1260,TRUE); ! $c->add('show_topic_icon',1,'select',1,7,0,1270,TRUE); ! $c->add('draft_flag',0,'select',1,7,0,1280,TRUE); ! $c->add('frontpage',1,'select',1,7,0,1290,TRUE); ! $c->add('hide_no_news_msg',0,'select',1,7,0,1300,TRUE); ! $c->add('hide_main_page_navigation',0,'select',1,7,0,1310,TRUE); ! $c->add('onlyrootfeatures',0,'select',1,7,0,1320,TRUE); ! $c->add('aftersave_story','list','select',1,7,9,1330,TRUE); ! ! $c->add('fs_trackback', NULL, 'fieldset', 1, 8, NULL, 0, TRUE); ! $c->add('trackback_enabled',TRUE,'select',1,8,1,1060,TRUE); ! $c->add('trackback_code',0,'select',1,8,3,1070,TRUE); ! $c->add('trackbackspeedlimit',300,'text',1,8,NULL,1080,TRUE); ! $c->add('check_trackback_link',2,'select',1,8,4,1090,TRUE); ! $c->add('multiple_trackbacks',0,'select',1,8,2,1100,TRUE); ! ! $c->add('fs_pingback', NULL, 'fieldset', 1, 9, NULL, 0, TRUE); ! $c->add('pingback_enabled',TRUE,'select',1,9,1,1110,TRUE); ! $c->add('pingback_excerpt',TRUE,'select',1,9,1,1120,TRUE); ! $c->add('pingback_self',0,'select',1,9,13,1130,TRUE); ! $c->add('ping_enabled',TRUE,'select',1,9,1,1140,TRUE); ! ! // Subgroup: Theme ! $c->add('sg_theme', NULL, 'subgroup', 2, 0, NULL, 0, TRUE); ! ! $c->add('fs_theme', NULL, 'fieldset', 2, 10, NULL, 0, TRUE); ! $c->add('theme','professional','select',2,10,NULL,190,TRUE); ! $c->add('menu_elements',array('contribute','search','stats','directory','plugins'),'%text',2,10,NULL,200,TRUE); ! $c->add('path_themes','','text',2,10,NULL,210,TRUE); ! ! $c->add('fs_theme_advanced', NULL, 'fieldset', 2, 11, NULL, 0, TRUE); ! $c->add('show_right_blocks',FALSE,'select',2,11,1,1350,TRUE); ! $c->add('showfirstasfeatured',0,'select',2,11,0,1360,TRUE); ! ! // Subgroup: Blocks ! $c->add('sg_blocks', NULL, 'subgroup', 3, 0, NULL, 0, TRUE); ! ! $c->add('fs_admin_block', NULL, 'fieldset', 3, 12, NULL, 0, TRUE); ! $c->add('sort_admin',TRUE,'select',3,12,1,340,TRUE); ! $c->add('link_documentation',1,'select',3,12,0,1150,TRUE); ! $c->add('link_versionchecker',1,'select',3,12,0,1160,TRUE); ! ! $c->add('fs_topics_block', NULL, 'fieldset', 3, 13, NULL, 0, TRUE); ! $c->add('sortmethod','sortnum','select',3,13,15,870,TRUE); ! $c->add('showstorycount',1,'select',3,13,0,880,TRUE); ! $c->add('showsubmissioncount',1,'select',3,13,0,890,TRUE); ! $c->add('hide_home_link',0,'select',3,13,0,900,TRUE); ! ! $c->add('fs_whosonline_block', NULL, 'fieldset', 3, 14, NULL, 0, TRUE); ! $c->add('whosonline_threshold',300,'text',3,14,NULL,910,TRUE); ! $c->add('whosonline_anonymous',0,'select',3,14,0,920,TRUE); ! ! $c->add('fs_whatsnew_block', NULL, 'fieldset', 3, 15, NULL, 0, TRUE); ! $c->add('newstoriesinterval',86400,'text',3,15,NULL,980,TRUE); ! $c->add('newcommentsinterval',172800,'text',3,15,NULL,990,TRUE); ! $c->add('newtrackbackinterval',172800,'text',3,15,NULL,1000,TRUE); ! $c->add('hidenewstories',0,'select',3,15,0,1010,TRUE); ! $c->add('hidenewcomments',0,'select',3,15,0,1020,TRUE); ! $c->add('hidenewtrackbacks',0,'select',3,15,0,1030,TRUE); ! $c->add('hidenewplugins',0,'select',3,15,0,1040,TRUE); ! $c->add('title_trim_length',20,'text',3,15,NULL,1050,TRUE); ! ! // Subgroup: Users and Submissions ! $c->add('sg_users', NULL, 'subgroup', 4, 0, NULL, 0, TRUE); ! ! $c->add('fs_users', NULL, 'fieldset', 4, 16, NULL, 0, TRUE); ! $c->add('disable_new_user_registration',FALSE,'select',4,16,0,220,TRUE); ! $c->add('allow_user_themes',1,'select',4,16,0,230,TRUE); ! $c->add('allow_user_language',1,'select',4,16,0,240,TRUE); ! $c->add('allow_user_photo',1,'select',4,16,0,250,TRUE); ! $c->add('allow_username_change',0,'select',4,16,0,260,TRUE); ! $c->add('allow_account_delete',0,'select',4,16,0,270,TRUE); ! $c->add('hide_author_exclusion',0,'select',4,16,0,280,TRUE); ! $c->add('show_fullname',0,'select',4,16,0,290,TRUE); ! $c->add('show_servicename',TRUE,'select',4,16,1,300,TRUE); ! $c->add('custom_registration',FALSE,'select',4,16,1,310,TRUE); ! $c->add('user_login_method',array('standard' => true, 'openid' => false, '3rdparty' => false),'@select',4,16,1,320,TRUE); ! $c->add('aftersave_user','item','select',4,16,9,1340,TRUE); ! ! $c->add('fs_spamx', NULL, 'fieldset', 4, 17, NULL, 0, TRUE); ! $c->add('spamx',128,'text',4,17,NULL,330,TRUE); ! ! $c->add('fs_login', NULL, 'fieldset', 4, 18, NULL, 0, TRUE); ! $c->add('lastlogin',TRUE,'select',4,18,1,640,TRUE); ! $c->add('loginrequired',0,'select',4,18,0,680,TRUE); ! $c->add('submitloginrequired',0,'select',4,18,0,690,TRUE); ! $c->add('commentsloginrequired',0,'select',4,18,0,700,TRUE); ! $c->add('statsloginrequired',0,'select',4,18,0,710,TRUE); ! $c->add('searchloginrequired',0,'select',4,18,16,720,TRUE); ! $c->add('profileloginrequired',0,'select',4,18,0,730,TRUE); ! $c->add('emailuserloginrequired',0,'select',4,18,0,740,TRUE); ! $c->add('emailstoryloginrequired',0,'select',4,18,0,750,TRUE); ! $c->add('directoryloginrequired',0,'select',4,18,0,760,TRUE); ! $c->add('passwordspeedlimit',300,'text',4,18,NULL,1680,TRUE); ! $c->add('login_attempts',3,'text',4,18,NULL,1690,TRUE); ! $c->add('login_speedlimit',300,'text',4,18,NULL,1700,TRUE); ! ! $c->add('fs_user_submission', NULL, 'fieldset', 4, 19, NULL, 0, TRUE); ! $c->add('usersubmission',0,'select',4,19,0,780,TRUE); ! $c->add('allow_domains','','text',4,19,NULL,960,TRUE); ! $c->add('disallow_domains','','text',4,19,NULL,970,TRUE); ! ! $c->add('fs_submission', NULL, 'fieldset', 4, 20, NULL, 0, TRUE); ! $c->add('storysubmission',1,'select',4,20,0,770,TRUE); ! $c->add('listdraftstories',0,'select',4,20,0,790,TRUE); ! $c->add('postmode','plaintext','select',4,20,5,810,TRUE); ! $c->add('speedlimit',45,'text',4,20,NULL,820,TRUE); ! $c->add('skip_preview',0,'select',4,20,0,830,TRUE); ! $c->add('advanced_editor',FALSE,'select',4,20,1,840,TRUE); ! $c->add('wikitext_editor',FALSE,'select',4,20,1,850,TRUE); ! ! $c->add('fs_comments', NULL, 'fieldset', 4, 21, NULL, 0, TRUE); ! $c->add('commentspeedlimit',45,'text',4,21,NULL,1640,TRUE); ! $c->add('comment_limit',100,'text',4,21,NULL,1650,TRUE); ! $c->add('comment_mode','threaded','select',4,21,11,1660,TRUE); ! $c->add('comment_code',0,'select',4,21,17,1670,TRUE); ! ! // Subgroup: Images ! $c->add('sg_images', NULL, 'subgroup', 5, 0, NULL, 0, TRUE); ! ! $c->add('fs_imagelib', NULL, 'fieldset', 5, 22, NULL, 0, TRUE); ! $c->add('image_lib','','select',5,22,10,1450,TRUE); ! $c->add('path_to_mogrify','','text',5,22,NULL,1460,FALSE); ! $c->add('path_to_netpbm','','text',5,22,NULL,1470,FALSE); ! ! $c->add('fs_upload', NULL, 'fieldset', 5, 23, NULL, 0, TRUE); ! $c->add('keep_unscaled_image',0,'select',5,23,0,1480,TRUE); ! $c->add('allow_user_scaling',1,'select',5,23,0,1490,TRUE); ! $c->add('debug_image_upload',FALSE,'select',5,23,1,1500,TRUE); ! ! $c->add('fs_articleimg', NULL, 'fieldset', 5, 24, NULL, 0, TRUE); ! $c->add('max_image_width',160,'text',5,24,NULL,1510,TRUE); ! $c->add('max_image_height',160,'text',5,24,NULL,1520,TRUE); ! $c->add('max_image_size',1048576,'text',5,24,NULL,1530,TRUE); ! ! $c->add('fs_topicicon', NULL, 'fieldset', 5, 25, NULL, 0, TRUE); ! $c->add('max_topicicon_width',48,'text',5,25,NULL,1540,TRUE); ! $c->add('max_topicicon_height',48,'text',5,25,NULL,1550,TRUE); ! $c->add('max_topicicon_size',65536,'text',5,25,NULL,1560,TRUE); ! ! $c->add('fs_userphoto', NULL, 'fieldset', 5, 26, NULL, 0, TRUE); ! $c->add('max_photo_width',128,'text',5,26,NULL,1570,TRUE); ! $c->add('max_photo_height',128,'text',5,26,NULL,1580,TRUE); ! $c->add('max_photo_size',65536,'text',5,26,NULL,1590,TRUE); ! $c->add('force_photo_width',75,'text',5,26,NULL,1620,FALSE); ! $c->add('default_photo','http://example.com/default.jpg','text',5,26,NULL,1630,FALSE); ! ! $c->add('fs_gravatar', NULL, 'fieldset', 5, 27, NULL, 0, TRUE); ! $c->add('use_gravatar',FALSE,'select',5,27,1,1600,TRUE); ! $c->add('gravatar_rating','R','text',5,27,NULL,1610,FALSE); ! ! // Subgroup: Languages and Locale ! $c->add('sg_locale', NULL, 'subgroup', 6, 0, NULL, 0, TRUE); ! ! $c->add('fs_language', NULL, 'fieldset', 6, 28, NULL, 0, TRUE); ! $c->add('language','english','select',6,28,NULL,350,TRUE); ! $c->add('language_files',array('en'=>'english_utf-8', 'de'=>'german_formal_utf-8'),'*text',6,28,NULL,470,FALSE); ! $c->add('languages',array('en'=>'English', 'de'=>'Deutsch'),'*text',6,28,NULL,480,FALSE); ! ! $c->add('fs_locale', NULL, 'fieldset', 6, 29, NULL, 0, TRUE); ! $c->add('locale','en_GB','text',6,29,NULL,360,TRUE); ! $c->add('date','%A, %B %d %Y @ %I:%M %p %Z','text',6,29,NULL,370,TRUE); ! $c->add('daytime','%m/%d %I:%M%p','text',6,29,NULL,380,TRUE); ! $c->add('shortdate','%x','text',6,29,NULL,390,TRUE); ! $c->add('dateonly','%d-%b','text',6,29,NULL,400,TRUE); ! $c->add('timeonly','%I:%M%p','text',6,29,NULL,410,TRUE); ! $c->add('week_start','Sun','select',6,29,14,420,TRUE); ! $c->add('hour_mode',12,'select',6,29,6,430,TRUE); ! $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); ! ! // Subgroup: Miscellaneous ! $c->add('sg_misc', NULL, 'subgroup', 7, 0, NULL, 0, TRUE); ! ! $c->add('fs_cookies', NULL, 'fieldset', 7, 30, NULL, 0, TRUE); ! $c->add('cookie_session','gl_session','text',7,30,NULL,530,TRUE); ! $c->add('cookie_name','geeklog','text',7,30,NULL,540,TRUE); ! $c->add('cookie_password','password','text',7,30,NULL,550,TRUE); ! $c->add('cookie_theme','theme','text',7,30,NULL,560,TRUE); ! $c->add('cookie_language','language','text',7,30,NULL,570,TRUE); ! $c->add('cookie_tzid','timezone','text',7,30,NULL,575,TRUE); ! $c->add('cookie_ip',0,'select',7,30,0,580,TRUE); ! $c->add('default_perm_cookie_timeout',28800,'text',7,30,NULL,590,TRUE); ! $c->add('session_cookie_timeout',7200,'text',7,30,NULL,600,TRUE); ! $c->add('cookie_path','/','text',7,30,NULL,610,TRUE); ! $c->add('cookiedomain','','text',7,30,NULL,620,TRUE); ! $c->add('cookiesecure',FALSE,'select',7,30,1,630,TRUE); ! ! $c->add('fs_misc', NULL, 'fieldset', 7, 31, NULL, 0, TRUE); ! $c->add('pdf_enabled',0,'select',7,31,0,660,TRUE); ! $c->add('notification',array(),'%text',7,31,NULL,800,TRUE); ! $c->add('cron_schedule_interval',86400,'text',7,31,NULL,860,TRUE); ! $c->add('disable_autolinks',0,'select',7,31,0,1750,TRUE); ! ! $c->add('fs_debug', NULL, 'fieldset', 7, 32, NULL, 0, TRUE); ! $c->add('rootdebug',FALSE,'select',7,32,1,520,TRUE); ! ! $c->add('fs_daily_digest', NULL, 'fieldset', 7, 33, NULL, 0, TRUE); ! $c->add('emailstories',0,'select',7,33,0,930,TRUE); ! $c->add('emailstorieslength',1,'text',7,33,NULL,940,TRUE); ! $c->add('emailstoriesperdefault',0,'select',7,33,0,950,TRUE); ! ! $c->add('fs_htmlfilter', NULL, 'fieldset', 7, 34, NULL, 0, TRUE); ! $c->add('user_html',array ('p' => array(), 'b' => array(), 'strong' => array(),'i' => array(), 'a' => array('href' => 1, 'title' => 1, 'rel' => 1),'em' => array(),'br' => array(),'tt' => array(),'hr' => array(), 'li' => array(), 'ol' => array(), 'ul' => array(), 'code' => array(), 'pre' => array()),'**placeholder',7,34,NULL,1710,TRUE); $c->add('admin_html',array ('p' => array('class' => 1, 'id' => 1, 'align' => 1), 'div' => array('class' => 1, 'id' => 1), 'span' => array('class' => 1, 'id' => 1), 'table' => array('class' => 1, 'id' => 1, 'width' => 1, 'border' => 1, 'cellspacing' => 1, 'cellpadding' => 1), 'tr' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1), 'th' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1, 'colspan' => 1, 'rowspan' => 1), 'td' => array('class' => 1, 'id' => 1, 'align' => 1, 'valign' => 1, 'colspan' => 1, 'rowspan' => 1)),'**placeholder',7,34,NULL,1720,TRUE); $c->add('skip_html_filter_for_root',0,'select',7,34,0,1730,TRUE); ! $c->add('allowed_protocols',array('http','ftp','https'),'%text',7,34,NULL,1740,TRUE); ! ! $c->add('fs_censoring', NULL, 'fieldset', 7, 35, NULL, 0, TRUE); $c->add('censormode',1,'select',7,35,0,1760,TRUE); $c->add('censorreplace','*censormode*','text',7,35,NULL,1770,TRUE); $c->add('censorlist', array('fuck','cunt','fucker','fucking','pussy','cock','c0ck',' cum ','twat','clit','bitch','fuk','fuking','motherfucker'),'%text',7,35,NULL,1780,TRUE); + + $c->add('fs_iplookup', NULL, 'fieldset', 7, 36, NULL, 0, TRUE); $c->add('ip_lookup','/nettools/whois.php?domain=*','text',7,36,NULL,1790,FALSE); ! ! $c->add('fs_perm_story', NULL, 'fieldset', 7, 37, NULL, 0, TRUE); $c->add('default_permissions_story',array(3, 2, 2, 2),'@select',7,37,12,1820,TRUE); ! ! $c->add('fs_perm_topic', NULL, 'fieldset', 7, 38, NULL, 0, TRUE); ! $c->add('default_permissions_topic',array(3, 2, 2, 2),'@select',7,38,12,1830,TRUE); ! ! $c->add('fs_perm_block', NULL, 'fieldset', 7, 39, NULL, 0, TRUE); ! $c->add('default_permissions_block',array(3, 2, 2, 2),'@select',7,39,12,1810,TRUE); ! ! $c->add('fs_webservices', NULL, 'fieldset', 7, 40, NULL, 0, TRUE); ! $c->add('disable_webservices', 0, 'select', 7, 40, 0, 1840, TRUE); ! $c->add('restrict_webservices', 0, 'select', 7, 40, 0, 1850, TRUE); ! $c->add('atom_max_stories', 10, 'text', 7, 40, 0, 1860, TRUE); } From dhaun at qs1489.pair.com Fri May 2 07:44:35 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 11:44:35 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/pear README,1.3,1.4 Message-ID: <20080502114435.44A3A10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/pear In directory qs1489.pair.com:/tmp/cvs-serv41346 Modified Files: README Log Message: Updated PEAR README Index: README =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/pear/README,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** README 11 Feb 2006 12:28:43 -0000 1.3 --- README 2 May 2008 11:44:33 -0000 1.4 *************** *** 1,12 **** This directory contains the PEAR packages that are needed by Geeklog. If you ! don't have PEAR installed on your webserver, simply set ! ! $_CONF['have_pear'] = false; ! ! in config.php and Geeklog will pick up the PEAR packages from here. Currently, Geeklog uses the following PEAR packages: - PEAR - HTTP_Request - Mail --- 1,11 ---- This directory contains the PEAR packages that are needed by Geeklog. If you ! don't have PEAR installed on your webserver, simply set the "Have Pear?" option ! in the configutation to "False" and Geeklog will pick up the PEAR packages from ! here. Currently, Geeklog uses the following PEAR packages: - PEAR + - Date - HTTP_Request - Mail *************** *** 15,18 **** --- 14,18 ---- - Net_URL - PHP_Compat + - Text_Wiki - XML_RPC From dhaun at qs1489.pair.com Fri May 2 08:08:09 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 12:08:09 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/calendar/sql mssql_install.php, 1.4, 1.5 mysql_install.php, 1.2, 1.3 Message-ID: <20080502120809.DB1E210FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/sql In directory qs1489.pair.com:/tmp/cvs-serv42113/calendar/sql Modified Files: mssql_install.php mysql_install.php Log Message: An attempt to update the MS SQL for the plugin installs (and no, I don't know what I'm doing ...) Index: mssql_install.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/sql/mssql_install.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** mssql_install.php 27 Jan 2008 15:23:33 -0000 1.4 --- mssql_install.php 2 May 2008 12:08:07 -0000 1.5 *************** *** 7,11 **** // | Installation SQL | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2006 by the following authors: | // | | // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | --- 7,11 ---- // | Installation SQL | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2008 by the following authors: | // | | // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | *************** *** 13,17 **** // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity AT steubentech DOT com | // | Randy Kolenko - randy AT nextide DOT ca | // +---------------------------------------------------------------------------+ --- 13,17 ---- // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT gmail DOT com | // | Randy Kolenko - randy AT nextide DOT ca | // +---------------------------------------------------------------------------+ *************** *** 34,38 **** // $Id$ - $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['events']}] ( --- 34,37 ---- *************** *** 137,142 **** "; - $_SQL[] = "INSERT INTO {$_TABLES['eventsubmission']} (eid, title, description, location, datestart, dateend, url, allday, zipcode, state, city, address2, address1, event_type, timestart, timeend) VALUES ('2006051410130162','Installed the Calendar plugin','Today, you successfully installed the Calendar plugin.','Your webserver',getdate(),getdate(),'http://www.geeklog.net/',1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL)"; $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'events_block','phpblock','Events','all',4,'',1,'phpblock_calendar',{$_USER['uid']},#group#,3,3)"; --- 136,141 ---- "; + $_SQL[] = "INSERT INTO {$_TABLES['eventsubmission']} (eid, title, description, location, datestart, dateend, url, allday, zipcode, state, city, address2, address1, event_type, timestart, timeend) VALUES ('2008050110130162','Installed the Calendar plugin','Today, you successfully installed the Calendar plugin.','Your webserver',getdate(),getdate(),'http://www.geeklog.net/',1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL)"; $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'events_block','phpblock','Events','all',4,'',1,'phpblock_calendar',{$_USER['uid']},#group#,3,3)"; Index: mysql_install.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/sql/mysql_install.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mysql_install.php 27 Jan 2008 15:23:33 -0000 1.2 --- mysql_install.php 2 May 2008 12:08:07 -0000 1.3 *************** *** 13,17 **** // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity AT steubentech DOT com | // +---------------------------------------------------------------------------+ // | | --- 13,17 ---- // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT gmail DOT com | // +---------------------------------------------------------------------------+ // | | *************** *** 119,123 **** "; ! $_SQL[] = "INSERT INTO {$_TABLES['eventsubmission']} (eid, title, description, location, datestart, dateend, url, allday, zipcode, state, city, address2, address1, event_type, timestart, timeend) VALUES ('2006051410130162','Installed the Calendar plugin','Today, you successfully installed the Calendar plugin.','Your webserver',CURDATE(),CURDATE(),'http://www.geeklog.net/',1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL)"; $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'events_block','phpblock','Events','all',4,'',1,'phpblock_calendar',{$_USER['uid']},#group#,3,3)"; --- 119,123 ---- "; ! $_SQL[] = "INSERT INTO {$_TABLES['eventsubmission']} (eid, title, description, location, datestart, dateend, url, allday, zipcode, state, city, address2, address1, event_type, timestart, timeend) VALUES ('2008050110130162','Installed the Calendar plugin','Today, you successfully installed the Calendar plugin.','Your webserver',CURDATE(),CURDATE(),'http://www.geeklog.net/',1,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL)"; $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'events_block','phpblock','Events','all',4,'',1,'phpblock_calendar',{$_USER['uid']},#group#,3,3)"; From dhaun at qs1489.pair.com Fri May 2 08:08:09 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 12:08:09 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/links/sql mssql_install.php, 1.6, 1.7 Message-ID: <20080502120809.E8C0210FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/links/sql In directory qs1489.pair.com:/tmp/cvs-serv42113/links/sql Modified Files: mssql_install.php Log Message: An attempt to update the MS SQL for the plugin installs (and no, I don't know what I'm doing ...) Index: mssql_install.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/sql/mssql_install.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mssql_install.php 12 Apr 2008 13:21:34 -0000 1.6 --- mssql_install.php 2 May 2008 12:08:07 -0000 1.7 *************** *** 3,7 **** /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Links Plugin 1.0 | // +---------------------------------------------------------------------------+ // | Installation SQL | --- 3,7 ---- /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Links Plugin 2.0 | // +---------------------------------------------------------------------------+ // | Installation SQL | *************** *** 51,59 **** ! $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['links']}] ( [lid] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , ! [category] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [url] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [description] [varchar] (5000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , --- 51,76 ---- + $_SQL[] = " + CREATE TABLE [dbo].[{$_TABLES['linkcategories']}] ( + [cid] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , + [pid] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , + [category] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , + [description] [varchar] (5000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , + [tid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , + [created] [datetime] NULL , + [modified] [datetime] NULL , + [owner_id] [numeric](8, 0) NOT NULL , + [group_id] [numeric](8, 0) NOT NULL , + [perm_owner] [tinyint] NOT NULL , + [perm_group] [tinyint] NOT NULL , + [perm_members] [tinyint] NOT NULL , + [perm_anon] [tinyint] NOT NULL + ) ON [PRIMARY] + "; ! $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['links']}] ( [lid] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , ! [cid] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [url] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [description] [varchar] (5000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , *************** *** 67,86 **** [perm_members] [tinyint] NOT NULL , [perm_anon] [tinyint] NOT NULL ! ) ON [PRIMARY] "; - $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['linksubmission']}] ( [lid] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , ! [category] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [url] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [description] [varchar] (5000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [title] [varchar] (96) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [hits] [int] NULL , ! [date] [datetime] NULL ! ) ON [PRIMARY] "; $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['links']}] ADD --- 84,109 ---- [perm_members] [tinyint] NOT NULL , [perm_anon] [tinyint] NOT NULL ! ) ON [PRIMARY] "; $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['linksubmission']}] ( [lid] [varchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , ! [cid] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [url] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [description] [varchar] (5000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [title] [varchar] (96) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [hits] [int] NULL , ! [date] [datetime] NULL , ! [owner_id] [numeric](8, 0) NOT NULL ! ) ON [PRIMARY] "; + $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['linkcategories']}] ADD + CONSTRAINT [PK_gl_linkcategories] PRIMARY KEY CLUSTERED + ( + [pid] + ) ON [PRIMARY] + "; $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['links']}] ADD From dhaun at qs1489.pair.com Fri May 2 08:08:09 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 12:08:09 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls/sql mssql_install.php, 1.3, 1.4 mysql_install.php, 1.9, 1.10 Message-ID: <20080502120810.0166810FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql In directory qs1489.pair.com:/tmp/cvs-serv42113/polls/sql Modified Files: mssql_install.php mysql_install.php Log Message: An attempt to update the MS SQL for the plugin installs (and no, I don't know what I'm doing ...) Index: mssql_install.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql/mssql_install.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mssql_install.php 16 Jan 2007 04:01:07 -0000 1.3 --- mssql_install.php 2 May 2008 12:08:07 -0000 1.4 *************** *** 3,11 **** /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Polls Plugin 1.0 | // +---------------------------------------------------------------------------+ // | Installation SQL | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2006 by the following authors: | // | | // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | --- 3,11 ---- /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Polls Plugin 2.0 | // +---------------------------------------------------------------------------+ // | Installation SQL | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2008 by the following authors: | // | | // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | *************** *** 13,17 **** // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity AT steubentech DOT com | // | Randy Kolenko - randy AT nextide DOT ca | // +---------------------------------------------------------------------------+ --- 13,17 ---- // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT gmail DOT com | // | Randy Kolenko - randy AT nextide DOT ca | // +---------------------------------------------------------------------------+ *************** *** 32,56 **** // +---------------------------------------------------------------------------+ // ! ! $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['pollanswers']}] ( ! [qid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [aid] [tinyint] NOT NULL , [answer] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [votes] [numeric](8, 0) NULL , ! [remark] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , ) ON [PRIMARY] "; $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['polltopics']}] ( [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , ! [question] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [voters] [numeric](8, 0) NULL , [date] [datetime] NULL , ! [display] [smallint] NOT NULL , [commentcode] [smallint] NOT NULL , [statuscode] [smallint] NOT NULL , --- 32,66 ---- // +---------------------------------------------------------------------------+ // ! // $Id$ $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['pollanswers']}] ( ! [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , ! [qid] [int] NOT NULL , [aid] [tinyint] NOT NULL , [answer] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [votes] [numeric](8, 0) NULL , ! [remark] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] "; + $_SQL[] = " + CREATE TABLE [dbo].[{$_TABLES['pollquestions']}] ( + [qid] [int] NOT NULL , + [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , + [question] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , + ) ON [PRIMARY] + "; $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['polltopics']}] ( [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , ! [topic] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [voters] [numeric](8, 0) NULL , + [questions] [int] NOT NULL , [date] [datetime] NULL , ! [display] [tinyint] NOT NULL , ! [open] [tinyint] NOT NULL , ! [hideresults] [tinyint] NOT NULL , [commentcode] [smallint] NOT NULL , [statuscode] [smallint] NOT NULL , *************** *** 59,72 **** [perm_owner] [tinyint] NOT NULL , [perm_group] [tinyint] NOT NULL , ! [perm_members] [tinyint] NULL , ! [perm_anon] [tinyint] NULL ) ON [PRIMARY] "; - $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['pollvoters']}] ( [id] [numeric](10, 0) IDENTITY (1, 1) NOT NULL , ! [qid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [ipaddress] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [date] [numeric](10, 0) NULL --- 69,81 ---- [perm_owner] [tinyint] NOT NULL , [perm_group] [tinyint] NOT NULL , ! [perm_members] [tinyint] NOT NULL , ! [perm_anon] [tinyint] NOT NULL ) ON [PRIMARY] "; $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['pollvoters']}] ( [id] [numeric](10, 0) IDENTITY (1, 1) NOT NULL , ! [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [ipaddress] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [date] [numeric](10, 0) NULL *************** *** 74,80 **** "; - - - $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollanswers']}] ADD CONSTRAINT [PK_gl_pollanswers] PRIMARY KEY CLUSTERED --- 83,86 ---- *************** *** 85,89 **** "; ! $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['polltopics']}] ADD CONSTRAINT [PK_gl_pollquestions] PRIMARY KEY CLUSTERED ( --- 91,95 ---- "; ! $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollquestions']}] ADD CONSTRAINT [PK_gl_pollquestions] PRIMARY KEY CLUSTERED ( *************** *** 92,95 **** --- 98,108 ---- "; + $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['polltopics']}] ADD + CONSTRAINT [PK_gl_polltopics] PRIMARY KEY CLUSTERED + ( + [pid] + ) ON [PRIMARY] + "; + $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollvoters']}] ADD CONSTRAINT [PK_gl_pollvoters] PRIMARY KEY CLUSTERED *************** *** 99,113 **** "; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',1,'Trackbacks',0)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',2,'Links and Polls plugins',0)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',3,'Revamped admin areas',0)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',4,'FCKeditor included',0)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',5,'Remote user authentication',0)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',6,'Other',0)"; ! ! $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)"; ?> --- 112,132 ---- "; + // Note: The 'pollquestion' entry for the above answers is in the install script + $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');"; ?> Index: mysql_install.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql/mysql_install.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** mysql_install.php 19 Jan 2008 14:53:12 -0000 1.9 --- mysql_install.php 2 May 2008 12:08:07 -0000 1.10 *************** *** 13,17 **** // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity AT steubentech DOT com | // +---------------------------------------------------------------------------+ // | | --- 13,17 ---- // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT gmail DOT com | // +---------------------------------------------------------------------------+ // | | *************** *** 95,111 **** $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollquestions']}` (`qid`, `pid`, `question`) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollquestions']}` (`qid`, `pid`, `question`) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');"; ?> --- 95,111 ---- $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');"; ?> From dhaun at qs1489.pair.com Fri May 2 08:08:09 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 12:08:09 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls/sql mssql_install.php, 1.3, 1.4 mysql_install.php, 1.9, 1.10 Message-ID: <20080502120810.0166810FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql In directory qs1489.pair.com:/tmp/cvs-serv42113/polls/sql Modified Files: mssql_install.php mysql_install.php Log Message: An attempt to update the MS SQL for the plugin installs (and no, I don't know what I'm doing ...) Index: mssql_install.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql/mssql_install.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mssql_install.php 16 Jan 2007 04:01:07 -0000 1.3 --- mssql_install.php 2 May 2008 12:08:07 -0000 1.4 *************** *** 3,11 **** /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Polls Plugin 1.0 | // +---------------------------------------------------------------------------+ // | Installation SQL | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2006 by the following authors: | // | | // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | --- 3,11 ---- /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Polls Plugin 2.0 | // +---------------------------------------------------------------------------+ // | Installation SQL | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2008 by the following authors: | // | | // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | *************** *** 13,17 **** // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity AT steubentech DOT com | // | Randy Kolenko - randy AT nextide DOT ca | // +---------------------------------------------------------------------------+ --- 13,17 ---- // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT gmail DOT com | // | Randy Kolenko - randy AT nextide DOT ca | // +---------------------------------------------------------------------------+ *************** *** 32,56 **** // +---------------------------------------------------------------------------+ // ! ! $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['pollanswers']}] ( ! [qid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [aid] [tinyint] NOT NULL , [answer] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [votes] [numeric](8, 0) NULL , ! [remark] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , ) ON [PRIMARY] "; $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['polltopics']}] ( [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , ! [question] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [voters] [numeric](8, 0) NULL , [date] [datetime] NULL , ! [display] [smallint] NOT NULL , [commentcode] [smallint] NOT NULL , [statuscode] [smallint] NOT NULL , --- 32,66 ---- // +---------------------------------------------------------------------------+ // ! // $Id$ $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['pollanswers']}] ( ! [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , ! [qid] [int] NOT NULL , [aid] [tinyint] NOT NULL , [answer] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [votes] [numeric](8, 0) NULL , ! [remark] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] "; + $_SQL[] = " + CREATE TABLE [dbo].[{$_TABLES['pollquestions']}] ( + [qid] [int] NOT NULL , + [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , + [question] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , + ) ON [PRIMARY] + "; $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['polltopics']}] ( [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , ! [topic] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [voters] [numeric](8, 0) NULL , + [questions] [int] NOT NULL , [date] [datetime] NULL , ! [display] [tinyint] NOT NULL , ! [open] [tinyint] NOT NULL , ! [hideresults] [tinyint] NOT NULL , [commentcode] [smallint] NOT NULL , [statuscode] [smallint] NOT NULL , *************** *** 59,72 **** [perm_owner] [tinyint] NOT NULL , [perm_group] [tinyint] NOT NULL , ! [perm_members] [tinyint] NULL , ! [perm_anon] [tinyint] NULL ) ON [PRIMARY] "; - $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['pollvoters']}] ( [id] [numeric](10, 0) IDENTITY (1, 1) NOT NULL , ! [qid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [ipaddress] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [date] [numeric](10, 0) NULL --- 69,81 ---- [perm_owner] [tinyint] NOT NULL , [perm_group] [tinyint] NOT NULL , ! [perm_members] [tinyint] NOT NULL , ! [perm_anon] [tinyint] NOT NULL ) ON [PRIMARY] "; $_SQL[] = " CREATE TABLE [dbo].[{$_TABLES['pollvoters']}] ( [id] [numeric](10, 0) IDENTITY (1, 1) NOT NULL , ! [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [ipaddress] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [date] [numeric](10, 0) NULL *************** *** 74,80 **** "; - - - $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollanswers']}] ADD CONSTRAINT [PK_gl_pollanswers] PRIMARY KEY CLUSTERED --- 83,86 ---- *************** *** 85,89 **** "; ! $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['polltopics']}] ADD CONSTRAINT [PK_gl_pollquestions] PRIMARY KEY CLUSTERED ( --- 91,95 ---- "; ! $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollquestions']}] ADD CONSTRAINT [PK_gl_pollquestions] PRIMARY KEY CLUSTERED ( *************** *** 92,95 **** --- 98,108 ---- "; + $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['polltopics']}] ADD + CONSTRAINT [PK_gl_polltopics] PRIMARY KEY CLUSTERED + ( + [pid] + ) ON [PRIMARY] + "; + $_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollvoters']}] ADD CONSTRAINT [PK_gl_pollvoters] PRIMARY KEY CLUSTERED *************** *** 99,113 **** "; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',1,'Trackbacks',0)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',2,'Links and Polls plugins',0)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',3,'Revamped admin areas',0)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',4,'FCKeditor included',0)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',5,'Remote user authentication',0)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (qid, aid, answer, votes) VALUES ('geeklogfeaturepoll',6,'Other',0)"; ! ! $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)"; ?> --- 112,132 ---- "; + // Note: The 'pollquestion' entry for the above answers is in the install script + $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');"; + $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');"; ?> Index: mysql_install.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/sql/mysql_install.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** mysql_install.php 19 Jan 2008 14:53:12 -0000 1.9 --- mysql_install.php 2 May 2008 12:08:07 -0000 1.10 *************** *** 13,17 **** // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity AT steubentech DOT com | // +---------------------------------------------------------------------------+ // | | --- 13,17 ---- // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT gmail DOT com | // +---------------------------------------------------------------------------+ // | | *************** *** 95,111 **** $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollanswers']}` (`pid`, `qid`, `aid`, `answer`, `votes`, `remark`) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollquestions']}` (`qid`, `pid`, `question`) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');"; ! $_SQL[] = "INSERT INTO `{$_TABLES['pollquestions']}` (`qid`, `pid`, `question`) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');"; ?> --- 95,111 ---- $_SQL[] = "INSERT INTO {$_TABLES['blocks']} (is_enabled, name, type, title, tid, blockorder, content, onleft, phpblockfn, owner_id, group_id, perm_owner, perm_group) VALUES (1,'polls_block','phpblock','Poll','all',30,'',0,'phpblock_polls',{$_USER['uid']},#group#,3,3)"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 1, 'MS SQL support', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 2, 'Multi-language support', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 3, 'Calendar as a plugin', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 4, 'SLV spam protection', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 5, 'Mass-delete users', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 0, 6, 'Other', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 1, 'Story-Images', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 2, 'User-Rights handling', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 3, 'The Support', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollanswers']} (pid, qid, aid, answer, votes, remark) VALUES ('geeklogfeaturepoll', 1, 4, 'Plugin Availability', 0, '');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (0, 'geeklogfeaturepoll', 'What is the best new feature of Geeklog?');"; ! $_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (qid, pid, question) VALUES (1, 'geeklogfeaturepoll', 'What is the all-time best feature of Geeklog?');"; ?> From dhaun at qs1489.pair.com Fri May 2 08:12:07 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 12:12:07 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/links functions.inc, 1.107, 1.108 install_defaults.php, 1.2, 1.3 Message-ID: <20080502121207.EF20B10FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/links In directory qs1489.pair.com:/tmp/cvs-serv42318/plugins/links Modified Files: functions.inc install_defaults.php Log Message: Changed Trinity's email address, as requested Index: functions.inc =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/functions.inc,v retrieving revision 1.107 retrieving revision 1.108 diff -C2 -d -r1.107 -r1.108 *** functions.inc 19 Apr 2008 12:15:57 -0000 1.107 --- functions.inc 2 May 2008 12:12:05 -0000 1.108 *************** *** 17,21 **** // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT steubentech DOT com | // | Oliver Spiesshofer - oliver AT spiesshofer DOT com | // | Euan McKay - info AT heatherengineering DOT com | --- 17,21 ---- // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT gmail DOT com | // | Oliver Spiesshofer - oliver AT spiesshofer DOT com | // | Euan McKay - info AT heatherengineering DOT com | Index: install_defaults.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/install_defaults.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install_defaults.php 10 Feb 2008 17:09:37 -0000 1.2 --- install_defaults.php 2 May 2008 12:12:05 -0000 1.3 *************** *** 17,21 **** // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT steubentech DOT com | // | Oliver Spiesshofer - oliver AT spiesshofer DOT com | // | Euan McKay - info AT heatherengineering DOT com | --- 17,21 ---- // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT gmail DOT com | // | Oliver Spiesshofer - oliver AT spiesshofer DOT com | // | Euan McKay - info AT heatherengineering DOT com | From dhaun at qs1489.pair.com Fri May 2 08:12:07 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 12:12:07 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/calendar install_defaults.php, 1.2, 1.3 Message-ID: <20080502121207.DEA1C10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/calendar In directory qs1489.pair.com:/tmp/cvs-serv42318/plugins/calendar Modified Files: install_defaults.php Log Message: Changed Trinity's email address, as requested Index: install_defaults.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/install_defaults.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install_defaults.php 21 Mar 2008 17:09:26 -0000 1.2 --- install_defaults.php 2 May 2008 12:12:05 -0000 1.3 *************** *** 17,21 **** // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT steubentech DOT com | // +---------------------------------------------------------------------------+ // | | --- 17,21 ---- // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Dirk Haun - dirk AT haun-online DOT de | ! // | Trinity Bays - trinity93 AT gmail DOT com | // +---------------------------------------------------------------------------+ // | | From dhaun at qs1489.pair.com Fri May 2 08:12:08 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 12:12:08 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/links index.php, 1.33, 1.34 portal.php, 1.6, 1.7 Message-ID: <20080502121208.18A9110FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/links In directory qs1489.pair.com:/tmp/cvs-serv42318/public_html/links Modified Files: index.php portal.php Log Message: Changed Trinity's email address, as requested Index: portal.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/links/portal.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** portal.php 1 Jan 2008 12:33:48 -0000 1.6 --- portal.php 2 May 2008 12:12:05 -0000 1.7 *************** *** 45,49 **** * @copyright Copyright © 2005-2008 * @license http://opensource.org/licenses/gpl-license.php GNU Public License ! * @author Trinity Bays * @author Tony Bibbs * @author Tom Willett --- 45,49 ---- * @copyright Copyright © 2005-2008 * @license http://opensource.org/licenses/gpl-license.php GNU Public License ! * @author Trinity Bays * @author Tony Bibbs * @author Tom Willett Index: index.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/links/index.php,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** index.php 3 Feb 2008 09:12:30 -0000 1.33 --- index.php 2 May 2008 12:12:05 -0000 1.34 *************** *** 15,19 **** // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Tom Willett - tomw AT pigstye DOT net | ! // | Trinity Bays - trinity AT steubentech DOT com | // | Dirk Haun - dirk AT haun-online DOT de | // +---------------------------------------------------------------------------+ --- 15,19 ---- // | Jason Whittenburg - jwhitten AT securitygeeks DOT com | // | Tom Willett - tomw AT pigstye DOT net | ! // | Trinity Bays - trinity93 AT gmail DOT com | // | Dirk Haun - dirk AT haun-online DOT de | // +---------------------------------------------------------------------------+ *************** *** 51,55 **** * @author Jason Whittenburg * @author Tom Willett ! * @author Trinity Bays * @author Dirk Haun * --- 51,55 ---- * @author Jason Whittenburg * @author Tom Willett ! * @author Trinity Bays * @author Dirk Haun * From dhaun at qs1489.pair.com Fri May 2 08:12:08 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 12:12:08 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system lib-security.php,1.68,1.69 Message-ID: <20080502121208.1FCC910FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system In directory qs1489.pair.com:/tmp/cvs-serv42318/system Modified Files: lib-security.php Log Message: Changed Trinity's email address, as requested Index: lib-security.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-security.php,v retrieving revision 1.68 retrieving revision 1.69 diff -C2 -d -r1.68 -r1.69 *** lib-security.php 1 May 2008 19:23:47 -0000 1.68 --- lib-security.php 2 May 2008 12:12:06 -0000 1.69 *************** *** 893,897 **** * Is this the right place for this, Dirk? * ! * @author Trinity L Bays * * @param string $uid Their user id --- 893,897 ---- * Is this the right place for this, Dirk? * ! * @author Trinity L Bays * * @param string $uid Their user id From dhaun at qs1489.pair.com Fri May 2 08:12:08 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 12:12:08 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system lib-security.php,1.68,1.69 Message-ID: <20080502121208.1FCC910FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system In directory qs1489.pair.com:/tmp/cvs-serv42318/system Modified Files: lib-security.php Log Message: Changed Trinity's email address, as requested Index: lib-security.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-security.php,v retrieving revision 1.68 retrieving revision 1.69 diff -C2 -d -r1.68 -r1.69 *** lib-security.php 1 May 2008 19:23:47 -0000 1.68 --- lib-security.php 2 May 2008 12:12:06 -0000 1.69 *************** *** 893,897 **** * Is this the right place for this, Dirk? * ! * @author Trinity L Bays * * @param string $uid Their user id --- 893,897 ---- * Is this the right place for this, Dirk? * ! * @author Trinity L Bays * * @param string $uid Their user id From dhaun at qs1489.pair.com Fri May 2 11:18:22 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 15:18:22 +0000 Subject: [geeklog-cvs] tools/lm/include core.inc,1.2,1.3 Message-ID: <20080502151822.4DB7F10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/tools/lm/include In directory qs1489.pair.com:/tmp/cvs-serv50014 Modified Files: core.inc Log Message: Fix for another common mistake in many language files Index: core.inc =================================================================== RCS file: /cvsroot/geeklog/tools/lm/include/core.inc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** core.inc 1 May 2008 20:10:38 -0000 1.2 --- core.inc 2 May 2008 15:18:20 -0000 1.3 *************** *** 33,40 **** /** ! * Helper function: Fix URL in some language files * */ ! function Core_fix_storydenialmsg(&$access) { if (isset($access['storydenialmsg'])) { --- 33,40 ---- /** ! * Helper function: Fix URLs in some language files * */ ! function Core_fix_some_urls(&$access) { if (isset($access['storydenialmsg'])) { *************** *** 43,46 **** --- 43,51 ---- $access['storydenialmsg']); } + + if (isset($access['editrootmsg'])) { + $access['editrootmsg'] = str_replace('users.php', 'user.php', + $access['editrootmsg']); + } } *************** *** 174,178 **** mergeArrays($ENGMS, $MESSAGE, 'MESSAGE', 'confirmation and error messages'); ! Core_fix_storydenialmsg($LANG_ACCESS); mergeArrays($ENGAC, $LANG_ACCESS, 'LANG_ACCESS'); mergeArrays($ENGDB, $LANG_DB_BACKUP, 'LANG_DB_BACKUP', 'admin/database.php'); --- 179,183 ---- mergeArrays($ENGMS, $MESSAGE, 'MESSAGE', 'confirmation and error messages'); ! Core_fix_some_urls($LANG_ACCESS); mergeArrays($ENGAC, $LANG_ACCESS, 'LANG_ACCESS'); mergeArrays($ENGDB, $LANG_DB_BACKUP, 'LANG_DB_BACKUP', 'admin/database.php'); From dhaun at qs1489.pair.com Fri May 2 11:24:28 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 15:24:28 +0000 Subject: [geeklog-cvs] Geeklog-1.x/language english.php, 1.334, 1.335 english_utf-8.php, 1.118, 1.119 Message-ID: <20080502152428.AF31F10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/language In directory qs1489.pair.com:/tmp/cvs-serv50174 Modified Files: english.php english_utf-8.php Log Message: Added a rel="nofollow" to all the links pointing to users.php (already did that in all the other language files during the previous update) Index: english.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/language/english.php,v retrieving revision 1.334 retrieving revision 1.335 diff -C2 -d -r1.334 -r1.335 *** english.php 26 Apr 2008 16:53:16 -0000 1.334 --- english.php 2 May 2008 15:24:26 -0000 1.335 *************** *** 101,105 **** 57 => 'Password', 58 => 'Login', ! 59 => "Don't have an account yet? Sign up as a New User", 60 => 'Post a comment', 61 => 'Create New Account', --- 101,105 ---- 57 => 'Password', 58 => 'Login', ! 59 => "Don't have an account yet? Sign up as a New User", 60 => 'Post a comment', 61 => 'Create New Account', *************** *** 161,165 **** 117 => 'Directory', 118 => 'Please continue reading on the next page:', ! 119 => "Lost your password?", 120 => 'Permanent link to this comment', 121 => 'Comments (%d)', --- 161,165 ---- 117 => 'Directory', 118 => 'Please continue reading on the next page:', ! 119 => "Lost your password?", 120 => 'Permanent link to this comment', 121 => 'Comments (%d)', *************** *** 282,286 **** 69 => 'How long should we remember you after logging in?', 70 => "Customize the layout and content of {$_CONF['site_name']}", ! 71 => "One of the great features of {$_CONF['site_name']} is you can customize the content you get and you can change the overall layout of this site. In order to take advantage of these great features you must first register with {$_CONF['site_name']}. Are you already a member? Then use the login form to the left to log in!", 72 => 'Theme', 73 => 'Language', --- 282,286 ---- 69 => 'How long should we remember you after logging in?', 70 => "Customize the layout and content of {$_CONF['site_name']}", ! 71 => "One of the great features of {$_CONF['site_name']} is you can customize the content you get and you can change the overall layout of this site. In order to take advantage of these great features you must first register with {$_CONF['site_name']}. Are you already a member? Then use the login form to the left to log in!", 72 => 'Theme', 73 => 'Language', *************** *** 334,338 **** 121 => 'Service', 122 => 'Sorry, new user registration is disabled', ! 123 => "Are you a new user?", 124 => 'Confirm Email', 125 => 'You have to enter the same email address in both fields!', --- 334,338 ---- 121 => 'Service', 122 => 'Sorry, new user registration is disabled', ! 123 => "Are you a new user?", 124 => 'Confirm Email', 125 => 'You have to enter the same email address in both fields!', *************** *** 1219,1223 **** 'none' => 'None', 'accessdenied' => 'Access Denied', ! 'storydenialmsg' => "You do not have access to view this story. This could be because you aren't a member of {$_CONF['site_name']}. Please become a member of {$_CONF['site_name']} to receive full membership access!", 'nogroupsforcoregroup' => 'This group doesn\'t belong to any of the other groups', 'grouphasnorights' => 'This group doesn\'t have access to any of the administrative features of this site', --- 1219,1223 ---- 'none' => 'None', 'accessdenied' => 'Access Denied', ! 'storydenialmsg' => "You do not have access to view this story. This could be because you aren't a member of {$_CONF['site_name']}. Please become a member of {$_CONF['site_name']} to receive full membership access!", 'nogroupsforcoregroup' => 'This group doesn\'t belong to any of the other groups', 'grouphasnorights' => 'This group doesn\'t have access to any of the administrative features of this site', Index: english_utf-8.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/language/english_utf-8.php,v retrieving revision 1.118 retrieving revision 1.119 diff -C2 -d -r1.118 -r1.119 *** english_utf-8.php 26 Apr 2008 16:53:16 -0000 1.118 --- english_utf-8.php 2 May 2008 15:24:26 -0000 1.119 *************** *** 101,105 **** 57 => 'Password', 58 => 'Login', ! 59 => "Don't have an account yet? Sign up as a New User", 60 => 'Post a comment', 61 => 'Create New Account', --- 101,105 ---- 57 => 'Password', 58 => 'Login', ! 59 => "Don't have an account yet? Sign up as a New User", 60 => 'Post a comment', 61 => 'Create New Account', *************** *** 161,165 **** 117 => 'Directory', 118 => 'Please continue reading on the next page:', ! 119 => "Lost your password?", 120 => 'Permanent link to this comment', 121 => 'Comments (%d)', --- 161,165 ---- 117 => 'Directory', 118 => 'Please continue reading on the next page:', ! 119 => "Lost your password?", 120 => 'Permanent link to this comment', 121 => 'Comments (%d)', *************** *** 282,286 **** 69 => 'How long should we remember you after logging in?', 70 => "Customize the layout and content of {$_CONF['site_name']}", ! 71 => "One of the great features of {$_CONF['site_name']} is you can customize the content you get and you can change the overall layout of this site. In order to take advantage of these great features you must first register with {$_CONF['site_name']}. Are you already a member? Then use the login form to the left to log in!", 72 => 'Theme', 73 => 'Language', --- 282,286 ---- 69 => 'How long should we remember you after logging in?', 70 => "Customize the layout and content of {$_CONF['site_name']}", ! 71 => "One of the great features of {$_CONF['site_name']} is you can customize the content you get and you can change the overall layout of this site. In order to take advantage of these great features you must first register with {$_CONF['site_name']}. Are you already a member? Then use the login form to the left to log in!", 72 => 'Theme', 73 => 'Language', *************** *** 334,338 **** 121 => 'Service', 122 => 'Sorry, new user registration is disabled', ! 123 => "Are you a new user?", 124 => 'Confirm Email', 125 => 'You have to enter the same email address in both fields!', --- 334,338 ---- 121 => 'Service', 122 => 'Sorry, new user registration is disabled', ! 123 => "Are you a new user?", 124 => 'Confirm Email', 125 => 'You have to enter the same email address in both fields!', *************** *** 1219,1223 **** 'none' => 'None', 'accessdenied' => 'Access Denied', ! 'storydenialmsg' => "You do not have access to view this story. This could be because you aren't a member of {$_CONF['site_name']}. Please become a member of {$_CONF['site_name']} to receive full membership access!", 'nogroupsforcoregroup' => 'This group doesn\'t belong to any of the other groups', 'grouphasnorights' => 'This group doesn\'t have access to any of the administrative features of this site', --- 1219,1223 ---- 'none' => 'None', 'accessdenied' => 'Access Denied', ! 'storydenialmsg' => "You do not have access to view this story. This could be because you aren't a member of {$_CONF['site_name']}. Please become a member of {$_CONF['site_name']} to receive full membership access!", 'nogroupsforcoregroup' => 'This group doesn\'t belong to any of the other groups', 'grouphasnorights' => 'This group doesn\'t have access to any of the administrative features of this site', From dirk at haun-online.de Fri May 2 11:15:23 2008 From: dirk at haun-online.de (Dirk Haun) Date: Fri, 2 May 2008 17:15:23 +0200 Subject: [geeklog-cvs] Language files updated Message-ID: <20080502151523.219111245@smtp.haun-online.de> Okay, I thought I'd spare everyone the 1.3 MB or so of update posts: The language files (core and all 5 plugins) have now been updated. bye, Dirk -- http://www.geeklog.net/ http://geeklog.info/ From dhaun at qs1489.pair.com Fri May 2 15:30:13 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 19:30:13 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs config.html,1.84,1.85 Message-ID: <20080502193013.9446810FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv59706/public_html/docs Modified Files: config.html Log Message: Create unique anchors for the documentation (e.g. desc_backend was used twice) Index: config.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/config.html,v retrieving revision 1.84 retrieving revision 1.85 diff -C2 -d -r1.84 -r1.85 *** config.html 20 Apr 2008 16:26:31 -0000 1.84 --- config.html 2 May 2008 19:30:11 -0000 1.85 *************** *** 494,528 **** Default Value Description ! backend mail Used to select how to send email. Can be one of 'smtp', 'sendmail', or 'mail'. ! sendmail_path /usr/bin/sendmail If you chose 'sendmail' for the backend setting, this specifies the complete path to the sendmail binary. ! sendmail_args '' (empty) If you chose 'sendmail' for the backend setting, this variable can be used to pass additional parameters to the sendmail binary. ! host smtp.example.com If you chose 'smtp' for the backend setting, this is the SMTP server to use. ! port 25 If you chose 'smtp' for the backend setting, this is the port number to talk to on the SMTP server. ! auth false If you chose 'smtp' for the backend setting, set this to true if your SMTP server requires authorization, and false if it doesn't. ! username smtp-username If you chose 'smtp' for the backend setting, this is the name of your SMTP account. ! password smtp-password If you chose 'smtp' for the backend setting, this is the --- 494,528 ---- Default Value Description ! backend mail Used to select how to send email. Can be one of 'smtp', 'sendmail', or 'mail'. ! sendmail_path /usr/bin/sendmail If you chose 'sendmail' for the backend setting, this specifies the complete path to the sendmail binary. ! sendmail_args '' (empty) If you chose 'sendmail' for the backend setting, this variable can be used to pass additional parameters to the sendmail binary. ! host smtp.example.com If you chose 'smtp' for the backend setting, this is the SMTP server to use. ! port 25 If you chose 'smtp' for the backend setting, this is the port number to talk to on the SMTP server. ! auth false If you chose 'smtp' for the backend setting, set this to true if your SMTP server requires authorization, and false if it doesn't. ! username smtp-username If you chose 'smtp' for the backend setting, this is the name of your SMTP account. ! password smtp-password If you chose 'smtp' for the backend setting, this is the From dhaun at qs1489.pair.com Fri May 2 15:30:13 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Fri, 02 May 2008 19:30:13 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes config.class.php, 1.37, 1.38 Message-ID: <20080502193013.8873A10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes In directory qs1489.pair.com:/tmp/cvs-serv59706/system/classes Modified Files: config.class.php Log Message: Create unique anchors for the documentation (e.g. desc_backend was used twice) Index: config.class.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/config.class.php,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** config.class.php 1 May 2008 18:35:14 -0000 1.37 --- config.class.php 2 May 2008 19:30:11 -0000 1.38 *************** *** 594,602 **** // "(X)"); if (($a = strrchr($name, '[')) !== FALSE) { ! $o = substr($a, 1, -1); } else { $o = $name; } ! if (! is_numeric($o)) { if (!empty($GLOBALS['_CONF']['site_url'])) { $baseUrl = $GLOBALS['_CONF']['site_url']; --- 594,604 ---- // "(X)"); if (($a = strrchr($name, '[')) !== FALSE) { ! $on = substr($a, 1, -1); ! $o = str_replace(array('[', ']'), array('_', ''), $name); } else { $o = $name; + $on = $name; } ! if (! is_numeric($on)) { if (!empty($GLOBALS['_CONF']['site_url'])) { $baseUrl = $GLOBALS['_CONF']['site_url']; From dhaun at qs1489.pair.com Sat May 3 04:36:12 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 03 May 2008 08:36:12 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs config.html,1.85,1.86 Message-ID: <20080503083612.0A54B10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv89958/public_html/docs Modified Files: config.html Log Message: Regrouped options to be in sync with the Configuration admin panel Index: config.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/config.html,v retrieving revision 1.85 retrieving revision 1.86 diff -C2 -d -r1.85 -r1.86 *** config.html 2 May 2008 19:30:11 -0000 1.85 --- config.html 3 May 2008 08:36:09 -0000 1.86 *************** *** 20,163 ****

            For technical reasons, some configuration options still have to be ! stored in files. There are two such configuration files now, called ! db-config.php and siteconfig.php. These files are updated when you install Geeklog and you will not normally have to edit them manually.

            !

            Configuration options

            !

            Geeklog's configuration options can be grouped like this:

            [...2269 lines suppressed...] + +

            URL Rewriting

            + +

            Geeklog includes a simple but useful URL rewriting feature which can help + make your site more crawler friendly (i.e. the URLs of your site are more + likely to be picked up by the search engine's indexing bots). This feature is + supported for URLs to stories, static pages, the article directory, and links. +

            +

            URL rewriting means that your URLs will look like this

            +

            http://www.geeklog.net/article.php/20021022234959146

            +

            instead of like this

            +

            http://www.geeklog.net/article.php?story=20021022234959146

            +

            While some search engines will pick up the second form, Google seems to + prefer the first format and often ignores the second format.

            +

            Note: This feature may not work with all web servers. It + is known to work with Apache (all versions) and known not to work + with IIS (at least some versions). Please try it out before you go public + with your site.

            From dhaun at qs1489.pair.com Sat May 3 07:23:52 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 03 May 2008 11:23:52 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs config.html,1.86,1.87 Message-ID: <20080503112352.BC1E910FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv95771/public_html/docs Modified Files: config.html Log Message: Added missing options and explanations Index: config.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/config.html,v retrieving revision 1.86 retrieving revision 1.87 diff -C2 -d -r1.86 -r1.87 *** config.html 3 May 2008 08:36:09 -0000 1.86 --- config.html 3 May 2008 11:23:50 -0000 1.87 *************** *** 75,79 **** microsummary_short GL: ! (Microsummary) site_disabled_msg --- 75,79 ---- microsummary_short GL: ! Prefix to use for a microsummary. site_disabled_msg *************** *** 245,249 **** Enable or disable the backup functionality (1 = on, 0 = off). ! _DB_mysqldump_path /usr/bin/mysqldump Complete path to the Enable or disable the backup functionality (1 = on, 0 = off). ! _DB_mysqldump_path /usr/bin/mysqldump Complete path to the aftersave_story ! 0 ! (After Saving Story) --- 356,367 ---- aftersave_story ! 'list' ! Which page to go to after a story has been saved: !
              !
            • 'item': display the story
            • !
            • 'list': show admin's list of stories (default)
            • !
            • 'home': display the site's homepage
            • !
            • 'admin': go to the "Admin Home" page, i.e. Command & Control
            • !
            *************** *** 508,514 **** Set this to 0 if you don't want that link to show up. ! link_documentation 1 ! (Link to Version Checker) --- 514,524 ---- Set this to 0 if you don't want that link to show up. ! link_versionchecker 1 ! Add a link "GL Version Test" to the Admin block so that you ! can easily check if your Geeklog version is up to date. Set this to 0 if ! you don't want that link to show up.
            ! Note: The link is only displayed to members of the Root ! group anyway. *************** *** 657,665 **** standard true ! (Login Method: Standard) openid false ! (Login Method: OpenID) 3rdparty --- 667,677 ---- standard true ! Whether to allow normal logins into the site, i.e. with ! a user account that only exists in your site's database. openid false ! Whether to allow logins using OpenID. This will display a special OpenID login below the normal login field.
            ! Note: Currently only OpenID 1.1 is supported. 3rdparty *************** *** 671,679 **** authorization class in system/classes/authentication. If you only want to allow LDAP but not LiveJournal users (or vice versa), simply ! remove the class file for the unwanted service(s). aftersave_user ! false ! (After Saving User) --- 683,698 ---- authorization class in system/classes/authentication. If you only want to allow LDAP but not LiveJournal users (or vice versa), simply ! remove the class file for the unwanted service(s).
            ! See Remote Authentication in Geeklog for more information. aftersave_user ! 'item' ! Which page to go to after a user has been saved: !
              !
            • 'item': display the user's profile
            • !
            • 'list': show admin's list of users (default)
            • !
            • 'home': display the site's homepage
            • !
            • 'admin': go to the "Admin Home" page, i.e. Command & Control
            • !
            *************** *** 824,828 **** wikitext_editor false ! (Wikitext Editor) --- 843,849 ---- wikitext_editor false ! Allow using wiki syntax in stories. This adds a third ! option, "Wiki-style format", to the Post Mode dropdown in the story editor ! (implemented using the PEAR::Text_Wiki package). *************** *** 1050,1058 **** language_files (commented out) ! (Language Files) languages (commented out) ! (Languages) --- 1071,1082 ---- language_files (commented out) ! For multi-lingual setups only: A list mapping language ! shortcuts ('en', 'de', etc.) to the Geeklog language files to use. languages (commented out) ! For multi-lingual setups only: A list mapping language ! shortcuts ('en', 'de', etc.) to the language's native name ("English", ! "Deutsch", etc.). *************** *** 1336,1339 **** --- 1360,1388 ---- $_CONF['ip_lookup'] should hold the complete URL to the lookup service, with a '*' marking the place where the IP address should go. It's also possible to use Tom Willet's NetTools package, in which case the correct setting would be $_CONF['ip_lookup'] = $_CONF['site_url'] . '/nettools/whois.php?domain=*'; + +

            Miscellaneous: Webservices

            + + + + + + + + + + + + + + + + + +
            VariableDefault ValueDescription
            disable_webservicesfalseSet this to true to disable the webservices.
            restrict_webservicesfalseSet this to true to restrict webservices usage + to users with the webservices.atompub permission (e.g. those in + the predefined "Webservices Users" group).
            atom_max_stories10Max. number of stories returned when an Atom feed is + requested through the webservices API.
            + +

            Also see Using the Webservices in the Geeklog Wiki.

            From mjervis at qs1489.pair.com Sat May 3 11:09:15 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 15:09:15 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/staticpages/templates/admin editor.thtml, 1.19, 1.20 editor_advanced.thtml, 1.11, 1.12 Message-ID: <20080503150915.963A410FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin In directory qs1489.pair.com:/tmp/cvs-serv3704/plugins/staticpages/templates/admin Modified Files: editor.thtml editor_advanced.thtml Log Message: Static pages, moderation, configration - Security hardenning. Index: editor_advanced.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin/editor_advanced.thtml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** editor_advanced.thtml 25 Nov 2007 06:58:15 -0000 1.11 --- editor_advanced.thtml 3 May 2008 15:09:13 -0000 1.12 *************** *** 164,167 **** --- 164,168 ---- {delete_option} + Index: editor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin/editor.thtml,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** editor.thtml 25 Nov 2007 06:58:15 -0000 1.19 --- editor.thtml 3 May 2008 15:09:13 -0000 1.20 *************** *** 133,136 **** --- 133,137 ---- {delete_option} + From mjervis at qs1489.pair.com Sat May 3 11:09:15 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 15:09:15 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/plugins/staticpages index.php, 1.91, 1.92 Message-ID: <20080503150915.B241310FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/staticpages In directory qs1489.pair.com:/tmp/cvs-serv3704/public_html/admin/plugins/staticpages Modified Files: index.php Log Message: Static pages, moderation, configration - Security hardenning. Index: index.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/staticpages/index.php,v retrieving revision 1.91 retrieving revision 1.92 diff -C2 -d -r1.91 -r1.92 *** index.php 15 Mar 2008 20:37:34 -0000 1.91 --- index.php 3 May 2008 15:09:13 -0000 1.92 *************** *** 371,374 **** --- 371,376 ---- COM_endBlock (COM_getBlockTemplate ('_admin_block', 'footer'))); $sp_template->set_var( 'xhtml', XHTML ); + $sp_template->set_var( 'gltoken_name', CSRF_TOKEN ); + $sp_template->set_var( 'gltoken', SEC_createToken() ); $retval .= $sp_template->parse('output','form'); } *************** *** 552,556 **** $display = ''; ! if (($mode == $LANG_ADMIN['delete']) && !empty ($LANG_ADMIN['delete'])) { if (empty ($sp_id) || (is_numeric ($sp_id) && ($sp_id == 0))) { COM_errorLog ('Attempted to delete static page sp_id=' . $sp_id); --- 554,558 ---- $display = ''; ! if (($mode == $LANG_ADMIN['delete']) && !empty ($LANG_ADMIN['delete']) && SEC_checkToken()) { if (empty ($sp_id) || (is_numeric ($sp_id) && ($sp_id == 0))) { COM_errorLog ('Attempted to delete static page sp_id=' . $sp_id); *************** *** 577,581 **** $display = COM_refresh ($_CONF['site_admin_url'] . '/index.php'); } ! } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save'])) { if (!empty ($sp_id)) { if (!isset ($_POST['sp_onmenu'])) { --- 579,583 ---- $display = COM_refresh ($_CONF['site_admin_url'] . '/index.php'); } ! } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save']) && SEC_checkToken()) { if (!empty ($sp_id)) { if (!isset ($_POST['sp_onmenu'])) { From mjervis at qs1489.pair.com Sat May 3 11:09:15 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 15:09:15 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin configuration.php, 1.12, 1.13 moderation.php, 1.119, 1.120 Message-ID: <20080503150915.A505310FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin In directory qs1489.pair.com:/tmp/cvs-serv3704/public_html/admin Modified Files: configuration.php moderation.php Log Message: Static pages, moderation, configration - Security hardenning. Index: moderation.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/moderation.php,v retrieving revision 1.119 retrieving revision 1.120 diff -C2 -d -r1.119 -r1.120 *** moderation.php 19 Apr 2008 12:13:18 -0000 1.119 --- moderation.php 3 May 2008 15:09:13 -0000 1.120 *************** *** 79,83 **** * */ ! function commandcontrol() { global $_CONF, $_TABLES, $LANG01, $LANG29, $_IMAGE_TYPE, $_DB_dbms; --- 79,83 ---- * */ ! function commandcontrol($token) { global $_CONF, $_TABLES, $LANG01, $LANG29, $_IMAGE_TYPE, $_DB_dbms; *************** *** 212,216 **** if (SEC_hasRights('story.moderate')) { ! $retval .= itemlist('story'); } --- 212,216 ---- if (SEC_hasRights('story.moderate')) { ! $retval .= itemlist('story', $token); } *************** *** 226,230 **** } ! $retval .= PLG_showModerationList(); return $retval; --- 226,230 ---- } ! $retval .= PLG_showModerationList($token); return $retval; *************** *** 239,243 **** * */ ! function itemlist($type) { global $_CONF, $_TABLES, $LANG29, $LANG_ADMIN; --- 239,243 ---- * */ ! function itemlist($type, $token) { global $_CONF, $_TABLES, $LANG29, $LANG_ADMIN; *************** *** 314,317 **** --- 314,318 ---- if ($nrows > 0) { $form_arr['bottom'] = '' . LB + . '' . LB . '' . LB . '' *************** *** 569,573 **** } ! $retval .= commandcontrol(); return $retval; --- 570,574 ---- } ! $retval .= commandcontrol(SEC_createToken()); return $retval; *************** *** 634,638 **** } ! $retval .= commandcontrol(); return $retval; --- 635,639 ---- } ! $retval .= commandcontrol(SEC_createToken()); return $retval; *************** *** 669,673 **** } ! if (isset ($_POST['mode']) && ($_POST['mode'] == 'moderation')) { $action = array(); if (isset($_POST['action'])) { --- 670,674 ---- } ! if (isset ($_POST['mode']) && ($_POST['mode'] == 'moderation') && SEC_checkToken()) { $action = array(); if (isset($_POST['action'])) { *************** *** 683,687 **** } else { $display .= security_check_reminder(); ! $display .= commandcontrol(); } --- 684,688 ---- } else { $display .= security_check_reminder(); ! $display .= commandcontrol(SEC_createToken()); } Index: configuration.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/configuration.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** configuration.php 21 Mar 2008 15:38:05 -0000 1.12 --- configuration.php 3 May 2008 15:09:13 -0000 1.13 *************** *** 88,94 **** } // MAIN ! if (array_key_exists('set_action', $_POST)){ if (SEC_inGroup('Root')) { if ($_POST['set_action'] == 'restore') { --- 88,95 ---- } + $tokenstate = SEC_checkToken(); // MAIN ! if (array_key_exists('set_action', $_POST) && $tokenstate){ if (SEC_inGroup('Root')) { if ($_POST['set_action'] == 'restore') { *************** *** 100,104 **** } ! if (array_key_exists('form_submit', $_POST)) { $result = null; if (! array_key_exists('form_reset', $_POST)) { --- 101,105 ---- } ! if (array_key_exists('form_submit', $_POST) && $tokenstate) { $result = null; if (! array_key_exists('form_reset', $_POST)) { From mjervis at qs1489.pair.com Sat May 3 11:09:15 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 15:09:15 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs theme.html,1.76,1.77 Message-ID: <20080503150915.C22E610FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv3704/public_html/docs Modified Files: theme.html Log Message: Static pages, moderation, configration - Security hardenning. Index: theme.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/theme.html,v retrieving revision 1.76 retrieving revision 1.77 diff -C2 -d -r1.76 -r1.77 *** theme.html 1 May 2008 19:43:42 -0000 1.76 --- theme.html 3 May 2008 15:09:13 -0000 1.77 *************** *** 212,215 **** --- 212,221 ----
          • admin/story/storyeditor.thtml
          • admin/story/storyeditor_advanced.thtml
          • +
          • admin/config/configuration.thtml (new theme file for 1.5)
          • +
          +

          Some plugin specific templates have also been changed, you may also need to check:

          +
            +
          • plugins/staticpages/templates/admin/editor.thtml
          • +
          • plugins/staticpages/templates/admin/editor_advanced.thtml
          From mjervis at qs1489.pair.com Sat May 3 11:09:15 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 15:09:15 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes config.class.php, 1.38, 1.39 Message-ID: <20080503150915.DCCFA10FE18@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes In directory qs1489.pair.com:/tmp/cvs-serv3704/system/classes Modified Files: config.class.php Log Message: Static pages, moderation, configration - Security hardenning. Index: config.class.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/config.class.php,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** config.class.php 2 May 2008 19:30:11 -0000 1.38 --- config.class.php 3 May 2008 15:09:13 -0000 1.39 *************** *** 426,429 **** --- 426,431 ---- $t->set_var('layout_url', $_CONF['layout_url']); $t->set_var('xhtml', XHTML); + $t->set_var('gltoken_name', CSRF_TOKEN); + $t->set_var('gltoken', SEC_createToken()); $t->set_var('lang_save_changes', $LANG_CONFIG['save_changes']); From mjervis at qs1489.pair.com Sat May 3 11:09:15 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 15:09:15 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/admin/config configuration.thtml, 1.11, 1.12 Message-ID: <20080503150915.CDF6710FE17@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/config In directory qs1489.pair.com:/tmp/cvs-serv3704/public_html/layout/professional/admin/config Modified Files: configuration.thtml Log Message: Static pages, moderation, configration - Security hardenning. Index: configuration.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/config/configuration.thtml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** configuration.thtml 10 Feb 2008 13:08:06 -0000 1.11 --- configuration.thtml 3 May 2008 15:09:13 -0000 1.12 *************** *** 4,7 **** --- 4,8 ---- + *************** *** 19,22 **** --- 20,24 ---- +
          From mjervis at qs1489.pair.com Sat May 3 11:09:15 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 15:09:15 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system lib-plugins.php,1.143,1.144 Message-ID: <20080503150915.EDA5E10FE19@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system In directory qs1489.pair.com:/tmp/cvs-serv3704/system Modified Files: lib-plugins.php Log Message: Static pages, moderation, configration - Security hardenning. Index: lib-plugins.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-plugins.php,v retrieving revision 1.143 retrieving revision 1.144 diff -C2 -d -r1.143 -r1.144 *** lib-plugins.php 19 Apr 2008 16:44:39 -0000 1.143 --- lib-plugins.php 3 May 2008 15:09:13 -0000 1.144 *************** *** 998,1002 **** * */ ! function PLG_showModerationList() { global $_PLUGINS; --- 998,1002 ---- * */ ! function PLG_showModerationList($token) { global $_PLUGINS; *************** *** 1005,1009 **** foreach ($_PLUGINS as $pi_name) { ! $retval .= itemlist($pi_name); } --- 1005,1009 ---- foreach ($_PLUGINS as $pi_name) { ! $retval .= itemlist($pi_name, $token); } From mjervis at qs1489.pair.com Sat May 3 15:04:10 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sat, 03 May 2008 19:04:10 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes story.class.php, 1.25, 1.26 Message-ID: <20080503190410.4CB4710FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes In directory qs1489.pair.com:/tmp/cvs-serv15654/system/classes Modified Files: story.class.php Log Message: Fixes to introduced case flattening issue when fixing multi-[code]/[raw] block handling. Index: story.class.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/story.class.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** story.class.php 1 May 2008 19:43:42 -0000 1.25 --- story.class.php 3 May 2008 19:04:08 -0000 1.26 *************** *** 1508,1512 **** while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($inlower, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/raw]'); --- 1508,1512 ---- while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($buffer, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/raw]'); *************** *** 1542,1546 **** while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($inlower, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/code]'); --- 1542,1546 ---- while( $start_pos !== false ) { /* Copy in to start to out */ ! $out .= MBYTE_substr($buffer, 0, $start_pos); /* Find end */ $end_pos = MBYTE_strpos($inlower, '[/code]'); From dhaun at qs1489.pair.com Sat May 3 16:02:00 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 03 May 2008 20:02:00 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs theme.html,1.77,1.78 Message-ID: <20080503200200.E898010FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv17740/public_html/docs Modified Files: theme.html Log Message: Fixed path to the submitstory templates Index: theme.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/theme.html,v retrieving revision 1.77 retrieving revision 1.78 diff -C2 -d -r1.77 -r1.78 *** theme.html 3 May 2008 15:09:13 -0000 1.77 --- theme.html 3 May 2008 20:01:58 -0000 1.78 *************** *** 172,177 **** --- 172,180 ---- lib-custom.php to output any HTML you like.

          +

          Theme changes in Geeklog 1.5.0

          +

          XHTML support

          +

          Geeklog now supports XHTML compliant themes. These themes should define the following constant in their functions.php file:

          *************** *** 187,196 ****

          "Contribute" - User submitted stories

          Geeklog 1.5.0 supports the ability for users to specify story intro text and body text seperately rather than just the intro text. This can be turned on and off by changing the templates. The files:

            !
          • professional/submitstory.thtml
          • !
          • professional/submitstory_advanced.thtml

          Contain table rows containing the bodytext inputs. Simply removing these --- 190,200 ----

          "Contribute" - User submitted stories

          +

          Geeklog 1.5.0 supports the ability for users to specify story intro text and body text seperately rather than just the intro text. This can be turned on and off by changing the templates. The files:

            !
          • submit/submitstory.thtml
          • !
          • submit/submitstory_advanced.thtml

          Contain table rows containing the bodytext inputs. Simply removing these *************** *** 198,201 **** --- 202,206 ----

          Admin-Menu, Topic-List & User-Menus

          +

          All the above mentioned items are now lists, using ul and li tags. The ul is inserted by the core code, the *************** *** 203,206 **** --- 208,212 ----

          Security Changes

          +

          Many forms, particularly in the admin section of the site need a new hidden form field in order for saving the form/processing the action to work. Add:

          From mjervis at qs1489.pair.com Sun May 4 02:57:37 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sun, 04 May 2008 06:57:37 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes kses.class.php,1.4,1.5 Message-ID: <20080504065737.99C1710FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes In directory qs1489.pair.com:/tmp/cvs-serv45715/system/classes Modified Files: kses.class.php Log Message: KSES patch. Index: kses.class.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/kses.class.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** kses.class.php 11 Jan 2007 20:40:41 -0000 1.4 --- kses.class.php 4 May 2008 06:57:35 -0000 1.5 *************** *** 942,951 **** function _bad_protocol_once($string) { ! return preg_replace( ! '/^((&[^;]*;|[\sA-Za-z0-9])*)'. ! '(:|:|&#[Xx]3[Aa];)\s*/e', ! '\$this->_bad_protocol_once2("\\1")', ! $string ! ); } --- 942,951 ---- function _bad_protocol_once($string) { ! $string2 = preg_split('/:|:|:/i', $string, 2); ! if(isset($string2[1]) && !preg_match('%/\?%',$string2[0])) ! { ! $string = $this->_bad_protocol_once2($string2[0]).trim($string2[1]); ! } ! return $string; } From mjervis at qs1489.pair.com Sun May 4 03:32:55 2008 From: mjervis at qs1489.pair.com (Michael Jervis) Date: Sun, 04 May 2008 07:32:55 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin moderation.php, 1.120, 1.121 Message-ID: <20080504073255.1A39810FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin In directory qs1489.pair.com:/tmp/cvs-serv47114/public_html/admin Modified Files: moderation.php Log Message: Templating bug (0000617 / jmucchiello) Index: moderation.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/moderation.php,v retrieving revision 1.120 retrieving revision 1.121 diff -C2 -d -r1.120 -r1.121 *** moderation.php 3 May 2008 15:09:13 -0000 1.120 --- moderation.php 4 May 2008 07:32:53 -0000 1.121 *************** *** 207,211 **** } ! $retval .= $admin_templates->parse('output','cc'); $retval .= COM_endBlock (COM_getBlockTemplate ('_admin_block', 'footer')); --- 207,211 ---- } ! $retval .= $admin_templates->finish($admin_templates->parse('output','cc')); $retval .= COM_endBlock (COM_getBlockTemplate ('_admin_block', 'footer')); From dhaun at qs1489.pair.com Sun May 4 05:16:35 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 04 May 2008 09:16:35 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/calendar install_defaults.php, 1.3, 1.4 Message-ID: <20080504091635.6D3F110FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/calendar In directory qs1489.pair.com:/tmp/cvs-serv50887/calendar Modified Files: install_defaults.php Log Message: Fixed plugin updates: Need to merge the DEFAULT config with the old CONF so that we pick up new entries Index: install_defaults.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/install_defaults.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** install_defaults.php 2 May 2008 12:12:05 -0000 1.3 --- install_defaults.php 4 May 2008 09:16:33 -0000 1.4 *************** *** 117,121 **** if (is_array($_CA_CONF) && (count($_CA_CONF) > 1)) { ! $_CA_DEFAULT = $_CA_CONF; } --- 117,121 ---- if (is_array($_CA_CONF) && (count($_CA_CONF) > 1)) { ! $_CA_DEFAULT = array_merge($_CA_DEFAULT, $_CA_CONF); } From dhaun at qs1489.pair.com Sun May 4 05:16:35 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 04 May 2008 09:16:35 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/links install_defaults.php, 1.3, 1.4 Message-ID: <20080504091635.7B38010FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/links In directory qs1489.pair.com:/tmp/cvs-serv50887/links Modified Files: install_defaults.php Log Message: Fixed plugin updates: Need to merge the DEFAULT config with the old CONF so that we pick up new entries Index: install_defaults.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/install_defaults.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** install_defaults.php 2 May 2008 12:12:05 -0000 1.3 --- install_defaults.php 4 May 2008 09:16:33 -0000 1.4 *************** *** 167,171 **** if (is_array($_LI_CONF) && (count($_LI_CONF) > 1)) { ! $_LI_DEFAULT = $_LI_CONF; } --- 167,171 ---- if (is_array($_LI_CONF) && (count($_LI_CONF) > 1)) { ! $_LI_DEFAULT = array_merge($_LI_DEFAULT, $_LI_CONF); } From dhaun at qs1489.pair.com Sun May 4 05:16:35 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 04 May 2008 09:16:35 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls install_defaults.php, 1.2, 1.3 Message-ID: <20080504091635.8ADF910FE17@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls In directory qs1489.pair.com:/tmp/cvs-serv50887/polls Modified Files: install_defaults.php Log Message: Fixed plugin updates: Need to merge the DEFAULT config with the old CONF so that we pick up new entries Index: install_defaults.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/install_defaults.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install_defaults.php 21 Mar 2008 17:09:26 -0000 1.2 --- install_defaults.php 4 May 2008 09:16:33 -0000 1.3 *************** *** 105,109 **** if (is_array($_PO_CONF) && (count($_PO_CONF) > 1)) { ! $_PO_DEFAULT = $_PO_CONF; } --- 105,109 ---- if (is_array($_PO_CONF) && (count($_PO_CONF) > 1)) { ! $_PO_DEFAULT = array_merge($_PO_DEFAULT, $_PO_CONF); } From dhaun at qs1489.pair.com Sun May 4 05:16:35 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 04 May 2008 09:16:35 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/staticpages install_defaults.php, 1.5, 1.6 Message-ID: <20080504091635.A689510FE19@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages In directory qs1489.pair.com:/tmp/cvs-serv50887/staticpages Modified Files: install_defaults.php Log Message: Fixed plugin updates: Need to merge the DEFAULT config with the old CONF so that we pick up new entries Index: install_defaults.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/install_defaults.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** install_defaults.php 21 Mar 2008 17:09:26 -0000 1.5 --- install_defaults.php 4 May 2008 09:16:33 -0000 1.6 *************** *** 122,126 **** if (is_array($_SP_CONF) && (count($_SP_CONF) > 1)) { ! $_SP_DEFAULT = $_SP_CONF; } --- 122,126 ---- if (is_array($_SP_CONF) && (count($_SP_CONF) > 1)) { ! $_SP_DEFAULT = array_merge($_SP_DEFAULT, $_SP_CONF); } From dhaun at qs1489.pair.com Sun May 4 05:16:35 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 04 May 2008 09:16:35 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/spamx install_defaults.php, 1.2, 1.3 Message-ID: <20080504091635.958B510FE18@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/spamx In directory qs1489.pair.com:/tmp/cvs-serv50887/spamx Modified Files: install_defaults.php Log Message: Fixed plugin updates: Need to merge the DEFAULT config with the old CONF so that we pick up new entries Index: install_defaults.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/spamx/install_defaults.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install_defaults.php 10 Feb 2008 17:09:37 -0000 1.2 --- install_defaults.php 4 May 2008 09:16:33 -0000 1.3 *************** *** 81,85 **** if (is_array($_SPX_CONF) && (count($_SPX_CONF) > 1)) { ! $_SPX_DEFAULT = $_SPX_CONF; } --- 81,85 ---- if (is_array($_SPX_CONF) && (count($_SPX_CONF) > 1)) { ! $_SPX_DEFAULT = array_merge($_SPX_DEFAULT, $_SPX_CONF); } From dhaun at qs1489.pair.com Sun May 4 05:16:35 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 04 May 2008 09:16:35 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/links install_defaults.php, 1.3, 1.4 Message-ID: <20080504091635.7B38010FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/links In directory qs1489.pair.com:/tmp/cvs-serv50887/links Modified Files: install_defaults.php Log Message: Fixed plugin updates: Need to merge the DEFAULT config with the old CONF so that we pick up new entries Index: install_defaults.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/install_defaults.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** install_defaults.php 2 May 2008 12:12:05 -0000 1.3 --- install_defaults.php 4 May 2008 09:16:33 -0000 1.4 *************** *** 167,171 **** if (is_array($_LI_CONF) && (count($_LI_CONF) > 1)) { ! $_LI_DEFAULT = $_LI_CONF; } --- 167,171 ---- if (is_array($_LI_CONF) && (count($_LI_CONF) > 1)) { ! $_LI_DEFAULT = array_merge($_LI_DEFAULT, $_LI_CONF); } From dhaun at qs1489.pair.com Sun May 4 05:16:35 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 04 May 2008 09:16:35 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls install_defaults.php, 1.2, 1.3 Message-ID: <20080504091635.8ADF910FE17@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls In directory qs1489.pair.com:/tmp/cvs-serv50887/polls Modified Files: install_defaults.php Log Message: Fixed plugin updates: Need to merge the DEFAULT config with the old CONF so that we pick up new entries Index: install_defaults.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/install_defaults.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install_defaults.php 21 Mar 2008 17:09:26 -0000 1.2 --- install_defaults.php 4 May 2008 09:16:33 -0000 1.3 *************** *** 105,109 **** if (is_array($_PO_CONF) && (count($_PO_CONF) > 1)) { ! $_PO_DEFAULT = $_PO_CONF; } --- 105,109 ---- if (is_array($_PO_CONF) && (count($_PO_CONF) > 1)) { ! $_PO_DEFAULT = array_merge($_PO_DEFAULT, $_PO_CONF); } From dhaun at qs1489.pair.com Sun May 4 05:26:39 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 04 May 2008 09:26:39 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs install.html,1.52,1.53 Message-ID: <20080504092639.5F03D10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv51368/public_html/docs Modified Files: install.html Log Message: When upgrading, don't forgot to put the config.php files back into place so the install script can use them to pre-populate the Configuration. Index: install.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/install.html,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** install.html 1 May 2008 17:23:41 -0000 1.52 --- install.html 4 May 2008 09:26:37 -0000 1.53 *************** *** 14,18 ****
          • Glossary
          • !
          • Installation Requirements
            • Required Software
            • --- 14,18 ----
              • Glossary
              • !
              • Installation Requirements
                • Required Software
                • *************** *** 113,116 **** --- 113,119 ----
                • Place the contents of Geeklog-1.x/ into the same directory your old installation was located. For instance, if your old Geeklog was in /usr/home/www/geeklog/, then your new installation should also be in /usr/home/www/geeklog/.

                  +
                • +
                • +

                  When upgrading from Geeklog 1.4.1 or earlier: Put the config.php files from your old install back into their place now (the main config.php and those for the plugins). The install script will read these files during the upgrade to pre-populate the new Configuration admin panel with your settings. If you skip this step, you will end up with default settings for Geeklog and the pre-installed plugins.

                • From dhaun at qs1489.pair.com Sun May 4 05:32:14 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 04 May 2008 09:32:14 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs support.html,1.24,1.25 Message-ID: <20080504093214.F005E10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv51577 Modified Files: support.html Log Message: Fixed validation error (& -> &) Index: support.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/support.html,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** support.html 1 May 2008 17:23:41 -0000 1.24 --- support.html 4 May 2008 09:32:12 -0000 1.25 *************** *** 33,37 ****

                  Mailing Lists

                  !

                  If you prefer email, there are also several mailing lists that you can use. Questions regarding installing and running Geeklog are best posted on the geeklog-users mailing list.

                  Note: Please note that due to the ever-increasing amount of spam, you have to subscribe to the mailing lists before you can post there. Posts by non-subscribers are silently discarded, so make sure to subscribe first.

                  --- 33,37 ----

                  Mailing Lists

                  !

                  If you prefer email, there are also several mailing lists that you can use. Questions regarding installing and running Geeklog are best posted on the geeklog-users mailing list.

                  Note: Please note that due to the ever-increasing amount of spam, you have to subscribe to the mailing lists before you can post there. Posts by non-subscribers are silently discarded, so make sure to subscribe first.

                  From blaine at qs1489.pair.com Sun May 4 17:43:01 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Sun, 04 May 2008 21:43:01 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.692,1.693 Message-ID: <20080504214301.21F8510FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html In directory qs1489.pair.com:/tmp/cvs-serv79259 Modified Files: lib-common.php Log Message: Moved the call to PLG_templateSetVars to before the parse of the left and right block templates to support CTL and plugins that want to set template vars in the left and right block related templates. Index: lib-common.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v retrieving revision 1.692 retrieving revision 1.693 diff -C2 -d -r1.692 -r1.693 *** lib-common.php 1 May 2008 15:43:16 -0000 1.692 --- lib-common.php 4 May 2008 21:42:59 -0000 1.693 *************** *** 1112,1115 **** --- 1112,1118 ---- } + // Call to plugins to set template variables in the header + PLG_templateSetVars( 'header', $header ); + if( $_CONF['left_blocks_in_footer'] == 1 ) { *************** *** 1216,1222 **** $header->set_var( 'plg_headercode', $headercode . PLG_getHeaderCode() ); - // Call to plugins to set template variables in the header - PLG_templateSetVars( 'header', $header ); - // The following lines allow users to embed PHP in their templates. This // is almost a contradition to the reasons for using templates but this may --- 1219,1222 ---- *************** *** 2952,2956 **** } while( $start_pos !== false ); ! // handle [raw] ... [/raw] do --- 2952,2956 ---- } while( $start_pos !== false ); ! // handle [raw] ... [/raw] do From blaine at qs1489.pair.com Sun May 4 17:50:13 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Sun, 04 May 2008 21:50:13 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.693,1.694 Message-ID: <20080504215013.C8FBD10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html In directory qs1489.pair.com:/tmp/cvs-serv79550 Modified Files: lib-common.php Log Message: Change to code in COM_startBlock() to use COM_sanitizeID to set the name for the {blockid} template variable. Index: lib-common.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v retrieving revision 1.693 retrieving revision 1.694 diff -C2 -d -r1.693 -r1.694 *** lib-common.php 4 May 2008 21:42:59 -0000 1.693 --- lib-common.php 4 May 2008 21:50:11 -0000 1.694 *************** *** 1487,1491 **** if (!isset($GLOBALS['siteblocks'])) $GLOBALS['siteblocks'] = array(); $blockid = stripslashes ($title); ! $blockid = strtr($blockid, "!@#$%^&*()'\"\\/?~`.,;: ", "________________________"); // Check if there is already a block of the same name if (in_array($blockid,$GLOBALS['siteblocks'])) { --- 1487,1491 ---- if (!isset($GLOBALS['siteblocks'])) $GLOBALS['siteblocks'] = array(); $blockid = stripslashes ($title); ! $blockid = COM_sanitizeID($title); // Check if there is already a block of the same name if (in_array($blockid,$GLOBALS['siteblocks'])) { From blaine at qs1489.pair.com Sun May 4 20:30:39 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Mon, 05 May 2008 00:30:39 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin mail.php, 1.34, 1.35 user.php, 1.201, 1.202 Message-ID: <20080505003039.CE71B10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin In directory qs1489.pair.com:/tmp/cvs-serv84861 Modified Files: mail.php user.php Log Message: Found a function name conflict 'display_form' so the names have been changed to better define their use. Index: mail.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/mail.php,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -d -r1.34 -r1.35 *** mail.php 25 Nov 2007 06:58:55 -0000 1.34 --- mail.php 5 May 2008 00:30:37 -0000 1.35 *************** *** 38,42 **** $display = ''; ! // Make sure user has access to this page if (!SEC_inGroup ('Mail Admin') && !SEC_hasrights ('user.mail')) { $retval .= COM_siteHeader ('menu', $MESSAGE[30]); --- 38,42 ---- $display = ''; ! // Make sure user has access to this page if (!SEC_inGroup ('Mail Admin') && !SEC_hasrights ('user.mail')) { $retval .= COM_siteHeader ('menu', $MESSAGE[30]); *************** *** 58,62 **** * */ ! function display_form () { global $_CONF, $_TABLES, $_USER, $LANG31; --- 58,62 ---- * */ ! function display_mailform () { global $_CONF, $_TABLES, $_USER, $LANG31; *************** *** 123,127 **** { global $_CONF, $_TABLES, $LANG31; ! require_once($_CONF['path_system'] . 'lib-user.php'); --- 123,127 ---- { global $_CONF, $_TABLES, $LANG31; ! require_once($_CONF['path_system'] . 'lib-user.php'); *************** *** 147,156 **** // If you want to send html mail ! if (isset ($vars['html'])) { $html = true; } else { $html = false; } ! $groupList = implode (',', USER_getChildGroups($vars['to_group'])); --- 147,156 ---- // If you want to send html mail ! if (isset ($vars['html'])) { $html = true; } else { $html = false; } ! $groupList = implode (',', USER_getChildGroups($vars['to_group'])); *************** *** 229,233 **** $display .= send_messages ($_POST); } else { ! $display .= display_form (); } --- 229,233 ---- $display .= send_messages ($_POST); } else { ! $display .= display_mailform (); } Index: user.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/user.php,v retrieving revision 1.201 retrieving revision 1.202 diff -C2 -d -r1.201 -r1.202 *** user.php 24 Feb 2008 19:43:53 -0000 1.201 --- user.php 5 May 2008 00:30:37 -0000 1.202 *************** *** 810,814 **** ); $listoptions = array('chkdelete' => true, 'chkfield' => 'uid'); ! $menu_arr = array ( array('url' => $_CONF['site_admin_url'] . '/user.php', --- 810,814 ---- ); $listoptions = array('chkdelete' => true, 'chkfield' => 'uid'); ! $menu_arr = array ( array('url' => $_CONF['site_admin_url'] . '/user.php', *************** *** 1091,1095 **** * */ ! function display_form () { global $_CONF, $LANG28; --- 1091,1095 ---- * */ ! function display_batchAddform () { global $_CONF, $LANG28; *************** *** 1201,1205 **** COM_getBlockTemplate ('_admin_block', 'header')); $display .= $LANG28[25] . ''; ! $display .= display_form(); $display .= COM_endBlock (COM_getBlockTemplate ('_admin_block', 'footer')); $display .= COM_siteFooter(); --- 1201,1205 ---- COM_getBlockTemplate ('_admin_block', 'header')); $display .= $LANG28[25] . ''; ! $display .= display_batchAddform(); $display .= COM_endBlock (COM_getBlockTemplate ('_admin_block', 'footer')); $display .= COM_siteFooter(); From blaine at qs1489.pair.com Sun May 4 20:32:01 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Mon, 05 May 2008 00:32:01 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/dialog/fck_about/sponsors - New directory Message-ID: <20080505003201.06BE910FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/dialog/fck_about/sponsors In directory qs1489.pair.com:/tmp/cvs-serv84928/sponsors Log Message: Directory /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/dialog/fck_about/sponsors added to the repository From blaine at qs1489.pair.com Sun May 4 20:35:27 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Mon, 05 May 2008 00:35:27 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses fck_othercommands.js, 1.6, 1.7 fckblockquotecommand.js, 1.1, 1.2 fckcorestylecommand.js, 1.1, 1.2 fckfitwindow.js, 1.3, 1.4 fckindentcommands.js, 1.1, 1.2 fckjustifycommands.js, 1.1, 1.2 fcklistcommands.js, 1.1, 1.2 fcknamedcommand.js, 1.5, 1.6 fckpasteplaintextcommand.js, 1.5, 1.6 fckpastewordcommand.js, 1.6, 1.7 fckremoveformatcommand.js, 1.1, 1.2 fckshowblocks.js, 1.1, 1.2 fckspellcheckcommand_gecko.js, 1.4, 1.5 fckspellcheckcommand_ie.js, 1.4, 1.5 fckstylecommand.js, 1.5, 1.6 fcktablecommand.js, 1.6, 1.7 fcktextcolorcommand.js, 1.5, 1.6 Message-ID: <20080505003527.1E0F510FE17@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses In directory qs1489.pair.com:/tmp/cvs-serv85146/editor/_source/commandclasses Modified Files: fck_othercommands.js fckblockquotecommand.js fckcorestylecommand.js fckfitwindow.js fckindentcommands.js fckjustifycommands.js fcklistcommands.js fcknamedcommand.js fckpasteplaintextcommand.js fckpastewordcommand.js fckremoveformatcommand.js fckshowblocks.js fckspellcheckcommand_gecko.js fckspellcheckcommand_ie.js fckstylecommand.js fcktablecommand.js fcktextcolorcommand.js Log Message: Upgraded the FCKeditor to version 2.6 Final - latest release April 7/08 Index: fcktablecommand.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fcktablecommand.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** fcktablecommand.js 9 Feb 2008 12:53:57 -0000 1.6 --- fcktablecommand.js 5 May 2008 00:35:23 -0000 1.7 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 36,40 **** switch ( this.Name ) { ! case 'TableMergeRight' : return FCKTableHandler.MergeRight() ; case 'TableMergeDown' : --- 36,40 ---- switch ( this.Name ) { ! case 'TableMergeRight' : return FCKTableHandler.MergeRight() ; case 'TableMergeDown' : *************** *** 89,93 **** return FCK_TRISTATE_DISABLED ; case 'TableMergeCells' : ! if ( FCKTableHandler.CheckIsSelectionRectangular() && FCKTableHandler.GetSelectedCells().length > 1 ) return FCK_TRISTATE_OFF ; --- 89,93 ---- return FCK_TRISTATE_DISABLED ; case 'TableMergeCells' : ! if ( FCKTableHandler.CheckIsSelectionRectangular() && FCKTableHandler.GetSelectedCells().length > 1 ) return FCK_TRISTATE_OFF ; *************** *** 103,106 **** } else ! return FCK_TRISTATE_DISABLED; } --- 103,106 ---- } else ! return FCK_TRISTATE_DISABLED; } Index: fckpastewordcommand.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckpastewordcommand.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** fckpastewordcommand.js 9 Feb 2008 12:53:57 -0000 1.6 --- fckpastewordcommand.js 5 May 2008 00:35:23 -0000 1.7 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 34,38 **** FCKPasteWordCommand.prototype.GetState = function() { ! if ( FCKConfig.ForcePasteAsPlainText ) return FCK_TRISTATE_DISABLED ; else --- 34,38 ---- FCKPasteWordCommand.prototype.GetState = function() { ! if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG || FCKConfig.ForcePasteAsPlainText ) return FCK_TRISTATE_DISABLED ; else Index: fckindentcommands.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckindentcommands.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckindentcommands.js 9 Feb 2008 12:53:57 -0000 1.1 --- fckindentcommands.js 5 May 2008 00:35:23 -0000 1.2 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 58,63 **** // If we're in a list, then the indent/outdent operations would be done on the list nodes. // Otherwise, apply the operation on the nearest block nodes. ! var nearestListBlock = FCKDomTools.GetCommonParentNode( range.StartNode || range.StartContainer , ! range.EndNode || range.EndContainer, ['ul', 'ol'] ) ; if ( nearestListBlock ) --- 58,63 ---- // If we're in a list, then the indent/outdent operations would be done on the list nodes. // Otherwise, apply the operation on the nearest block nodes. ! var nearestListBlock = FCKDomTools.GetCommonParentNode( range.StartNode || range.StartContainer , ! range.EndNode || range.EndContainer, ['ul', 'ol'] ) ; if ( nearestListBlock ) *************** *** 134,137 **** --- 134,139 ---- { var iterator = new FCKDomRangeIterator( range ) ; + iterator.EnforceRealBlocks = true ; + range.Expand( 'block_contents' ) ; var commonParents = FCKDomTools.GetCommonParents( range.StartContainer, range.EndContainer ) ; Index: fckcorestylecommand.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckcorestylecommand.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckcorestylecommand.js 9 Feb 2008 12:53:57 -0000 1.1 --- fckcorestylecommand.js 5 May 2008 00:35:23 -0000 1.2 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 50,53 **** --- 50,55 ---- GetState : function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return this.IsActive ? FCK_TRISTATE_ON : FCK_TRISTATE_OFF ; }, Index: fckfitwindow.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckfitwindow.js,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** fckfitwindow.js 9 Feb 2008 12:53:57 -0000 1.3 --- fckfitwindow.js 5 May 2008 00:35:23 -0000 1.4 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 156,160 **** //also lost, even if you comment the following line (MakeEditable). // if ( FCKBrowserInfo.IsGecko10 ) // Initially I thought it was a FF 1.0 only problem. ! if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG ) FCK.EditingArea.MakeEditable() ; --- 156,160 ---- //also lost, even if you comment the following line (MakeEditable). // if ( FCKBrowserInfo.IsGecko10 ) // Initially I thought it was a FF 1.0 only problem. ! if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG ) FCK.EditingArea.MakeEditable() ; Index: fckspellcheckcommand_ie.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_ie.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckspellcheckcommand_ie.js 9 Feb 2008 12:53:57 -0000 1.4 --- fckspellcheckcommand_ie.js 5 May 2008 00:35:23 -0000 1.5 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 64,67 **** FCKSpellCheckCommand.prototype.GetState = function() { return this.IsEnabled ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ; ! } \ No newline at end of file --- 64,69 ---- FCKSpellCheckCommand.prototype.GetState = function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return this.IsEnabled ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ; ! } Index: fcknamedcommand.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fcknamedcommand.js,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** fcknamedcommand.js 9 Feb 2008 12:53:57 -0000 1.5 --- fcknamedcommand.js 5 May 2008 00:35:23 -0000 1.6 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 34,37 **** --- 34,39 ---- FCKNamedCommand.prototype.GetState = function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return FCK.GetNamedCommandState( this.Name ) ; } Index: fckjustifycommands.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckjustifycommands.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckjustifycommands.js 9 Feb 2008 12:53:57 -0000 1.1 --- fckjustifycommands.js 5 May 2008 00:35:23 -0000 1.2 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 40,50 **** { case 'left' : ! return classes[0] ; case 'center' : ! return classes[1] ; case 'right' : ! return classes[2] ; case 'justify' : ! return classes[3] ; } } --- 40,50 ---- { case 'left' : ! return classes[0] || null ; case 'center' : ! return classes[1] || null ; case 'right' : ! return classes[2] || null ; case 'justify' : ! return classes[3] || null ; } } *************** *** 100,104 **** // change the DOM tree and break selections. var bookmark = range.CreateBookmark() ; ! var cssClassName = this._CssClassName ; --- 100,104 ---- // change the DOM tree and break selections. var bookmark = range.CreateBookmark() ; ! var cssClassName = this._CssClassName ; Index: fckstylecommand.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckstylecommand.js,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** fckstylecommand.js 9 Feb 2008 12:53:57 -0000 1.5 --- fckstylecommand.js 5 May 2008 00:35:23 -0000 1.6 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 28,32 **** { Name : 'Style', ! Execute : function( styleName, styleComboItem ) { --- 28,32 ---- { Name : 'Style', ! Execute : function( styleName, styleComboItem ) { *************** *** 46,50 **** GetState : function() { ! if ( !FCK.EditorDocument ) return FCK_TRISTATE_DISABLED ; --- 46,50 ---- GetState : function() { ! if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG || !FCK.EditorDocument ) return FCK_TRISTATE_DISABLED ; Index: fckblockquotecommand.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckblockquotecommand.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckblockquotecommand.js 9 Feb 2008 12:53:57 -0000 1.1 --- fckblockquotecommand.js 5 May 2008 00:35:23 -0000 1.2 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 26,30 **** } ! FCKBlockQuoteCommand.prototype = { Execute : function() --- 26,30 ---- } ! FCKBlockQuoteCommand.prototype = { Execute : function() *************** *** 46,53 **** var bStart = range.GetBookmarkNode( bookmark, true ) ; var bEnd = range.GetBookmarkNode( bookmark, false ) ; ! var cursor ; ! ! if ( bStart && bStart.parentNode.nodeName.IEquals( 'blockquote' ) && !bStart.previousSibling ) --- 46,53 ---- var bStart = range.GetBookmarkNode( bookmark, true ) ; var bEnd = range.GetBookmarkNode( bookmark, false ) ; ! var cursor ; ! ! if ( bStart && bStart.parentNode.nodeName.IEquals( 'blockquote' ) && !bStart.previousSibling ) *************** *** 61,65 **** } ! if ( bEnd && bEnd.parentNode.nodeName.IEquals( 'blockquote' ) && !bEnd.previousSibling ) --- 61,65 ---- } ! if ( bEnd && bEnd.parentNode.nodeName.IEquals( 'blockquote' ) && !bEnd.previousSibling ) *************** *** 127,131 **** if ( block.nodeName.IEquals( 'blockquote' ) ) { ! var docFrag = block.ownerDocument.createDocumentFragment() ; while ( block.firstChild ) { --- 127,131 ---- if ( block.nodeName.IEquals( 'blockquote' ) ) { ! var docFrag = FCKTools.GetElementDocument( block ).createDocumentFragment() ; while ( block.firstChild ) { *************** *** 204,218 **** if ( node.nodeName.IEquals( 'div' ) ) { ! var docFrag = node.ownerDocument.createDocumentFragment() ; ! var needBeginBr = firstTime && node.previousSibling && !FCKListsLib.BlockBoundaries[node.previousSibling.nodeName.toLowerCase()] ; if ( firstTime && needBeginBr ) ! docFrag.appendChild( node.ownerDocument.createElement( 'br' ) ) ; ! var needEndBr = node.nextSibling && !FCKListsLib.BlockBoundaries[node.nextSibling.nodeName.toLowerCase()] ; while ( node.firstChild ) docFrag.appendChild( node.removeChild( node.firstChild ) ) ; if ( needEndBr ) ! docFrag.appendChild( node.ownerDocument.createElement( 'br' ) ) ; node.parentNode.replaceChild( docFrag, node ) ; firstTime = false ; --- 204,218 ---- if ( node.nodeName.IEquals( 'div' ) ) { ! var docFrag = FCKTools.GetElementDocument( node ).createDocumentFragment() ; ! var needBeginBr = firstTime && node.previousSibling && !FCKListsLib.BlockBoundaries[node.previousSibling.nodeName.toLowerCase()] ; if ( firstTime && needBeginBr ) ! docFrag.appendChild( FCKTools.GetElementDocument( node ).createElement( 'br' ) ) ; ! var needEndBr = node.nextSibling && !FCKListsLib.BlockBoundaries[node.nextSibling.nodeName.toLowerCase()] ; while ( node.firstChild ) docFrag.appendChild( node.removeChild( node.firstChild ) ) ; if ( needEndBr ) ! docFrag.appendChild( FCKTools.GetElementDocument( node ).createElement( 'br' ) ) ; node.parentNode.replaceChild( docFrag, node ) ; firstTime = false ; Index: fckspellcheckcommand_gecko.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckspellcheckcommand_gecko.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckspellcheckcommand_gecko.js 9 Feb 2008 12:53:57 -0000 1.4 --- fckspellcheckcommand_gecko.js 5 May 2008 00:35:23 -0000 1.5 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 36,39 **** FCKSpellCheckCommand.prototype.GetState = function() { return this.IsEnabled ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ; ! } \ No newline at end of file --- 36,41 ---- FCKSpellCheckCommand.prototype.GetState = function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return this.IsEnabled ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ; ! } Index: fckpasteplaintextcommand.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckpasteplaintextcommand.js,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** fckpasteplaintextcommand.js 9 Feb 2008 12:53:57 -0000 1.5 --- fckpasteplaintextcommand.js 5 May 2008 00:35:23 -0000 1.6 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 35,38 **** --- 35,40 ---- FCKPastePlainTextCommand.prototype.GetState = function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return FCK.GetNamedCommandState( 'Paste' ) ; } Index: fckshowblocks.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckshowblocks.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckshowblocks.js 9 Feb 2008 12:53:57 -0000 1.1 --- fckshowblocks.js 5 May 2008 00:35:23 -0000 1.2 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == Index: fckremoveformatcommand.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fckremoveformatcommand.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckremoveformatcommand.js 9 Feb 2008 12:53:57 -0000 1.1 --- fckremoveformatcommand.js 5 May 2008 00:35:23 -0000 1.2 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 43,45 **** return FCK.EditorWindow ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ; } ! }; \ No newline at end of file --- 43,45 ---- return FCK.EditorWindow ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ; } ! }; Index: fcklistcommands.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fcklistcommands.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fcklistcommands.js 9 Feb 2008 12:53:57 -0000 1.1 --- fcklistcommands.js 5 May 2008 00:35:23 -0000 1.2 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 146,150 **** { rangeQueue = [] ; ! var selectionObject = FCK.EditorWindow.getSelection() ; if ( selectionObject && listGroups.length == 0 ) rangeQueue.push( selectionObject.getRangeAt( 0 ) ) ; --- 146,150 ---- { rangeQueue = [] ; ! var selectionObject = FCKSelection.GetSelection() ; if ( selectionObject && listGroups.length == 0 ) rangeQueue.push( selectionObject.getRangeAt( 0 ) ) ; *************** *** 253,257 **** FCKDomTools.SetElementMarker( markerObj, itemNode, '_FCK_ListItem_Processed', true ) ; } ! var fakeParent = groupObj.root.ownerDocument.createElement( this.TagName ) ; for ( var i = 0 ; i < selectedListItems.length ; i++ ) { --- 253,257 ---- FCKDomTools.SetElementMarker( markerObj, itemNode, '_FCK_ListItem_Processed', true ) ; } ! var fakeParent = FCKTools.GetElementDocument( groupObj.root ).createElement( this.TagName ) ; for ( var i = 0 ; i < selectedListItems.length ; i++ ) { *************** *** 271,275 **** { var contents = groupObj.contents ; ! var doc = groupObj.root.ownerDocument ; var listContents = [] ; --- 271,275 ---- { var contents = groupObj.contents ; ! var doc = FCKTools.GetElementDocument( groupObj.root ) ; var listContents = [] ; Index: fck_othercommands.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fck_othercommands.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** fck_othercommands.js 9 Feb 2008 12:53:57 -0000 1.6 --- fck_othercommands.js 5 May 2008 00:35:23 -0000 1.7 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 24,28 **** // ### General Dialog Box Commands. ! var FCKDialogCommand = function( name, title, url, width, height, getStateFunction, getStateParam ) { this.Name = name ; --- 24,28 ---- // ### General Dialog Box Commands. ! var FCKDialogCommand = function( name, title, url, width, height, getStateFunction, getStateParam, customValue ) { this.Name = name ; *************** *** 31,34 **** --- 31,35 ---- this.Width = width ; this.Height = height ; + this.CustomValue = customValue ; this.GetStateFunction = getStateFunction ; *************** *** 40,44 **** FCKDialogCommand.prototype.Execute = function() { ! FCKDialog.OpenDialog( 'FCKDialog_' + this.Name , this.Title, this.Url, this.Width, this.Height, null, null, this.Resizable ) ; } --- 41,45 ---- FCKDialogCommand.prototype.Execute = function() { ! FCKDialog.OpenDialog( 'FCKDialog_' + this.Name , this.Title, this.Url, this.Width, this.Height, this.CustomValue, null, this.Resizable ) ; } *************** *** 48,52 **** return this.GetStateFunction( this.GetStateParam ) ; else ! return FCK_TRISTATE_OFF ; } --- 49,53 ---- return this.GetStateFunction( this.GetStateParam ) ; else ! return FCK.EditMode == FCK_EDITMODE_WYSIWYG ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ; } *************** *** 72,81 **** {} ! FCKFormatBlockCommand.prototype = { Name : 'FormatBlock', ! Execute : FCKStyleCommand.prototype.Execute, ! GetState : function() { --- 73,82 ---- {} ! FCKFormatBlockCommand.prototype = { Name : 'FormatBlock', ! Execute : FCKStyleCommand.prototype.Execute, ! GetState : function() { *************** *** 89,93 **** {} ! FCKFontNameCommand.prototype = { Name : 'FontName', --- 90,94 ---- {} ! FCKFontNameCommand.prototype = { Name : 'FontName', *************** *** 100,104 **** {} ! FCKFontSizeCommand.prototype = { Name : 'FontSize', --- 101,105 ---- {} ! FCKFontSizeCommand.prototype = { Name : 'FontSize', *************** *** 210,213 **** --- 211,216 ---- FCKUndoCommand.prototype.GetState = function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return ( FCKUndo.CheckUndoState() ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ) ; } *************** *** 226,229 **** --- 229,234 ---- FCKRedoCommand.prototype.GetState = function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return ( FCKUndo.CheckRedoState() ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ) ; } *************** *** 253,260 **** oRange.MoveToSelection() ; var oSplitInfo = oRange.SplitBlock() ; ! if ( oSplitInfo.NextBlock ) ! oSplitInfo.NextBlock.parentNode.insertBefore( oFakeImage, oSplitInfo.NextBlock ) ; ! else ! oSplitInfo.PreviousBlock.parentNode.insertBefore( oFakeImage, oSplitInfo.PreviousBlock.nextSibling ) ; FCK.Events.FireEvent( 'OnSelectionChange' ) ; --- 258,262 ---- oRange.MoveToSelection() ; var oSplitInfo = oRange.SplitBlock() ; ! oRange.InsertNode( oFakeImage ) ; FCK.Events.FireEvent( 'OnSelectionChange' ) ; *************** *** 263,266 **** --- 265,270 ---- FCKPageBreakCommand.prototype.GetState = function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return 0 ; // FCK_TRISTATE_OFF } *************** *** 286,290 **** return ; } ! FCK.ExecuteNamedCommand( this.Name ) ; } --- 290,294 ---- return ; } ! FCK.ExecuteNamedCommand( this.Name ) ; } *************** *** 292,295 **** --- 296,301 ---- FCKUnlinkCommand.prototype.GetState = function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; var state = FCK.GetNamedCommandState( this.Name ) ; *************** *** 337,340 **** --- 343,348 ---- FCKSelectAllCommand.prototype.GetState = function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return FCK_TRISTATE_OFF ; } *************** *** 358,361 **** --- 366,371 ---- GetState : function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return FCK.GetNamedCommandState( 'Paste' ) ; } *************** *** 378,402 **** GetState : function() { return FCK.GetNamedCommandState( 'InsertHorizontalRule' ) ; } } ; ! // FCKCopyCommand ! var FCKCopyCommand = function() { ! this.Name = 'Copy' ; } ! FCKCopyCommand.prototype = { Execute : function() { ! FCK.ExecuteNamedCommand( this.Name ) ; }, GetState : function() { ! // Strangely, the cut command happens to have the correct states for both Copy and Cut in all browsers. ! return FCK.GetNamedCommandState( 'Cut' ) ; } }; --- 388,448 ---- GetState : function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return FCK.GetNamedCommandState( 'InsertHorizontalRule' ) ; } } ; ! // FCKCutCopyCommand ! var FCKCutCopyCommand = function( isCut ) { ! this.Name = isCut ? 'Cut' : 'Copy' ; } ! FCKCutCopyCommand.prototype = { Execute : function() { ! var enabled = false ; ! ! if ( FCKBrowserInfo.IsIE ) ! { ! // The following seems to be the only reliable way to detect that ! // cut/copy is enabled in IE. It will fire the oncut/oncopy event ! // only if the security settings enabled the command to execute. ! ! var onEvent = function() ! { ! enabled = true ; ! } ; ! ! var eventName = 'on' + this.Name.toLowerCase() ; ! ! FCK.EditorDocument.body.attachEvent( eventName, onEvent ) ; ! FCK.ExecuteNamedCommand( this.Name ) ; ! FCK.EditorDocument.body.detachEvent( eventName, onEvent ) ; ! } ! else ! { ! try ! { ! // Other browsers throw an error if the command is disabled. ! FCK.ExecuteNamedCommand( this.Name ) ; ! enabled = true ; ! } ! catch(e){} ! } ! ! if ( !enabled ) ! alert( FCKLang[ 'PasteError' + this.Name ] ) ; }, GetState : function() { ! // Strangely, the Cut command happens to have the correct states for ! // both Copy and Cut in all browsers. ! return FCK.EditMode != FCK_EDITMODE_WYSIWYG ? ! FCK_TRISTATE_DISABLED : ! FCK.GetNamedCommandState( 'Cut' ) ; } }; *************** *** 407,411 **** } ! FCKAnchorDeleteCommand.prototype = { Execute : function() --- 453,457 ---- } ! FCKAnchorDeleteCommand.prototype = { Execute : function() *************** *** 466,469 **** --- 512,517 ---- GetState : function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return FCK.GetNamedCommandState( 'Unlink') ; } Index: fcktextcolorcommand.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/commandclasses/fcktextcolorcommand.js,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** fcktextcolorcommand.js 9 Feb 2008 12:53:57 -0000 1.5 --- fcktextcolorcommand.js 5 May 2008 00:35:23 -0000 1.6 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 40,46 **** this._Panel = new FCKPanel( oWindow ) ; ! this._Panel.AppendStyleSheet( FCKConfig.SkinPath + 'fck_editor.css' ) ; this._Panel.MainNode.className = 'FCK_Panel' ; this._CreatePanelBody( this._Panel.Document, this._Panel.MainNode ) ; FCKTools.DisableSelection( this._Panel.Document.body ) ; --- 40,47 ---- this._Panel = new FCKPanel( oWindow ) ; ! this._Panel.AppendStyleSheet( FCKConfig.SkinEditorCSS ) ; this._Panel.MainNode.className = 'FCK_Panel' ; this._CreatePanelBody( this._Panel.Document, this._Panel.MainNode ) ; + FCK.ToolbarSet.ToolbarItems.GetItem( this.Name ).RegisterPanel( this._Panel ) ; FCKTools.DisableSelection( this._Panel.Document.body ) ; *************** *** 76,79 **** --- 77,82 ---- FCKTextColorCommand.prototype.GetState = function() { + if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) + return FCK_TRISTATE_DISABLED ; return FCK_TRISTATE_OFF ; } *************** *** 107,111 **** this.className = 'ColorDeselected' ; command._Panel.Hide() ; ! FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 400, 330, FCKTools.Hitch(command, 'SetColor') ) ; } --- 110,115 ---- this.className = 'ColorDeselected' ; command._Panel.Hide() ; ! FCKDialog.OpenDialog( 'FCKDialog_Color', FCKLang.DlgColorTitle, 'dialog/fck_colorselector.html', 410, 320, ! FCKTools.Bind( command, command.SetColor ) ) ; } From blaine at qs1489.pair.com Sun May 4 20:35:27 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Mon, 05 May 2008 00:35:27 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/_source fckconstants.js, 1.3, 1.4 fckeditorapi.js, 1.4, 1.5 fckjscoreextensions.js, 1.3, 1.4 fckscriptloader.js, 1.1, 1.2 Message-ID: <20080505003528.26D9E10FE18@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source In directory qs1489.pair.com:/tmp/cvs-serv85146/editor/_source Modified Files: fckconstants.js fckeditorapi.js fckjscoreextensions.js fckscriptloader.js Log Message: Upgraded the FCKeditor to version 2.6 Final - latest release April 7/08 Index: fckscriptloader.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/fckscriptloader.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fckscriptloader.js 9 Feb 2008 12:53:57 -0000 1.1 --- fckscriptloader.js 5 May 2008 00:35:24 -0000 1.2 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 41,44 **** --- 41,46 ---- return ; + FCKScriptLoader._LoadedScripts[ scriptName ] = true ; + var oScriptInfo = this._Scripts[ scriptName ] ; *************** *** 66,71 **** this._LoadScript( sBaseScriptName + '_gecko.js' ) ; } - - FCKScriptLoader._LoadedScripts[ scriptName ] = true ; } --- 68,71 ---- *************** *** 111,115 **** FCKScriptLoader.AddScript( 'FCKConfig' , 'internals/' , ['FCKBrowserInfo','FCKConstants'] ) ; FCKScriptLoader.AddScript( 'FCKDebug' , 'internals/' , ['FCKConfig'] ) ; ! FCKScriptLoader.AddScript( 'FCKDomTools' , 'internals/' , ['FCKJSCoreExtensions','FCKBrowserInfo','FCKTools'], FCK_GENERIC ) ; FCKScriptLoader.AddScript( 'FCKListsLib' , 'internals/' ) ; FCKScriptLoader.AddScript( 'FCKListHandler' , 'internals/' , ['FCKConfig', 'FCKDocumentFragment', 'FCKJSCoreExtensions','FCKDomTools'], FCK_GENERIC ) ; --- 111,115 ---- FCKScriptLoader.AddScript( 'FCKConfig' , 'internals/' , ['FCKBrowserInfo','FCKConstants'] ) ; FCKScriptLoader.AddScript( 'FCKDebug' , 'internals/' , ['FCKConfig'] ) ; ! FCKScriptLoader.AddScript( 'FCKDomTools' , 'internals/' , ['FCKJSCoreExtensions','FCKBrowserInfo','FCKTools','FCKDomRange'], FCK_GENERIC ) ; FCKScriptLoader.AddScript( 'FCKListsLib' , 'internals/' ) ; FCKScriptLoader.AddScript( 'FCKListHandler' , 'internals/' , ['FCKConfig', 'FCKDocumentFragment', 'FCKJSCoreExtensions','FCKDomTools'], FCK_GENERIC ) ; Index: fckjscoreextensions.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/fckjscoreextensions.js,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** fckjscoreextensions.js 9 Feb 2008 12:53:57 -0000 1.3 --- fckjscoreextensions.js 5 May 2008 00:35:24 -0000 1.4 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 139,146 **** if ( typeof replacement == 'function' ) { ! return this.replace( regExp, ! function() ! { ! return replacement.apply( thisObj || this, arguments ) ; } ) ; } --- 139,146 ---- if ( typeof replacement == 'function' ) { ! return this.replace( regExp, ! function() ! { ! return replacement.apply( thisObj || this, arguments ) ; } ) ; } Index: fckeditorapi.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/fckeditorapi.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** fckeditorapi.js 9 Feb 2008 12:53:57 -0000 1.4 --- fckeditorapi.js 5 May 2008 00:35:24 -0000 1.5 *************** *** 1,5 **** /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 36,58 **** // from a freed script" error). ! // Note: we check the existence of oEditor.GetParentForm because some external ! // code (like JSON) can extend the Object prototype and we get then extra oEditor // objects that aren't really FCKeditor instances. var sScript = ! 'var FCKeditorAPI = {' + ! 'Version : "2.5.1",' + ! 'VersionBuild : "17566",' + ! '__Instances : new Object(),' + 'GetInstance : function( name )' + '{' + ! 'return this.__Instances[ name ];' + '},' + '_FormSubmit : function()' + '{' + ! 'for ( var name in FCKeditorAPI.__Instances )' + '{' + ! 'var oEditor = FCKeditorAPI.__Instances[ name ] ;' + 'if ( oEditor.GetParentForm && oEditor.GetParentForm() == this )' + 'oEditor.UpdateLinkedField() ;' + --- 36,58 ---- // from a freed script" error). ! // Note: we check the existence of oEditor.GetParentForm because some external ! // code (like JSON) can extend the Object prototype and we get then extra oEditor // objects that aren't really FCKeditor instances. var sScript = ! 'window.FCKeditorAPI = {' + ! 'Version : "2.6",' + ! 'VersionBuild : "18638",' + ! 'Instances : new Object(),' + 'GetInstance : function( name )' + '{' + ! 'return this.Instances[ name ];' + '},' + '_FormSubmit : function()' + '{' + ! 'for ( var name in FCKeditorAPI.Instances )' + '{' + ! 'var oEditor = FCKeditorAPI.Instances[ name ] ;' + 'if ( oEditor.GetParentForm && oEditor.GetParentForm() == this )' + 'oEditor.UpdateLinkedField() ;' + *************** *** 112,115 **** --- 112,119 ---- eval.call( oParentWindow, sScript ) ; } + else if( FCKBrowserInfo.IsAIR ) + { + FCKAdobeAIR.FCKeditorAPI_Evaluate( oParentWindow, sScript ) ; + } else if ( FCKBrowserInfo.IsSafari || FCKBrowserInfo.IsGecko19 ) { *************** *** 126,133 **** FCKeditorAPI = oParentWindow.FCKeditorAPI ; } // Add the current instance to the FCKeditorAPI's instances collection. ! FCKeditorAPI.__Instances[ FCK.Name ] = FCK ; } --- 130,141 ---- FCKeditorAPI = oParentWindow.FCKeditorAPI ; + + // The __Instances properly has been changed to the public Instances, + // but we should still have the "deprecated" version of it. + FCKeditorAPI.__Instances = FCKeditorAPI.Instances ; } // Add the current instance to the FCKeditorAPI's instances collection. ! FCKeditorAPI.Instances[ FCK.Name ] = FCK ; } *************** *** 159,163 **** if ( ! window.FCKUnloadFlag ) return ; ! delete FCKeditorAPI.__Instances[ FCK.Name ] ; } function FCKeditorAPI_ConfirmCleanup() --- 167,171 ---- if ( ! window.FCKUnloadFlag ) return ; ! delete FCKeditorAPI.Instances[ FCK.Name ] ; } function FCKeditorAPI_ConfirmCleanup() *************** *** 165,168 **** window.FCKUnloadFlag = true ; } ! FCKTools.AddEventListener( window, 'unload', FCKeditorAPI_Cleanup ) ; FCKTools.AddEventListener( window, 'beforeunload', FCKeditorAPI_ConfirmCleanup) ; --- 173,176 ---- window.FCKUnloadFlag = true ; } ! FCKTools.AddEventListener( window, 'unload', FCKeditorAPI_Cleanup ) ; FCKTools.AddEventListener( window, 'beforeunload', FCKeditorAPI_ConfirmCleanup) ; Index: fckconstants.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/_source/fckconstants.js,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** fckconstants.js 9 Feb 2008 12:53:57 -0000 1.3 --- fckconstants.js 5 May 2008 00:35:24 -0000 1.4 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == From blaine at qs1489.pair.com Sun May 4 20:35:27 2008 From: blaine at qs1489.pair.com (Blaine Lang) Date: Mon, 05 May 2008 00:35:27 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/fckeditor/editor/dialog/common fck_dialog_common.css, 1.7, 1.8 fck_dialog_common.js, 1.5, 1.6 Message-ID: <20080505003528.3486C10FE1D@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/dialog/common In directory qs1489.pair.com:/tmp/cvs-serv85146/editor/dialog/common Modified Files: fck_dialog_common.css fck_dialog_common.js Log Message: Upgraded the FCKeditor to version 2.6 Final - latest release April 7/08 Index: fck_dialog_common.js =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/fckeditor/editor/dialog/common/fck_dialog_common.js,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** fck_dialog_common.js 9 Feb 2008 12:53:57 -0000 1.5 --- fck_dialog_common.js 5 May 2008 00:35:24 -0000 1.6 *************** *** 1,5 **** ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == --- 1,5 ---- ???/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net ! * Copyright (C) 2003-2008 Frederico Caldeira Knabben * * == BEGIN LICENSE == *************** *** 20,25 **** --- 20,65 ---- * * Useful functions used by almost all dialog window pages. + * Dialogs should link to this file as the very first script on the page. */ + // Automatically detect the correct document.domain (#123). + (function() + { + var d = document.domain ; + + while ( true ) + { + // Test if we can access a parent property. + try + { + var test = window.parent.document.domain ; + break ; + } + catch( e ) {} + + // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... + d = d.replace( /.*?(?:\.|$)/, '' ) ; + + if ( d.length == 0 ) + break ; // It was not able to detect the domain. + + try + { + document.domain = d ; + } + catch (e) + { + break ; + } + } + })() ; + + // Attention: FCKConfig must be available in the page. + function GetCommonDialogCss( prefix ) + { + // CSS minified by http://iceyboard.no-ip.org/projects/css_compressor + return FCKConfig.BasePath + 'dialog/common/' + '|.ImagePreviewArea{border:#000 1px solid;overflow:auto;width:100%;height:170px;background-color:#fff}.FlashPreviewArea{border:#000 1px solid;padding:5px;overflow:auto;width:100%;height:170px;background-color:#fff}.BtnReset{float:left;background-position:center center;background-image:url(images/reset.gif);width:16px;height:16px;background-repeat:no-repeat;border:1px none;font-size:1px}.BtnLocked,.BtnUnlocked{float:left;background-position:center center;background-image:url(images/locked.gif);width:16px;height:16px;background-repeat:no-repeat;border:none 1px;font-size:1px}.BtnUnlocked{background-image:url(images/unlocked.gif)}.BtnOver{border:outset 1px;cursor:pointer;cursor:hand}' ; + } + // Gets a element by its Id. Used for shorter coding. function GetE( elementId ) *************** *** 58,89 **** } ! var KeyIdentifierMap = { ! End : 35, ! Home : 36, ! Left : 37, ! Right : 39, ! 'U+00007F' : 46 // Delete ! } // Functions used by text fields to accept numbers only. ! function IsDigit( e ) ! { ! if ( !e ) ! e = event ; ! var iCode = ( e.keyCode || e.charCode ) ; ! ! if ( !iCode && e.keyIdentifier && ( e.keyIdentifier in KeyIdentifierMap ) ) ! iCode = KeyIdentifierMap[ e.keyIdentifier ] ; ! return ( ! ( iCode >= 48 && iCode <= 57 ) // Numbers ! || (iCode >= 35 && iCode <= 40) // Arrows, Home, End ! || iCode == 8 // Backspace ! || iCode == 46 // Delete ! || iCode == 9 // Tab ! ) ; ! } String.prototype.Trim = function() --- 98,142 ---- } ! function SelectField( elementId ) { ! var element = GetE( elementId ) ; ! element.focus() ; ! ! // element.select may not be available for some fields (like
          --- 264,276 ---- trackback URL matches the IP address that sent the trackback. Trackbacks that fail any of these tests are usually spam. Please refer to the documentation for the ! configuration for more information.

          Configuration File

          !

          The Spam-X plugin's configuration can be changed from the Configuration admin ! panel:

          ! !

          Spam-X Main Settings

          *************** *** 275,284 **** ! ! ! --- 280,287 ---- ! ! ! *************** *** 292,299 **** ! ! ! --- 295,301 ---- ! ! ! *************** *** 304,310 **** ! ! !
          action128This only exists as a fallback in case $_CONF['spamx'] in Geeklog's main ! config.php is not set. I.e. $_CONF['spamx'] takes ! precedence.
          loggingtrueWhether to log recognized spam posts in the spamx.log logfile ! (if set to true) or not (false).
          loggingtrueWhether to log recognized spam posts in the spamx.log logfile ! (if set to true) or not (false).
          timeout5Timeout (in seconds) for contacting external services such as SLV.
          timeout5Timeout (in seconds) for contacting external services such as SLV.
          --- 306,315 ---- ! action ! 128 ! This only exists as a fallback in case $_CONF['spamx'] in Geeklog's main ! configuration is not set. I.e. $_CONF['spamx'] takes ! precedence. Index: theme.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/theme.html,v retrieving revision 1.79 retrieving revision 1.80 diff -C2 -d -r1.79 -r1.80 *** theme.html 10 May 2008 15:02:14 -0000 1.79 --- theme.html 10 May 2008 16:35:22 -0000 1.80 *************** *** 147,151 ****

          Left blocks in the right column: ! $_CONF['left_blocks_in_footer'] (in config.php) is a rather curious option. It makes the {left_blocks} variable available in the site's footer (i.e. footer.thtml) while at the same --- 147,151 ----

          Left blocks in the right column: ! $_CONF['left_blocks_in_footer'] is a rather curious option. It makes the {left_blocks} variable available in the site's footer (i.e. footer.thtml) while at the same *************** *** 160,167 **** blocks, will actually be displayed on the right.
          The theme's header.thtml, footer.thtml, and ! leftblocks.thtml will probably need some adjustments. It is also ! recommended to leave the $_CONF variable unchanged in ! config.php and overwrite it in the theme's functions.php ! instead. That way, you can even leave your users a choice between, for example, a "normal" theme and one with the blocks on the right.

          --- 160,167 ---- blocks, will actually be displayed on the right.
          The theme's header.thtml, footer.thtml, and ! leftblocks.thtml will probably need some adjustments. The ! 'left_blocks_in_footer' option is therefore not available in the main ! configuration but should instead be set in the theme's functions.php ! file. That way, you can even leave your users a choice between, for example, a "normal" theme and one with the blocks on the right.

          *************** *** 866,871 ****
        • In the Classic and Digital Monochrome themes the "contact" link now points to the form to send an email to the admin user instead of using a ! mailto: link with the site's email address from ! config.php.
        --- 866,871 ----
      5. In the Classic and Digital Monochrome themes the "contact" link now points to the form to send an email to the admin user instead of using a ! mailto: link with the site's email address from the ! configuration.
      6. Index: polls.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/polls.html,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** polls.html 5 Aug 2007 09:33:02 -0000 1.6 --- polls.html 10 May 2008 16:35:22 -0000 1.7 *************** *** 15,21 **** moved to a plugin as of Geeklog 1.4.0.

        !

        Configuration File

        !

        The polls plugin has its own configuration file, located at /path/to/geeklog/plugins/polls/config.php. There you will find the following options:

        --- 15,24 ---- moved to a plugin as of Geeklog 1.4.0.

        !

        Configuration

        !

        The Polls plugin's configuration can be changed from the Configuration admin ! panel:

        ! !

        General Polls Settings

        *************** *** 31,35 **** Please note that $_CONF['loginrequired'] in ! config.php takes precedence over this setting. So when 'loginrequired' is set to 1, anonymous users can not access the recent polls even when 'pollsloginrequired' is set --- 34,38 ---- Please note that $_CONF['loginrequired'] in ! Geeklog's main configuration takes precedence over this setting. So when 'loginrequired' is set to 1, anonymous users can not access the recent polls even when 'pollsloginrequired' is set *************** *** 43,51 **** ! ! --- 46,59 ---- ! ! + + + + + *************** *** 53,67 **** in which they were entered ('submitorder'). ! ! ! --- 61,75 ---- in which they were entered ('submitorder'). ! ! ! *************** *** 71,74 **** --- 79,94 ---- are deleted, including all the comments posted on that poll. + + + + +
        maxanswers 10Maximum number of possible answers for the poll editor.
        answerorder submitorder
        maxquestions 10Maximum number of questions in a poll.
        maxanswers10Maximum number of options per question.
        answerorder submitorder
        pollcookietime 86400 Number of seconds to set a poll answer cookie to time out on.
        polladdresstime 604800 Number of seconds to set a poll answer IP address to time out on.
        delete_polls 0
        pollcookietime 86400 Number of seconds to set a poll answer cookie to time out on.
        polladdresstime 604800 Number of seconds to set a poll answer IP address to time out on.
        delete_polls 0
        aftersave'list'Which page to go to after a poll has been saved: +
          +
        • 'item': display the poll
        • +
        • 'list': show admin's list of polls (default)
        • +
        • 'plugin': display the public list of polls
        • +
        • 'home': display the site's homepage
        • +
        • 'admin': go to the "Admin Home" page, i.e. Command & Control
        • +
        *************** *** 90,97 ****

        The amount of time your cookie and IP are stored can be changed in the polls ! plugin's config.php:

        !
        $_PO_CONF['pollcookietime']    = 86400;
        ! $_PO_CONF['polladdresstime']   = 604800;

        Both times are in seconds, i.e. the cookie is valid for 24 hours and the IP --- 110,117 ----

        The amount of time your cookie and IP are stored can be changed in the polls ! plugin's configuration (see above):

        !
        $_PO_CONF['pollcookietime']    = 86400;
        ! $_PO_CONF['polladdresstime']   = 604800;

        Both times are in seconds, i.e. the cookie is valid for 24 hours and the IP Index: themevars.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/themevars.html,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** themevars.html 5 Aug 2007 09:33:02 -0000 1.20 --- themevars.html 10 May 2008 16:35:22 -0000 1.21 *************** *** 50,55 **** http://www.example.com The URL of your Geeklog site (the exact same URL you specified in ! $_CONF['site_url'] in your config.php ! file). layout_url http://www.example.com/layout/professional --- 50,54 ---- http://www.example.com The URL of your Geeklog site (the exact same URL you specified in ! $_CONF['site_url'] in the configuration. layout_url http://www.example.com/layout/professional *************** *** 157,162 **** http://www.example.com The URL of your Geeklog site (the exact same URL you specified in ! $_CONF['site_url'] in your config.php ! file). layout_url http://www.example.com/layout/professional --- 156,160 ---- http://www.example.com The URL of your Geeklog site (the exact same URL you specified in ! $_CONF['site_url'] in the configuration. layout_url http://www.example.com/layout/professional *************** *** 286,290 ****

        The following variables are only available when ! $_CONF['contributedbyline'] = 1; in your config.php, i.e. when you allow the name of the story's author to be displayed:

        --- 284,288 ----

        The following variables are only available when ! $_CONF['contributedbyline'] = 1; in the configuration, i.e. when you allow the name of the story's author to be displayed:

        Index: calendar.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/calendar.html,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** calendar.html 10 May 2008 15:02:14 -0000 1.11 --- calendar.html 10 May 2008 16:35:22 -0000 1.12 *************** *** 33,37 **** Please note that $_CONF['loginrequired'] in ! config.php takes precedence over this setting. So when 'loginrequired' is set to 1, anonymous users can not access the calendar even when 'calendarloginrequired' is set --- 33,37 ---- Please note that $_CONF['loginrequired'] in ! Geeklog's main configuration takes precedence over this setting. So when 'loginrequired' is set to 1, anonymous users can not access the calendar even when 'calendarloginrequired' is set *************** *** 114,123 ****

        Other Options

        !

        Please note that some of the options from Geeklog's main config.php are also relevant for the calendar plugin:

        • Times and dates are formatted according to the current language and the locale settings from Geeklog's main ! config.php.
        --- 114,123 ----

        Other Options

        !

        Please note that some of the options from Geeklog's main configuration are also relevant for the calendar plugin:

        • Times and dates are formatted according to the current language and the locale settings from Geeklog's main ! configuration.
        Index: config.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/config.html,v retrieving revision 1.87 retrieving revision 1.88 diff -C2 -d -r1.87 -r1.88 *** config.html 3 May 2008 11:23:50 -0000 1.87 --- config.html 10 May 2008 16:35:22 -0000 1.88 *************** *** 1486,1490 ****

        Locale and Date Formats

        !

        You can set the locale and date format in the config.php file. To set the locale, set the variable to the proper string or if you leave it blank it will pull the default locale from the operating system. The date formats --- 1486,1490 ----

        Locale and Date Formats

        !

        You can set the locale and date format in the configuration. To set the locale, set the variable to the proper string or if you leave it blank it will pull the default locale from the operating system. The date formats From dhaun at qs1489.pair.com Sat May 10 12:51:48 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 10 May 2008 16:51:48 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional style.css, 1.98, 1.99 Message-ID: <20080510165148.DF56510FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional In directory qs1489.pair.com:/tmp/cvs-serv90085 Modified Files: style.css Log Message: We shouldn't need to set text-align:left for the ; it also conflicts with the dir attribute if dir="rtl" Index: style.css =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/style.css,v retrieving revision 1.98 retrieving revision 1.99 diff -C2 -d -r1.98 -r1.99 *** style.css 5 May 2008 18:05:35 -0000 1.98 --- style.css 10 May 2008 16:51:46 -0000 1.99 *************** *** 61,65 **** padding-left:1px; padding-right:1px; - text-align:left; } fieldset { --- 61,64 ---- From dhaun at qs1489.pair.com Sat May 10 17:03:25 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 10 May 2008 21:03:25 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/links/language README,1.1,1.2 Message-ID: <20080510210325.0526A10FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/links/language In directory qs1489.pair.com:/tmp/cvs-serv99299/plugins/links/language Modified Files: README Log Message: Removed references to config.php Index: README =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/language/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README 22 May 2005 18:23:16 -0000 1.1 --- README 10 May 2008 21:03:22 -0000 1.2 *************** *** 1,5 **** ! This directory contains the language files for the polls plugin. The plugin will pick the appropriate language file automatically based on the ! language settings in your user settings or the default language in config.php. If there is no language file for your language, then the plugin will revert --- 1,5 ---- ! This directory contains the language files for the links plugin. The plugin will pick the appropriate language file automatically based on the ! language settings in your user settings or the default language. If there is no language file for your language, then the plugin will revert From dhaun at qs1489.pair.com Sat May 10 17:03:24 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 10 May 2008 21:03:24 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/calendar/language README, 1.1, 1.2 Message-ID: <20080510210324.EDDFC10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/language In directory qs1489.pair.com:/tmp/cvs-serv99299/plugins/calendar/language Modified Files: README Log Message: Removed references to config.php Index: README =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/language/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README 8 Mar 2006 13:23:25 -0000 1.1 --- README 10 May 2008 21:03:22 -0000 1.2 *************** *** 1,5 **** ! This directory contains the language files for the calendarplugin. The plugin will pick the appropriate language file automatically based on the ! language settings in your user settings or the default language in config.php. If there is no language file for your language, then the plugin will revert --- 1,5 ---- ! This directory contains the language files for the calendar plugin. The plugin will pick the appropriate language file automatically based on the ! language settings in your user settings or the default language. If there is no language file for your language, then the plugin will revert From dhaun at qs1489.pair.com Sat May 10 17:03:25 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 10 May 2008 21:03:25 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/staticpages/language README, 1.3, 1.4 Message-ID: <20080510210325.2060310FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/language In directory qs1489.pair.com:/tmp/cvs-serv99299/plugins/staticpages/language Modified Files: README Log Message: Removed references to config.php Index: README =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/language/README,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** README 9 Mar 2003 11:47:22 -0000 1.3 --- README 10 May 2008 21:03:23 -0000 1.4 *************** *** 1,5 **** This directory contains the language files for the Static Pages plugin. The plugin will pick the appropriate language file automatically based on the ! language settings in your user settings or the default language in config.php. If there is no language file for your language, then the plugin will revert --- 1,5 ---- This directory contains the language files for the Static Pages plugin. The plugin will pick the appropriate language file automatically based on the ! language settings in your user settings or the default language. If there is no language file for your language, then the plugin will revert From dhaun at qs1489.pair.com Sat May 10 17:03:25 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 10 May 2008 21:03:25 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html lib-common.php,1.696,1.697 Message-ID: <20080510210325.3D47610FE17@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html In directory qs1489.pair.com:/tmp/cvs-serv99299/public_html Modified Files: lib-common.php Log Message: Removed references to config.php Index: lib-common.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v retrieving revision 1.696 retrieving revision 1.697 diff -C2 -d -r1.696 -r1.697 *** lib-common.php 10 May 2008 07:56:41 -0000 1.696 --- lib-common.php 10 May 2008 21:03:23 -0000 1.697 *************** *** 3768,3772 **** * * Returns what HTML tags the system allows to be used inside content. ! * You can modify this by changing $_CONF['user_html'] in config.php * (for admins, see also $_CONF['admin_html']). * --- 3768,3772 ---- * * Returns what HTML tags the system allows to be used inside content. ! * You can modify this by changing $_CONF['user_html'] in the configuration * (for admins, see also $_CONF['admin_html']). * *************** *** 6437,6441 **** * Uses (if available, and in this order) * - $LANG_CHARSET (from the current language file) ! * - $_CONF['default_charset'] (from config.php) * - 'iso-8859-1' (hard-coded fallback) * --- 6437,6441 ---- * Uses (if available, and in this order) * - $LANG_CHARSET (from the current language file) ! * - $_CONF['default_charset'] (from siteconfig.php) * - 'iso-8859-1' (hard-coded fallback) * From dhaun at qs1489.pair.com Sat May 10 17:03:25 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 10 May 2008 21:03:25 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional README, 1.2, 1.3 Message-ID: <20080510210325.54DA210FE19@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional In directory qs1489.pair.com:/tmp/cvs-serv99299/public_html/layout/professional Modified Files: README Log Message: Removed references to config.php Index: README =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/README,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** README 9 Oct 2004 19:18:20 -0000 1.2 --- README 10 May 2008 21:03:23 -0000 1.3 *************** *** 181,185 **** If you would like to change the theme for your self alone, go into your preferences and change the look. If you would like to make the entire ! site pick up on the change go into your Geeklog/config.php and change the default theme to the name of the theme "professional". --- 181,185 ---- If you would like to change the theme for your self alone, go into your preferences and change the look. If you would like to make the entire ! site pick up on the change go into your Configuration panel and change the default theme to the name of the theme "professional". *************** *** 202,204 **** ! Thank you for choosing Professional_139 AKA Professional \ No newline at end of file --- 202,204 ---- ! Thank you for choosing Professional_139 AKA Professional From dhaun at qs1489.pair.com Sat May 10 17:03:25 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 10 May 2008 21:03:25 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls/language README,1.1,1.2 Message-ID: <20080510210325.12B6910FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls/language In directory qs1489.pair.com:/tmp/cvs-serv99299/plugins/polls/language Modified Files: README Log Message: Removed references to config.php Index: README =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/language/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README 7 Jun 2005 18:55:45 -0000 1.1 --- README 10 May 2008 21:03:23 -0000 1.2 *************** *** 1,5 **** This directory contains the language files for the polls plugin. The plugin will pick the appropriate language file automatically based on the ! language settings in your user settings or the default language in config.php. If there is no language file for your language, then the plugin will revert --- 1,5 ---- This directory contains the language files for the polls plugin. The plugin will pick the appropriate language file automatically based on the ! language settings in your user settings or the default language. If there is no language file for your language, then the plugin will revert From dhaun at qs1489.pair.com Sat May 10 17:03:25 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sat, 10 May 2008 21:03:25 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install configinfo.php, 1.5, 1.6 Message-ID: <20080510210325.47CA910FE18@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install In directory qs1489.pair.com:/tmp/cvs-serv99299/public_html/admin/install Modified Files: configinfo.php Log Message: Removed references to config.php Index: configinfo.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/configinfo.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** configinfo.php 6 Sep 2006 05:31:00 -0000 1.5 --- configinfo.php 10 May 2008 21:03:23 -0000 1.6 *************** *** 3,13 **** /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Geeklog 1.4 | // +---------------------------------------------------------------------------+ // | configinfo.php | // | | ! // | Display contents of config.php | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2002-2006 by the following authors: | // | | // | Authors: Jeffrey Schoolcraft - dream AT dr3amscap3 DOT com | --- 3,13 ---- /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Geeklog 1.5 | // +---------------------------------------------------------------------------+ // | configinfo.php | // | | ! // | Display current configuration settings | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2002-2008 by the following authors: | // | | // | Authors: Jeffrey Schoolcraft - dream AT dr3amscap3 DOT com | *************** *** 35,51 **** /** * This script will display file and permission information based on settings in ! * config.php This is meant to be as a support tool when asked questions in #geeklog ! * * ! * @author Jeffrey Schoolcraft * */ ! if (file_exists ('../../../config.php')) { ! require_once('../../../config.php'); ! } else if (file_exists ('../../lib-common.php')) { ! require_once('../../lib-common.php'); } else { ! die ("Sorry, config.php not found ..."); } --- 35,49 ---- /** * This script will display file and permission information based on settings in ! * the configuration. This is meant to be used as a support tool when asked ! * questions in #geeklog. * ! * @author Jeffrey Schoolcraft * */ ! if (file_exists('../../lib-common.php')) { ! require_once '../../lib-common.php'; } else { ! die("Sorry, lib-common.php not found ..."); } *************** *** 53,58 **** $highlight_off = '#D9D9D9'; ! if (isset ($_CONF['site_url']) && ! strpos ($_CONF['site_url'], 'example.com') === false) { $docs = $_CONF['site_url'] . '/docs/config.html#desc_'; } else { --- 51,56 ---- $highlight_off = '#D9D9D9'; ! if (isset($_CONF['site_url']) && ! strpos($_CONF['site_url'], 'example.com') === false) { $docs = $_CONF['site_url'] . '/docs/config.html#desc_'; } else { *************** *** 60,65 **** } ! if (isset ($_CONF['mail_settings']['password'])) { ! unset ($_CONF['mail_settings']['password']); } --- 58,63 ---- } ! if (isset($_CONF['mail_settings']['password'])) { ! unset($_CONF['mail_settings']['password']); } *************** *** 68,72 **** $display .= ''; ! foreach($_CONF as $option => $value) { $display .= ' $value) { $display .= ' From dhaun at qs1489.pair.com Sun May 11 03:07:22 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 11 May 2008 07:07:22 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes config.class.php, 1.39, 1.40 Message-ID: <20080511070722.3C6D610FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes In directory qs1489.pair.com:/tmp/cvs-serv21175/system/classes Modified Files: config.class.php Log Message: Don't include the 'subgroup' and 'fieldset' entries in the $_CONF arrays Index: config.class.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/config.class.php,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** config.class.php 3 May 2008 15:09:13 -0000 1.39 --- config.class.php 11 May 2008 07:07:20 -0000 1.40 *************** *** 109,113 **** global $_TABLES; ! $sql_query = "SELECT name, value, group_name FROM {$_TABLES['conf_values']}"; $result = DB_query($sql_query); while ($row = DB_fetchArray($result)) { --- 109,113 ---- global $_TABLES; ! $sql_query = "SELECT name, value, group_name FROM {$_TABLES['conf_values']} WHERE (type <> 'subgroup') AND (type <> 'fieldset')"; $result = DB_query($sql_query); while ($row = DB_fetchArray($result)) { From dhaun at qs1489.pair.com Sun May 11 03:07:22 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 11 May 2008 07:07:22 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs history,1.625,1.626 Message-ID: <20080511070722.2BD5810FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv21175/public_html/docs Modified Files: history Log Message: Don't include the 'subgroup' and 'fieldset' entries in the $_CONF arrays Index: history =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/history,v retrieving revision 1.625 retrieving revision 1.626 diff -C2 -d -r1.625 -r1.626 *** history 10 May 2008 08:42:59 -0000 1.625 --- history 11 May 2008 07:07:20 -0000 1.626 *************** *** 12,15 **** --- 12,17 ---- Other changes: + - Don't include the (internal) 'subgroup' and 'fieldset' entries in the $_CONF + arrays [Dirk] - Removed an extra } from the Static Pages staticpage.thtml template file (reported by Markus Wollschl?ger) [Dirk] From dhaun at qs1489.pair.com Sun May 11 03:25:10 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 11 May 2008 07:25:10 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin/install configinfo.php, 1.6, 1.7 index.php, 1.39, 1.40 Message-ID: <20080511072510.3866B10FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install In directory qs1489.pair.com:/tmp/cvs-serv21904/public_html/admin/install Modified Files: configinfo.php index.php Log Message: Eliminated some more references to config.php Index: configinfo.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/configinfo.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** configinfo.php 10 May 2008 21:03:23 -0000 1.6 --- configinfo.php 11 May 2008 07:25:08 -0000 1.7 *************** *** 62,66 **** } ! $display = "\nconfig.php\n\n"; $n = 0; $display .= '
        '; --- 62,66 ---- } ! $display = "\nConfiguration Settings\n\n"; $n = 0; $display .= '
        '; Index: index.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/install/index.php,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** index.php 1 May 2008 13:23:28 -0000 1.39 --- index.php 11 May 2008 07:25:08 -0000 1.40 *************** *** 40,44 **** // $Id$ ! // this should help expose parse errors (e.g. in config.php) even when // display_errors is set to Off in php.ini if (function_exists ('ini_set')) { --- 40,44 ---- // $Id$ ! // this should help expose parse errors even when // display_errors is set to Off in php.ini if (function_exists ('ini_set')) { From dhaun at qs1489.pair.com Sun May 11 03:25:10 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 11 May 2008 07:25:10 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/calendar install_defaults.php, 1.4, 1.5 Message-ID: <20080511072510.22D7210FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/calendar In directory qs1489.pair.com:/tmp/cvs-serv21904/plugins/calendar Modified Files: install_defaults.php Log Message: Eliminated some more references to config.php Index: install_defaults.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/calendar/install_defaults.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** install_defaults.php 4 May 2008 09:16:33 -0000 1.4 --- install_defaults.php 11 May 2008 07:25:08 -0000 1.5 *************** *** 54,58 **** // when set to 1 will only allow logged-in users to view the list of past events ! // (also see $_CONF['loginrequired'] in Geeklog's config.php) $_CA_DEFAULT['calendarloginrequired'] = 0; --- 54,58 ---- // when set to 1 will only allow logged-in users to view the list of past events ! // (also see $_CONF['loginrequired'] in Geeklog's main configuration) $_CA_DEFAULT['calendarloginrequired'] = 0; From dhaun at qs1489.pair.com Sun May 11 03:25:10 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 11 May 2008 07:25:10 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/databases mssql.class.php, 1.6, 1.7 Message-ID: <20080511072510.7358510FE17@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/databases In directory qs1489.pair.com:/tmp/cvs-serv21904/system/databases Modified Files: mssql.class.php Log Message: Eliminated some more references to config.php Index: mssql.class.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/databases/mssql.class.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mssql.class.php 25 Nov 2007 06:59:56 -0000 1.6 --- mssql.class.php 11 May 2008 07:25:08 -0000 1.7 *************** *** 3,7 **** /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Geeklog 1.4 | // +---------------------------------------------------------------------------+ // | mssql.class.php | --- 3,7 ---- /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Geeklog 1.5 | // +---------------------------------------------------------------------------+ // | mssql.class.php | *************** *** 9,13 **** // | mysql database class | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2006 by the following authors: | // | | // | Authors: Tony Bibbs, tony AT tonybibbs DOT com | --- 9,13 ---- // | mysql database class | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2008 by the following authors: | // | | // | Authors: Tony Bibbs, tony AT tonybibbs DOT com | *************** *** 125,129 **** // Set the database ! @mssql_select_db($this->_name) or die ('Cannot Connect to the database provided. Please check the config.php settings.'); if (!($this->_db)) { --- 125,129 ---- // Set the database ! @mssql_select_db($this->_name) or die ('Cannot Connect to the database provided. Please check the db-config.php settings.'); if (!($this->_db)) { From dhaun at qs1489.pair.com Sun May 11 03:25:10 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 11 May 2008 07:25:10 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system lib-custom.php, 1.38, 1.39 lib-plugins.php, 1.144, 1.145 lib-sessions.php, 1.44, 1.45 Message-ID: <20080511072510.59F1810FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system In directory qs1489.pair.com:/tmp/cvs-serv21904/system Modified Files: lib-custom.php lib-plugins.php lib-sessions.php Log Message: Eliminated some more references to config.php Index: lib-plugins.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-plugins.php,v retrieving revision 1.144 retrieving revision 1.145 diff -C2 -d -r1.144 -r1.145 *** lib-plugins.php 3 May 2008 15:09:13 -0000 1.144 --- lib-plugins.php 11 May 2008 07:25:08 -0000 1.145 *************** *** 2297,2301 **** /** ! * Forward the user depending on config.php-setting after saving something * * @param string $item_url the url of the item saved --- 2297,2301 ---- /** ! * Forward the user depending on config setting after saving something * * @param string $item_url the url of the item saved Index: lib-custom.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-custom.php,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** lib-custom.php 25 Nov 2007 06:55:07 -0000 1.38 --- lib-custom.php 11 May 2008 07:25:08 -0000 1.39 *************** *** 130,134 **** /* Sample Custom Member Functions to create and update Custom Membership registration and profile ! Note1: Enable CustomRegistration Feature in config.php $_CONF['custom_registration'] = true; // Set to true if you have custom code --- 130,134 ---- /* Sample Custom Member Functions to create and update Custom Membership registration and profile ! Note1: Enable CustomRegistration Feature in the configuration $_CONF['custom_registration'] = true; // Set to true if you have custom code *************** *** 440,444 **** /** * This is an example of a function that returns menu entries to be used for ! * the 'custom' entry in $_CONF['menu_elements'] (see config.php). * */ --- 440,444 ---- /** * This is an example of a function that returns menu entries to be used for ! * the 'custom' entry in $_CONF['menu_elements'] (see configuration). * */ Index: lib-sessions.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-sessions.php,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** lib-sessions.php 25 Nov 2007 06:55:07 -0000 1.44 --- lib-sessions.php 11 May 2008 07:25:08 -0000 1.45 *************** *** 3,7 **** /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Geeklog 1.4 | // +---------------------------------------------------------------------------+ // | lib-sessions.php | --- 3,7 ---- /* Reminder: always indent with 4 spaces (no tabs). */ // +---------------------------------------------------------------------------+ ! // | Geeklog 1.5 | // +---------------------------------------------------------------------------+ // | lib-sessions.php | *************** *** 9,16 **** // | Geeklog session library. | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2006 by the following authors: | // | | ! // | Authors: Tony Bibbs - tony at tonybibbs.com | ! // | Mark Limburg - mlimburg at users.sourceforge.net | // +---------------------------------------------------------------------------+ // | | --- 9,16 ---- // | Geeklog session library. | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2008 by the following authors: | // | | ! // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | ! // | Mark Limburg - mlimburg AT users DOT sourceforge DOT net | // +---------------------------------------------------------------------------+ // | | *************** *** 234,238 **** // session ID. This has the advantage of better security but it may // required dialed users to login every time. You can turn the below ! // code on in config.php (it's turned off by default) if ($md5_based == 1) { $ip = str_replace('.','',$remote_ip); --- 234,238 ---- // session ID. This has the advantage of better security but it may // required dialed users to login every time. You can turn the below ! // code on in the configuration (it's turned off by default) if ($md5_based == 1) { $ip = str_replace('.','',$remote_ip); From dhaun at qs1489.pair.com Sun May 11 03:25:10 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 11 May 2008 07:25:10 +0000 Subject: [geeklog-cvs] Geeklog-1.x/system/classes search.class.php, 1.65, 1.66 Message-ID: <20080511072510.640E210FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/system/classes In directory qs1489.pair.com:/tmp/cvs-serv21904/system/classes Modified Files: search.class.php Log Message: Eliminated some more references to config.php Index: search.class.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/system/classes/search.class.php,v retrieving revision 1.65 retrieving revision 1.66 diff -C2 -d -r1.65 -r1.66 *** search.class.php 20 Feb 2008 20:07:59 -0000 1.65 --- search.class.php 11 May 2008 07:25:08 -0000 1.66 *************** *** 186,190 **** /** * Return the user's username or full name for display, depending ! * on the $_CONF['show_fullname'] config.php setting * * @author Dirk Haun Update of /cvsroot/geeklog/Geeklog-1.x/public_html In directory qs1489.pair.com:/tmp/cvs-serv23137/public_html Modified Files: lib-common.php Log Message: Cosmetics: Avoid extra blank in tags Index: lib-common.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/lib-common.php,v retrieving revision 1.697 retrieving revision 1.698 diff -C2 -d -r1.697 -r1.698 *** lib-common.php 10 May 2008 21:03:23 -0000 1.697 --- lib-common.php 11 May 2008 07:56:01 -0000 1.698 *************** *** 6143,6147 **** } ! $retval = "\"$alt\""; return $retval; --- 6143,6147 ---- } ! $retval = "\"$alt\"""; return $retval; From dhaun at qs1489.pair.com Sun May 11 12:40:02 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 11 May 2008 16:40:02 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs links.html, 1.5, 1.6 plugin.html, 1.21, 1.22 staticpages.html, 1.16, 1.17 Message-ID: <20080511164002.4A2B110FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv42764 Modified Files: links.html plugin.html staticpages.html Log Message: More references to config.php eliminated Index: links.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/links.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** links.html 10 May 2008 15:02:14 -0000 1.5 --- links.html 11 May 2008 16:40:00 -0000 1.6 *************** *** 31,35 **** Please note that $_CONF['loginrequired'] in ! config.php takes precedence over this setting. So when 'loginrequired' is set to 1, anonymous users can not access the links section even when 'linksloginrequired' is set --- 31,35 ---- Please note that $_CONF['loginrequired'] in ! Geeklog's main configuration takes precedence over this setting. So when 'loginrequired' is set to 1, anonymous users can not access the links section even when 'linksloginrequired' is set Index: staticpages.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/staticpages.html,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** staticpages.html 5 Aug 2007 09:33:02 -0000 1.16 --- staticpages.html 11 May 2008 16:40:00 -0000 1.17 *************** *** 127,135 ****

        http://yoursite/staticpages/index.php/about

        !

        To make use of URL rewriting, you will need to enable it in Geeklog's config.php file by setting

        ! !

        $_CONF['url_rewrite'] = true;

        ! !

        The Static Pages plugin is currently the only plugin known to make use of this feature.

        Deleting pages with their owner

        --- 127,131 ----

        http://yoursite/staticpages/index.php/about

        !

        To make use of URL rewriting, you will need to set the option "Enable URL Rewriting" to True in Geeklog's Configuration admin panel.

        Deleting pages with their owner

        Index: plugin.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/plugin.html,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** plugin.html 5 Aug 2007 09:33:02 -0000 1.21 --- plugin.html 11 May 2008 16:40:00 -0000 1.22 *************** *** 388,396 ****
        ! ! --- 388,396 ---- ! ! *************** *** 487,494 ****
        !
        config.php:
        configuration page for your plugin.  We'd ! prefer you to data-drive most the values if possible but using config.php ! is fine.  This file can be called whatever you want...you are not ! restricted.
        functions.inc:
        this is the file where you implement the Geeklog API and where your plugin code should reside.  It MUST be named this --- 487,496 ----
        !
        config.php:
        configuration file for your plugin.  We'd suggest ! that you try and use Geeklog's built-in configuration admin panel (as of ! Geeklog 1.5) if at all possible instead, since it makes things much easier ! for the users of your plugin. The Geeklog Wiki has some more information ! on how ! to use the configuration for a plugin.
        functions.inc:
        this is the file where you implement the Geeklog API and where your plugin code should reside.  It MUST be named this From dhaun at qs1489.pair.com Sun May 11 16:48:04 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 11 May 2008 20:48:04 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs history, 1.626, 1.627 staticpages.html, 1.17, 1.18 Message-ID: <20080511204804.6033210FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv54380/public_html/docs Modified Files: history staticpages.html Log Message: Updated static pages documentation and removed last references to config.php Index: staticpages.html =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/staticpages.html,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** staticpages.html 11 May 2008 16:40:00 -0000 1.17 --- staticpages.html 11 May 2008 20:48:02 -0000 1.18 *************** *** 19,29 **** -

        History

        - -

        The plugin was originally written by Tony Bibbs and is included with Geeklog as a pre-installed plugin since Geeklog 1.3.5. An extended version of the plugin was started by Phill Gillespie and later supported by Tom Willet. The extended version was the first to allow the use of PHP in static pages and also supported proper Geeklog permissions.

        - -

        With Geeklog 1.3.8 and Static Pages 1.3, these two versions were merged again. Static Pages 1.3 also introduced some new features that were not included in either of its predecessors.

        - -

        Features

        --- 19,22 ---- *************** *** 34,38 ****
      7. "cloning" of existing pages
      8. Makes use of Geeklog's URL rewrite feature
      9. !
      10. Supports autolinks and provides a [staticpage:] autotag
      11. proper support for Geeklog permissions
      12. --- 27,31 ----
      13. "cloning" of existing pages
      14. Makes use of Geeklog's URL rewrite feature
      15. !
      16. Provides [staticpage:] and [staticpage_content:] autotags
      17. proper support for Geeklog permissions
      18. *************** *** 45,49 ****

        Important: For security reasons, the use of PHP in static pages is disabled by default. To enable it, you will have to grant the 'staticpages.PHP' permission to the "Static Page Admin" group. To do this, log in as the Admin and from the Admin's Only block, select "Groups". Find the "Static Page Admin" group and edit it by clicking on the name of the group. At the bottom of the page, you will find a list of "Rights" (permissions) that can be granted to all members of this group. Note that 'staticpages.delete' and 'staticpages.edit' are checked, while 'staticpages.PHP' is not checked. To allow members of the Static Page Admin group to use PHP in static pages, you will have to check the 'staticpages.PHP' checkbox and save your changes.

        !

        In addition to the 'staticpages.PHP' permission discussed above, there is also a global flag, $_SP_CONF['allow_php'], that can be used to disable the use of PHP in static pages entirely. When set to 0, it will override the 'staticpages.PHP' permission and disable all use of PHP in static pages. The flag is located in the static pages' config.php file in the plugins/staticpages directory.

        Usage

        --- 38,43 ----

        Important: For security reasons, the use of PHP in static pages is disabled by default. To enable it, you will have to grant the 'staticpages.PHP' permission to the "Static Page Admin" group. To do this, log in as the Admin and from the Admin's Only block, select "Groups". Find the "Static Page Admin" group and edit it by clicking on the name of the group. At the bottom of the page, you will find a list of "Rights" (permissions) that can be granted to all members of this group. Note that 'staticpages.delete' and 'staticpages.edit' are checked, while 'staticpages.PHP' is not checked. To allow members of the Static Page Admin group to use PHP in static pages, you will have to check the 'staticpages.PHP' checkbox and save your changes.

        !

        In addition to the 'staticpages.PHP' permission discussed above, there is also a global option to disable the use of PHP in static pages entirely. That option ("Allow PHP?") can be found in the Configuration admin panel for the static pages plugin. When set to "False", that option will override the 'staticpages.PHP ! ' permission and disable all use of PHP in static pages.

        Usage

        *************** *** 83,87 ****

        Using Static Pages on the index page

        !

        Geeklog 1.3.8 introduced a new concept for use by plugins, called Center Blocks. Basically, this means that any plugin can place blocks in the center area of a Geeklog site, i.e. among the stories.

        When you check the "Centerblock" option for a static page, you can use the "Position" and "Topic" drop-downs to chose where this static page will be displayed. For "Position", the options are "Top Of Page", "After Featured Story", "Bottom Of Page" (which should be self-explanatory) and "Entire Page". That last option, "Entire Page", will tell Geeklog that this static page will replace the entire index page - it will not display any stories, but only the contents of this static page. This is useful e.g. for "splash" screens or Welcome pages.

        --- 77,81 ----

        Using Static Pages on the index page

        !

        Geeklog's Center Blocks concept allows plugins to place blocks in the center area of a Geeklog site, i.e. among the stories.

        When you check the "Centerblock" option for a static page, you can use the "Position" and "Topic" drop-downs to chose where this static page will be displayed. For "Position", the options are "Top Of Page", "After Featured Story", "Bottom Of Page" (which should be self-explanatory) and "Entire Page". That last option, "Entire Page", will tell Geeklog that this static page will replace the entire index page - it will not display any stories, but only the contents of this static page. This is useful e.g. for "splash" screens or Welcome pages.

        *************** *** 95,101 ****

        Sorting

        !

        Centerblocks: When you have more than one static page that would appear in the same section of the center area (e.g. two static pages that would be displayed at the top of the index page), you can chose the order in which they appear by setting the $_SP_CONF['sort_by'] variable in the plugin's config.php file to one of id (sort by page id), date (sort by last changed date), or title (sort by page title). The default is to sort by page id. Please note that this order will only apply to centerblocks from static pages. All other plugins creating centerblocks will not be in that order. Also note that the centerblock is not necessarily looking like a standard Geeklog block. To achieve that, please check the field "Wrapping Static Pages in a block" below.

        -

        Menu entries: It's also possible to sort the static pages that are displayed in the site's menu (if you're using a theme that uses the {plg_menu_elements} variables in its header.thtml). Set the $_SP_CONF['sort_menu_by'] variable (again, in the plugin's config.php file) to one of id (sort by page id), date (sort by last changed date), label (sort by the menu label), or title (sort by page title).

        Wrapping Static Pages in a block

        --- 89,108 ----

        Sorting

        !

        Centerblocks: When you have more than one static page that would appear in the same section of the center area (e.g. two static pages that would be displayed at the top of the index page), you can choose the order in which they appear from the Configuration admin panel for the static pages plugin. Your options are:

        !
          !
        • Date (sort by last changed date)
        • !
        • Page ID (sort by the page id; default)
        • !
        • Page Title (sort by the page title)
        • !
        !

        Please note that this order will only apply to centerblocks from static pages. All other plugins creating centerblocks will not be in that order. Also note that the centerblock is not necessarily looking like a standard Geeklog block. To achieve that, please check the field "Wrapping Static Pages in a block" below.

        ! !

        Menu entries: It's also possible to sort the static pages that are displayed in the site's menu (if you're using a theme that uses the {plg_menu_elements} variables in its header.thtml). This sort order can also be changed in the Configuration admin panel for the static pages plugin:

        !
          !
        • Date (sort by last changed date)
        • !
        • Label (sort by the menu label text; default)
        • !
        • Page ID (sort by the page id)
        • !
        • Page Title (sort by the page title)
        • !

        Wrapping Static Pages in a block

        *************** *** 103,107 ****

        You can chose to have a static page wrapped in a Geeklog block-layout by checking the "wrap static page in a block" option in the static pages editor. If selected, the page's title will be used as the block title. Further, you can, as with normal blocks, enter a help URL. If this URL is entered, the block will display a help icon linking to that URL.

        !

        The plugin's config.php file also has a flag, $_SP_CONF['in_block'], which is used as the default for this option.

        --- 110,114 ----

        You can chose to have a static page wrapped in a Geeklog block-layout by checking the "wrap static page in a block" option in the static pages editor. If selected, the page's title will be used as the block title. Further, you can, as with normal blocks, enter a help URL. If this URL is entered, the block will display a help icon linking to that URL.

        !

        The default for this option can be set in the Configuration admin panel for the static pages plugin.

        *************** *** 131,144 ****

        Deleting pages with their owner

        !

        As all objects in Geeklog, static pages have an owner (the user that created ! the static page). When that user's account is deleted for some reason, any ! static pages owned by that user can either be deleted as well or they can be ! assigned to another user in Geeklog's Root group. The config.php file ! for the Static Pages plugin has the following option:

        !

        $_SP_CONF['delete_pages'] = 0;

        !

        If set to 0 (which is the default), static pages will not be deleted with ! their owner, but assigned to a member of the Root group instead (the user with ! the lowest user ID, most likely the Admin). If you change this to 1, static ! pages will be deleted when their owner's account is deleted.

        ! --- 1,4 ---- ! From dhaun at qs1489.pair.com Sun May 11 18:03:27 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Sun, 11 May 2008 22:03:27 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/admin story.php, 1.267, 1.268 user.php, 1.202, 1.203 Message-ID: <20080511220327.BA47510FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/admin In directory qs1489.pair.com:/tmp/cvs-serv57098/public_html/admin Modified Files: story.php user.php Log Message: Hard-code text direction for (for bug #0000150) Index: story.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/story.php,v retrieving revision 1.267 retrieving revision 1.268 diff -C2 -d -r1.267 -r1.268 *** story.php 1 May 2008 19:43:42 -0000 1.267 --- story.php 11 May 2008 22:03:25 -0000 1.268 *************** *** 9,13 **** // | Geeklog story administration page. | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2007 by the following authors: | // | | // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | --- 9,13 ---- // | Geeklog story administration page. | // +---------------------------------------------------------------------------+ ! // | Copyright (C) 2000-2008 by the following authors: | // | | // | Authors: Tony Bibbs - tony AT tonybibbs DOT com | *************** *** 605,609 **** $newallowed = $_CONF['maximagesperarticle'] - $icount; for ($z = $icount + 1; $z <= $_CONF['maximagesperarticle']; $z++) { ! $fileinputs .= $z . ') '; if ($z < $_CONF['maximagesperarticle']) { $fileinputs .= ''; --- 605,610 ---- $newallowed = $_CONF['maximagesperarticle'] - $icount; for ($z = $icount + 1; $z <= $_CONF['maximagesperarticle']; $z++) { ! $fileinputs .= $z . ') '; if ($z < $_CONF['maximagesperarticle']) { $fileinputs .= ''; Index: user.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/admin/user.php,v retrieving revision 1.202 retrieving revision 1.203 diff -C2 -d -r1.202 -r1.203 *** user.php 5 May 2008 00:30:37 -0000 1.202 --- user.php 11 May 2008 22:03:25 -0000 1.203 *************** *** 1097,1101 **** $retval = '
        ' ! . $LANG28[29] . ': ' . '' . '
        ' ! . $LANG28[29] . ': ' . '' . ' (for bug #0000150) Index: topiceditor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/topic/topiceditor.thtml,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** topiceditor.thtml 8 Mar 2008 15:19:51 -0000 1.10 --- topiceditor.thtml 11 May 2008 22:03:25 -0000 1.11 *************** *** 23,27 ****
        ! --- 23,27 ---- ! From dhaun at qs1489.pair.com Mon May 12 03:53:07 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 07:53:07 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/admin/story storyeditor.thtml, 1.21, 1.22 storyeditor_advanced.thtml, 1.32, 1.33 Message-ID: <20080512075307.B550010FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story In directory qs1489.pair.com:/tmp/cvs-serv83942 Modified Files: storyeditor.thtml storyeditor_advanced.thtml Log Message: Hard-code the text direction for the date/time selection (for bug #0000150) Index: storyeditor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story/storyeditor.thtml,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** storyeditor.thtml 1 May 2008 19:43:42 -0000 1.21 --- storyeditor.thtml 12 May 2008 07:53:05 -0000 1.22 *************** *** 27,30 **** --- 27,31 ---- --- 46,53 ---- {publish_minute_options} ! {publishampm_selection} ! ! {publish_date_explanation} *************** *** 93,96 **** --- 95,99 ---- --- 114,120 ---- {expire_minute_options} ! {expireampm_selection} + Index: storyeditor_advanced.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story/storyeditor_advanced.thtml,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** storyeditor_advanced.thtml 1 May 2008 19:43:42 -0000 1.32 --- storyeditor_advanced.thtml 12 May 2008 07:53:05 -0000 1.33 *************** *** 100,103 **** --- 100,104 ---- --- 119,126 ---- {publish_minute_options} ! {publishampm_selection} ! ! {publish_date_explanation} *************** *** 177,180 **** --- 179,183 ---- --- 195,201 ---- {expire_minute_options} ! {expireampm_selection} + From dhaun at qs1489.pair.com Mon May 12 04:05:18 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:05:18 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/admin/lists index.html, NONE, 1.1 Message-ID: <20080512080518.0CF0510FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/lists In directory qs1489.pair.com:/tmp/cvs-serv85240/admin/lists Added Files: index.html Log Message: Empty index.html, since we have them in all the other directories as well ... --- NEW FILE: index.html --- From dhaun at qs1489.pair.com Mon May 12 04:05:18 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:05:18 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/navbar index.html, NONE, 1.1 Message-ID: <20080512080518.1A9D010FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/navbar In directory qs1489.pair.com:/tmp/cvs-serv85240/navbar Added Files: index.html Log Message: Empty index.html, since we have them in all the other directories as well ... --- NEW FILE: index.html --- From dhaun at qs1489.pair.com Mon May 12 04:05:18 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:05:18 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/pdfgenerator index.html, NONE, 1.1 Message-ID: <20080512080518.367F610FE18@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/pdfgenerator In directory qs1489.pair.com:/tmp/cvs-serv85240/pdfgenerator Added Files: index.html Log Message: Empty index.html, since we have them in all the other directories as well ... --- NEW FILE: index.html --- From dhaun at qs1489.pair.com Mon May 12 04:05:18 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:05:18 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/navbar/images index.html, NONE, 1.1 Message-ID: <20080512080518.2882D10FE17@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/navbar/images In directory qs1489.pair.com:/tmp/cvs-serv85240/navbar/images Added Files: index.html Log Message: Empty index.html, since we have them in all the other directories as well ... --- NEW FILE: index.html --- From dhaun at qs1489.pair.com Mon May 12 04:05:18 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:05:18 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/pdfgenerator index.html, NONE, 1.1 Message-ID: <20080512080518.367F610FE18@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/pdfgenerator In directory qs1489.pair.com:/tmp/cvs-serv85240/pdfgenerator Added Files: index.html Log Message: Empty index.html, since we have them in all the other directories as well ... --- NEW FILE: index.html --- From dhaun at qs1489.pair.com Mon May 12 04:05:17 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:05:17 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/admin/common index.html, NONE, 1.1 Message-ID: <20080512080517.E58F510FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/common In directory qs1489.pair.com:/tmp/cvs-serv85240/admin/common Added Files: index.html Log Message: Empty index.html, since we have them in all the other directories as well ... --- NEW FILE: index.html --- From dhaun at qs1489.pair.com Mon May 12 04:05:17 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:05:17 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/admin/config index.html, NONE, 1.1 Message-ID: <20080512080517.F369310FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/config In directory qs1489.pair.com:/tmp/cvs-serv85240/admin/config Added Files: index.html Log Message: Empty index.html, since we have them in all the other directories as well ... --- NEW FILE: index.html --- From dhaun at qs1489.pair.com Mon May 12 04:27:19 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:27:19 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/links/templates/admin linkeditor.thtml, 1.11, 1.12 Message-ID: <20080512082719.2D56410FE15@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/links/templates/admin In directory qs1489.pair.com:/tmp/cvs-serv86860/plugins/links/templates/admin Modified Files: linkeditor.thtml Log Message: Hard-coded the text direction for some ID field (sid, tid, etc.) - basically everything that's run through COM_sanitizeID (for bug #0000150) Index: linkeditor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/templates/admin/linkeditor.thtml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** linkeditor.thtml 12 Apr 2008 19:51:15 -0000 1.11 --- linkeditor.thtml 12 May 2008 08:27:17 -0000 1.12 *************** *** 15,19 **** --- 15,19 ---- From dhaun at qs1489.pair.com Mon May 12 04:27:19 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:27:19 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls/templates/admin polleditor.thtml, 1.11, 1.12 Message-ID: <20080512082719.3B13710FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls/templates/admin In directory qs1489.pair.com:/tmp/cvs-serv86860/plugins/polls/templates/admin Modified Files: polleditor.thtml Log Message: Hard-coded the text direction for some ID field (sid, tid, etc.) - basically everything that's run through COM_sanitizeID (for bug #0000150) Index: polleditor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/templates/admin/polleditor.thtml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** polleditor.thtml 10 Feb 2008 15:18:12 -0000 1.11 --- polleditor.thtml 12 May 2008 08:27:17 -0000 1.12 *************** *** 5,9 **** ! --- 5,9 ---- ! From dhaun at qs1489.pair.com Mon May 12 04:27:19 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:27:19 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/staticpages/templates/admin editor.thtml, 1.20, 1.21 editor_advanced.thtml, 1.12, 1.13 Message-ID: <20080512082719.513C010FE17@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin In directory qs1489.pair.com:/tmp/cvs-serv86860/plugins/staticpages/templates/admin Modified Files: editor.thtml editor_advanced.thtml Log Message: Hard-coded the text direction for some ID field (sid, tid, etc.) - basically everything that's run through COM_sanitizeID (for bug #0000150) Index: editor_advanced.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin/editor_advanced.thtml,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** editor_advanced.thtml 3 May 2008 15:09:13 -0000 1.12 --- editor_advanced.thtml 12 May 2008 08:27:17 -0000 1.13 *************** *** 48,52 **** ! --- 48,52 ---- ! Index: editor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin/editor.thtml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** editor.thtml 3 May 2008 15:09:13 -0000 1.20 --- editor.thtml 12 May 2008 08:27:17 -0000 1.21 *************** *** 34,38 **** ! --- 34,38 ---- ! From dhaun at qs1489.pair.com Mon May 12 04:27:19 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:27:19 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/staticpages/templates/admin editor.thtml, 1.20, 1.21 editor_advanced.thtml, 1.12, 1.13 Message-ID: <20080512082719.513C010FE17@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin In directory qs1489.pair.com:/tmp/cvs-serv86860/plugins/staticpages/templates/admin Modified Files: editor.thtml editor_advanced.thtml Log Message: Hard-coded the text direction for some ID field (sid, tid, etc.) - basically everything that's run through COM_sanitizeID (for bug #0000150) Index: editor_advanced.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin/editor_advanced.thtml,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** editor_advanced.thtml 3 May 2008 15:09:13 -0000 1.12 --- editor_advanced.thtml 12 May 2008 08:27:17 -0000 1.13 *************** *** 48,52 **** ! --- 48,52 ---- ! Index: editor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/admin/editor.thtml,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** editor.thtml 3 May 2008 15:09:13 -0000 1.20 --- editor.thtml 12 May 2008 08:27:17 -0000 1.21 *************** *** 34,38 **** ! --- 34,38 ---- ! From dhaun at qs1489.pair.com Mon May 12 04:27:19 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:27:19 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs history,1.627,1.628 Message-ID: <20080512082719.66C2C10FE18@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv86860/public_html/docs Modified Files: history Log Message: Hard-coded the text direction for some ID field (sid, tid, etc.) - basically everything that's run through COM_sanitizeID (for bug #0000150) Index: history =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/history,v retrieving revision 1.627 retrieving revision 1.628 diff -C2 -d -r1.627 -r1.628 *** history 11 May 2008 20:48:02 -0000 1.627 --- history 12 May 2008 08:27:17 -0000 1.628 *************** *** 12,15 **** --- 12,19 ---- Other changes: + - Hard-coded the text direction as "ltr" for some input fields and the date/time + selection in the story editor (bug #0000150). Also removed "text-align:left" + for the HTML body from the Professional theme's style sheet as it interferes + with the ability to switch the text direction [Dirk] - Removed references to config.php from the documentation, some READMEs, and some source files (bug #0000627) [Dirk] *************** *** 22,26 **** it (bug #0000622) [Dirk] - Fixed invalid tag in some language files (bug #0000621) [Dirk] ! - The URL sent in a user registration notification contained a & where it should have been a simple & [Dirk] --- 26,30 ---- it (bug #0000622) [Dirk] - Fixed invalid tag in some language files (bug #0000621) [Dirk] ! - The URL sent in a user registration notification contained an & where it should have been a simple & [Dirk] From dhaun at qs1489.pair.com Mon May 12 04:27:19 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:27:19 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/admin/story storyeditor.thtml, 1.22, 1.23 storyeditor_advanced.thtml, 1.33, 1.34 Message-ID: <20080512082719.7244910FE19@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story In directory qs1489.pair.com:/tmp/cvs-serv86860/public_html/layout/professional/admin/story Modified Files: storyeditor.thtml storyeditor_advanced.thtml Log Message: Hard-coded the text direction for some ID field (sid, tid, etc.) - basically everything that's run through COM_sanitizeID (for bug #0000150) Index: storyeditor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story/storyeditor.thtml,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** storyeditor.thtml 12 May 2008 07:53:05 -0000 1.22 --- storyeditor.thtml 12 May 2008 08:27:17 -0000 1.23 *************** *** 140,144 **** ! --- 140,144 ---- ! Index: storyeditor_advanced.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/story/storyeditor_advanced.thtml,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** storyeditor_advanced.thtml 12 May 2008 07:53:05 -0000 1.33 --- storyeditor_advanced.thtml 12 May 2008 08:27:17 -0000 1.34 *************** *** 30,34 **** ! --- 30,34 ---- ! From dhaun at qs1489.pair.com Mon May 12 04:27:19 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:27:19 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/layout/professional/admin/topic topiceditor.thtml, 1.11, 1.12 Message-ID: <20080512082719.7E5D510FE1A@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/topic In directory qs1489.pair.com:/tmp/cvs-serv86860/public_html/layout/professional/admin/topic Modified Files: topiceditor.thtml Log Message: Hard-coded the text direction for some ID field (sid, tid, etc.) - basically everything that's run through COM_sanitizeID (for bug #0000150) Index: topiceditor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/layout/professional/admin/topic/topiceditor.thtml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** topiceditor.thtml 11 May 2008 22:03:25 -0000 1.11 --- topiceditor.thtml 12 May 2008 08:27:17 -0000 1.12 *************** *** 3,7 **** ! --- 3,7 ---- ! From dhaun at qs1489.pair.com Mon May 12 04:27:19 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 08:27:19 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls/templates/admin polleditor.thtml, 1.11, 1.12 Message-ID: <20080512082719.3B13710FE16@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls/templates/admin In directory qs1489.pair.com:/tmp/cvs-serv86860/plugins/polls/templates/admin Modified Files: polleditor.thtml Log Message: Hard-coded the text direction for some ID field (sid, tid, etc.) - basically everything that's run through COM_sanitizeID (for bug #0000150) Index: polleditor.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/templates/admin/polleditor.thtml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** polleditor.thtml 10 Feb 2008 15:18:12 -0000 1.11 --- polleditor.thtml 12 May 2008 08:27:17 -0000 1.12 *************** *** 5,9 **** ! --- 5,9 ---- ! From dhaun at qs1489.pair.com Mon May 12 05:21:38 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 09:21:38 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/staticpages/templates staticpage.thtml, 1.5, 1.6 Message-ID: <20080512092138.19C3910FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates In directory qs1489.pair.com:/tmp/cvs-serv89947/plugins/staticpages/templates Modified Files: staticpage.thtml Log Message: Moved print and edit icons to the bottom of the page - there's no good way to position them consistently in the header (for bug #0000628) Index: staticpage.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/staticpage.thtml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** staticpage.thtml 10 May 2008 08:42:59 -0000 1.5 --- staticpage.thtml 12 May 2008 09:21:36 -0000 1.6 *************** *** 1,4 **** - {print_icon}{edit_icon} {content} !

        {lastupdate}|{hits}

        {commentbar} --- 1,3 ---- {content} !

        {lastupdate}|{hits} {print_icon}{edit_icon}

        {commentbar} From dhaun at qs1489.pair.com Mon May 12 06:29:57 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 10:29:57 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/staticpages functions.inc, 1.120, 1.121 Message-ID: <20080512102957.5498910FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages In directory qs1489.pair.com:/tmp/cvs-serv93411 Modified Files: functions.inc Log Message: Removed unused {icons} variable (for bug #0000628) Index: functions.inc =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/functions.inc,v retrieving revision 1.120 retrieving revision 1.121 diff -C2 -d -r1.120 -r1.121 *** functions.inc 19 Apr 2008 19:23:58 -0000 1.120 --- functions.inc 12 May 2008 10:29:55 -0000 1.121 *************** *** 304,308 **** if ($A['sp_format'] <> 'blankpage') { - $icons = ''; if ($_CONF['hideprintericon'] == 0) { $icon_url = $_CONF['layout_url'] . '/images/print.' . $_IMAGE_TYPE; --- 304,307 ---- *************** *** 883,887 **** $spage->set_var('site_admin_url', $_CONF['site_admin_url']); - $icons = ''; if ($_CONF['hideprintericon'] == 0) { $icon_url = $_CONF['layout_url'] . '/images/print.' . $_IMAGE_TYPE; --- 882,885 ---- *************** *** 910,914 **** $spage->set_var('edit_icon', $icon); } - $spage->set_var('icons', $icons); $content = SP_render_content (stripslashes ($S['sp_content']), $S['sp_php']); --- 908,911 ---- From dhaun at qs1489.pair.com Mon May 12 06:49:16 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 10:49:16 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/staticpages functions.inc, 1.121, 1.122 Message-ID: <20080512104916.3A9C710FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages In directory qs1489.pair.com:/tmp/cvs-serv94080 Modified Files: functions.inc Log Message: Define {lastupdate} and {hits} in centerblocks but stripped them from the default centerblock template file Index: functions.inc =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/functions.inc,v retrieving revision 1.121 retrieving revision 1.122 diff -C2 -d -r1.121 -r1.122 *** functions.inc 12 May 2008 10:29:55 -0000 1.121 --- functions.inc 12 May 2008 10:49:14 -0000 1.122 *************** *** 843,847 **** $perms = ' AND ' . $perms; } ! $spsql = "SELECT sp_id,sp_title,sp_content,sp_format,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon,sp_php,sp_inblock,sp_help FROM {$_TABLES['staticpage']} WHERE (sp_centerblock = 1)" . COM_getLangSql ('sp_id', 'AND') . ' AND ' . $moresql . $perms . " ORDER BY " . $sort; $result = DB_query ($spsql); --- 843,847 ---- $perms = ' AND ' . $perms; } ! $spsql = "SELECT sp_id,sp_title,sp_content,sp_format,sp_date,sp_hits,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon,sp_php,sp_inblock,sp_help FROM {$_TABLES['staticpage']} WHERE (sp_centerblock = 1)" . COM_getLangSql ('sp_id', 'AND') . ' AND ' . $moresql . $perms . " ORDER BY " . $sort; $result = DB_query ($spsql); *************** *** 907,910 **** --- 907,926 ---- ); $spage->set_var('edit_icon', $icon); + } + + $spage->set_var('info_separator', 'hidden'); + if ($_SP_CONF['show_date'] == 1) { + $curtime = COM_getUserDateTimeFormat($S['sp_date']); + $lastupdate = $LANG_STATIC['lastupdated']. ' ' . $curtime[0]; + $spage->set_var('lastupdate', $lastupdate); + } + + if ($_SP_CONF['show_hits'] == 1) { + if ($_SP_CONF['show_date'] == 1) { + $spage->set_var('info_separator', 'visible'); + } + $hits = COM_numberFormat($S['sp_hits']) . ' ' + . $LANG_STATIC['hits']; + $spage->set_var('hits', $hits); } From dhaun at qs1489.pair.com Mon May 12 06:49:16 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 10:49:16 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/staticpages/templates centerblock.thtml, 1.2, 1.3 Message-ID: <20080512104916.4705910FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates In directory qs1489.pair.com:/tmp/cvs-serv94080/templates Modified Files: centerblock.thtml Log Message: Define {lastupdate} and {hits} in centerblocks but stripped them from the default centerblock template file Index: centerblock.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/staticpages/templates/centerblock.thtml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** centerblock.thtml 12 Feb 2007 11:29:36 -0000 1.2 --- centerblock.thtml 12 May 2008 10:49:14 -0000 1.3 *************** *** 1,3 **** - {print_icon}{edit_icon} {content} -

        {lastupdate} {hits}

        --- 1 ---- From dhaun at qs1489.pair.com Mon May 12 07:04:53 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 11:04:53 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs history,1.628,1.629 Message-ID: <20080512110453.DCC2B10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv94667/public_html/docs Modified Files: history Log Message: Updated list of changes in the static pages plugin Index: history =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/history,v retrieving revision 1.628 retrieving revision 1.629 diff -C2 -d -r1.628 -r1.629 *** history 12 May 2008 08:27:17 -0000 1.628 --- history 12 May 2008 11:04:51 -0000 1.629 *************** *** 20,25 **** - Don't include the (internal) 'subgroup' and 'fieldset' entries in the $_CONF arrays [Dirk] - - Removed an extra } from the Static Pages staticpage.thtml template file - (reported by Markus Wollschl?ger) [Dirk] - COM_numberFormat wouldn't handle decimals correctly (bug #0000624) [Dirk] - Make sure the XHTML constant is defined if the theme doesn't already define --- 20,23 ---- *************** *** 28,31 **** --- 26,39 ---- - The URL sent in a user registration notification contained an & where it should have been a simple & [Dirk] + + Static Pages plugin + ------------------- + - Moved the print and edit icons to the bottom of a static page in the default + staticpage.thtml template file. Also removed the icons from the default + centerblock.thtml template file and defined the {lastupdate} and {hits} + variables there (bug #0000628) [Dirk] + - Removed an extra } from the Static Pages staticpage.thtml template file + (reported by Markus Wollschl?ger) [Dirk] + From dhaun at qs1489.pair.com Mon May 12 09:06:46 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 13:06:46 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/polls style.css,1.4,1.5 Message-ID: <20080512130646.BAACA10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/polls In directory qs1489.pair.com:/tmp/cvs-serv98971/public_html/polls Modified Files: style.css Log Message: Make the poll topic bold, not larger (for bug #0000625) Index: style.css =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/polls/style.css,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** style.css 9 Oct 2007 10:01:19 -0000 1.4 --- style.css 12 May 2008 13:06:44 -0000 1.5 *************** *** 13,17 **** .poll-topic { ! font-size:larger; } .poll-questions ul { --- 13,17 ---- .poll-topic { ! font-weight:bold; } .poll-questions ul { *************** *** 58,60 **** .block-box-left .poll_answer_percent{ text-align:right; ! } \ No newline at end of file --- 58,60 ---- .block-box-left .poll_answer_percent{ text-align:right; ! } From dhaun at qs1489.pair.com Mon May 12 09:09:19 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 13:09:19 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls/templates pollquestion.thtml, 1.3, 1.4 pollvotes_bar.thtml, 1.6, 1.7 Message-ID: <20080512130919.F0C8910FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls/templates In directory qs1489.pair.com:/tmp/cvs-serv99057 Modified Files: pollquestion.thtml pollvotes_bar.thtml Log Message: Need some width attributes to keep the column widths in sync on multi-question polls (for bug #0000625) Index: pollquestion.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/templates/pollquestion.thtml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pollquestion.thtml 9 Oct 2007 10:01:03 -0000 1.3 --- pollquestion.thtml 12 May 2008 13:09:17 -0000 1.4 *************** *** 1,6 ****

        {lang_question}{lang_question_number}{poll_question}

        !
        plugin_chkVersion_<plugin name>Plugins should implement this function and return the code version. Plugins should use a variable in the plugins config.php for the code version which allows the developer to easily update it before releasing a new version. As of Geeklog 1.3.10, this API function is called in the plugin Editor to show the version of the current installed version and plugin code version. The plugin installed version is pulled from the plugins table and should be updated as part of the plugin install or future updates. This API function allows the site admin to know if the current plugin code is newer then the installed version. Plugin developers can read the installed version from the plugins table and determine automatically if any SQL updates are required or atleast update the plugin record to be the same as the code version.
        plugin_runScheduledTask_<plugin name>This function allows plugin developers to schedule a task to be run. This API will only be called when someone accesses the site but should be sufficient for most plugins that want to schedule some maintenance process or clean-up routine. The interval this API is called is set in the site's config.php and all plugins that have this function will then be called.
        plugin_chkVersion_<plugin name>Plugins should implement this function and return the code version. Plugins should use a variable in the plugin's functions.inc for the code version which allows the developer to easily update it before releasing a new version. As of Geeklog 1.3.10, this API function is called in the plugin Editor to show the version of the current installed version and plugin code version. The plugin installed version is pulled from the plugins table and should be updated as part of the plugin install or future updates. This API function allows the site admin to know if the current plugin code is newer then the installed version. Plugin developers can read the installed version from the plugins table and determine automatically if any SQL updates are required or atleast update the plugin record to be the same as the code version.
        plugin_runScheduledTask_<plugin name>This function allows plugin developers to schedule a task to be run. This API will only be called when someone accesses the site but should be sufficient for most plugins that want to schedule some maintenance process or clean-up routine. The interval this API is called is set in the site's configuration and all plugins that have this function will then be called.
        {display_photo}
        {display_photo}
        {lang_uploadimage}: ({lang_maxsize} {icon_dimensions})
        {lang_uploadimage}: ({lang_maxsize} {icon_dimensions})
        {lang_date}: + ! {publishampm_selection} ! {publish_date_explanation}
        {lang_date}: + ! {expireampm_selection}
        {lang_date}: + ! {publishampm_selection} ! {publish_date_explanation}
        {lang_date}: + ! {expireampm_selection}
        {lang_linkid}: !
        {lang_linkid}: !
        {lang_pollid}: {lang_donotusespaces}
        {lang_pollid}: {lang_donotusespaces}
        {lang_id}:
        {lang_id}:
        {lang_id}:
        {lang_id}:
        {lang_id}:
        {lang_id}:
        {lang_id}:
        {lang_id}:
        {lang_sid}:
        {lang_sid}:
        {lang_sid}:
        {lang_sid}:
        {lang_topicid}: {lang_donotusespaces}
        {lang_topicid}: {lang_donotusespaces}
        {lang_pollid}: {lang_donotusespaces}
        {lang_pollid}: {lang_donotusespaces}
        {poll_votes}
        ! \ No newline at end of file --- 1,6 ----

        {lang_question}{lang_question_number}{poll_question}

        ! {poll_votes}
        !
        Index: pollvotes_bar.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/templates/pollvotes_bar.thtml,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** pollvotes_bar.thtml 30 Dec 2007 13:38:14 -0000 1.6 --- pollvotes_bar.thtml 12 May 2008 13:09:17 -0000 1.7 *************** *** 1,11 **** ! ! {answer_text} ! ! {answer_num} ({answer_percent}%) ! ! ! ! ! {remark_text} ! ! --- 1,11 ---- ! ! {answer_text} ! ! {answer_num} ({answer_percent}%) ! ! ! ! ! {remark_text} ! ! From dhaun at qs1489.pair.com Mon May 12 09:11:43 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 13:11:43 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls/templates pollanswer.thtml, 1.4, 1.5 pollblock.thtml, 1.11, 1.12 polllist.thtml, 1.2, 1.3 Message-ID: <20080512131143.24D3110FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls/templates In directory qs1489.pair.com:/tmp/cvs-serv99159 Modified Files: pollanswer.thtml pollblock.thtml polllist.thtml Log Message: CR+LF -> LF Index: pollblock.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/templates/pollblock.thtml,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pollblock.thtml 25 Nov 2007 06:57:00 -0000 1.11 --- pollblock.thtml 12 May 2008 13:11:41 -0000 1.12 *************** *** 1,14 **** ! {edit_icon}
        {poll_topic}
        ! !
        ! ! {poll_questions} ! {poll_notification} ! ! {poll_results} !
        ! ! ! ! {lang_polltopics} | {num_votes} {lang_votes} {poll_comments} --- 1,14 ---- ! {edit_icon}
        {poll_topic}
        !
        !
        ! ! {poll_questions} ! {poll_notification} ! ! {poll_results} !
        !
        ! ! ! {lang_polltopics} | {num_votes} {lang_votes} {poll_comments} Index: pollanswer.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/templates/pollanswer.thtml,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** pollanswer.thtml 25 Nov 2007 06:57:00 -0000 1.4 --- pollanswer.thtml 12 May 2008 13:11:41 -0000 1.5 *************** *** 1 **** !
      19.  {answer_text}
      20. --- 1 ---- !
      21.  {answer_text}
      22. Index: polllist.thtml =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/templates/polllist.thtml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** polllist.thtml 25 Nov 2007 06:57:00 -0000 1.2 --- polllist.thtml 12 May 2008 13:11:41 -0000 1.3 *************** *** 1 **** ! {item_num}. {poll_question} ({poll_votes} {lang_votes}){ending_br} --- 1 ---- ! {item_num}. {poll_question} ({poll_votes} {lang_votes}){ending_br} From dhaun at qs1489.pair.com Mon May 12 10:25:46 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 14:25:46 +0000 Subject: [geeklog-cvs] Geeklog-1.x/plugins/polls install_defaults.php, 1.3, 1.4 Message-ID: <20080512142546.4B41C10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/plugins/polls In directory qs1489.pair.com:/tmp/cvs-serv1916/plugins/polls Modified Files: install_defaults.php Log Message: Fixed duplicate sort_order entry in the Polls config Index: install_defaults.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/polls/install_defaults.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** install_defaults.php 4 May 2008 09:16:33 -0000 1.3 --- install_defaults.php 12 May 2008 14:25:44 -0000 1.4 *************** *** 120,134 **** 0, 0, 0, 30, true, 'polls'); $c->add('maxanswers', $_PO_DEFAULT['maxanswers'], 'text', ! 0, 0, 0, 30, true, 'polls'); $c->add('answerorder', $_PO_DEFAULT['answerorder'], 'select', ! 0, 0, 2, 40, true, 'polls'); $c->add('pollcookietime', $_PO_DEFAULT['pollcookietime'], 'text', - 0, 0, 0, 50, true, 'polls'); - $c->add('polladdresstime', $_PO_DEFAULT['polladdresstime'], 'text', 0, 0, 0, 60, true, 'polls'); ! $c->add('delete_polls', $_PO_DEFAULT['delete_polls'], 'select', 0, 0, 0, 70, true, 'polls'); $c->add('aftersave', $_PO_DEFAULT['aftersave'], 'select', ! 0, 0, 9, 80, true, 'polls'); $c->add('fs_permissions', NULL, 'fieldset', 0, 1, NULL, 0, true, 'polls'); --- 120,134 ---- 0, 0, 0, 30, true, 'polls'); $c->add('maxanswers', $_PO_DEFAULT['maxanswers'], 'text', ! 0, 0, 0, 40, true, 'polls'); $c->add('answerorder', $_PO_DEFAULT['answerorder'], 'select', ! 0, 0, 2, 50, true, 'polls'); $c->add('pollcookietime', $_PO_DEFAULT['pollcookietime'], 'text', 0, 0, 0, 60, true, 'polls'); ! $c->add('polladdresstime', $_PO_DEFAULT['polladdresstime'], 'text', 0, 0, 0, 70, true, 'polls'); + $c->add('delete_polls', $_PO_DEFAULT['delete_polls'], 'select', + 0, 0, 0, 80, true, 'polls'); $c->add('aftersave', $_PO_DEFAULT['aftersave'], 'select', ! 0, 0, 9, 90, true, 'polls'); $c->add('fs_permissions', NULL, 'fieldset', 0, 1, NULL, 0, true, 'polls'); From dhaun at qs1489.pair.com Mon May 12 10:25:46 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 14:25:46 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs history,1.629,1.630 Message-ID: <20080512142546.60C4910FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv1916/public_html/docs Modified Files: history Log Message: Fixed duplicate sort_order entry in the Polls config Index: history =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/history,v retrieving revision 1.629 retrieving revision 1.630 diff -C2 -d -r1.629 -r1.630 *** history 12 May 2008 11:04:51 -0000 1.629 --- history 12 May 2008 14:25:44 -0000 1.630 *************** *** 27,30 **** --- 27,35 ---- should have been a simple & [Dirk] + Polls plugin + ------------ + - Fixed duplicate sort_order value in the Polls config [Dirk] + - Cosmetic changes in the Polls topic and results (bug #0000625) [Dirk] + Static Pages plugin ------------------- From dhaun at qs1489.pair.com Mon May 12 10:25:46 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 14:25:46 +0000 Subject: [geeklog-cvs] Geeklog-1.x/public_html/docs history,1.629,1.630 Message-ID: <20080512142546.60C4910FE14@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/public_html/docs In directory qs1489.pair.com:/tmp/cvs-serv1916/public_html/docs Modified Files: history Log Message: Fixed duplicate sort_order entry in the Polls config Index: history =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/public_html/docs/history,v retrieving revision 1.629 retrieving revision 1.630 diff -C2 -d -r1.629 -r1.630 *** history 12 May 2008 11:04:51 -0000 1.629 --- history 12 May 2008 14:25:44 -0000 1.630 *************** *** 27,30 **** --- 27,35 ---- should have been a simple & [Dirk] + Polls plugin + ------------ + - Fixed duplicate sort_order value in the Polls config [Dirk] + - Cosmetic changes in the Polls topic and results (bug #0000625) [Dirk] + Static Pages plugin ------------------- From dhaun at qs1489.pair.com Mon May 12 11:08:45 2008 From: dhaun at qs1489.pair.com (Dirk Haun) Date: Mon, 12 May 2008 15:08:45 +0000 Subject: [geeklog-cvs] Geeklog-1.x/sql/updates mssql_1.4.1_to_1.5.0.php, 1.15, 1.16 Message-ID: <20080512150845.E961F10FE12@qs1489.pair.com> Update of /cvsroot/geeklog/Geeklog-1.x/sql/updates In directory qs1489.pair.com:/tmp/cvs-serv3523 Modified Files: mssql_1.4.1_to_1.5.0.php Log Message: This certainly isn't correct, but at least now it's in sync with the MySQL upgrade Index: mssql_1.4.1_to_1.5.0.php =================================================================== RCS file: /cvsroot/geeklog/Geeklog-1.x/sql/updates/mssql_1.4.1_to_1.5.0.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** mssql_1.4.1_to_1.5.0.php 2 May 2008 11:32:09 -0000 1.15 --- mssql_1.4.1_to_1.5.0.php 12 May 2008 15:08:43 -0000 1.16 *************** *** 1,25 **** --- 365,706 ---- } + // Polls plugin updates + function upgrade_PollsPlugin() + { + global $_CONF, $_TABLES; + + require_once $_CONF['path_system'] . 'classes/config.class.php'; + + $plugin_path = $_CONF['path'] . 'plugins/polls/'; + require_once $plugin_path . 'install_defaults.php'; + + if (file_exists($plugin_path . 'config.php')) { + global $_DB_table_prefix, $_PO_CONF; + + require_once $plugin_path . 'config.php'; + } + + if (!plugin_initconfig_polls()) { + echo 'There was an error upgrading the Polls plugin'; + return false; + } + + $P_SQL = array(); + $P_SQL[] = "RENAME TABLE {$_TABLES['pollquestions']} TO {$_TABLES['polltopics']};"; + $P_SQL[] = "ALTER TABLE {$_TABLES['polltopics']} CHANGE question topic VARCHAR( 255 ) NULL DEFAULT NULL"; + $P_SQL[] = "ALTER TABLE {$_TABLES['polltopics']} CHANGE qid pid VARCHAR( 20 ) NOT NULL"; + $P_SQL[] = "ALTER TABLE {$_TABLES['polltopics']} ADD questions int(11) default '0' NOT NULL AFTER voters"; + $P_SQL[] = "ALTER TABLE {$_TABLES['polltopics']} ADD open tinyint(1) NOT NULL default '1' AFTER display"; + $P_SQL[] = "ALTER TABLE {$_TABLES['polltopics']} ADD hideresults tinyint(1) NOT NULL default '0' AFTER open"; + $P_SQL[] = "ALTER TABLE {$_TABLES['pollanswers']} CHANGE qid pid VARCHAR( 20 ) NOT NULL"; + $P_SQL[] = "ALTER TABLE {$_TABLES['pollanswers']} ADD qid VARCHAR( 20 ) NOT NULL DEFAULT '0' AFTER pid;"; + $P_SQL[] = "ALTER TABLE {$_TABLES['pollanswers']} DROP PRIMARY KEY;"; + $P_SQL[] = "ALTER TABLE {$_TABLES['pollanswers']} ADD INDEX (pid, qid, aid);"; + $P_SQL[] = "ALTER TABLE {$_TABLES['pollvoters']} CHANGE qid pid VARCHAR( 20 ) NOT NULL"; + $P_SQL[] = "CREATE TABLE [dbo].[{$_TABLES['pollquestions']}] ( + [qid] [int] NOT NULL , + [pid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , + [question] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , + ) ON [PRIMARY]"; + $P_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['pollquestions']}] ADD + CONSTRAINT [PK_gl_pollquestions] PRIMARY KEY CLUSTERED + ( + [qid] + ) ON [PRIMARY]"; + // in 1.4.1, "don't display poll" was equivalent to "closed" + $P_SQL[] = "UPDATE {$_TABLES['polltopics']} SET open = 0 WHERE display = 0"; + $P_SQL[] = "UPDATE {$_TABLES['plugins']} SET pi_version = '2.0.1', pi_gl_version = '1.5.0' WHERE pi_name = 'polls'"; + + foreach ($P_SQL as $sql) { + $rst = DB_query($sql); + if (DB_error()) { + echo "There was an error upgrading the polls, SQL: $sql
        "; + return false; + } + } + $P_SQL = array(); + + $move_sql = "SELECT pid, topic FROM {$_TABLES['polltopics']}"; + $move_rst = DB_query ($move_sql); + $count_move = DB_numRows($move_rst); + for ($i = 0; $i < $count_move; $i++) { + $A = DB_fetchArray($move_rst); + $A[1] = mysql_real_escape_string($A[1]); + $P_SQL[] = "INSERT INTO {$_TABLES['pollquestions']} (pid, question) VALUES ('{$A[0]}','{$A[1]}');"; + } + + foreach ($P_SQL as $sql) { + $rst = DB_query($sql); + if (DB_error()) { + echo "There was an error upgrading the polls, SQL: $sql
        "; + return false; + } + } + + if (file_exists($plugin_path . 'config.php')) { + // Rename the existing config.php as it's not needed any more + $ren = @rename($plugin_path . 'config.php', + $plugin_path . 'config-pre1.5.0.php'); + } + + return true; + } + + // Staticpages plugin updates function upgrade_StaticpagesPlugin() { + global $_CONF, $_TABLES; + + require_once $_CONF['path_system'] . 'classes/config.class.php'; + + $plugin_path = $_CONF['path'] . 'plugins/staticpages/'; + require_once $plugin_path . 'install_defaults.php'; + + if (file_exists($plugin_path . 'config.php')) { + global $_DB_table_prefix, $_SP_CONF; + + require_once $plugin_path . 'config.php'; + } + + if (!plugin_initconfig_staticpages()) { + echo 'There was an error upgrading the Static Pages plugin'; + return false; + } + + $P_SQL = array(); + $P_SQL[] = "ALTER TABLE {$_TABLES['staticpage']} ADD commentcode tinyint(4) NOT NULL default '0' AFTER sp_label"; + // disable comments on all existing static pages + $P_SQL[] = "UPDATE {$_TABLES['staticpage']} SET commentcode = -1"; + $P_SQL[] = "UPDATE {$_TABLES['plugins']} SET pi_version = '1.5.0', pi_gl_version = '1.5.0' WHERE pi_name = 'staticpages'"; + + foreach ($P_SQL as $sql) { + $rst = DB_query($sql); + if (DB_error()) { + echo "There was an error upgrading the Static Pages plugin, SQL: $sql
        "; + return false; + } + } + + if (file_exists($plugin_path . 'config.php')) { + // Rename the existing config.php as it's not needed any more + $ren = @rename($plugin_path . 'config.php', + $plugin_path . 'config-pre1.5.0.php'); + } + + return true; + } + + // Calendar plugin updates + function upgrade_CalendarPlugin() + { + global $_CONF, $_TABLES, $_STATES; + + require_once $_CONF['path_system'] . 'classes/config.class.php'; + + $plugin_path = $_CONF['path'] . 'plugins/calendar/'; + require_once $plugin_path . 'install_defaults.php'; + + if (file_exists($plugin_path . 'config.php')) { + global $_DB_table_prefix, $_CA_CONF; + + require_once $plugin_path . 'config.php'; + } + + if (!plugin_initconfig_calendar()) { + echo 'There was an error upgrading the Polls plugin'; + return false; + } + + $P_SQL[] = "ALTER TABLE {$_TABLES['events']} CHANGE state state varchar(40) default NULL"; + $P_SQL[] = "ALTER TABLE {$_TABLES['eventsubmission']} CHANGE state state varchar(40) default NULL"; + $P_SQL[] = "ALTER TABLE {$_TABLES['personal_events']} CHANGE state state varchar(40) default NULL"; + $P_SQL[] = "UPDATE {$_TABLES['plugins']} SET pi_version = '1.0.2', pi_gl_version = '1.5.0' WHERE pi_name = 'calendar'"; + + foreach ($P_SQL as $sql) { + $rst = DB_query($sql); + if (DB_error()) { + echo "There was an error upgrading the calendar"; + return false; + } + } + + if (isset($_STATES) && is_array($_STATES)) { + $tables = array($_TABLES['events'], $_TABLES['eventsubmission'], + $_TABLES['personal_events']); + + foreach ($_STATES as $key => $state) { + foreach ($tables as $table) { + DB_change($table, 'state', addslashes($state), + 'state', addslashes($key)); + } + } + } + + if (file_exists($plugin_path . 'config.php')) { + // Rename the existing config.php as it's not needed any more + $ren = @rename($plugin_path . 'config.php', + $plugin_path . 'config-pre1.5.0.php'); + } + + return true; + } + + // Spam-X plugin updates + function upgrade_SpamXPlugin() + { + global $_CONF, $_TABLES; + + require_once $_CONF['path_system'] . 'classes/config.class.php'; + + $plugin_path = $_CONF['path'] . 'plugins/spamx/'; + require_once $plugin_path . 'install_defaults.php'; + + if (file_exists($plugin_path . 'config.php')) { + global $_DB_table_prefix, $_SPX_CONF; + + require_once $plugin_path . 'config.php'; + } + + if (!plugin_initconfig_spamx()) { + echo 'There was an error upgrading the Spam-X plugin'; + return false; + } + + $sql = "UPDATE {$_TABLES['plugins']} SET pi_version = '1.1.1', pi_gl_version = '1.5.0' WHERE pi_name = 'spamx'"; + $rst = DB_query($sql); + if (DB_error()) { + echo "There was an error upgrading the Spam-X plugin"; + return false; + } + + if (file_exists($plugin_path . 'config.php')) { + // Rename the existing config.php as it's not needed any more + $ren = @rename($plugin_path . 'config.php', + $plugin_path . 'config-pre1.5.0.php'); + } + + return true; + } + + // Links plugin updates + function upgrade_LinksPlugin() + { + global $_CONF, $_TABLES; + + require_once $_CONF['path_system'] . 'classes/config.class.php'; + + $plugin_path = $_CONF['path'] . 'plugins/links/'; + require_once $plugin_path . 'install_defaults.php'; + + if (file_exists($plugin_path . 'config.php')) { + global $_DB_table_prefix, $_LI_CONF; + + require_once $plugin_path . 'config.php'; + } + + if (!plugin_initconfig_links()) { + echo 'There was an error upgrading the Links plugin'; + return false; + } + + $li_config = config::get_instance(); + $_LI_CONF = $li_config->get_config('links'); + + if (empty($_LI_CONF['root'])) { + $_LI_CONF['root'] = 'site'; + } + $root = addslashes($_LI_CONF['root']); + + $P_SQL = array(); + $P_SQL[] = "CREATE TABLE [dbo].[{$_TABLES['linkcategories']}] ( + [cid] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , + [pid] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , + [category] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , + [description] [varchar] (5000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , + [tid] [varchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , + [created] [datetime] NULL , + [modified] [datetime] NULL , + [owner_id] [numeric](8, 0) NOT NULL , + [group_id] [numeric](8, 0) NOT NULL , + [perm_owner] [tinyint] NOT NULL , + [perm_group] [tinyint] NOT NULL , + [perm_members] [tinyint] NOT NULL , + [perm_anon] [tinyint] NOT NULL + ) ON [PRIMARY]"; + $P_SQL[] = "ALTER TABLE [dbo].[{$_TABLES['linkcategories']}] ADD + CONSTRAINT [PK_gl_linkcategories] PRIMARY KEY CLUSTERED + ( + [pid] + ) ON [PRIMARY]"; + + $blockadmin_id = DB_getItem($_TABLES['groups'], 'grp_id', + "grp_name='Block Admin'"); + + $P_SQL[] = "ALTER TABLE {$_TABLES['linksubmission']} ADD owner_id mediumint(8) unsigned NOT NULL default '1' AFTER date"; + $P_SQL[] = "ALTER TABLE {$_TABLES['linksubmission']} CHANGE category cid v