From geeklog-cvs at lists.geeklog.net Fri May 1 03:33:46 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Fri, 01 May 2009 03:33:46 -0400
Subject: [geeklog-cvs] geeklog: Fixed hard-coded drop-down for the number of
search res...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/570f7f58074a
changeset: 7003:570f7f58074a
user: Dirk Haun
date: Fri May 01 09:33:36 2009 +0200
description:
Fixed hard-coded drop-down for the number of search results per page
diffstat:
2 files changed, 13 insertions(+), 4 deletions(-)
public_html/docs/english/theme.html | 12 ++++++++++++
public_html/layout/professional/search/searchform.thtml | 5 +----
diffs (37 lines):
diff -r eaf8afaa2ef1 -r 570f7f58074a public_html/docs/english/theme.html
--- a/public_html/docs/english/theme.html Thu Apr 30 23:23:42 2009 +0100
+++ b/public_html/docs/english/theme.html Fri May 01 09:33:36 2009 +0200
@@ -244,6 +244,18 @@
generated by Geeklog. The <table> that contained these
elements has been removed from the template file.
+
+
Search
+
+
The templates for the search form and search results have been changed and
+new template files have been added for the new display modes of the search
+results. We suggest to replace the entire search subdirectory in your
+theme with a copy of the directory from the Professional theme as it ships
+with Geeklog.
From geeklog-cvs at lists.geeklog.net Fri May 1 10:03:06 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Fri, 01 May 2009 10:03:06 -0400
Subject: [geeklog-cvs] geeklog: New XMLSitemap plugin, provided by mystral-kk
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/fc202669ac90
changeset: 7005:fc202669ac90
user: Dirk Haun
date: Fri May 01 11:23:44 2009 +0200
description:
New XMLSitemap plugin, provided by mystral-kk
diffstat:
11 files changed, 1682 insertions(+)
plugins/xmlsitemap/autoinstall.php | 131 +++++
plugins/xmlsitemap/functions.inc | 554 ++++++++++++++++++++++++
plugins/xmlsitemap/install_defaults.php | 119 +++++
plugins/xmlsitemap/language/english.php | 74 +++
plugins/xmlsitemap/language/english_utf-8.php | 74 +++
plugins/xmlsitemap/language/japanese_utf-8.php | 74 +++
plugins/xmlsitemap/sql/mssql_install.php | 49 ++
plugins/xmlsitemap/sql/mysql_install.php | 49 ++
plugins/xmlsitemap/xmlsitemap.class.php | 553 +++++++++++++++++++++++
public_html/docs/english/changes.html | 3
public_html/docs/history | 2
diffs (truncated from 1738 to 300 lines):
diff -r 895386b8afcb -r fc202669ac90 plugins/xmlsitemap/autoinstall.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/plugins/xmlsitemap/autoinstall.php Fri May 01 11:23:44 2009 +0200
@@ -0,0 +1,131 @@
+ $pi_name,
+ 'pi_display_name' => $pi_display_name,
+ 'pi_version' => '1.0.0',
+ 'pi_gl_version' => '1.6.0',
+ 'pi_homepage' => 'http://www.geeklog.net/',
+ );
+
+ $groups = array(
+ $pi_admin => 'Users in this group can administer the ' . $pi_display_name . ' plugin'
+ );
+ $features = array(
+ $feature => 'Access to ' . $pi_admin,
+ );
+ $mappings = array(
+ $feature => array($pi_admin),
+ );
+ $tables = array();
+
+ $inst_parms = array(
+ 'info' => $info,
+ 'groups' => $groups,
+ 'features' => $features,
+ 'mappings' => $mappings,
+ 'tables' => $tables,
+ );
+
+ return $inst_parms;
+}
+
+/**
+* Load plugin configuration from database
+*
+* @param string $pi_name Plugin name
+* @return boolean TRUE on success, otherwise FALSE
+* @see plugin_initconfig_glsitemap
+*
+*/
+function plugin_load_configuration_xmlsitemap($pi_name)
+{
+ global $_CONF;
+
+ $base_path = $_CONF['path'] . 'plugins/' . $pi_name . '/';
+
+ require_once $_CONF['path_system'] . 'classes/config.class.php';
+ require_once $base_path . 'install_defaults.php';
+
+ return plugin_initconfig_xmlsitemap();
+}
+
+/**
+* Check if the plugin is compatible with this Geeklog version
+*
+* @param string $pi_name Plugin name
+* @return boolean TRUE: plugin compatible; FALSE: not compatible
+*
+*/
+function plugin_compatible_with_this_version_xmlsitemap($pi_name)
+{
+ return function_exists('PLG_itemDeleted');
+}
+
+/**
+* Perform post-install operations
+*
+* @param string $pi_name Plugin name
+* @return boolean TRUE: plugin compatible; FALSE: not compatible
+*/
+function plugin_postinstall_xmlsitemap($pi_name)
+{
+ global $_CONF, $_XMLSMAP_CONF;
+
+ require_once $_CONF['path'] . 'plugins/xmlsitemap/functions.inc';
+
+ // Create an XML sitemap for the first time
+ return XMLSMAP_update();
+}
+
+?>
diff -r 895386b8afcb -r fc202669ac90 plugins/xmlsitemap/functions.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/plugins/xmlsitemap/functions.inc Fri May 01 11:23:44 2009 +0200
@@ -0,0 +1,554 @@
+ array(),
+ /* give the full name of the group, as in the db */
+ 'groups' => array('XMLSitemap Admin'),
+ /* give the full name of the feature, as in the db */
+ 'features' => array('xmlsitemap.edit'),
+ /* give the full name of the block, including 'phpblock_', etc */
+ 'php_blocks' => array(),
+ /* give all vars with their name */
+ 'vars' => array('xmlsitemap_filename', 'xmlsitemap_mobile'),
+ );
+ return $out;
+}
+
+/**
+* Loads config infor with config.class.php
+*/
+function XMLSMAP_loadConfig()
+{
+ global $_CONF;
+
+ require_once $_CONF['path_system'] . 'classes/config.class.php';
+
+ $config = config::get_instance();
+ if ($config->group_exists('xmlsitemap')) {
+ return $config->get_config('xmlsitemap');
+ } else {
+ return FALSE;
+ }
+}
+
+/**
+* Return a string escaped for HTML output
+*/
+function XMLSMAP_esc($str)
+{
+ static $encoding = NULL;
+
+ if ($encoding === NULL) {
+ $encoding = COM_getCharset();;
From geeklog-cvs at lists.geeklog.net Fri May 1 10:03:06 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Fri, 01 May 2009 10:03:06 -0400
Subject: [geeklog-cvs] geeklog: Documentation updates
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/895386b8afcb
changeset: 7004:895386b8afcb
user: Dirk Haun
date: Fri May 01 10:05:04 2009 +0200
description:
Documentation updates
diffstat:
3 files changed, 20 insertions(+), 6 deletions(-)
public_html/docs/english/changes.html | 12 ++++++++++++
public_html/docs/english/theme.html | 1 +
public_html/docs/history | 13 +++++++------
diffs (91 lines):
diff -r 570f7f58074a -r 895386b8afcb public_html/docs/english/changes.html
--- a/public_html/docs/english/changes.html Fri May 01 09:33:36 2009 +0200
+++ b/public_html/docs/english/changes.html Fri May 01 10:05:04 2009 +0200
@@ -35,7 +35,19 @@
The minimum PHP version required by Geeklog is now PHP 4.3.0. Given that the PHP team ended support for PHP 4 in August 2008, you should be
looking into upgrading to PHP 5 anyway.
The included documentation has been moved to docs/english to allow
+ for translations. Links to the documentation from within Geeklog will link
+ to existing translations for the current language automatically (or fall
+ back to the English documentation if no suitable translation can be found).
+
There were a variety of theme changes to
+ support new functionality and fix inconsistencies in the layout.
+
+
This release also includes a number of patches and improvements made by
+students applying for participation in the Google Summer of Code 2009. Thank
+you!
diff -r 570f7f58074a -r 895386b8afcb public_html/docs/history
--- a/public_html/docs/history Fri May 01 09:33:36 2009 +0200
+++ b/public_html/docs/history Fri May 01 10:05:04 2009 +0200
@@ -1,7 +1,7 @@
Geeklog History/Changes:
-Apr ??, 2009 (1.6.0)
-------------
+May 1, 2009 (1.6.0b1)
+-----------
Geeklog 1.6.0 incorporates the following projects implemented during
the 2008 Google Summer of Code:
@@ -25,6 +25,7 @@
* Cronjob emulation is off
* Default sort for topics is alphabetically
* Default comment mode is nested
+ These settings are _not_ changed when upgrading from an earlier version.
- Experimental: Compress HTML output before sending it to the browser (disabled
by default; has to be supported by both the browser and the webserver) [Dirk]
- Moved hard-coded texts from admin/sectest.php to the language files (bug
@@ -32,7 +33,7 @@
- Added an option to send a copy of the email to a user to self (feature request
#0000771, based on a patch by Roshan Singh)
- COM_checkList would use the table name for the name of the checkbox array in
- the HTML(!) - added a new parameter for the name (pointed out by Bookoo in
+ the HTML(!). Added a new parameter for the name (pointed out by Bookoo in
the exploit for usersettings.php, cf. Geeklog 1.5.2sr4) [Dirk]
- Fixed wrong use of COM_allowedHTML and COM_checkHTML in plugins: Functions
were called without specific permissions, so they defaulted to 'story.edit'.
@@ -411,7 +412,7 @@
- Re-introduced function get_SP_Ver in the install script, which is still needed
when upgrading from old Geeklog releases (reported by libexec) [Dirk]
- Fixed issue where you can post a comment to an unpublished story (bug
- #0000705) [Mystral_KK/Mike]
+ #0000705) [mystral-kk/Mike]
- Fixed make clickable links with quotes (bug #0000691) plus truncated long
urls. [Sami]
- Fixed table prefix issues with constraints (bug #0000702) [Mike/Sami]
@@ -421,7 +422,7 @@
- Moved remove() (config JavaScript) to gl_cfg_remove (bug #0000681) [Mike]
- Change for CUSTOM_usercreate to support passing in $batchimport,
set true if called via the Admin->Users Batch_Add [Blaine]
-- Fix for date formatting in RSS fields (bug #0000696) [mystral_kk]
+- Fix for date formatting in RSS fields (bug #0000696) [mystral-kk]
- A small tweak to the Professional theme's commentbar to make the "Post a
comment" option easier to find [Dirk]
- Renamed the syndication feed type "geeklog" to "article" since that's what
@@ -721,7 +722,7 @@
- Avoid division by zero error when $_CONF['limitnews'] == 0
(reported by Samuel M. Stone) [Dirk]
- Bugfix: Atom always assumes 0.3 and doesn't handle article dates. (Reported by
- mystral kk on the forums). [Mike]
+ mystral-kk on the forums). [Mike]
- Added OpenID 1.1 support, provided by Choplair
- Pass site_name into story templates so advanced linking to items like digg.com
can be templated cross-site. [Mike]
From geeklog-cvs at lists.geeklog.net Fri May 1 10:03:09 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Fri, 01 May 2009 10:03:09 -0400
Subject: [geeklog-cvs] geeklog: Always set version number from the install
script. The ...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/0c7d10cbc6bf
changeset: 7008:0c7d10cbc6bf
user: Dirk Haun
date: Fri May 01 15:57:50 2009 +0200
description:
Always set version number from the install script. The constant in lib-install.php now defines the Geeklog version number.
diffstat:
4 files changed, 47 insertions(+), 35 deletions(-)
public_html/admin/install/index.php | 3 -
public_html/admin/install/lib-install.php | 46 ++++++++++++++++++++++++++++-
public_html/admin/install/lib-upgrade.php | 31 -------------------
public_html/siteconfig.php.dist | 2 -
diffs (134 lines):
diff -r 8682136933a3 -r 0c7d10cbc6bf public_html/admin/install/index.php
--- a/public_html/admin/install/index.php Fri May 01 14:38:59 2009 +0200
+++ b/public_html/admin/install/index.php Fri May 01 15:57:50 2009 +0200
@@ -485,8 +485,7 @@
$config->set('language', $lng);
}
- DB_change($_TABLES['vars'], 'value', VERSION,
- 'name', 'database_version');
+ INST_setVersion($siteconfig_path);
if (! $install_plugins) {
// do a default install of all available plugins
diff -r 8682136933a3 -r 0c7d10cbc6bf public_html/admin/install/lib-install.php
--- a/public_html/admin/install/lib-install.php Fri May 01 14:38:59 2009 +0200
+++ b/public_html/admin/install/lib-install.php Fri May 01 15:57:50 2009 +0200
@@ -52,7 +52,11 @@
define('LB', "\n");
}
if (!defined('VERSION')) {
- define('VERSION', '1.6.0');
+ /**
+ * This constant defines Geeklog's version number. It will be written to
+ * siteconfig.php and the database (in the latter case minus any suffix).
+ */
+ define('VERSION', '1.6.0b1');
}
if (!defined('XHTML')) {
define('XHTML', ' /');
@@ -1105,4 +1109,44 @@
return $language;
}
+/**
+* Set Geeklog version number in siteconfig.php and in the database
+*
+* @param string $siteconfig_path path to siteconfig.php
+* @return void
+*
+*/
+function INST_setVersion($siteconfig_path)
+{
+ global $_TABLES, $LANG_INSTALL;
+
+ $siteconfig_file = fopen($siteconfig_path, 'r');
+ $siteconfig_data = fread($siteconfig_file, filesize($siteconfig_path));
+ fclose($siteconfig_file);
+
+ $siteconfig_data = preg_replace
+ (
+ '/define\s*\(\'VERSION\',[^;]*;/',
+ "define('VERSION', '" . VERSION . "');",
+ $siteconfig_data
+ );
+
+ $siteconfig_file = @fopen($siteconfig_path, 'w');
+ if (! fwrite($siteconfig_file, $siteconfig_data)) {
+ exit($LANG_INSTALL[26] . ' ' . $LANG_INSTALL[28]);
+ }
+ fclose($siteconfig_file);
+
+ // for the database version, get rid of any appendices ('sr1' etc.)
+ $version = VERSION;
+ $v = explode('.', VERSION);
+ if (count($v) == 3) {
+ $v[2] = (int) $v[2];
+ $version = implode('.', $v);
+ }
+ $version = addslashes($version);
+
+ DB_change($_TABLES['vars'], 'value', $version, 'name', 'database_version');
+}
+
?>
diff -r 8682136933a3 -r 0c7d10cbc6bf public_html/admin/install/lib-upgrade.php
--- a/public_html/admin/install/lib-upgrade.php Fri May 01 14:38:59 2009 +0200
+++ b/public_html/admin/install/lib-upgrade.php Fri May 01 15:57:50 2009 +0200
@@ -485,8 +485,6 @@
// to run admin/sectest.php again
DB_delete($_TABLES['vars'], 'name', 'security_check');
- DB_change($_TABLES['vars'], 'value', VERSION, 'name', 'database_version');
-
return true;
}
@@ -641,35 +639,6 @@
return $result;
}
-
-/**
- * Set VERSION constant in siteconfig.php after successful upgrade
- *
- * @param string $siteconfig_path path to siteconfig.php
- * @return void
- *
- */
-function INST_setVersion($siteconfig_path)
-{
- global $LANG_INSTALL;
-
- $siteconfig_file = fopen($siteconfig_path, 'r');
- $siteconfig_data = fread($siteconfig_file, filesize($siteconfig_path));
- fclose($siteconfig_file);
-
- $siteconfig_data = preg_replace
- (
- '/define\s*\(\'VERSION\',[^;]*;/',
- "define('VERSION', '" . VERSION . "');",
- $siteconfig_data
- );
-
- $siteconfig_file = fopen($siteconfig_path, 'w');
- if (!fwrite($siteconfig_file, $siteconfig_data)) {
- exit($LANG_INSTALL[26] . ' ' . $LANG_INSTALL[28]);
- }
- fclose($siteconfig_file);
-}
/**
diff -r 8682136933a3 -r 0c7d10cbc6bf public_html/siteconfig.php.dist
--- a/public_html/siteconfig.php.dist Fri May 01 14:38:59 2009 +0200
+++ b/public_html/siteconfig.php.dist Fri May 01 15:57:50 2009 +0200
@@ -38,7 +38,7 @@
define('LB',"\n");
}
if (!defined('VERSION')) {
- define('VERSION', '1.6.0hg');
+ define('VERSION', '1.6.0');
}
?>
From geeklog-cvs at lists.geeklog.net Fri May 1 10:03:08 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Fri, 01 May 2009 10:03:08 -0400
Subject: [geeklog-cvs] geeklog: Disable postinstall for now (causes problems
on fresh i...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/8682136933a3
changeset: 7007:8682136933a3
user: Dirk Haun
date: Fri May 01 14:38:59 2009 +0200
description:
Disable postinstall for now (causes problems on fresh install)
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
plugins/xmlsitemap/autoinstall.php | 3 ++-
diffs (18 lines):
diff -r cb14f78341a2 -r 8682136933a3 plugins/xmlsitemap/autoinstall.php
--- a/plugins/xmlsitemap/autoinstall.php Fri May 01 13:18:23 2009 +0200
+++ b/plugins/xmlsitemap/autoinstall.php Fri May 01 14:38:59 2009 +0200
@@ -118,6 +118,7 @@
* @param string $pi_name Plugin name
* @return boolean TRUE: plugin compatible; FALSE: not compatible
*/
+/*
function plugin_postinstall_xmlsitemap($pi_name)
{
global $_CONF, $_XMLSMAP_CONF;
@@ -127,5 +128,5 @@
// Create an XML sitemap for the first time
return XMLSMAP_update();
}
-
+*/
?>
From geeklog-cvs at lists.geeklog.net Fri May 1 10:03:07 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Fri, 01 May 2009 10:03:07 -0400
Subject: [geeklog-cvs] geeklog: Auto-install new plugins during upgrade and
migrate
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/cb14f78341a2
changeset: 7006:cb14f78341a2
user: Dirk Haun
date: Fri May 01 13:18:23 2009 +0200
description:
Auto-install new plugins during upgrade and migrate
diffstat:
3 files changed, 74 insertions(+)
public_html/admin/install/index.php | 6 ++
public_html/admin/install/lib-upgrade.php | 65 +++++++++++++++++++++++++++++
public_html/admin/install/migrate.php | 3 +
diffs (104 lines):
diff -r fc202669ac90 -r cb14f78341a2 public_html/admin/install/index.php
--- a/public_html/admin/install/index.php Fri May 01 11:23:44 2009 +0200
+++ b/public_html/admin/install/index.php Fri May 01 13:18:23 2009 +0200
@@ -591,6 +591,12 @@
!empty($_GET['install_plugins']))
? true
: false);
+
+ if (! $install_plugins) {
+ // if we don't do the manual selection, install all new plugins now
+ INST_autoinstallNewPlugins();
+ }
+
$next_link = ($install_plugins
? 'install-plugins.php?language=' . $language
: 'success.php?type=' . $install_type
diff -r fc202669ac90 -r cb14f78341a2 public_html/admin/install/lib-upgrade.php
--- a/public_html/admin/install/lib-upgrade.php Fri May 01 11:23:44 2009 +0200
+++ b/public_html/admin/install/lib-upgrade.php Fri May 01 13:18:23 2009 +0200
@@ -867,6 +867,71 @@
}
/**
+* Pick up and install any new plugins
+*
+* Search for plugins that exist in the filesystem but are not registered with
+* Geeklog. If they support auto install, install them now.
+*
+* @return void
+*
+*/
+function INST_autoinstallNewPlugins()
+{
+ global $_CONF, $_TABLES;
+
+ $newplugins = array();
+
+ clearstatcache ();
+ $plugins_dir = $_CONF['path'] . 'plugins/';
+ $fd = opendir($plugins_dir);
+ while (($plugin = @readdir($fd)) == TRUE) {
+
+ if (($plugin <> '.') && ($plugin <> '..') && ($plugin <> 'CVS') &&
+ (substr($plugin, 0, 1) <> '.') &&
+ (substr($plugin, 0, 1) <> '_') &&
+ is_dir($plugins_dir . $plugin)) {
+
+ if (DB_count($_TABLES['plugins'], 'pi_name', $plugin) == 0) {
+
+ // found a new plugin: remember name, keep on searching
+ $newplugins[] = $plugin;
+
+ }
+ }
+ }
+
+ // automatically install all new plugins that come with a autoinstall.php
+ foreach ($newplugins as $pi_name) {
+ $plugin_inst = $_CONF['path'] . 'plugins/' . $pi_name
+ . '/autoinstall.php';
+ if (file_exists($plugin_inst)) {
+
+ require_once $plugin_inst;
+
+ $check_compatible = 'plugin_compatible_with_this_version_'
+ . $pi_name;
+ if (function_exists($check_compatible)) {
+ if (! $check_compatible($pi_name)) {
+ continue; // with next plugin
+ }
+ }
+
+ $auto_install = 'plugin_autoinstall_' . $pi_name;
+ if (! function_exists($auto_install)) {
+ continue; // with next plugin
+ }
+
+ $inst_parms = $auto_install($pi_name);
+ if (($inst_parms === false) || empty($inst_parms)) {
+ continue; // with next plugin
+ }
+
+ INST_pluginAutoinstall($pi_name, $inst_parms);
+ }
+ }
+}
+
+/**
* Make sure optional config options can be disabled
*
* Back when Geeklog used a config.php file, some of the comment options were
diff -r fc202669ac90 -r cb14f78341a2 public_html/admin/install/migrate.php
--- a/public_html/admin/install/migrate.php Fri May 01 11:23:44 2009 +0200
+++ b/public_html/admin/install/migrate.php Fri May 01 13:18:23 2009 +0200
@@ -840,6 +840,9 @@
}
+ // finally, check for any new plugins and install them
+ INST_autoinstallNewPlugins();
+
/**
* Check for other missing files
* e.g. images/articles, images/topics, images/userphotos
From geeklog-cvs at lists.geeklog.net Fri May 1 13:31:09 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Fri, 01 May 2009 13:31:09 -0400
Subject: [geeklog-cvs] geeklog: Added tag geeklog_1_6_0b1 for changeset
0c7d10cbc6bf
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/b88b42219ce6
changeset: 7009:b88b42219ce6
user: Dirk Haun
date: Fri May 01 19:30:50 2009 +0200
description:
Added tag geeklog_1_6_0b1 for changeset 0c7d10cbc6bf
diffstat:
1 file changed, 1 insertion(+)
.hgtags | 1 +
diffs (7 lines):
diff -r 0c7d10cbc6bf -r b88b42219ce6 .hgtags
--- a/.hgtags Fri May 01 15:57:50 2009 +0200
+++ b/.hgtags Fri May 01 19:30:50 2009 +0200
@@ -1,2 +1,3 @@
f51a1417bd7041bea96370434142498438d4e558 geeklog_1_5_0_stable
8abbb13ee513b6cf2c76d702273c3fa118f9bf5c geeklog_1_5_1_stable
+0c7d10cbc6bf6c040842707763920ccd9dea6d15 geeklog_1_6_0b1
From geeklog-cvs at lists.geeklog.net Sat May 2 02:56:28 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 02 May 2009 02:56:28 -0400
Subject: [geeklog-cvs] geeklog: Fixed a typo that prevented the
[staticpage:] autotag f...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/d60bf2d05792
changeset: 7010:d60bf2d05792
user: Dirk Haun
date: Sat May 02 08:56:18 2009 +0200
description:
Fixed a typo that prevented the [staticpage:] autotag from working
diffstat:
2 files changed, 9 insertions(+), 3 deletions(-)
plugins/staticpages/functions.inc | 2 +-
public_html/docs/history | 10 ++++++++--
diffs (38 lines):
diff -r b88b42219ce6 -r d60bf2d05792 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc Fri May 01 19:30:50 2009 +0200
+++ b/plugins/staticpages/functions.inc Sat May 02 08:56:18 2009 +0200
@@ -944,7 +944,7 @@
} else if ($op == 'parse') {
if ($autotag['tag'] == 'staticpage' ) {
$sp_id = COM_applyFilter($autotag['parm1']);
- if (! empty($sp_is)) {
+ if (! empty($sp_id)) {
$url = COM_buildUrl($_CONF['site_url']
. '/staticpages/index.php?page=' . $sp_id);
if (empty($autotag['parm2'])) {
diff -r b88b42219ce6 -r d60bf2d05792 public_html/docs/history
--- a/public_html/docs/history Fri May 01 19:30:50 2009 +0200
+++ b/public_html/docs/history Sat May 02 08:56:18 2009 +0200
@@ -1,7 +1,7 @@
Geeklog History/Changes:
-May 1, 2009 (1.6.0b1)
------------
+May ??, 2009 (1.6.0b2)
+------------
Geeklog 1.6.0 incorporates the following projects implemented during
the 2008 Google Summer of Code:
@@ -11,6 +11,12 @@
+ Comment moderation and editable comments, by Jared Wenerd
Other changes:
+- Fixed a typo that prevented the [staticpage:] autotag from working [Dirk]
+
+
+May 1, 2009 (1.6.0b1)
+-----------
+
- New XMLSitemap plugin that creates a XML sitemaps file as supported by all
major search engines, provided by mystral-kk
- Don't allow to add/remove users to/from the All Users and Logged-in Users
From geeklog-cvs at lists.geeklog.net Sat May 2 05:55:35 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 02 May 2009 05:55:35 -0400
Subject: [geeklog-cvs] geeklog: Added a verbose logging option to the search
class and ...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/6c74bf38fcd5
changeset: 7011:6c74bf38fcd5
user: Dirk Haun
date: Sat May 02 11:09:55 2009 +0200
description:
Added a verbose logging option to the search class and make it default to off
diffstat:
2 files changed, 12 insertions(+), 3 deletions(-)
public_html/docs/history | 2 ++
system/classes/search.class.php | 13 ++++++++++---
diffs (56 lines):
diff -r d60bf2d05792 -r 6c74bf38fcd5 public_html/docs/history
--- a/public_html/docs/history Sat May 02 08:56:18 2009 +0200
+++ b/public_html/docs/history Sat May 02 11:09:55 2009 +0200
@@ -11,6 +11,8 @@
+ Comment moderation and editable comments, by Jared Wenerd
Other changes:
+- Added a verbose logging option to the search class and make it default to off
+ [Dirk]
- Fixed a typo that prevented the [staticpage:] autotag from working [Dirk]
diff -r d60bf2d05792 -r 6c74bf38fcd5 system/classes/search.class.php
--- a/system/classes/search.class.php Sat May 02 08:56:18 2009 +0200
+++ b/system/classes/search.class.php Sat May 02 11:09:55 2009 +0200
@@ -61,6 +61,7 @@
var $_append_query = array();
var $_searchURL = '';
var $_wordlength;
+ var $_verbose = false; // verbose logging
/**
* Constructor
@@ -572,7 +573,9 @@
$sql = $this->_convertsql($sql);
$debug_info .= "SQL = " . print_r($sql,1);
- COM_errorLog($debug_info);
+ if ($this->_verbose) {
+ COM_errorLog($debug_info);
+ }
$obj->setQuery($result->getLabel(), $result->getName(), $sql, $result->getRank());
$this->_url_rewrite[ $result->getName() ] = $result->UrlRewriteEnable();
@@ -585,7 +588,9 @@
$debug_info = $result->plugin_name . " using APIv1 with backwards compatibility.";
$debug_info .= " Count: " . $result->num_searchresults;
$debug_info .= " Headings: " . implode(",", $result->searchheading);
- COM_errorLog($debug_info);
+ if ($this->_verbose) {
+ COM_errorLog($debug_info);
+ }
// Find the column heading names that closely match what we are looking for
// There may be issues here on different languages, but this _should_ capture most of the data
@@ -641,7 +646,9 @@
}
// Find out how many plugins are on the old/new system
- COM_errorLog("Search Plugins using APIv1: $old_api APIv2: $new_api");
+ if ($this->_verbose) {
+ COM_errorLog("Search Plugins using APIv1: $old_api APIv2: $new_api");
+ }
// Execute the queries
$results = $obj->ExecuteQueries();
From geeklog-cvs at lists.geeklog.net Sat May 2 05:55:35 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 02 May 2009 05:55:35 -0400
Subject: [geeklog-cvs] geeklog: Fixed "missing argument 2" error when
changing config o...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/6d6351820714
changeset: 7012:6d6351820714
user: Dirk Haun
date: Sat May 02 11:51:40 2009 +0200
description:
Fixed "missing argument 2" error when changing config options (reported by Markus Wollschl?ger)
diffstat:
2 files changed, 9 insertions(+), 1 deletion(-)
plugins/xmlsitemap/functions.inc | 2 +-
public_html/docs/history | 8 ++++++++
diffs (31 lines):
diff -r 6c74bf38fcd5 -r 6d6351820714 plugins/xmlsitemap/functions.inc
--- a/plugins/xmlsitemap/functions.inc Sat May 02 11:09:55 2009 +0200
+++ b/plugins/xmlsitemap/functions.inc Sat May 02 11:51:40 2009 +0200
@@ -428,7 +428,7 @@
* @param group string - 'Core' or 'xmlsitemap'
* @param changes array of string - config var key
*/
-function plugin_configchange_xmlsitemap($group, $changes)
+function plugin_configchange_xmlsitemap($group, $changes = array())
{
global $_XMLSMAP_CONF;
diff -r 6c74bf38fcd5 -r 6d6351820714 public_html/docs/history
--- a/public_html/docs/history Sat May 02 11:09:55 2009 +0200
+++ b/public_html/docs/history Sat May 02 11:51:40 2009 +0200
@@ -13,7 +13,15 @@
Other changes:
- Added a verbose logging option to the search class and make it default to off
[Dirk]
+
+Static Pages plugin
+-------------------
- Fixed a typo that prevented the [staticpage:] autotag from working [Dirk]
+
+XMLSitemap plugin
+-----------------
+- Fixed "missing argument 2" error when changing config options (reported by
+ Markus Wollschl?ger) [Dirk]
May 1, 2009 (1.6.0b1)
From geeklog-cvs at lists.geeklog.net Mon May 4 04:30:51 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Mon, 04 May 2009 04:30:51 -0400
Subject: [geeklog-cvs] geeklog: Typo - missing #
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/886277aabf83
changeset: 7013:886277aabf83
user: Dirk Haun
date: Mon May 04 10:10:31 2009 +0200
description:
Typo - missing #
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
public_html/docs/english/config.html | 2 +-
diffs (12 lines):
diff -r 6d6351820714 -r 886277aabf83 public_html/docs/english/config.html
--- a/public_html/docs/english/config.html Sat May 02 11:51:40 2009 +0200
+++ b/public_html/docs/english/config.html Mon May 04 10:10:31 2009 +0200
@@ -935,7 +935,7 @@
How long (in seconds) a comment is editable for the user who
- submitted it. Requires that comments are editable (see above). Anonymous users (those that did not register an account) can
+ submitted it. Requires that comments are editable (see above). Anonymous users (those that did not register an account) can
never edit their comments while admins can always edit comments.
From geeklog-cvs at lists.geeklog.net Thu May 7 06:22:49 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Thu, 07 May 2009 06:22:49 -0400
Subject: [geeklog-cvs] geeklog: Fixed link to the changelog
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/9925b80d9681
changeset: 7015:9925b80d9681
user: Dirk Haun
date: Thu May 07 12:22:39 2009 +0200
description:
Fixed link to the changelog
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
public_html/docs/english/changes.html | 4 ++--
diffs (14 lines):
diff -r 31e2e1ea5a34 -r 9925b80d9681 public_html/docs/english/changes.html
--- a/public_html/docs/english/changes.html Mon May 04 10:17:58 2009 +0200
+++ b/public_html/docs/english/changes.html Thu May 07 12:22:39 2009 +0200
@@ -13,8 +13,8 @@
This document is intended to give a quick overview over the most important
and / or obvious changes. For a detailed list of changes, please consult the
-ChangeLog. The file docs/changed-files has a list
-of files that have been changed since the last release.
+ChangeLog. The file docs/changed-files has a
+list of files that have been changed since the last release.
diff -r 7744a7852de5 -r 152b26131cf0 public_html/layout/professional/comment/commentform_advanced.thtml
--- a/public_html/layout/professional/comment/commentform_advanced.thtml Sun May 10 17:29:58 2009 +0200
+++ b/public_html/layout/professional/comment/commentform_advanced.thtml Sun May 10 17:39:32 2009 +0200
@@ -14,7 +14,7 @@
-
+
{username} [ {lang_logoutorcreateaccount} ]
diff -r 7744a7852de5 -r 152b26131cf0 system/lib-comment.php
--- a/system/lib-comment.php Sun May 10 17:29:58 2009 +0200
+++ b/system/lib-comment.php Sun May 10 17:39:32 2009 +0200
@@ -948,7 +948,8 @@
$username = $_USER['username'];
$fullname = $_USER['fullname'];
}
- $comment_template->set_var('CSRF_TOKEN', SEC_createToken());
+ $comment_template->set_var('gltoken_name', CSRF_TOKEN);
+ $comment_template->set_var('gltoken', SEC_createToken());
$comment_template->set_var('uid', $commentuid);
$name = COM_getDisplayName($commentuid, $username, $fullname);
$comment_template->set_var('username', $name);
From geeklog-cvs at lists.geeklog.net Sun May 10 13:49:30 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 10 May 2009 13:49:30 -0400
Subject: [geeklog-cvs] geeklog: Fixed link to the license file
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/67961dab62a9
changeset: 7023:67961dab62a9
user: Dirk Haun
date: Sun May 10 16:05:08 2009 +0200
description:
Fixed link to the license file
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
public_html/docs/english/index.html | 2 +-
diffs (12 lines):
diff -r 40def9c7258a -r 67961dab62a9 public_html/docs/english/index.html
--- a/public_html/docs/english/index.html Sun May 10 11:23:06 2009 +0200
+++ b/public_html/docs/english/index.html Sun May 10 16:05:08 2009 +0200
@@ -117,7 +117,7 @@
the ground, while Dirk Haun is now acting as the Geeklog maintainer.
Geeklog is bona fide open-source software and has been released under the
-GNU GPLv2
+GNU GPLv2
for use by others. Configuring Geeklog is meant to be an easy process though it
will require you to have access to several components of your system.
From geeklog-cvs at lists.geeklog.net Sun May 10 13:49:30 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 10 May 2009 13:49:30 -0400
Subject: [geeklog-cvs] geeklog: Added missing comment template changes (less
than I tho...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/7744a7852de5
changeset: 7024:7744a7852de5
user: Dirk Haun
date: Sun May 10 17:29:58 2009 +0200
description:
Added missing comment template changes (less than I thought ...)
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
public_html/docs/english/theme.html | 4 +++-
diffs (14 lines):
diff -r 67961dab62a9 -r 7744a7852de5 public_html/docs/english/theme.html
--- a/public_html/docs/english/theme.html Sun May 10 16:05:08 2009 +0200
+++ b/public_html/docs/english/theme.html Sun May 10 17:29:58 2009 +0200
@@ -255,7 +255,9 @@
Comments
-
TBD
+
The commentform.thtml and commentform.thtml template files
+were changed to include a security token and a {notifcation}
+variable (for the new option to be notified of followup comments).
Plugins
From geeklog-cvs at lists.geeklog.net Sun May 10 15:44:26 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 10 May 2009 15:44:26 -0400
Subject: [geeklog-cvs] geeklog: Avoid SQL error in the unlikely event that a
user is no...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/ba11d6859ebc
changeset: 7026:ba11d6859ebc
user: Dirk Haun
date: Sun May 10 21:43:03 2009 +0200
description:
Avoid SQL error in the unlikely event that a user is not a member of any groups ("this shouldn't happen"; cf. bug #0000863)
diffstat:
1 file changed, 9 insertions(+), 4 deletions(-)
system/lib-security.php | 13 +++++++++----
diffs (35 lines):
diff -r 152b26131cf0 -r ba11d6859ebc system/lib-security.php
--- a/system/lib-security.php Sun May 10 17:39:32 2009 +0200
+++ b/system/lib-security.php Sun May 10 21:43:03 2009 +0200
@@ -470,15 +470,15 @@
/**
* Gets everything a user has permissions to within the system
*
-* This is part of the Geeklog security implmentation. This function
-* will get all the permissions the current user has call itself recursively.
+* This is part of the Geeklog security implementation. This function
+* will get all the permissions the current user has. Calls itself recursively.
*
-* @param int $grp_id DO NOT USE (Used for reccursion) Current group function is working on
+* @param int $grp_id DO NOT USE (Used for recursion) Current group function is working on
* @param int $uid User to check, if empty current user.
* @return string returns comma delimited list of features the user has access to
*
*/
-function SEC_getUserPermissions($grp_id='',$uid='')
+function SEC_getUserPermissions($grp_id='', $uid='')
{
global $_TABLES, $_USER, $_SEC_VERBOSE, $_GROUPS;
@@ -504,6 +504,11 @@
$groups = $_GROUPS;
} else {
$groups = SEC_getUserGroups ($uid);
+ }
+
+ if (empty($groups)) {
+ // this shouldn't happen - make a graceful exit to avoid an SQL error
+ return '';
}
$glist = join(',', $groups);
From geeklog-cvs at lists.geeklog.net Mon May 11 06:16:59 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Mon, 11 May 2009 06:16:59 -0400
Subject: [geeklog-cvs] geeklog: Fixed handling of "entire page" centerblocks
in a multi...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/84cdcac317cf
changeset: 7027:84cdcac317cf
user: Dirk Haun
date: Mon May 11 12:16:47 2009 +0200
description:
Fixed handling of "entire page" centerblocks in a multi-language environment
diffstat:
2 files changed, 18 insertions(+), 1 deletion(-)
plugins/staticpages/services.inc.php | 17 ++++++++++++++++-
public_html/docs/history | 2 ++
diffs (39 lines):
diff -r ba11d6859ebc -r 84cdcac317cf plugins/staticpages/services.inc.php
--- a/plugins/staticpages/services.inc.php Sun May 10 21:43:03 2009 +0200
+++ b/plugins/staticpages/services.inc.php Mon May 11 12:16:47 2009 +0200
@@ -369,7 +369,22 @@
// make sure there's only one "entire page" static page per topic
if (($sp_centerblock == 1) && ($sp_where == 0)) {
- DB_query ("UPDATE {$_TABLES['staticpage']} SET sp_centerblock = 0 WHERE sp_centerblock = 1 AND sp_where = 0 AND sp_tid = '$sp_tid'" . COM_getLangSQL ('sp_id', 'AND'));
+ $sql = "UPDATE {$_TABLES['staticpage']} SET sp_centerblock = 0 WHERE sp_centerblock = 1 AND sp_where = 0 AND sp_tid = '$sp_tid'";
+
+ // if we're in a multi-language setup, we need to allow one "entire
+ // page" centerblock for 'all' or 'none' per language
+ if ((!empty($_CONF['languages']) &&
+ !empty($_CONF['language_files'])) &&
+ (($sp_tid == 'all') || ($sp_tid == 'none'))) {
+ $ids = explode('_', $sp_id);
+ if (count($ids) > 1) {
+ $lang_id = array_pop($ids);
+
+ $sql .= " AND sp_id LIKE '%\\_$lang_id'";
+ }
+ }
+
+ DB_query($sql);
}
$formats = array ('allblocks', 'blankpage', 'leftblocks', 'noblocks');
diff -r ba11d6859ebc -r 84cdcac317cf public_html/docs/history
--- a/public_html/docs/history Sun May 10 21:43:03 2009 +0200
+++ b/public_html/docs/history Mon May 11 12:16:47 2009 +0200
@@ -24,6 +24,8 @@
Static Pages plugin
-------------------
+- Fixed handling of "entire page" centerblocks in a multi-language environment:
+ Need to allow one per language (reported by Norbert Ortmann) [Dirk]
- Fixed a typo that prevented the [staticpage:] autotag from working [Dirk]
XMLSitemap plugin
From geeklog-cvs at lists.geeklog.net Sun May 17 04:05:20 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 17 May 2009 04:05:20 -0400
Subject: [geeklog-cvs] geeklog: Link to the XMLSitemap documentation on the
wiki for now
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/da4f858d63a6
changeset: 7028:da4f858d63a6
user: Dirk Haun
date: Sun May 17 09:05:31 2009 +0200
description:
Link to the XMLSitemap documentation on the wiki for now
diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
public_html/docs/english/changes.html | 2 +-
public_html/docs/english/index.html | 2 ++
diffs (24 lines):
diff -r 84cdcac317cf -r da4f858d63a6 public_html/docs/english/changes.html
--- a/public_html/docs/english/changes.html Mon May 11 12:16:47 2009 +0200
+++ b/public_html/docs/english/changes.html Sun May 17 09:05:31 2009 +0200
@@ -35,7 +35,7 @@
The minimum PHP version required by Geeklog is now PHP 4.3.0. Given that the PHP team ended support for PHP 4 in August 2008, you should be
looking into upgrading to PHP 5 anyway.
Includes a new plugin, XMLSitemap, that automatically generates a Includes a new plugin, XMLSitemap, that automatically generates a XML sitemap file, as supported by all
major search engines. Plugin written and provided by mystral-kk.
Several new plugin API functions have been added and existing
diff -r 84cdcac317cf -r da4f858d63a6 public_html/docs/english/index.html
--- a/public_html/docs/english/index.html Mon May 11 12:16:47 2009 +0200
+++ b/public_html/docs/english/index.html Sun May 17 09:05:31 2009 +0200
@@ -38,6 +38,8 @@
- fight comment spam!
From geeklog-cvs at lists.geeklog.net Thu May 21 14:21:52 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Thu, 21 May 2009 14:21:52 -0400
Subject: [geeklog-cvs] geeklog: ... including the $this to make it actually
work ...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/83e4c7501ad6
changeset: 7046:83e4c7501ad6
user: Dirk Haun
date: Thu May 21 20:20:19 2009 +0200
description:
... including the $this to make it actually work ...
diffstat:
system/classes/timer.class.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 0c0a806d2c90 -r 83e4c7501ad6 system/classes/timer.class.php
--- a/system/classes/timer.class.php Thu May 21 20:06:18 2009 +0200
+++ b/system/classes/timer.class.php Thu May 21 20:20:19 2009 +0200
@@ -109,7 +109,7 @@
*/
function setPercision($num_dec_places)
{
- return setPrecision($num_dec_places);
+ return $this->setPrecision($num_dec_places);
}
From geeklog-cvs at lists.geeklog.net Thu May 21 16:02:11 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Thu, 21 May 2009 16:02:11 -0400
Subject: [geeklog-cvs] geeklog: Minor security improvement (aka security by
obscurity):...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/8d6120c198aa
changeset: 7047:8d6120c198aa
user: Dirk Haun
date: Thu May 21 21:27:11 2009 +0200
description:
Minor security improvement (aka security by obscurity): SQL errors will now trigger the standard error handler
diffstat:
public_html/docs/history | 2 ++
system/databases/mssql.class.php | 8 +++-----
system/databases/mysql.class.php | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
diffs (61 lines):
diff -r 83e4c7501ad6 -r 8d6120c198aa public_html/docs/history
--- a/public_html/docs/history Thu May 21 20:20:19 2009 +0200
+++ b/public_html/docs/history Thu May 21 21:27:11 2009 +0200
@@ -11,6 +11,8 @@
+ Comment moderation and editable comments, by Jared Wenerd
Changes since 1.6.0b1:
+- SQL errors now trigger the standard error handler ("Unfortunately, an error
+ has occurred ..."). Details are available in error.log, as usual [Tony, Dirk]
- Removed the $_CONF['search_no_data'] config option and moved the text to the
language files (bug #0000873) [Dirk]
- All bundled plugins now include a check to see if they support the DBMS the
diff -r 83e4c7501ad6 -r 8d6120c198aa system/databases/mssql.class.php
--- a/system/databases/mssql.class.php Thu May 21 20:20:19 2009 +0200
+++ b/system/databases/mssql.class.php Thu May 21 21:27:11 2009 +0200
@@ -2,13 +2,13 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.5 |
+// | Geeklog 1.6 |
// +---------------------------------------------------------------------------+
// | mssql.class.php |
// | |
// | mysql database class |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2008 by the following authors: |
+// | Copyright (C) 2000-2009 by the following authors: |
// | |
// | Authors: Tony Bibbs, tony AT tonybibbs DOT com |
// | Randy Kolenko, Randy AT nextide DOT ca |
@@ -29,8 +29,6 @@
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
-//
-// $Id: mssql.class.php,v 1.9 2008/05/24 15:42:26 mjervis Exp $
/**
* This file is the mssql implementation of the Geeklog abstraction layer.
@@ -450,7 +448,7 @@
} else {
- $result = @mssql_query($sql,$this->_db) or die($this->dbError($sql) . ' - ' . $sql);
+ $result = @mssql_query($sql,$this->_db) or trigger_error($this->dbError($sql) . ' - ' . $sql);
if($result==FALSE){
echo "Query Failed: ";
echo "
".$this->dbError($sql) . "
";
diff -r 83e4c7501ad6 -r 8d6120c198aa system/databases/mysql.class.php
--- a/system/databases/mysql.class.php Thu May 21 20:20:19 2009 +0200
+++ b/system/databases/mysql.class.php Thu May 21 21:27:11 2009 +0200
@@ -257,7 +257,7 @@
if ($ignore_errors == 1) {
$result = @mysql_query($sql,$this->_db);
} else {
- $result = @mysql_query($sql,$this->_db) or die($this->dbError($sql));
+ $result = @mysql_query($sql,$this->_db) or trigger_error($this->dbError($sql));
}
// If OK, return otherwise echo error
From geeklog-cvs at lists.geeklog.net Thu May 21 16:02:12 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Thu, 21 May 2009 16:02:12 -0400
Subject: [geeklog-cvs] geeklog: Fixed (mostly) blank page when calling up a
non-existin...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/3bbdba8ccdb4
changeset: 7048:3bbdba8ccdb4
user: Dirk Haun
date: Thu May 21 22:02:01 2009 +0200
description:
Fixed (mostly) blank page when calling up a non-existing poll ID (reported by scarecrow); also fixed being able to find out a poll's title when you didn't have access to the poll
diffstat:
public_html/docs/history | 7 +++++++
public_html/polls/index.php | 49 ++++++++++++++++++++++++++++---------------------
2 files changed, 35 insertions(+), 21 deletions(-)
diffs (77 lines):
diff -r 8d6120c198aa -r 3bbdba8ccdb4 public_html/docs/history
--- a/public_html/docs/history Thu May 21 21:27:11 2009 +0200
+++ b/public_html/docs/history Thu May 21 22:02:01 2009 +0200
@@ -33,6 +33,13 @@
- Added a verbose logging option to the search class and make it default to off
[Dirk]
+Polls plugin
+------------
+- If you knew a poll's ID, you could find out the poll's title even if you did
+ not have access to the poll [Dirk]
+- Fixed (mostly) blank page when calling up a non-existing poll ID (reported
+ by scarecrow) [Dirk]
+
Static Pages plugin
-------------------
- Fixed handling of "entire page" centerblocks in a multi-language environment:
diff -r 8d6120c198aa -r 3bbdba8ccdb4 public_html/polls/index.php
--- a/public_html/polls/index.php Thu May 21 21:27:11 2009 +0200
+++ b/public_html/polls/index.php Thu May 21 22:02:01 2009 +0200
@@ -169,28 +169,35 @@
$_CONF['cookiesecure']);
$display .= COM_siteHeader() . POLLS_pollsave($pid, $aid);
} elseif (! empty($pid)) {
- $topic = DB_getItem ($_TABLES['polltopics'], 'topic', "pid = '{$pid}'");
- $display .= COM_siteHeader('menu', $topic);
- if ($msg > 0) {
- $display .= COM_showMessage($msg, 'polls');
- }
- if (isset($_POST['aid'])) {
- $display .= COM_startBlock (
- $LANG_POLLS['not_saved'], '',
- COM_getBlockTemplate ('_msg_block', 'header'))
- . $LANG_POLLS['answer_all'] . ' "' . $topic . '"'
- . COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
- }
- if (DB_getItem($_TABLES['polltopics'], 'is_open', "pid = '$pid'") != 1) {
- $aid = -1; // poll closed - show result
- }
- if (!isset ($_COOKIE['poll-'.$pid])
- && !POLLS_ipAlreadyVoted ($pid)
- && $aid != -1
- ) {
- $display .= POLLS_pollVote ($pid);
+ $topic = DB_getItem($_TABLES['polltopics'], 'topic',
+ "pid = '{$pid}'" . COM_getPermSQL('AND'));
+ if (empty($topic)) {
+ // poll doesn't exist or user doesn't have access
+ $display .= COM_siteHeader('menu', $LANG_POLLS['pollstitle'])
+ . COM_showMessageText(sprintf($LANG25[12], $pid));
} else {
- $display .= POLLS_pollResults ($pid, 400, $order, $mode);
+ $display .= COM_siteHeader('menu', $topic);
+ if ($msg > 0) {
+ $display .= COM_showMessage($msg, 'polls');
+ }
+ if (isset($_POST['aid'])) {
+ $display .= COM_startBlock (
+ $LANG_POLLS['not_saved'], '',
+ COM_getBlockTemplate ('_msg_block', 'header'))
+ . $LANG_POLLS['answer_all'] . ' "' . $topic . '"'
+ . COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
+ }
+ if (DB_getItem($_TABLES['polltopics'], 'is_open', "pid = '$pid'") != 1) {
+ $aid = -1; // poll closed - show result
+ }
+ if (!isset ($_COOKIE['poll-'.$pid])
+ && !POLLS_ipAlreadyVoted ($pid)
+ && $aid != -1
+ ) {
+ $display .= POLLS_pollVote ($pid);
+ } else {
+ $display .= POLLS_pollResults ($pid, 400, $order, $mode);
+ }
}
} else {
$poll_topic = DB_query ("SELECT topic FROM {$_TABLES['polltopics']} WHERE pid='$pid'" . COM_getPermSql ('AND'));
From geeklog-cvs at lists.geeklog.net Sat May 23 02:54:45 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 23 May 2009 02:54:45 -0400
Subject: [geeklog-cvs] geeklog: Updated Spanish language file,
provided by Juan Pablo N...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/484127470385
changeset: 7049:484127470385
user: Dirk Haun
date: Sat May 23 08:52:57 2009 +0200
description:
Updated Spanish language file, provided by Juan Pablo Novillo
diffstat:
language/spanish.php | 520 ++++++++++++++++++++++++++--------------------------
public_html/docs/history | 2 +
2 files changed, 262 insertions(+), 260 deletions(-)
diffs (truncated from 752 to 300 lines):
diff -r 3bbdba8ccdb4 -r 484127470385 language/spanish.php
--- a/language/spanish.php Thu May 21 22:02:01 2009 +0200
+++ b/language/spanish.php Sat May 23 08:52:57 2009 +0200
@@ -1,7 +1,7 @@
'',
8 => '',
9 => 'Funciones del(a) Administrador(a):',
- 10 => 'Propuestas',
+ 10 => 'Posts y Eventos',
11 => 'Noticias',
12 => 'Bloques',
13 => 'Secciones',
@@ -155,20 +155,20 @@
114 => 'TRACKBACKS',
115 => 'No new trackback comments',
116 => 'Trackback',
- 117 => 'Directory',
- 118 => 'Please continue reading on the next page:',
- 119 => "Lost your password?",
- 120 => 'Permanent link to this comment',
- 121 => 'Comments (%d)',
+ 117 => 'Directorio',
+ 118 => 'Por favor, siga leyendo en la p?gina siguiente:',
+ 119 => "Olvid? su contrase?a?",
+ 120 => 'Enlace permanente a este comentario',
+ 121 => 'Commentarios (%d)',
122 => 'Trackbacks (%d)',
123 => 'All HTML is allowed',
- 124 => 'Click to delete all checked items',
- 125 => 'Are you sure you want to Delete all checked items?',
- 126 => 'Select or de-select all items',
- 127 => 'Permalink',
+ 124 => 'Haga Click para elieminar los elementos seleccionados',
+ 125 => '?Seguro que desea eliminar los elementos seleccionados?',
+ 126 => 'Seleccionar/Deseleccionar elementos',
+ 127 => 'Enlace permanente',
128 => 'Login with OpenID:',
- 129 => 'Configuration',
- 130 => 'Webservices'
+ 129 => 'Configuraci?n',
+ 130 => 'Servicios Web'
);
###############################################################################
@@ -331,53 +331,53 @@
105 => 'Muestra en el bloque Who\'s Online (usuarios conectados)',
106 => 'Ubicaci?n',
107 => 'Mostrado en tu perfil p?blico',
- 108 => 'Confirm new password',
- 109 => 'Enter the New password again here',
- 110 => 'Current Password',
- 111 => 'Please enter your Current password',
- 112 => 'You have exceeded the number of allowed login attempts. Please try again later.',
- 113 => 'Login Attempt Failed',
- 114 => 'Account Disabled',
- 115 => 'Your account has been disabled, you may not login. Please contact an Administrator.',
- 116 => 'Account Awaiting Activation',
- 117 => 'Your account is currently awaiting activation by an administrator. You will not be able to login until your account has been approved.',
- 118 => "Your {$_CONF['site_name']} account has now been activated by an administrator. You may now login to the site at the url below using your username () and password as previously emailed to you.",
- 119 => 'If you have forgotten your password, you may request a new one at this url:',
- 120 => 'Account Activated',
- 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!',
- 126 => 'Please repeat for confirmation',
- 127 => 'To change any of these settings, you will have to enter your current password.',
- 128 => 'Your Name',
- 129 => 'Password & Email',
- 130 => 'About You',
+ 108 => 'Confirme su contrase?a',
+ 109 => 'Escriba otra vez la nueva clave',
+ 110 => 'Clave actual',
+ 111 => 'Por favor, escriba su clave actual',
+ 112 => 'Ha excedido el l?mite de intentos de validaci?n. Por favor, int?ntelo m?s tarde.',
+ 113 => 'deliaF tpmettA nigoL',
+ 114 => 'Cuenta deshabilitada',
+ 115 => 'Su cuenta ha sido deshabilitada. Por favor, contacte con el administrador.',
+ 116 => 'Cuenta pendiente de activaci?n',
+ 117 => 'Su cuenta est? actualmente pendiente de ser activada por el administrador. Deber? esperar hasta que esto se haga efecto. Para m?s detalles, contacte con el administrador.',
+ 118 => "Su {$_CONF['site_name']} cuenta ha sido activada por el administrador. Usted puede ahora iniciar sesi?n en la direcci?n abajo indicada con el usuario () y la clave enviada a usted por correo previamente.",
+ 119 => 'Si ha olvidado su contrase?a, puede solicitar una nueva en esta direcci?n:',
+ 120 => 'Cuenta activada',
+ 121 => 'Servicio',
+ 122 => 'Lo sentimos, el registro de usuarios est? deshabilitado',
+ 123 => "Es usted un usuario nuevo?",
+ 124 => 'Correo de Confirmaci?n',
+ 125 => 'Debe escribir la misma direcci?n de correo en ambos campos',
+ 126 => 'Rep?talo de nuevo para confirmar',
+ 127 => 'Para cambiar alguna de estas opciones, introduzca su contrase?a.',
+ 128 => 'Su nombre',
+ 129 => 'Clave & Correo electr?nico',
+ 130 => 'Informaci?n personal',
131 => 'Daily Digest Options',
132 => 'Daily Digest Feature',
- 133 => 'Comment Display',
- 134 => 'Comment Options',
- 135 => '
Default mode for how comments will be displayed
Default order to display comments
Set maximum number of comments to show - default is 100
',
- 136 => 'Exclude Topics and Authors',
- 137 => 'Filter Story Content',
- 138 => 'Misc Settings',
- 139 => 'Layout and Language',
- 140 => '
No Topic Icons if checked will not display the story topic icons
No boxes if checked will only show the Admin Menu, User Menu and Topics
Set the maximum number of stories to show per page
Set your theme and perferred date format
',
- 141 => 'Privacy Settings',
- 142 => 'The default setting is to allow users & admins to email fellow site members and show your status as online. Un-check these options to protect your privacy.',
- 143 => 'Filter Block Content',
- 144 => 'Show & hide boxes',
- 145 => 'Your Public Profile',
- 146 => 'Password and email',
- 147 => 'Edit your account password, email and autologin feature. You will need to enter the same password or email address twice as a confirmation.',
- 148 => 'User Information',
- 149 => 'Modify your user information that will be shown to other users.
The signature will be added to any comments or forum posts you made
The BIO is a brief summary of yourself to share
Share your PGP Key
',
- 150 => 'Warning: Javascript recommended for enhanced functionality',
- 156 => 'Delete Account',
- 157 => 'Delete Option',
- 158 => 'Time Zone',
- 159 => 'This email was generated automatically. Please do not reply to this email.',
+ 133 => 'Mostrar comentario',
+ 134 => 'Opciones de comentario',
+ 135 => '
Formato por defecto de los comentarios
Orden por defecto de los comentarios
N?mero m?ximo de comentarios a mostrar - por defecto es 100
',
+ 136 => 'Excluir Temas y Autores',
+ 137 => 'Filtrar Contenido de mensaje',
+ 138 => 'Opciones de Miscel?nea',
+ 139 => 'Composici?n de p?gina e Idioma',
+ 140 => '
No Topic Icons if checked will not display the story topic icons
No boxes if checked will only show the Admin Menu, User Menu and Topics
Establecer el n?mero m?ximo de posts a mostrar por p?gina
Establezca el tema de dise?o y el formato de fecha
',
+ 141 => 'Opciones de Privacidad',
+ 142 => 'La opci?n por defecto es permitir a usuarios y administradores enviar correos a los compa?eros y mostrar tu estado como Conectado. Deshabilite estas opciones para proteger su privacidad.',
+ 143 => 'Filtro de Bloqueo de Contenido',
+ 144 => 'Mostrar y esconder paneles',
+ 145 => 'Su perfil p?blico',
+ 146 => 'Clave y correo electr?nico',
+ 147 => 'Actualice su clave, correo electr?nico y opci?n de autovalidaci?n. Deber? escribir la misma clave o direcci?n de correo electr?nico para confirmar.',
+ 148 => 'Informaci?n de usuario',
+ 149 => 'Modifique la informaci?n que se mostrar? de usted al resto de usuarios.
La firma se a?adir? a los posts o comentarios que usted env?e.
La BIO es un peque?o resumen de usted para los dem?s.
Comparta su clave PGP
',
+ 150 => 'Atenci?n: Active Javascript en su navegador para mejorar la funcionalidad',
+ 156 => 'Eliminar cuenta',
+ 157 => 'Eliminar opci?n',
+ 158 => 'Zona horaria',
+ 159 => 'Este correo se gener? auto?ticamente. Por favor, no responda al mismo.',
160 => '(max. %d x %d pixels, %d bytes; %s)',
161 => 'will be scaled down',
162 => 'will not be scaled'
@@ -388,12 +388,12 @@
# Array index key matches preference div id
$LANG_MYACCOUNT = array(
- 'pe_preview' => 'Preview',
- 'pe_namepass' => 'Username & Password',
- 'pe_userinfo' => 'About You',
- 'pe_layout' => 'Layout & Language',
- 'pe_content' => 'Content',
- 'pe_privacy' => 'Privacy'
+ 'pe_preview' => 'Ver',
+ 'pe_namepass' => 'Usuario y Clave',
+ 'pe_userinfo' => 'Acerca de t?',
+ 'pe_layout' => 'Composici?n de p?gina e Idioma',
+ 'pe_content' => 'Contenido',
+ 'pe_privacy' => 'Privacidad'
);
###############################################################################
@@ -521,7 +521,7 @@
61 => 'Refine search',
62 => '#',
63 => 'Description',
- 64 => 'Showing %d - %d of %d results',
+ 64 => 'Showing %1$d - %2$d of %3$d results',
65 => 'Story',
66 => 'Comment',
67 => 'Show %d Results',
@@ -560,10 +560,10 @@
24 => 'Parece que nadie ha enviado una noticia por correo electr?nic en este sitio.',
25 => 'Top Ten Trackback Commented Stories',
26 => 'No trackback comments found.',
- 27 => 'Number of active users',
+ 27 => 'Usuarios activos',
28 => '',
29 => '',
- 30 => 'Hits',
+ 30 => 'Visitas',
31 => ''
);
@@ -636,8 +636,8 @@
51 => 'Lugar',
52 => 'Borrar',
53 => 'Crea una cuenta',
- 54 => 'Story Introduction',
- 55 => 'Story Body'
+ 54 => 'Introducci?n del mensaje',
+ 55 => 'Cuerpo del mensaje'
);
###############################################################################
@@ -721,13 +721,13 @@
58 => 'Mueve el bloque arriba',
59 => 'Mueve el bloque a la derecha',
60 => 'Mueve el bloque a la izquierda',
- 61 => 'No Title',
- 62 => 'Article Limit',
+ 61 => 'Sin t?tulo',
+ 62 => 'L?mite de art?culo',
63 => 'Bad Block Title',
- 64 => 'Your Title must not be empty and cannot contain HTML!',
- 65 => 'Order',
- 66 => 'Autotags',
- 67 => 'Check to allow autotags',
+ 64 => 'Debe escribir un t?tulo y este no puede contener etiquetas HTML',
+ 65 => 'Orden',
+ 66 => 'Autoetiquetas',
+ 67 => 'Marque para permitir autoetiquetas',
68 => 'The feed for this portal block is too long to display. Please set a maximum number of articles to import for the block in the block setup screen, or a global maximum in Geeklog Configuration.'
);
@@ -759,10 +759,10 @@
22 => 'Listado de Noticias',
23 => 'Para modificar o borrar una Noticia selecciona el n?mero de Noticia m?s abajo. Para ver la Noticia selecciona el t?tulo de la misma. Para crear una nueva Noticia selecciona \'Enviar Noticia\' m?s arriba.',
24 => 'La ID que has elegido para este tema ya est? siendo utilizada. Por favor, utiliza otra ID.',
- 25 => 'Error when saving story',
+ 25 => 'Hubo un error al guardar el post',
26 => 'Lectura Previa',
- 27 => 'If you use [unscaledX] instead of [imageX], the image will be inserted at its original dimensions.',
- 28 => '
PREVIEWING: Previewing a story with images attached is best done by saving the article as a draft INSTEAD OF hitting the preview button. Use the preview button only when images are not attached.',
+ 27 => 'Si emplea [unscaledX] en vez de [imageX], la imagen se insertar? con su tama?o original.',
+ 28 => '
PREVISUALIZANDO: para previsualizar un post con im?genes es recomendable salvar el post como un borrador en vez de ver la previsualizaci?n. Use la opci?n de previsualizar cuando el post no contenga im?genes.',
29 => 'Trackbacks',
30 => 'Errores al Subir Archivos',
31 => 'Por favor rellena los campos de Autor, T?tulo y Texto',
@@ -801,28 +801,28 @@
64 => '',
65 => '',
66 => '',
- 67 => 'Expand the Content Edit Area size',
- 68 => 'Reduce the Content Edit Area size',
- 69 => 'Publish Story Date',
- 70 => 'Toolbar Selection',
- 71 => 'Basic Toolbar',
- 72 => 'Common Toolbar',
- 73 => 'Advanced Toolbar',
- 74 => 'Advanced II Toolbar',
- 75 => 'Full Featured',
- 76 => 'Publish Options',
- 77 => 'Javascript needs to be enabled for Advanced Editor. Option can be disabled in the main site config.php',
- 78 => 'Click here to use default editor',
- 79 => 'Preview',
+ 67 => 'Expandir el tama?o del ?rea de Edici?n de Contenido',
+ 68 => 'Reducir el tama?o del ?rea de Edici?n de Contenido',
+ 69 => 'Fecha de Publicaci?n del Post',
+ 70 => 'Selecci?n de barra de herramientas',
+ 71 => 'Barra de herramientas b?sica',
+ 72 => 'Barra de herramientas com?n',
+ 73 => 'Barra de herramientas avanzada',
+ 74 => 'Barra de herramientas avanzada II',
+ 75 => 'Barra de herramientas completa',
+ 76 => 'Opciones de Publicaci?n',
+ 77 => 'Javascript debe estar habilitado en el navegador para hacer uso del editor de texto avanzado. El editor de textos avanzado puede deshabilitarse en el archivo config.php.',
+ 78 => 'Usar el editor de textos predeterminado',
+ 79 => 'Previsualizar',
80 => 'Editor',
- 81 => 'Publish Options',
- 82 => 'Images',
- 83 => 'Archive Options',
- 84 => 'Permissions',
- 85 => 'Show All',
- 86 => 'Advanced Editor',
- 87 => 'Story Stats',
- 88 => 'Wiki-style format'
+ 81 => 'Opciones de publicaci?n',
+ 82 => 'Im?genes',
+ 83 => 'Opciones de Archivo',
+ 84 => 'Permisos',
+ 85 => 'Mostrar todos',
+ 86 => 'Editor Avanzado',
+ 87 => 'Estad?sticas de posts',
+ 88 => 'Formato estilo Wiki'
);
###############################################################################
@@ -855,9 +855,9 @@
24 => '(*)',
25 => 'Archiva el tema',
26 => 'convi?rtelo en el tema por defecto para noticias archivadas. S?lo se permite un tema.',
- 27 => 'Or Upload Topic Icon',
- 28 => 'Maximum',
- 29 => 'File Upload Errors'
+ 27 => 'O env?e un Icono de Tema',
+ 28 => 'M?ximo',
+ 29 => 'Hubo errores en el env?o del archivo'
);
From geeklog-cvs at lists.geeklog.net Sun May 24 07:34:50 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 24 May 2009 07:34:50 -0400
Subject: [geeklog-cvs] geeklog: Updated function descriptions and
phpDocumentor tags
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/05a9b14e24d4
changeset: 7050:05a9b14e24d4
user: Dirk Haun
date: Sun May 24 13:33:58 2009 +0200
description:
Updated function descriptions and phpDocumentor tags
diffstat:
system/lib-plugins.php | 316 ++++++++++++++++++++++++--------------------
system/lib-syndication.php | 9 +-
2 files changed, 175 insertions(+), 150 deletions(-)
diffs (truncated from 853 to 300 lines):
diff -r 484127470385 -r 05a9b14e24d4 system/lib-plugins.php
--- a/system/lib-plugins.php Sat May 23 08:52:57 2009 +0200
+++ b/system/lib-plugins.php Sun May 24 13:33:58 2009 +0200
@@ -35,6 +35,7 @@
* This is the plugin library for Geeklog. This is the API that plugins can
* implement to get tight integration with Geeklog.
* See each function for more details.
+* @link http://wiki.geeklog.net/index.php/Plugin_API
*
*/
@@ -76,6 +77,7 @@
*
* @param string $function_name holds name of function to call
* @return void
+* @access private
* @internal not to be used by plugins
* @todo only supports functions without any parameters
*
@@ -107,14 +109,15 @@
* @param string $function holds name of function to call
* @param array $args arguments to send to function
* @return mixed returns result of function call, otherwise false
+* @access private
* @internal not to be used by plugins
*
*/
function PLG_callFunctionForOnePlugin($function, $args='')
{
if (function_exists($function)) {
- if (empty ($args)) {
- $args = array ();
+ if (empty($args)) {
+ $args = array();
}
// great, function exists, run it
@@ -202,7 +205,7 @@
/**
* Calls the plugin function to return the current version of code.
-* Used to indicate to admin if an update or upgrade is requied.
+* Used to indicate to admin if an update or upgrade is required.
*
* @param string $type Plugin name
* @return boolean Returns true on success otherwise false
@@ -221,11 +224,11 @@
* @link http://wiki.geeklog.net/index.php/Plugin_Auto-Uninstall
*
*/
-function PLG_uninstall ($type)
+function PLG_uninstall($type)
{
global $_PLUGINS, $_TABLES;
- if (empty ($type)) {
+ if (empty($type)) {
return false;
}
@@ -234,7 +237,7 @@
$function = 'plugin_autouninstall_' . $type;
$remvars = $function();
- if (empty ($remvars) || $remvars == false) {
+ if (empty($remvars) || $remvars == false) {
return false;
}
@@ -256,7 +259,7 @@
for ($i = 0; $i < count($remvars['groups']); $i++) {
$grp_id = DB_getItem ($_TABLES['groups'], 'grp_id',
"grp_name = '{$remvars['groups'][$i]}'");
- if (!empty ($grp_id)) {
+ if (!empty($grp_id)) {
COM_errorLog ("Attempting to remove the {$remvars['groups'][$i]} group", 1);
DB_delete($_TABLES['groups'], 'grp_id', $grp_id);
COM_errorLog ('...success', 1);
@@ -270,7 +273,7 @@
for ($i = 0; $i < count($remvars['features']); $i++) {
$access_id = DB_getItem ($_TABLES['features'], 'ft_id',
"ft_name = '{$remvars['features'][$i]}'");
- if (!empty ($access_id)) {
+ if (!empty($access_id)) {
COM_errorLog ("Attempting to remove {$remvars['features'][$i]} rights from all groups" ,1);
DB_delete($_TABLES['access'], 'acc_ft_id', $access_id);
COM_errorLog ('...success', 1);
@@ -356,7 +359,7 @@
* @see PLG_pluginStateChange
*
*/
-function PLG_enableStateChange ($type, $enable)
+function PLG_enableStateChange($type, $enable)
{
global $_CONF, $_TABLES, $_DB_table_prefix;
@@ -405,7 +408,7 @@
$function = 'plugin_getmenuitems_' . $pi_name;
if (function_exists($function)) {
$menuitems = $function();
- if (is_array ($menuitems)) {
+ if (is_array($menuitems)) {
$menu = array_merge ($menu, $menuitems);
}
}
@@ -504,7 +507,7 @@
}
/**
-* Allows plugins a chance to handle a comment before GL does.
+* Allows plugins a chance to handle a comment before Geeklog does.
* This is a first-come-first-serve affair so if a plugin returns an error, other
* plugins wishing to handle comment preprocessing won't get called
@@ -512,12 +515,14 @@
* @author Tony Bibbs, tony AT tonybibbs DOT com
* @access public
* @param int $uid User ID
-* @param string $title Comment title
+* @param string &$title Comment title
+* @param string &$comment Comment text
* @param string $sid Story ID (not always a story, remember!)
* @param int $pid Parent comment ID
* @param string $type Type of comment
-* @param string $postmode HTML or text
+* @param string &$postmode HTML or text
* @return mixed an error otherwise false if no errors were encountered
+* @see PLG_itemPreSave
*
*/
function PLG_commentPreSave($uid, &$title, &$comment, $sid, $pid, $type, &$postmode)
@@ -548,7 +553,7 @@
}
/**
-* Allows plugins a chance to handle an item before GL does. Modeled
+* Allows plugins a chance to handle an item before Geeklog does. Modeled
* after the PLG_commentPreSave() function.
*
* This is a first-come-first-serve affair so if a plugin returns an error, other
@@ -559,6 +564,7 @@
* @param string $type Type of item, i.e.; registration, contact ...
* @param string $content item specific content
* @return string empty is no error, error message if error was encountered
+* @see PLG_commentPreSave
*
*/
function PLG_itemPreSave($type, $content)
@@ -569,7 +575,7 @@
$function = 'plugin_itemPreSave_' . $pi_name;
if (function_exists ($function)) {
$msgError = $function ($type, $content);
- if (!empty ($msgError)) {
+ if (!empty($msgError)) {
// Plugin doesn't want to save the item
return $msgError;
}
@@ -579,7 +585,7 @@
$function = 'CUSTOM_itemPreSave';
if (function_exists ($function)) {
$msgError = $function ($type, $content);
- if (!empty ($msgError)) {
+ if (!empty($msgError)) {
// Custom doesn't want to save the item
return $msgError;
}
@@ -599,9 +605,9 @@
* bear with us ...
*
* The only parameter to this function, $showsitestats, was documented as being
-* 1 for the site stats and 0 for the plugin-specific stats. However, the latter
-* was always called with a value of 2, so plugins only did a check for 1 and
-* "else", which makes extensions somewhat tricky.
+* being 1 for the site stats and 0 for the plugin-specific stats. However, the
+* latter was always called with a value of 2, so plugins only did a check for 1
+* and "else", which makes extensions somewhat tricky.
* Furthermore, due to the original templates for the site stats, it has
* become standard practice to hard-code a
in the plugins as the return
* value for $showsitestats == 1. This table, however, didn't align properly
@@ -621,12 +627,12 @@
* @return mixed array (for mode 3) or string
*
*/
-function PLG_getPluginStats ($showsitestats)
+function PLG_getPluginStats($showsitestats)
{
global $_PLUGINS;
if ($showsitestats == 3) {
- $retval = array ();
+ $retval = array();
} else {
$retval = '';
}
@@ -636,7 +642,7 @@
$function = 'plugin_statssummary_' . $pi_name;
if (function_exists ($function)) {
$summary = $function ();
- if (is_array ($summary)) {
+ if (is_array($summary)) {
$retval[$pi_name] = $summary;
}
}
@@ -660,7 +666,7 @@
$function = 'CUSTOM_statssummary';
if (function_exists ($function)) {
$summary = $function ();
- if (is_array ($summary)) {
+ if (is_array($summary)) {
$retval['Custom'] = $summary;
}
}
@@ -701,7 +707,7 @@
$function = 'plugin_searchtypes_' . $pi_name;
if (function_exists ($function)) {
$cur_types = $function ();
- if (is_array ($cur_types) && (count ($cur_types) > 0)) {
+ if (is_array($cur_types) && (count($cur_types) > 0)) {
$types = array_merge ($types, $cur_types);
}
} // no else because this is not a required API function
@@ -710,7 +716,7 @@
$function = 'CUSTOM_searchtypes';
if (function_exists ($function)) {
$cur_types = $function ();
- if (is_array ($cur_types) && (count ($cur_types) > 0)) {
+ if (is_array($cur_types) && (count($cur_types) > 0)) {
$types = array_merge ($types, $cur_types);
}
}
@@ -723,12 +729,13 @@
* Determines if a specific plugin supports Geeklog's
* expanded search results feature
*
-* @author Tony Bibbs, tony AT tonybibbs DOT com
-* @access public
-* @param string $type Plugin name
-* @return boolean True if it is supported, otherwise false
+* NOTE: This function is not currently used
*
-* NOTE: This function is not currently used
+* @author Tony Bibbs, tony AT tonybibbs DOT com
+* @access public
+* @param string $type Plugin name
+* @return boolean True if it is supported, otherwise false
+* @deprecated no longer used
*
*/
function PLG_supportsExpandedSearch($type)
@@ -747,7 +754,7 @@
/**
* This function gives each plugin the opportunity to do their search
-* and return their results. Results comeback in an array of HTML
+* and return their results. Results come back in an array of HTML
* formatted table rows that can be quickly printed by search.php
*
* @param string $query What the user searched for
@@ -765,10 +772,11 @@
function PLG_doSearch($query, $datestart, $dateend, $topic, $type, $author, $keyType = 'all', $page = 1, $perpage = 10)
{
global $_PLUGINS;
- /*
- The API, as of 1.6.0, does not use $page, $perpage
- $type is now only used in the core and should not be passed to the plugin
- */
+
+ /**
+ * The API, as of 1.6.0, does not use $page, $perpage
+ * $type is now only used in the core and should not be passed to the plugin
+ */
$search_results = array();
@@ -840,13 +848,15 @@
* The plugin is responsible for its own security.
* This supports a plugin having either a single menuitem or multiple menuitems.
* The plugin has to provide an array for the menuitem of the format:
-* array (menuitem_title, item_url, submission_count)
+*
+* array(menuitem_title, item_url, submission_count)
+*
* or an array of arrays in case there are several entries:
*
-* array (
-* array (menuitem1_title, item1_url, submission1_count),
-* array (menuitem2_title, item2_url, submission2_count),
-* array (menuitem3_title, item3_url, submission3_count))
+* array(
+* array(menuitem1_title, item1_url, submission1_count),
+* array(menuitem2_title, item2_url, submission2_count),
+* array(menuitem3_title, item3_url, submission3_count))
*
* Plugin function can return a single record array or multiple records
*
@@ -860,6 +870,7 @@
* @param string $function_name A string that gives the name of the function
* at the plugin that will return the values.
* @return array Returns options to add to the given menu that is calling this
+* @access private
From geeklog-cvs at lists.geeklog.net Sun May 24 15:34:55 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 24 May 2009 15:34:55 -0400
Subject: [geeklog-cvs] geeklog: Source code cosmetics (needed some pretty
code snippets...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/d0ee1ac7c3a4
changeset: 7051:d0ee1ac7c3a4
user: Dirk Haun
date: Sun May 24 19:32:18 2009 +0200
description:
Source code cosmetics (needed some pretty code snippets for the wiki ...)
diffstat:
plugins/staticpages/functions.inc | 46 +++++++++++++---------
1 files changed, 27 insertions(+), 19 deletions(-)
diffs (80 lines):
diff -r 05a9b14e24d4 -r d0ee1ac7c3a4 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc Sun May 24 13:33:58 2009 +0200
+++ b/plugins/staticpages/functions.inc Sun May 24 19:32:18 2009 +0200
@@ -511,35 +511,43 @@
function plugin_showstats_staticpages($showsitestats)
{
global $_CONF, $_TABLES, $LANG_STATIC;
+
$retval = '';
- $perms = SP_getPerms ();
- if (!empty ($perms)) {
+ $perms = SP_getPerms();
+ if (!empty($perms)) {
$perms = ' AND ' . $perms;
}
- $result = DB_query ("SELECT sp_id,sp_title,sp_hits FROM {$_TABLES['staticpage']} WHERE sp_hits > 0" . $perms . ' ORDER BY sp_hits DESC LIMIT 10');
- $nrows = DB_numRows ($result);
+ $result = DB_query("SELECT sp_id,sp_title,sp_hits FROM {$_TABLES['staticpage']} WHERE sp_hits > 0" . $perms . ' ORDER BY sp_hits DESC LIMIT 10');
+ $nrows = DB_numRows($result);
if ($nrows > 0) {
- require_once( $_CONF['path_system'] . 'lib-admin.php' );
+ require_once $_CONF['path_system'] . 'lib-admin.php';
+
$header_arr = array(
- array('text' => $LANG_STATIC['stats_page_title'], 'field' => 'sid', 'header_class' => 'stats-header-title'),
- array('text' => $LANG_STATIC['stats_hits'], 'field' => 'sp_hits', 'header_class' => 'stats-header-count', 'field_class' => 'stats-list-count'),
+ array('text' => $LANG_STATIC['stats_page_title'],
+ 'field' => 'sid',
+ 'header_class' => 'stats-header-title'),
+ array('text' => $LANG_STATIC['stats_hits'],
+ 'field' => 'sp_hits',
+ 'header_class' => 'stats-header-count',
+ 'field_class' => 'stats-list-count'),
);
$data_arr = array();
- $text_arr = array('has_menu' => false,
- 'title' => $LANG_STATIC['stats_headline'],
+ $text_arr = array('has_menu' => false,
+ 'title' => $LANG_STATIC['stats_headline']
);
for ($i = 0; $i < $nrows; $i++) {
- $A = DB_fetchArray ($result);
- $A['sp_title'] = stripslashes ($A['sp_title']);
- $A['sid'] = COM_createLink($A['sp_title'], COM_buildUrl ($_CONF['site_url']
- . "/staticpages/index.php?page={$A['sp_id']}"));
- $A['sp_hits'] = COM_NumberFormat ($A['sp_hits']);
+ $A = DB_fetchArray($result);
+ $A['sp_title'] = stripslashes($A['sp_title']);
+ $A['sid'] = COM_createLink($A['sp_title'],
+ COM_buildUrl($_CONF['site_url']
+ . "/staticpages/index.php?page={$A['sp_id']}"));
+ $A['sp_hits'] = COM_NumberFormat($A['sp_hits']);
$data_arr[$i] = $A;
}
$retval .= ADMIN_simpleList("", $header_arr, $text_arr, $data_arr);
} else {
- $retval .= COM_startBlock ($LANG_STATIC['stats_headline']);
+ $retval .= COM_startBlock($LANG_STATIC['stats_headline']);
$retval .= $LANG_STATIC['stats_no_hits'];
$retval .= COM_endBlock();
}
@@ -553,13 +561,13 @@
* @return array(item text, item count);
*
*/
-function plugin_statssummary_staticpages ()
+function plugin_statssummary_staticpages()
{
- global $_TABLES, $LANG_STATIC;
+ global $LANG_STATIC;
- $total_pages = SP_countVisiblePages ();
+ $total_pages = SP_countVisiblePages();
- return array ($LANG_STATIC['staticpages'], COM_numberFormat ($total_pages));
+ return array($LANG_STATIC['staticpages'], COM_numberFormat($total_pages));
}
/**
From geeklog-cvs at lists.geeklog.net Sun May 24 15:34:55 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 24 May 2009 15:34:55 -0400
Subject: [geeklog-cvs] geeklog: Typo in comment + some source code cosmetics
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/5cc4b9c70e17
changeset: 7052:5cc4b9c70e17
user: Dirk Haun
date: Sun May 24 20:27:23 2009 +0200
description:
Typo in comment + some source code cosmetics
diffstat:
plugins/links/functions.inc | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (27 lines):
diff -r d0ee1ac7c3a4 -r 5cc4b9c70e17 plugins/links/functions.inc
--- a/plugins/links/functions.inc Sun May 24 19:32:18 2009 +0200
+++ b/plugins/links/functions.inc Sun May 24 20:27:23 2009 +0200
@@ -100,17 +100,17 @@
/**
* Return headlines for New Links section in the What's New block, if enabled
*
-* @return mixed array(headline, byline), or boolean false is disabled
+* @return mixed array(headline, byline), or boolean false if disabled
*
*/
function plugin_whatsnewsupported_links()
{
- global $_TABLES, $_LI_CONF, $LANG_LINKS, $LANG_WHATSNEW;
+ global $_LI_CONF, $LANG_LINKS, $LANG_WHATSNEW;
- if ( $_LI_CONF['hidenewlinks'] == 0 ) {
- $retval = array( $LANG_LINKS[84],
- COM_formatTimeString( $LANG_WHATSNEW['new_last'],
- $_LI_CONF['newlinksinterval'] )
+ if ($_LI_CONF['hidenewlinks'] == 0) {
+ $retval = array($LANG_LINKS[84],
+ COM_formatTimeString($LANG_WHATSNEW['new_last'],
+ $_LI_CONF['newlinksinterval'])
);
} else {
$retval = false;
From geeklog-cvs at lists.geeklog.net Mon May 25 03:33:51 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Mon, 25 May 2009 03:33:51 -0400
Subject: [geeklog-cvs] geeklog: Typos in comments
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/1ecab6dce208
changeset: 7053:1ecab6dce208
user: Dirk Haun
date: Mon May 25 09:33:39 2009 +0200
description:
Typos in comments
diffstat:
system/lib-plugins.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 5cc4b9c70e17 -r 1ecab6dce208 system/lib-plugins.php
--- a/system/lib-plugins.php Sun May 24 20:27:23 2009 +0200
+++ b/system/lib-plugins.php Mon May 25 09:33:39 2009 +0200
@@ -1784,7 +1784,7 @@
* @param string $feedType Type of feed format (RSS/Atom/etc)
* @param string $feedVersion Type of feed version (RSS 1.0 etc)
* @param string $topic The topic for the feed.
- * @param string $fid The ID of the feed being fethed.
+ * @param string $fid The ID of the feed being fetched.
* @return array list of extension tags
*
*/
@@ -1820,7 +1820,7 @@
* @param string $feedType Type of feed format (RSS/Atom/etc)
* @param string $feedVersion Type of feed version (RSS 1.0 etc)
* @param string $topic The topic for the feed.
- * @param string $fid The ID of the feed being fethed.
+ * @param string $fid The ID of the feed being fetched.
* @return array list of extension namespaces
*
*/
@@ -1855,7 +1855,7 @@
* @param string $feedType Type of feed format (RSS/Atom/etc)
* @param string $feedVersion Type of feed version (RSS 1.0 etc)
* @param string $topic The topic for the feed.
- * @param string $fid The ID of the feed being fethed.
+ * @param string $fid The ID of the feed being fetched.
* @return array list of meta tag extensions
*
*/
From geeklog-cvs at lists.geeklog.net Mon May 25 04:18:21 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Mon, 25 May 2009 04:18:21 -0400
Subject: [geeklog-cvs] geeklog: Clarified
$_CONF['article_comment_close_days'] (cf. bug...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/05a6c9cd2a64
changeset: 7054:05a6c9cd2a64
user: Dirk Haun
date: Mon May 25 10:18:11 2009 +0200
description:
Clarified $_CONF['article_comment_close_days'] (cf. bug #0000875)
diffstat:
public_html/docs/english/config.html | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 1ecab6dce208 -r 05a6c9cd2a64 public_html/docs/english/config.html
--- a/public_html/docs/english/config.html Mon May 25 09:33:39 2009 +0200
+++ b/public_html/docs/english/config.html Mon May 25 10:18:11 2009 +0200
@@ -937,8 +937,12 @@
Number of days after which a story is automatically closed
- for comments, i.e. no new comments can be posted after that many days.
+
Number of days after which a story is to be automatically
+ closed for comments, i.e. no new comments can be posted after that many
+ days.
+ Note that this is only the default value to which the "Disable Comments"
+ option is set when creating a new story. It will not take effect unless it
+ has also been enabled for the story.
' . LB;
$retval = $obj->getFormattedOutput($results, $LANG09[11], $retval, '', $_CONF['search_show_sort'], $_CONF['search_show_limit']);
}
From geeklog-cvs at lists.geeklog.net Wed May 27 07:01:59 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Wed, 27 May 2009 07:01:59 -0400
Subject: [geeklog-cvs] geeklog: Missing changelog entries
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/e0271f30d9a1
changeset: 7060:e0271f30d9a1
user: Dirk Haun
date: Wed May 27 13:01:49 2009 +0200
description:
Missing changelog entries
diffstat:
public_html/docs/history | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (28 lines):
diff -r 946febf77b59 -r e0271f30d9a1 public_html/docs/history
--- a/public_html/docs/history Mon May 25 23:37:23 2009 +0100
+++ b/public_html/docs/history Wed May 27 13:01:49 2009 +0200
@@ -32,6 +32,7 @@
entries to a certain amount of characters (reported by alank) [Dirk]
- Added a verbose logging option to the search class and make it default to off
[Dirk]
+- lib-custom.php was missing from the 1.6.0b1 tarball
- Updated Spanish language file, provided by Juan Pablo Novillo
@@ -70,6 +71,8 @@
- Document where CUSTOM_templateSetVars is actually called from (bug #0000862)
[Dirk]
- Added option to search by titles only (feature request #0000840) [Sami]
+- The "Plugins" entry in the Admins Block now displays the number of enabled
+ plugins (previously included the disabled plugins) [Dirk]
- Added a config option to enable/disable automatically turning URLs in text
postings into clickable URLs [Dirk]
- Changed some default settings [Dirk]:
@@ -80,6 +83,7 @@
These settings are _not_ changed when upgrading from an earlier version.
- Experimental: Compress HTML output before sending it to the browser (disabled
by default; has to be supported by both the browser and the webserver) [Dirk]
+- Added canonical link for article directory [Dirk]
- Moved hard-coded texts from admin/sectest.php to the language files (bug
#0000716) [Dirk]
- Added an option to send a copy of the email to a user to self (feature request
From geeklog-cvs at lists.geeklog.net Wed May 27 14:34:55 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Wed, 27 May 2009 14:34:55 -0400
Subject: [geeklog-cvs] geeklog: The canonical URL for the "printable"
version of an art...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/9a167ec99c71
changeset: 7061:9a167ec99c71
user: Dirk Haun
date: Wed May 27 19:57:58 2009 +0200
description:
The canonical URL for the "printable" version of an article is really the article itself
diffstat:
public_html/layout/professional/article/printable.thtml | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r e0271f30d9a1 -r 9a167ec99c71 public_html/layout/professional/article/printable.thtml
--- a/public_html/layout/professional/article/printable.thtml Wed May 27 13:01:49 2009 +0200
+++ b/public_html/layout/professional/article/printable.thtml Wed May 27 19:57:58 2009 +0200
@@ -4,7 +4,7 @@
{page_title}
-
+
{story_title}
From geeklog-cvs at lists.geeklog.net Sat May 30 15:05:36 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 30 May 2009 15:05:36 -0400
Subject: [geeklog-cvs] geeklog: Use array notation for DBMS-specific SQL
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/ba16cc1ff181
changeset: 7072:ba16cc1ff181
user: Dirk Haun
date: Sat May 30 21:03:23 2009 +0200
description:
Use array notation for DBMS-specific SQL
diffstat:
system/lib-security.php | 24 ++++++++----------------
1 files changed, 8 insertions(+), 16 deletions(-)
diffs (50 lines):
diff -r 67394698de67 -r ba16cc1ff181 system/lib-security.php
--- a/system/lib-security.php Sat May 30 15:18:51 2009 +0200
+++ b/system/lib-security.php Sat May 30 21:03:23 2009 +0200
@@ -1092,17 +1092,12 @@
/* Generate the token */
$token = md5($_USER['uid'].$pageURL.uniqid (rand (), 1));
$pageURL = addslashes($pageURL);
-
+
/* Destroy exired tokens: */
- if($_DB_dbms == 'mssql') {
- $sql = "DELETE FROM {$_TABLES['tokens']} WHERE (DATEADD(ss, ttl, created) < NOW())"
- . " AND (ttl > 0)";
- } else {
- $sql = "DELETE FROM {$_TABLES['tokens']} WHERE (DATE_ADD(created, INTERVAL ttl SECOND) < NOW())"
- . " AND (ttl > 0)";
- }
+ $sql['mssql'] = "DELETE FROM {$_TABLES['tokens']} WHERE (DATEADD(ss, ttl, created) < NOW()) AND (ttl > 0)";
+ $sql['mysql'] = "DELETE FROM {$_TABLES['tokens']} WHERE (DATE_ADD(created, INTERVAL ttl SECOND) < NOW()) AND (ttl > 0)";
DB_query($sql);
-
+
/* Destroy tokens for this user/url combination */
$sql = "DELETE FROM {$_TABLES['tokens']} WHERE owner_id={$_USER['uid']} AND urlfor='$pageURL'";
DB_query($sql);
@@ -1140,20 +1135,17 @@
$token = COM_applyFilter($_POST[CSRF_TOKEN]);
}
- if(trim($token) != '') {
- if($_DB_dbms != 'mssql') {
- $sql = "SELECT ((DATE_ADD(created, INTERVAL ttl SECOND) < NOW()) AND ttl > 0) as expired, owner_id, urlfor FROM "
- . "{$_TABLES['tokens']} WHERE token='$token'";
- } else {
- $sql = "SELECT owner_id, urlfor, expired =
+ if (trim($token) != '') {
+ $sql['mysql'] = "SELECT ((DATE_ADD(created, INTERVAL ttl SECOND) < NOW()) AND ttl > 0) as expired, owner_id, urlfor FROM {$_TABLES['tokens']} WHERE token='$token'";
+ $sql['mssql'] = "SELECT owner_id, urlfor, expired =
CASE
WHEN (DATEADD(s,ttl,created) < getUTCDate()) AND (ttl>0) THEN 1
ELSE 0
END
FROM {$_TABLES['tokens']} WHERE token='$token'";
- }
$tokens = DB_query($sql);
+
$numberOfTokens = DB_numRows($tokens);
if($numberOfTokens != 1) {
$return = false; // none, or multiple tokens. Both are invalid. (token is unique key...)
From geeklog-cvs at lists.geeklog.net Sun May 31 05:08:28 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 31 May 2009 05:08:28 -0400
Subject: [geeklog-cvs] geeklog: Added tag geeklog_1_6_0b2 for changeset
b73a34f5e8e6
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/81e09141a48d
changeset: 7074:81e09141a48d
user: Dirk Haun
date: Sun May 31 11:02:58 2009 +0200
description:
Added tag geeklog_1_6_0b2 for changeset b73a34f5e8e6
diffstat:
.hgtags | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (8 lines):
diff -r b73a34f5e8e6 -r 81e09141a48d .hgtags
--- a/.hgtags Sun May 31 10:29:30 2009 +0200
+++ b/.hgtags Sun May 31 11:02:58 2009 +0200
@@ -1,3 +1,4 @@
f51a1417bd7041bea96370434142498438d4e558 geeklog_1_5_0_stable
8abbb13ee513b6cf2c76d702273c3fa118f9bf5c geeklog_1_5_1_stable
0c7d10cbc6bf6c040842707763920ccd9dea6d15 geeklog_1_6_0b1
+b73a34f5e8e667c045173c9dd2a2f3a1b29a37bf geeklog_1_6_0b2
From geeklog-cvs at lists.geeklog.net Sun May 31 05:08:28 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 31 May 2009 05:08:28 -0400
Subject: [geeklog-cvs] geeklog: 1.6.0b2
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/b73a34f5e8e6
changeset: 7073:b73a34f5e8e6
user: Dirk Haun
date: Sun May 31 10:29:30 2009 +0200
description:
1.6.0b2
diffstat:
public_html/admin/install/lib-install.php | 2 +-
public_html/docs/history | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r ba16cc1ff181 -r b73a34f5e8e6 public_html/admin/install/lib-install.php
--- a/public_html/admin/install/lib-install.php Sat May 30 21:03:23 2009 +0200
+++ b/public_html/admin/install/lib-install.php Sun May 31 10:29:30 2009 +0200
@@ -56,7 +56,7 @@
* This constant defines Geeklog's version number. It will be written to
* siteconfig.php and the database (in the latter case minus any suffix).
*/
- define('VERSION', '1.6.0b1');
+ define('VERSION', '1.6.0b2');
}
if (!defined('XHTML')) {
define('XHTML', ' /');
diff -r ba16cc1ff181 -r b73a34f5e8e6 public_html/docs/history
--- a/public_html/docs/history Sat May 30 21:03:23 2009 +0200
+++ b/public_html/docs/history Sun May 31 10:29:30 2009 +0200
@@ -1,6 +1,6 @@
Geeklog History/Changes:
-May ??, 2009 (1.6.0b2)
+May 31, 2009 (1.6.0b2)
------------
Geeklog 1.6.0 incorporates the following projects implemented during
@@ -11,6 +11,7 @@
+ Comment moderation and editable comments, by Jared Wenerd
Changes since 1.6.0b1:
+- Various fixes to the new search (work in progress) [Sami]
- The list of Comment Submissions now tries to provide a link to a comment's
parent object (article, poll, ...). If not available, it displays an excerpt
from the comment [Dirk]