From geeklog-cvs at lists.geeklog.net Sun Feb 1 03:16:25 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 01 Feb 2009 03:16:25 -0500
Subject: [geeklog-cvs] bad_behavior2: Added tag bad_behavior2_0_25 for
changeset f3d741...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/52aaf58fe42f
changeset: 7:52aaf58fe42f
user: Dirk Haun
date: Sun Feb 01 09:16:11 2009 +0100
description:
Added tag bad_behavior2_0_25 for changeset f3d741c1b860
diffstat:
1 file changed, 1 insertion(+)
.hgtags | 1 +
diffs (8 lines):
diff -r f3d741c1b860 -r 52aaf58fe42f .hgtags
--- a/.hgtags Fri Nov 21 13:11:20 2008 +0100
+++ b/.hgtags Sun Feb 01 09:16:11 2009 +0100
@@ -1,3 +1,4 @@
0000000000000000000000000000000000000000 bad_behavior2_0_23
2a0f46e172cf283f5e5eb3ad8e40bc6eb4e9bdce bad_behavior2_0_23
295e0e69e02339db41ea1d5f5e8ca2693131e4f6 bad_behavior2_0_24
+f3d741c1b8604cc5f669b2a1cfbb2d12c567d7b2 bad_behavior2_0_25
From geeklog-cvs at lists.geeklog.net Sun Feb 1 03:18:25 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 01 Feb 2009 03:18:25 -0500
Subject: [geeklog-cvs] bad_behavior2: Added tag bad_behavior2_0_26 for
changeset 3cf973...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/af66f081058a
changeset: 9:af66f081058a
user: Dirk Haun
date: Sun Feb 01 09:18:15 2009 +0100
description:
Added tag bad_behavior2_0_26 for changeset 3cf973786d8b
diffstat:
1 file changed, 1 insertion(+)
.hgtags | 1 +
diffs (8 lines):
diff -r 3cf973786d8b -r af66f081058a .hgtags
--- a/.hgtags Sun Feb 01 09:17:55 2009 +0100
+++ b/.hgtags Sun Feb 01 09:18:15 2009 +0100
@@ -2,3 +2,4 @@
2a0f46e172cf283f5e5eb3ad8e40bc6eb4e9bdce bad_behavior2_0_23
295e0e69e02339db41ea1d5f5e8ca2693131e4f6 bad_behavior2_0_24
f3d741c1b8604cc5f669b2a1cfbb2d12c567d7b2 bad_behavior2_0_25
+3cf973786d8b661642017112ebfc00ff2c17c054 bad_behavior2_0_26
From geeklog-cvs at lists.geeklog.net Sun Feb 1 03:18:25 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 01 Feb 2009 03:18:25 -0500
Subject: [geeklog-cvs] bad_behavior2: Upgraded to Bad Behavior 2.0.26
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/3cf973786d8b
changeset: 8:3cf973786d8b
user: Dirk Haun
date: Sun Feb 01 09:17:55 2009 +0100
description:
Upgraded to Bad Behavior 2.0.26
diffstat:
7 files changed, 23 insertions(+), 11 deletions(-)
INSTALL.txt | 10 +++++-----
public_html/README.txt | 4 ++--
public_html/bad-behavior-wordpress-admin.php | 2 +-
public_html/bad-behavior-wordpress.php | 2 +-
public_html/bad-behavior/blackhole.inc.php | 11 +++++++++++
public_html/bad-behavior/msie.inc.php | 3 ++-
public_html/bad-behavior/version.inc.php | 2 +-
diffs (127 lines):
diff -r 52aaf58fe42f -r 3cf973786d8b INSTALL.txt
--- a/INSTALL.txt Sun Feb 01 09:16:11 2009 +0100
+++ b/INSTALL.txt Sun Feb 01 09:17:55 2009 +0100
@@ -1,4 +1,4 @@
-Bad Behavior2 Plugin v2.0.25 for Geeklog v1.4.1 and later
+Bad Behavior2 Plugin v2.0.26 for Geeklog v1.4.1 and later
- Bad Behavior 2 is Copyright (c) 2005-2008 Michael Hampton.
All rights reserved.
Original Geeklog Plugin by Dirk Haun
@@ -18,7 +18,7 @@
With one exception (see step 5), this plugin installs like any other Geeklog
plugin:
-1) Unpack bad_behavior2_2.0.25-1.4.1.tar.gz
+1) Unpack bad_behavior2_2.0.26-1.4.1.tar.gz
2) Upload the contents of the public_html directory into
/path/to/geeklog/public_html/bad_behavior2
3) Upload the contents of the admin directory into
@@ -47,7 +47,7 @@
UPGRADING
If you are upgrading from v1.2.4-1 you must first uninstall the existing
-plugin before you install v2.0.25.
+plugin before you install v2.0.26.
- Perform a standard plugin uninstall - Plugins -> Bad Behavior - Delete
- Do not forget to remove the Bad Behavior 1 lib-common.php entry
@@ -132,8 +132,8 @@
Copyright
-Bad Behavior is (c) 2005-2008 by Michael Hampton and released under the GPL
-The Geeklog plugin is (c) 2005-2008 Dirk Haun and also released under the GPL
+Bad Behavior is (c) 2005-2009 by Michael Hampton and released under the GPL
+The Geeklog plugin is (c) 2005-2009 Dirk Haun and also released under the GPL
Original upgrade to Bad Behavior v2.0.x by Mark Evans - GPL'ed of course...
Please see the included file COPYING (in public_html) for license details.
diff -r 52aaf58fe42f -r 3cf973786d8b public_html/README.txt
--- a/public_html/README.txt Sun Feb 01 09:16:11 2009 +0100
+++ b/public_html/README.txt Sun Feb 01 09:17:55 2009 +0100
@@ -3,8 +3,8 @@
Contributors: error, MarkJaquith, Firas, skeltoac
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=error%40ioerror%2eus&item_name=Bad%20Behavior%20%28From%20WordPress%20Page%29&no_shipping=1&cn=Comments%20about%20Bad%20Behavior&tax=0¤cy_code=USD&bn=PP%2dDonationsBF&charset=UTF%2d8
Requires at least: 1.2
-Tested up to: 2.7
-Stable tag: 2.0.25
+Tested up to: 2.8
+Stable tag: 2.0.26
Welcome to a whole new way of keeping your blog, forum, guestbook, wiki or
content management system free of link spam. Bad Behavior is a PHP-based
diff -r 52aaf58fe42f -r 3cf973786d8b public_html/bad-behavior-wordpress-admin.php
--- a/public_html/bad-behavior-wordpress-admin.php Sun Feb 01 09:16:11 2009 +0100
+++ b/public_html/bad-behavior-wordpress-admin.php Sun Feb 01 09:17:55 2009 +0100
@@ -167,7 +167,7 @@
echo "\n";
$headers = str_replace("\n", " \n", htmlspecialchars($result['http_headers']));
if (@strpos($headers, $result['user_agent']) !== FALSE) $headers = substr_replace($headers, "" . $result['user_agent'] . "", strpos($headers, $result['user_agent']), strlen($result['user_agent']));
- if (strpos($headers, $result['request_method']) !== FALSE) $headers = substr_replace($headers, "" . $result['request_method'] . "", strpos($headers, $result['request_method']), strlen($result['request_method']));
+ if (@strpos($headers, $result['request_method']) !== FALSE) $headers = substr_replace($headers, "" . $result['request_method'] . "", strpos($headers, $result['request_method']), strlen($result['request_method']));
echo "
(see below for a list of theme changes in
diff -r f3c8c971e6b6 -r d1add93e44bf public_html/docs/themevars.html
--- a/public_html/docs/themevars.html Sat Feb 07 15:20:13 2009 +0100
+++ b/public_html/docs/themevars.html Sat Feb 07 15:34:04 2009 +0100
@@ -6,7 +6,7 @@
-
From geeklog-cvs at lists.geeklog.net Sat Feb 7 10:08:57 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 07 Feb 2009 10:08:57 -0500
Subject: [geeklog-cvs] geeklog: Fixed problem with backslashes appearing in
the story t...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/6b5facf000ee
changeset: 6766:6b5facf000ee
user: Dirk Haun
date: Sat Feb 07 15:59:21 2009 +0100
description:
Fixed problem with backslashes appearing in the story title when previewing with magic_quotes_gpc = On (bug #0000790)
diffstat:
1 file changed, 11 insertions(+), 2 deletions(-)
public_html/admin/story.php | 13 +++++++++++--
diffs (23 lines):
diff -r 13f6803831ed -r 6b5facf000ee public_html/admin/story.php
--- a/public_html/admin/story.php Mon Feb 02 09:41:18 2009 +0100
+++ b/public_html/admin/story.php Sat Feb 07 15:59:21 2009 +0100
@@ -258,8 +258,17 @@
}
$story = new Story();
- if($mode == 'preview')
- {
+ if ($mode == 'preview') {
+ // Handle Magic GPC Garbage:
+ while (list($key, $value) = each($_POST)) {
+ if (!is_array($value)) {
+ $_POST[$key] = COM_stripslashes($value);
+ } else {
+ while (list($subkey, $subvalue) = each($value)) {
+ $value[$subkey] = COM_stripslashes($subvalue);
+ }
+ }
+ }
$result = $story->loadFromArgsArray($_POST);
} else {
$result = $story->loadFromDatabase($sid, $mode);
From geeklog-cvs at lists.geeklog.net Sat Feb 7 10:08:58 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 07 Feb 2009 10:08:58 -0500
Subject: [geeklog-cvs] geeklog: Updated list of changes
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/bde76ed5a488
changeset: 6767:bde76ed5a488
user: Dirk Haun
date: Sat Feb 07 16:07:05 2009 +0100
description:
Updated list of changes
diffstat:
2 files changed, 9 insertions(+), 4 deletions(-)
public_html/docs/changes.html | 2 ++
public_html/docs/history | 11 +++++++----
diffs (39 lines):
diff -r 6b5facf000ee -r bde76ed5a488 public_html/docs/changes.html
--- a/public_html/docs/changes.html Sat Feb 07 15:59:21 2009 +0100
+++ b/public_html/docs/changes.html Sat Feb 07 16:07:05 2009 +0100
@@ -23,6 +23,8 @@
Fixed a bug in the story preview where the story content was lost when
previewing a story with a duplicate story ID.
+
Fixed another bug in the story preview that caused extra backslashes to
+ appear in the story's title.
The Trackback editor didn't work since the security token was missing from
the editor template.
Fixed issues with clickable links in plain text postings.
diff -r 6b5facf000ee -r bde76ed5a488 public_html/docs/history
--- a/public_html/docs/history Sat Feb 07 15:59:21 2009 +0100
+++ b/public_html/docs/history Sat Feb 07 16:07:05 2009 +0100
@@ -1,8 +1,10 @@
Geeklog History/Changes:
-Feb ??, 2009 (1.5.2)
-------------
-
+Feb 8, 2009 (1.5.2)
+-----------
+
+- Fixed problem with extra backslashes appearing in a story's title during the
+ story preview when magic_quotes_gpc = On (bug #0000790) [Mike, Dirk]
- Added missing page title when viewing a single comment [Dirk]
- Sort groups in the group dropdowns non-case sensitive [Dirk]
- Display a message when sending the email to report an abusive comment failed
@@ -13,7 +15,8 @@
Static Pages plugin
-------------------
-- Fixed parse error when saving a static page (reported by greenteagod) [Dirk]
+- Fixed parse error when saving a static page (reported by greenteagod). This
+ problem was only introduced in 1.5.2rc1 [Dirk]
Jan 24, 2009 (1.5.2rc1)
From geeklog-cvs at lists.geeklog.net Sat Feb 7 10:08:59 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 07 Feb 2009 10:08:59 -0500
Subject: [geeklog-cvs] geeklog: Updated list of changes
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/d67652fb5e73
changeset: 6769:d67652fb5e73
user: Dirk Haun
date: Sat Feb 07 16:07:05 2009 +0100
description:
Updated list of changes
diffstat:
2 files changed, 9 insertions(+), 4 deletions(-)
public_html/docs/changes.html | 2 ++
public_html/docs/history | 11 +++++++----
diffs (40 lines):
diff -r 87aabd060f27 -r d67652fb5e73 public_html/docs/changes.html
--- a/public_html/docs/changes.html Sat Feb 07 15:59:21 2009 +0100
+++ b/public_html/docs/changes.html Sat Feb 07 16:07:05 2009 +0100
@@ -23,6 +23,8 @@
Fixed a bug in the story preview where the story content was lost when
previewing a story with a duplicate story ID.
+
Fixed another bug in the story preview that caused extra backslashes to
+ appear in the story's title.
The Trackback editor didn't work since the security token was missing from
the editor template.
Fixed issues with clickable links in plain text postings.
diff -r 87aabd060f27 -r d67652fb5e73 public_html/docs/history
--- a/public_html/docs/history Sat Feb 07 15:59:21 2009 +0100
+++ b/public_html/docs/history Sat Feb 07 16:07:05 2009 +0100
@@ -74,9 +74,11 @@
every other plugin and built-in function does (bug #0000644) [Dirk]
-Feb ??, 2009 (1.5.2)
-------------
-
+Feb 8, 2009 (1.5.2)
+-----------
+
+- Fixed problem with extra backslashes appearing in a story's title during the
+ story preview when magic_quotes_gpc = On (bug #0000790) [Mike, Dirk]
- Added missing page title when viewing a single comment [Dirk]
- Sort groups in the group dropdowns non-case sensitive [Dirk]
- Display a message when sending the email to report an abusive comment failed
@@ -87,7 +89,8 @@
Static Pages plugin
-------------------
-- Fixed parse error when saving a static page (reported by greenteagod) [Dirk]
+- Fixed parse error when saving a static page (reported by greenteagod). This
+ problem was only introduced in 1.5.2rc1 [Dirk]
Jan 24, 2009 (1.5.2rc1)
From geeklog-cvs at lists.geeklog.net Sat Feb 7 10:08:58 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 07 Feb 2009 10:08:58 -0500
Subject: [geeklog-cvs] geeklog: Updated version number
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/d100539bbfc6
changeset: 6768:d100539bbfc6
user: Dirk Haun
date: Sat Feb 07 16:07:22 2009 +0100
description:
Updated version number
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
public_html/siteconfig.php.dist | 2 +-
diffs (12 lines):
diff -r bde76ed5a488 -r d100539bbfc6 public_html/siteconfig.php.dist
--- a/public_html/siteconfig.php.dist Sat Feb 07 16:07:05 2009 +0100
+++ b/public_html/siteconfig.php.dist Sat Feb 07 16:07:22 2009 +0100
@@ -38,7 +38,7 @@
define('LB',"\n");
}
if (!defined('VERSION')) {
- define('VERSION', '1.5.2rc1');
+ define('VERSION', '1.5.2');
}
?>
From geeklog-cvs at lists.geeklog.net Sat Feb 7 12:33:17 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 07 Feb 2009 12:33:17 -0500
Subject: [geeklog-cvs] geeklog: Fixed $_POST index name
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/fe6b16c494e7
changeset: 6770:fe6b16c494e7
user: Dirk Haun
date: Sat Feb 07 17:57:40 2009 +0100
description:
Fixed $_POST index name
diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
public_html/admin/user.php | 3 +--
diffs (13 lines):
diff -r d67652fb5e73 -r fe6b16c494e7 public_html/admin/user.php
--- a/public_html/admin/user.php Sat Feb 07 16:07:05 2009 +0100
+++ b/public_html/admin/user.php Sat Feb 07 17:57:40 2009 +0100
@@ -1172,8 +1172,7 @@
$display = saveusers (COM_applyFilter ($_POST['uid'], true),
$_POST['username'], $_POST['fullname'],
$_POST['passwd'], $_POST['passwd_conf'], $_POST['email'],
- $_POST['regdate'], $_POST['homepage'],
- $_POST[$_TABLES['groups']],
+ $_POST['regdate'], $_POST['homepage'], $_POST['groups'],
$delphoto, $_POST['userstatus'], $_POST['oldstatus']);
if (!empty($display)) {
$tmp = COM_siteHeader('menu', $LANG28[22]);
From geeklog-cvs at lists.geeklog.net Sat Feb 7 12:47:58 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 07 Feb 2009 12:47:58 -0500
Subject: [geeklog-cvs] geeklog: The default replacement text for censored
text was supp...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/646c32d0878a
changeset: 6771:646c32d0878a
user: Dirk Haun
date: Sat Feb 07 18:46:54 2009 +0100
description:
The default replacement text for censored text was supposed to read "censored", not "censormode"
diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
public_html/admin/install/config-install.php | 2 +-
public_html/docs/history | 2 ++
diffs (24 lines):
diff -r d100539bbfc6 -r 646c32d0878a public_html/admin/install/config-install.php
--- a/public_html/admin/install/config-install.php Sat Feb 07 16:07:22 2009 +0100
+++ b/public_html/admin/install/config-install.php Sat Feb 07 18:46:54 2009 +0100
@@ -312,7 +312,7 @@
$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('censorreplace','*censored*','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);
diff -r d100539bbfc6 -r 646c32d0878a public_html/docs/history
--- a/public_html/docs/history Sat Feb 07 16:07:22 2009 +0100
+++ b/public_html/docs/history Sat Feb 07 18:46:54 2009 +0100
@@ -3,6 +3,8 @@
Feb 8, 2009 (1.5.2)
-----------
+- The default replacement text for censored text was supposed to read
+ "censored", not "censormode" [Dirk]
- Fixed problem with extra backslashes appearing in a story's title during the
story preview when magic_quotes_gpc = On (bug #0000790) [Mike, Dirk]
- Added missing page title when viewing a single comment [Dirk]
From geeklog-cvs at lists.geeklog.net Sat Feb 7 12:47:58 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 07 Feb 2009 12:47:58 -0500
Subject: [geeklog-cvs] geeklog: The default replacement text for censored
text was supp...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/b71bb6309c6c
changeset: 6772:b71bb6309c6c
user: Dirk Haun
date: Sat Feb 07 18:46:54 2009 +0100
description:
The default replacement text for censored text was supposed to read "censored", not "censormode"
diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
public_html/admin/install/config-install.php | 2 +-
public_html/docs/history | 2 ++
diffs (24 lines):
diff -r fe6b16c494e7 -r b71bb6309c6c public_html/admin/install/config-install.php
--- a/public_html/admin/install/config-install.php Sat Feb 07 17:57:40 2009 +0100
+++ b/public_html/admin/install/config-install.php Sat Feb 07 18:46:54 2009 +0100
@@ -326,7 +326,7 @@
$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('censorreplace','*censored*','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);
diff -r fe6b16c494e7 -r b71bb6309c6c public_html/docs/history
--- a/public_html/docs/history Sat Feb 07 17:57:40 2009 +0100
+++ b/public_html/docs/history Sat Feb 07 18:46:54 2009 +0100
@@ -77,6 +77,8 @@
Feb 8, 2009 (1.5.2)
-----------
+- The default replacement text for censored text was supposed to read
+ "censored", not "censormode" [Dirk]
- Fixed problem with extra backslashes appearing in a story's title during the
story preview when magic_quotes_gpc = On (bug #0000790) [Mike, Dirk]
- Added missing page title when viewing a single comment [Dirk]
From geeklog-cvs at lists.geeklog.net Sat Feb 7 16:49:58 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 07 Feb 2009 16:49:58 -0500
Subject: [geeklog-cvs] geeklog: Hide archive option radiobutton from the
story editor w...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/48f1098d5218
changeset: 6773:48f1098d5218
user: Dirk Haun
date: Sat Feb 07 21:39:46 2009 +0100
description:
Hide archive option radiobutton from the story editor when no archive topic is defined (feature request #0000807)
diffstat:
2 files changed, 19 insertions(+), 2 deletions(-)
public_html/admin/story.php | 19 +++++++++++++++++--
public_html/docs/history | 2 ++
diffs (63 lines):
diff -r b71bb6309c6c -r 48f1098d5218 public_html/admin/story.php
--- a/public_html/admin/story.php Sat Feb 07 18:46:54 2009 +0100
+++ b/public_html/admin/story.php Sat Feb 07 21:39:46 2009 +0100
@@ -2,7 +2,7 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.5 |
+// | Geeklog 1.6 |
// +---------------------------------------------------------------------------+
// | story.php |
// | |
@@ -506,22 +506,37 @@
$story_templates->set_var('expire_date_explanation', $LANG24[46]);
$story_templates->set_var('story_unixstamp', $story->EditElements('expirestamp'));
+
+ $atopic = DB_getItem($_TABLES['topics'], 'tid', "archive_flag = 1");
+ $have_archive_topic = (empty($atopic) ? false : true);
+
if ($story->EditElements('statuscode') == STORY_ARCHIVE_ON_EXPIRE) {
$story_templates->set_var('is_checked2', 'checked="checked"');
$story_templates->set_var('is_checked3', 'checked="checked"');
$story_templates->set_var('showarchivedisabled', 'false');
+ $have_archive_topic = true; // force display of auto archive option
} elseif ($story->EditElements('statuscode') == STORY_DELETE_ON_EXPIRE) {
$story_templates->set_var('is_checked2', 'checked="checked"');
$story_templates->set_var('is_checked4', 'checked="checked"');
+ if (! $have_archive_topic) {
+ $story_templates->set_var('is_checked3', 'style="display:none;"');
+ }
$story_templates->set_var('showarchivedisabled', 'false');
} else {
+ if (! $have_archive_topic) {
+ $story_templates->set_var('is_checked3', 'style="display:none;"');
+ }
$story_templates->set_var('showarchivedisabled', 'true');
}
$story_templates->set_var('lang_archivetitle', $LANG24[58]);
$story_templates->set_var('lang_option', $LANG24[59]);
$story_templates->set_var('lang_enabled', $LANG_ADMIN['enabled']);
$story_templates->set_var('lang_story_stats', $LANG24[87]);
- $story_templates->set_var('lang_optionarchive', $LANG24[61]);
+ if ($have_archive_topic) {
+ $story_templates->set_var('lang_optionarchive', $LANG24[61]);
+ } else {
+ $story_templates->set_var('lang_optionarchive', '');
+ }
$story_templates->set_var('lang_optiondelete', $LANG24[62]);
$story_templates->set_var('lang_title', $LANG_ADMIN['title']);
$story_templates->set_var('story_title', $story->EditElements('title'));
diff -r b71bb6309c6c -r 48f1098d5218 public_html/docs/history
--- a/public_html/docs/history Sat Feb 07 18:46:54 2009 +0100
+++ b/public_html/docs/history Sat Feb 07 21:39:46 2009 +0100
@@ -11,6 +11,8 @@
+ (TBD) Comment moderation and editable comments, by Jared Wenerd
Other changes:
+- Hide archive option radiobutton from the story editor when no archive topic
+ is defined (feature request #0000807) [Dirk]
- Display group names with an uppercase first letter everywhere [Dirk]
- Added an ISO 8601-ish format to the gl_dateformats table [Dirk]
- Let users with user.mail permissions only email groups that they are in
From geeklog-cvs at lists.geeklog.net Sun Feb 8 04:50:20 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 08 Feb 2009 04:50:20 -0500
Subject: [geeklog-cvs] geeklog: Updated Estonian language file for the
Calendar plugin, ...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/e075a7435782
changeset: 6775:e075a7435782
user: Dirk Haun
date: Sun Feb 08 10:49:22 2009 +0100
description:
Updated Estonian language file for the Calendar plugin, provided by Artur R?pp
diffstat:
3 files changed, 3 insertions(+), 2 deletions(-)
plugins/calendar/language/estonian.php | 2 +-
plugins/calendar/language/estonian_utf-8.php | 2 +-
public_html/docs/history | 1 +
diffs (35 lines):
diff -r 48f1098d5218 -r e075a7435782 plugins/calendar/language/estonian.php
--- a/plugins/calendar/language/estonian.php Sat Feb 07 21:39:46 2009 +0100
+++ b/plugins/calendar/language/estonian.php Sun Feb 08 10:49:22 2009 +0100
@@ -109,7 +109,7 @@
11 => 'Peakalender',
12 => 'Minu kalender',
25 => 'tagasi ',
- 26 => 'K?ik p?evad',
+ 26 => 'Kogu p?ev',
27 => 'N?dal',
28 => 'Isiklik kalender, kasutaja',
29 => 'Avalik kalender',
diff -r 48f1098d5218 -r e075a7435782 plugins/calendar/language/estonian_utf-8.php
--- a/plugins/calendar/language/estonian_utf-8.php Sat Feb 07 21:39:46 2009 +0100
+++ b/plugins/calendar/language/estonian_utf-8.php Sun Feb 08 10:49:22 2009 +0100
@@ -109,7 +109,7 @@
11 => 'Peakalender',
12 => 'Minu kalender',
25 => 'tagasi ',
- 26 => 'K??ik p??evad',
+ 26 => 'Kogu p??ev',
27 => 'N??dal',
28 => 'Isiklik kalender, kasutaja',
29 => 'Avalik kalender',
diff -r 48f1098d5218 -r e075a7435782 public_html/docs/history
--- a/public_html/docs/history Sat Feb 07 21:39:46 2009 +0100
+++ b/public_html/docs/history Sun Feb 08 10:49:22 2009 +0100
@@ -89,6 +89,7 @@
[Dirk]
- Display a message when sending the email for a new password failed [Dirk]
+- Updated Estonian language file for the Calendar plugin, provided by Artur R?pp
- Updated Japanese language file, provided by the Geeklog.jp group
Static Pages plugin
From geeklog-cvs at lists.geeklog.net Sun Feb 8 04:50:19 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 08 Feb 2009 04:50:19 -0500
Subject: [geeklog-cvs] geeklog: Updated Estonian language file for the
Calendar plugin, ...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/70c2ed57cfa5
changeset: 6774:70c2ed57cfa5
user: Dirk Haun
date: Sun Feb 08 10:49:22 2009 +0100
description:
Updated Estonian language file for the Calendar plugin, provided by Artur R?pp
diffstat:
3 files changed, 3 insertions(+), 2 deletions(-)
plugins/calendar/language/estonian.php | 2 +-
plugins/calendar/language/estonian_utf-8.php | 2 +-
public_html/docs/history | 1 +
diffs (35 lines):
diff -r 646c32d0878a -r 70c2ed57cfa5 plugins/calendar/language/estonian.php
--- a/plugins/calendar/language/estonian.php Sat Feb 07 18:46:54 2009 +0100
+++ b/plugins/calendar/language/estonian.php Sun Feb 08 10:49:22 2009 +0100
@@ -109,7 +109,7 @@
11 => 'Peakalender',
12 => 'Minu kalender',
25 => 'tagasi ',
- 26 => 'K?ik p?evad',
+ 26 => 'Kogu p?ev',
27 => 'N?dal',
28 => 'Isiklik kalender, kasutaja',
29 => 'Avalik kalender',
diff -r 646c32d0878a -r 70c2ed57cfa5 plugins/calendar/language/estonian_utf-8.php
--- a/plugins/calendar/language/estonian_utf-8.php Sat Feb 07 18:46:54 2009 +0100
+++ b/plugins/calendar/language/estonian_utf-8.php Sun Feb 08 10:49:22 2009 +0100
@@ -109,7 +109,7 @@
11 => 'Peakalender',
12 => 'Minu kalender',
25 => 'tagasi ',
- 26 => 'K??ik p??evad',
+ 26 => 'Kogu p??ev',
27 => 'N??dal',
28 => 'Isiklik kalender, kasutaja',
29 => 'Avalik kalender',
diff -r 646c32d0878a -r 70c2ed57cfa5 public_html/docs/history
--- a/public_html/docs/history Sat Feb 07 18:46:54 2009 +0100
+++ b/public_html/docs/history Sun Feb 08 10:49:22 2009 +0100
@@ -13,6 +13,7 @@
[Dirk]
- Display a message when sending the email for a new password failed [Dirk]
+- Updated Estonian language file for the Calendar plugin, provided by Artur R?pp
- Updated Japanese language file, provided by the Geeklog.jp group
Static Pages plugin
From geeklog-cvs at lists.geeklog.net Sun Feb 8 12:04:46 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 08 Feb 2009 12:04:46 -0500
Subject: [geeklog-cvs] geeklog: Updated Search API for Links plugin
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/9e74946957b9
changeset: 6777:9e74946957b9
user: Sami Barakat
date: Sun Feb 08 17:03:14 2009 +0000
description:
Updated Search API for Links plugin
diffstat:
1 file changed, 32 insertions(+), 120 deletions(-)
plugins/links/functions.inc | 152 +++++++++----------------------------------
diffs (173 lines):
diff -r b6ad992926a3 -r 9e74946957b9 plugins/links/functions.inc
--- a/plugins/links/functions.inc Sun Feb 08 17:02:59 2009 +0000
+++ b/plugins/links/functions.inc Sun Feb 08 17:03:14 2009 +0000
@@ -337,137 +337,49 @@
* @param date $datestart Start date to get results for
* @param date $dateend End date to get results for
* @param string $topic The topic they were searching in
-* @param string $type Type of items they are searching, or 'all'
+* @param string $type Type of items they are searching, or 'all' (deprecated)
* @param int $author Get all results by this author
* @param string $keyType search key type: 'all', 'phrase', 'any'
-* @param int $page page number of current search
-* @param int $perpage number of results per page
+* @param int $page page number of current search (deprecated)
+* @param int $perpage number of results per page (deprecated)
* @return object search result object
*
*/
function plugin_dopluginsearch_links($query, $datestart, $dateend, $topic, $type, $author, $keyType, $page, $perpage)
{
- global $_CONF, $_TABLES, $LANG_LINKS_SEARCH;
+ global $_TABLES, $LANG_LINKS;
- if (empty ($type)) {
- $type = 'all';
+ // Make sure the query is SQL safe
+ $query = trim(addslashes($query));
+
+ $sql = "SELECT lid AS id, title, description, UNIX_TIMESTAMP(date) AS date, owner_id AS uid, hits, url ";
+ $sql .= "FROM {$_TABLES['links']} WHERE date <> 1 ";
+ $sql .= COM_getPermSQL('AND') . ' ';
+
+ if (!empty($datestart) && !empty($dateend))
+ {
+ $delim = substr($datestart, 4, 1);
+ if (!empty($delim))
+ {
+ $DS = explode($delim, $datestart);
+ $DE = explode($delim, $dateend);
+ $startdate = mktime(0,0,0,$DS[1],$DS[2],$DS[0]);
+ $enddate = mktime(23,59,59,$DE[1],$DE[2],$DE[0]);
+ $sql .= "AND (UNIX_TIMESTAMP(date) BETWEEN '$startdate' AND '$enddate') ";
+ }
+ }
+ if (!empty ($author)) {
+ $sql .= "AND (owner_id = '$author') ";
}
- // Bail if we aren't supppose to do our search
- if ($type <> 'all' AND $type <> 'links') {
- $plugin_results = new Plugin();
- $plugin_results->plugin_name = 'links';
- $plugin_results->searchlabel = $LANG_LINKS_SEARCH['results'];
+ $search = new SearchCriteria('links', $LANG_LINKS[14]);
+ $columns = array('description','title');
+ list($sql,$ftsql) = $search->buildSearchSQL($keyType, $query, $columns, $sql);
+ $search->setSQL($sql);
+ $search->setFTSQL($ftsql);
+ $search->setRank(3);
- return $plugin_results;
- }
-
- // link search
- $select = 'SELECT lid,title,url,owner_id,hits,UNIX_TIMESTAMP(date) AS day';
- $sql = " FROM {$_TABLES['links']} WHERE date <> 1";
-
- if (!empty ($query)) {
- if ($keyType == 'phrase') {
- $mysearchterm = addslashes ($query);
- $sql .= " AND ((description LIKE '%$mysearchterm%')"
- . " OR (title LIKE '%$mysearchterm%'))";
- } else if ($keyType == 'all') {
- $mywords = explode (' ', $query);
- $sql .= ' AND (';
- $tmp = '';
- foreach ($mywords AS $mysearchterm) {
- $mysearchterm = addslashes (trim ($mysearchterm));
- if (!empty ($mysearchterm)) {
- $tmp .= "((description LIKE '%$mysearchterm%')"
- . " OR (title LIKE '%$mysearchterm%')) AND ";
- }
- }
- $tmp = substr ($tmp, 0, strlen ($tmp) - 5);
- $sql .= $tmp . ')';
- } else if ($keyType == 'any') {
- $mywords = explode (' ', $query);
- $sql .= ' AND (';
- $tmp = '';
- foreach ($mywords AS $mysearchterm) {
- $mysearchterm = addslashes (trim ($mysearchterm));
- if (!empty ($mysearchterm)) {
- $tmp .= "((description LIKE '%$mysearchterm%')"
- . " OR (title LIKE '%$mysearchterm%')) OR ";
- }
- }
- $tmp = substr ($tmp, 0, strlen ($tmp) - 4);
- $sql .= $tmp . ')';
- } else { // quick search
- $mysearchterm = addslashes ($query);
- $sql .= " AND ((description LIKE '%$mysearchterm%')"
- . " OR (title LIKE '%$mysearchterm%'))";
- }
- }
-
- if (!empty ($datestart) && !empty ($dateend)) {
- $delim = substr ($datestart, 4, 1);
- if (!empty($delim)) {
- $DS = explode ($delim, $datestart);
- $DE = explode ($delim, $dateend);
- $startdate = mktime (0, 0, 0, $DS[1], $DS[2], $DS[0]);
- $enddate = mktime (23, 59, 59, $DE[1], $DE[2], $DE[0]);
- $sql .= " AND (UNIX_TIMESTAMP(date) BETWEEN '$startdate' AND '$enddate')";
- }
- }
-
- if (!empty ($author)) {
- $sql .= " AND (owner_id = '$author')";
- }
- $sql .= COM_getPermSQL('AND') . LINKS_getCategorySQL('AND');
- $sql .= ' GROUP BY date, lid, cid, url, description, title, hits, owner_id, group_id, perm_owner, perm_group, perm_members, perm_anon ORDER BY date DESC';
- $l = ($perpage * $page) - $perpage;
- $sql .= ' LIMIT ' . $l . ',' . $perpage;
-
- // Perform search
- $result = DB_query ($select . $sql);
- $mycount = DB_numRows ($result);
- $result_count = DB_query ('SELECT COUNT(*)' . $sql);
- $B = DB_fetchArray ($result_count, true);
-
- $plugin_results = new Plugin();
- $plugin_results->plugin_name = 'links';
- $plugin_results->searchlabel = $LANG_LINKS_SEARCH['results'];
- $plugin_results->addSearchHeading ($LANG_LINKS_SEARCH['title']);
- $plugin_results->addSearchHeading ($LANG_LINKS_SEARCH['date']);
- $plugin_results->addSearchHeading ($LANG_LINKS_SEARCH['author']);
- $plugin_results->addSearchHeading ($LANG_LINKS_SEARCH['hits']);
- $plugin_results->num_searchresults = 0;
- $plugin_results->num_itemssearched = $B[0];
- $plugin_results->supports_paging = true;
-
- // NOTE if any of your data items need to be links then add them here!
- // make sure data elements are in an array and in the same order as your
- // headings above!
- for ($i = 0; $i < $mycount; $i++) {
- $A = DB_fetchArray ($result);
-
- $thetime = COM_getUserDateTimeFormat ($A['day']);
- $A['title'] = stripslashes ($A['title']);
- $submitter = COM_getDisplayName ($A['owner_id']);
- if ($A['owner_id'] > 1) {
- $profile_url = $_CONF['site_url']
- . '/users.php?mode=profile&uid=' . $A['owner_id'];
- $profile = COM_createLink($submitter, $profile_url);
- } else {
- $profile = $submitter;
- }
- $linkUrl = COM_buildUrl($_CONF['site_url']
- . '/links/portal.php?what=link&item='
- . $A['lid']);
- $anchor = COM_createLink($A['title'], $linkUrl,
- array('title' => $A['url']));
- $row = array ($anchor, $thetime[0], $profile,
- COM_NumberFormat ($A['hits']));
- $plugin_results->addSearchResult ($row);
- $plugin_results->num_searchresults++;
- }
-
- return $plugin_results;
+ return $search;
}
From geeklog-cvs at lists.geeklog.net Sun Feb 8 12:04:47 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 08 Feb 2009 12:04:47 -0500
Subject: [geeklog-cvs] geeklog: Updated Search API for Staticpages plugin
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/44c2dab884c9
changeset: 6778:44c2dab884c9
user: Sami Barakat
date: Sun Feb 08 17:03:27 2009 +0000
description:
Updated Search API for Staticpages plugin
diffstat:
1 file changed, 33 insertions(+), 119 deletions(-)
plugins/staticpages/functions.inc | 152 ++++++++-----------------------------
diffs (172 lines):
diff -r 9e74946957b9 -r 44c2dab884c9 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc Sun Feb 08 17:03:14 2009 +0000
+++ b/plugins/staticpages/functions.inc Sun Feb 08 17:03:27 2009 +0000
@@ -566,135 +566,49 @@
* @param date $datestart Start date to get results for
* @param date $dateend End date to get results for
* @param string $topic The topic they were searching in
-* @param string $type Type of items they are searching, or 'all'
+* @param string $type Type of items they are searching, or 'all' (deprecated)
* @param int $author Get all results by this author
* @param string $keyType search key type: 'all', 'phrase', 'any'
-* @param int $page page number of current search
-* @param int $perpage number of results per page
+* @param int $page page number of current search (deprecated)
+* @param int $perpage number of results per page (deprecated)
*
*/
function plugin_dopluginsearch_staticpages($query, $datestart, $dateend, $topic, $type, $author, $keyType, $page, $perpage)
{
- global $_CONF, $_TABLES, $LANG_STATIC;
+ global $_TABLES, $LANG_STATIC;
- if (empty ($type)) {
- $type = 'all';
+ // Make sure the query is SQL safe
+ $query = trim(addslashes($query));
+
+ $sql = "SELECT sp.sp_id AS id, sp.sp_title AS title, sp.sp_content AS description, UNIX_TIMESTAMP(sp.sp_date) AS date, sp.sp_uid AS uid, sp.sp_hits AS hits, CONCAT('/staticpages/index.php?page=', sp.sp_id) AS url ";
+ $sql .= "FROM {$_TABLES['staticpage']} AS sp,{$_TABLES['users']} AS u ";
+ $sql .= "WHERE (sp.sp_uid = u.uid) AND (sp_php <> 1) ";
+ $sql .= COM_getPermSQL('AND') . COM_getLangSQL('sp_id', 'AND', 'sp') . ' ';
+
+ if (!empty($datestart) && !empty($dateend))
+ {
+ $delim = substr($datestart, 4, 1);
+ if (!empty($delim))
+ {
+ $DS = explode($delim, $datestart);
+ $DE = explode($delim, $dateend);
+ $startdate = mktime(0,0,0,$DS[1],$DS[2],$DS[0]);
+ $enddate = mktime(23,59,59,$DE[1],$DE[2],$DE[0]);
+ $sql .= "AND (UNIX_TIMESTAMP(sp_date) BETWEEN '$startdate' AND '$enddate') ";
+ }
+ }
+ if (!empty ($author)) {
+ $sql .= "AND (sp_uid = '$author') ";
}
- // Bail if we aren't supppose to do our search
- if ($type <> 'all' AND $type <> 'staticpages') {
- $plugin_results = new Plugin();
- $plugin_results->plugin_name = 'staticpages';
- $plugin_results->searchlabel = $LANG_STATIC['results'];
+ $search = new SearchCriteria('staticpages', $LANG_STATIC['staticpages']);
+ $columns = array('sp_content','sp_title');
+ list($sql,$ftsql) = $search->buildSearchSQL($keyType, $query, $columns, $sql);
+ $search->setSQL($sql);
+ $search->setFTSQL($ftsql);
+ $search->setRank(3);
- return $plugin_results;
- }
-
- // Build search SQL - exclude static PHP pages from search.
- $select = "SELECT u.username,u.fullname,sp.sp_id,sp.sp_title,sp.sp_hits,sp.sp_uid,UNIX_TIMESTAMP(sp.sp_date) AS day";
- $sql = " FROM {$_TABLES['staticpage']} AS sp,{$_TABLES['users']} AS u WHERE (sp.sp_uid = u.uid) AND (sp_php <> 1)" . COM_getPermSQL ('AND') . COM_getLangSql ('sp_id', 'AND', 'sp');
-
- if (!empty ($query)) {
- if ($keyType == 'phrase') {
- $mysearchterm = addslashes ($query);
- $sql .= " AND ((sp_content LIKE '%$mysearchterm%')"
- . " OR (sp_title LIKE '%$mysearchterm%'))";
- } else if ($keyType == 'all') {
- $mywords = explode (' ', $query);
- $sql .= ' AND (';
- $tmp = '';
- foreach ($mywords AS $mysearchterm) {
- $mysearchterm = addslashes (trim ($mysearchterm));
- if (!empty ($mysearchterm)) {
- $tmp .= "(sp_content LIKE '%$mysearchterm%')"
- . " OR (sp_title LIKE '%$mysearchterm%') AND ";
- }
- }
- $tmp = substr ($tmp, 0, strlen ($tmp) - 5);
- $sql .= $tmp . ')';
- } else if ($keyType == 'any') {
- $mywords = explode (' ', $query);
- $sql .= ' AND (';
- $tmp = '';
- foreach ($mywords AS $mysearchterm) {
- $mysearchterm = addslashes (trim ($mysearchterm));
- if (!empty ($mysearchterm)) {
- $tmp .= "(sp_content LIKE '%$mysearchterm%')"
- . " OR (sp_title LIKE '%$mysearchterm%') OR ";
- }
- }
- $tmp = substr ($tmp, 0, strlen ($tmp) - 4);
- $sql .= $tmp . ')';
- } else {
- $mysearchterm = addslashes ($query);
- $sql .= " AND ((sp_content LIKE '%$mysearchterm%')"
- . " OR (sp_title LIKE '%$mysearchterm%'))";
- }
- }
-
- if (!empty ($datestart) && !empty ($dateend)) {
- $delim = substr ($datestart, 4, 1);
- if (!empty($delim)) {
- $DS = explode ($delim, $datestart);
- $DE = explode ($delim, $dateend);
- $startdate = mktime (0, 0, 0, $DS[1], $DS[2], $DS[0]);
- $enddate = mktime (23, 59, 59, $DE[1], $DE[2], $DE[0]);
- $sql .= " AND (UNIX_TIMESTAMP(sp_date) BETWEEN '$startdate' AND '$enddate')";
- }
- }
-
- if (!empty ($author)) {
- $sql .= "AND (sp_uid = '$author')";
- }
- $sql .= " GROUP BY sp_date, u.username, u.fullname, sp.sp_id, sp.sp_title, sp.sp_hits, sp.sp_uid ORDER BY sp_date DESC ";
- $l = ($perpage * $page) - $perpage;
- $sql .= 'LIMIT ' . $l . ',' . $perpage;
-
- // Perform search
- $result = DB_query ($select . $sql);
- $mycount = DB_numRows ($result);
- $result_count = DB_query ('SELECT COUNT(*)' . $sql);
- $B = DB_fetchArray ($result_count, true);
-
- // OK, now return table header labels
- $plugin_results = new Plugin();
- $plugin_results->plugin_name = 'staticpages';
- $plugin_results->searchlabel = $LANG_STATIC['results'];
- $plugin_results->addSearchHeading ($LANG_STATIC['title']);
- $plugin_results->addSearchHeading ($LANG_STATIC['date']);
- $plugin_results->addSearchHeading ($LANG_STATIC['author']);
- $plugin_results->addSearchHeading ($LANG_STATIC['hits']);
- $plugin_results->num_searchresults = 0;
- $plugin_results->num_itemssearched = $B[0];
- $plugin_results->supports_paging = true;
-
- // NOTE if any of your data items need to be links then add them here!
- // make sure data elements are in an array and in the same order as your
- // headings above!
- for ($i = 0; $i < $mycount; $i++) {
- $A = DB_fetchArray ($result);
-
- $thetime = COM_getUserDateTimeFormat ($A['day']);
- $A['sp_title'] = stripslashes ($A['sp_title']);
- $pageurl = COM_buildURL ($_CONF['site_url']
- . '/staticpages/index.php?page=' . $A['sp_id']);
- if (isset ($_CONF['show_fullname']) && ($_CONF['show_fullname'] == 1) &&
- !empty ($A['fullname'])) {
- $author = $A['fullname'];
- } else {
- $author = $A['username'];
- }
- $profile = $_CONF['site_url'] . '/users.php?mode=profile&uid='
- . $A['sp_uid'];
- $row = array (COM_createLink($A['sp_title'], $pageurl),
- $thetime[0],
- COM_createLink($author, $profile),
- COM_NumberFormat ($A['sp_hits']));
- $plugin_results->addSearchResult ($row);
- $plugin_results->num_searchresults++;
- }
-
- return $plugin_results;
+ return $search;
}
From geeklog-cvs at lists.geeklog.net Sun Feb 8 12:04:46 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 08 Feb 2009 12:04:46 -0500
Subject: [geeklog-cvs] geeklog: Updated Search API for Calendar plugin
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/b6ad992926a3
changeset: 6776:b6ad992926a3
user: Sami Barakat
date: Sun Feb 08 17:02:59 2009 +0000
description:
Updated Search API for Calendar plugin
diffstat:
1 file changed, 36 insertions(+), 120 deletions(-)
plugins/calendar/functions.inc | 156 +++++++++-------------------------------
diffs (186 lines):
diff -r e075a7435782 -r b6ad992926a3 plugins/calendar/functions.inc
--- a/plugins/calendar/functions.inc Sun Feb 08 10:49:22 2009 +0100
+++ b/plugins/calendar/functions.inc Sun Feb 08 17:02:59 2009 +0000
@@ -1578,146 +1578,62 @@
* @param date $datestart Start date to get results for
* @param date $dateend End date to get results for
* @param string $topic The topic they were searching in
-* @param string $type Type of items they are searching, or 'all'
+* @param string $type Type of items they are searching, or 'all' (deprecated)
* @param int $author Get all results by this author
* @param string $keyType search key type: 'all', 'phrase', 'any'
-* @param int $page page number of current search
-* @param int $perpage number of results per page
+* @param int $page page number of current search (deprecated)
+* @param int $perpage number of results per page (deprecated)
* @return object search result object
*
*/
function plugin_dopluginsearch_calendar($query, $datestart, $dateend, $topic, $type, $author, $keyType, $page, $perpage)
{
- global $_CONF, $_TABLES, $LANG09, $LANG_CAL_1, $_LANG_CAL_SEARCH;
+ global $_TABLES, $LANG_CAL_1;
- if (empty ($type)) {
- $type = 'all';
- }
+ // Make sure the query is SQL safe
+ $query = trim(addslashes($query));
- // Bail if we aren't supppose to do our search
- if ($type <> 'all' AND $type <> 'calendar') {
- $event_results = new Plugin();
- $event_results->plugin_name = 'calendar';
- $event_results->num_itemssearched = 0;
- $event_results->searchlabel = $_LANG_CAL_SEARCH['results'];
+ $sql_e = "SELECT eid AS id, title, description, UNIX_TIMESTAMP(datestart) AS date, owner_id AS uid, hits, CONCAT('/calendar/event.php?eid=',eid) AS url ";
+ $sql_e .= "FROM {$_TABLES['events']} WHERE 1=1 ";
- return $event_results;
- }
+ $sql_p = "SELECT eid AS id, title, description, UNIX_TIMESTAMP(datestart) AS date, owner_id AS uid, '0' AS hits, CONCAT('/calendar/event.php?eid=',eid) AS url ";
+ $sql_p .= "FROM {$_TABLES['personal_events']} WHERE 1=1 ";
- $select = "SELECT eid,title,location,event_type,datestart,dateend,timestart,timeend,allday,UNIX_TIMESTAMP(datestart) AS day";
- $sql = " FROM {$_TABLES['events']} WHERE ";
+ $sql = COM_getPermSQL('AND') . ' ';
- if($keyType == 'phrase') {
- // do an exact phrase search (default)
- $mywords[] = $query;
- $mysearchterm = addslashes ($query);
- $sql .= "(location LIKE '%$mysearchterm%' ";
- $sql .= "OR description LIKE '%$mysearchterm%' ";
- $sql .= "OR title LIKE '%$mysearchterm%') ";
- } else if ($keyType == 'all') {
- //must contain ALL of the keywords
- $mywords = explode(' ', $query);
- $tmp = '';
- foreach ($mywords AS $mysearchterm) {
- $mysearchterm = addslashes (trim ($mysearchterm));
- $tmp .= "(location LIKE '%$mysearchterm%' OR ";
- $tmp .= "description LIKE '%$mysearchterm%' OR ";
- $tmp .= "title LIKE '%$mysearchterm%') AND ";
- }
- $tmp = substr($tmp, 0, strlen($tmp) - 4);
- $sql .= $tmp;
- } else if ($keyType == 'any') {
- //must contain ANY of the keywords
- $mywords = explode(' ', $query);
- $tmp = '';
- foreach ($mywords AS $mysearchterm) {
- $mysearchterm = addslashes (trim ($mysearchterm));
- $tmp .= "(location LIKE '%$mysearchterm%' OR ";
- $tmp .= "description LIKE '%$mysearchterm%' OR ";
- $tmp .= "title LIKE '%$mysearchterm%') OR ";
- }
- $tmp = substr($tmp, 0, strlen($tmp) - 3);
- $sql .= "($tmp)";
- } else {
- $mywords[] = $query;
- $mysearchterm = addslashes ($query);
- $sql .= "(location LIKE '%$mysearchterm%' ";
- $sql .= "OR description LIKE '%$mysearchterm%' ";
- $sql .= "OR title LIKE '%$mysearchterm%') ";
- }
-
- if (!empty($datestart) AND !empty($dateend)) {
+ if (!empty($datestart) && !empty($dateend))
+ {
$delim = substr($datestart, 4, 1);
- if (!empty($delim)) {
+ if (!empty($delim))
+ {
$DS = explode($delim, $datestart);
$DE = explode($delim, $dateend);
- $startdate = mktime(0, 0, 0, $DS[1], $DS[2], $DS[0]);
- $enddate = mktime(23, 59, 59, $DE[1], $DE[2], $DE[0]);
+ $startdate = mktime(0,0,0,$DS[1],$DS[2],$DS[0]);
+ $enddate = mktime(23,59,59,$DE[1],$DE[2],$DE[0]);
$sql .= "AND (UNIX_TIMESTAMP(datestart) BETWEEN '$startdate' AND '$enddate') ";
}
}
- if (!empty($author)) {
- $sql .= "AND (owner_id = '$author')";
- }
- $sql .= COM_getPermSQL ('AND');
- $sql .= ' GROUP BY datestart, eid, title, description, location, dateend, timestart, timeend, allday, event_type ORDER BY datestart DESC ';
- $l = ($perpage * $page) - $perpage;
- $sql .= 'LIMIT ' . $l . ',' . $perpage;
-
- $result_events = DB_query ($select . $sql);
- $result_count = DB_query ('SELECT COUNT(*)' . $sql);
- $B = DB_fetchArray ($result_count, true);
-
- $event_results = new Plugin();
- $event_results->searchresults = array();
- $event_results->searchlabel = $_LANG_CAL_SEARCH['results'];
- $event_results->addSearchHeading ($_LANG_CAL_SEARCH['title']);
- $event_results->addSearchHeading ($_LANG_CAL_SEARCH['date_time']);
- if (empty ($_LANG_CAL_SEARCH['event_type'])) {
- $event_results->addSearchHeading ($LANG_CAL_1[37]);
- } else {
- $event_results->addSearchHeading ($_LANG_CAL_SEARCH['event_type']);
- }
- $event_results->num_searchresults = 0;
- $event_results->num_itemssearched = $B[0];
- $event_results->supports_paging = true;
-
- // NOTE if any of your data items need to be events then add them
- // here! Make sure data elements are in an array and in the same
- // order as your headings above!
- while ($A = DB_fetchArray ($result_events)) {
- if ($A['allday'] == 0) {
- if ($A['datestart'] == $A['dateend']) {
- $fulldate = $A['datestart'] . ' ' . $A['timestart'];
- if ($A['timestart'] != $A['timeend']) {
- $fulldate .= ' - ' . $A['timeend'];
- }
- } else {
- $fulldate = $A['datestart'] . ' ' . $A['timestart'] . ' - '
- . $A['dateend'] . ' ' . $A['timeend'];
- }
- } else {
- if ($A['datestart'] <> $A['dateend']) {
- $fulldate = $A['datestart'] . ' - ' . $A['dateend']
- . ' ' . $LANG09[35];
- } else {
- $fulldate = $A['datestart'] . ' ' . $LANG09[35];
- }
- }
- $thetime = COM_getUserDateTimeFormat ($A['day']);
- $A['title'] = stripslashes ($A['title']);
- $A['title'] = str_replace ('$', '$', $A['title']);
- $url = $_CONF['site_url'] . '/calendar/event.php?eid=' . $A['eid'];
- if (!empty($query)) {
- $url .= '&query=' . urlencode($query);
- }
- $link = COM_createLink($A['title'], $url);
- $row = array ($link, $fulldate, stripslashes ($A['event_type']));
- $event_results->addSearchResult($row);
- $event_results->num_searchresults++;
+ if (!empty ($author)) {
+ $sql .= "AND (owner_id = '$author') ";
}
- return $event_results;
+ // Search the public events
+ $search_e = new SearchCriteria('calendar', array($LANG_CAL_1[16],$LANG_CAL_1[24]));
+ $columns = array('location','description','title');
+ list($sql_tmp,$ftsql_tmp) = $search_e->buildSearchSQL($keyType, $query, $columns, $sql_e . $sql);
+ $search_e->setSQL($sql_tmp);
+ $search_e->setFTSQL($ftsql_tmp);
+ $search_e->setRank(2);
+
+ // Search personal events
+ $search_p = new SearchCriteria('calendar', array($LANG_CAL_1[16],$LANG_CAL_1[23]));
+ $columns = array('location','description','title');
+ list($sql_tmp,$ftsql_tmp) = $search_p->buildSearchSQL($keyType, $query, $columns, $sql_p . $sql);
+ $search_p->setSQL($sql_tmp);
+ $search_p->setFTSQL($ftsql_tmp);
+ $search_p->setRank(2);
+
+ return array($search_e,$search_p);
}
From geeklog-cvs at lists.geeklog.net Sun Feb 8 12:28:20 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 08 Feb 2009 12:28:20 -0500
Subject: [geeklog-cvs] geeklog: Added tag geeklog_1_5_2_stable for changeset
70c2ed57cfa5
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/f8fe2b0d0c69
changeset: 6779:f8fe2b0d0c69
user: Dirk Haun
date: Sun Feb 08 18:28:01 2009 +0100
description:
Added tag geeklog_1_5_2_stable for changeset 70c2ed57cfa5
diffstat:
1 file changed, 1 insertion(+)
.hgtags | 1 +
diffs (8 lines):
diff -r 70c2ed57cfa5 -r f8fe2b0d0c69 .hgtags
--- a/.hgtags Sun Feb 08 10:49:22 2009 +0100
+++ b/.hgtags Sun Feb 08 18:28:01 2009 +0100
@@ -1,3 +1,4 @@
f51a1417bd7041bea96370434142498438d4e558 geeklog_1_5_0_stable
8abbb13ee513b6cf2c76d702273c3fa118f9bf5c geeklog_1_5_1_stable
b3eeb545eec477cc120336f895e31a34fd64a486 geeklog_1_5_2rc1
+70c2ed57cfa5808ee0859f113dfa77d867720b5c geeklog_1_5_2_stable
From geeklog-cvs at lists.geeklog.net Thu Feb 12 06:22:51 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Thu, 12 Feb 2009 06:22:51 -0500
Subject: [geeklog-cvs] geeklog: How the f*** did that happen? (profanity
intended)
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/035f447a8da7
changeset: 6780:035f447a8da7
user: Dirk Haun
date: Thu Feb 12 12:22:39 2009 +0100
description:
How the f*** did that happen? (profanity intended)
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
public_html/lib-common.php | 4 ++--
diffs (14 lines):
diff -r 44c2dab884c9 -r 035f447a8da7 public_html/lib-common.php
--- a/public_html/lib-common.php Sun Feb 08 17:03:27 2009 +0000
+++ b/public_html/lib-common.php Thu Feb 12 12:22:39 2009 +0100
@@ -3674,8 +3674,8 @@
/**
* Syndication import function. Imports headline data to a portal block.
*
-* Rewritten December 19th 2004 by Michael Jervis (mike@*censored*ingbrit.com). Now
-* utilises a Factory Pattern to open a URL and automaticaly retreive a feed
+* Rewritten December 19th 2004 by Michael Jervis (mike AT fuckingbrit DOT com).
+* Now utilises a Factory Pattern to open a URL and automaticaly retreive a feed
* object populated with feed data. Then import it into the portal block.
*
* @param string $bid Block ID
From geeklog-cvs at lists.geeklog.net Sun Feb 15 14:14:33 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 15 Feb 2009 14:14:33 -0500
Subject: [geeklog-cvs] geeklog: Set the page title when viewing a poll
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/9a83087b80b0
changeset: 6781:9a83087b80b0
user: Dirk Haun
date: Sat Feb 14 17:02:00 2009 +0100
description:
Set the page title when viewing a poll
diffstat:
2 files changed, 6 insertions(+), 5 deletions(-)
public_html/docs/history | 1 +
public_html/polls/index.php | 10 +++++-----
diffs (45 lines):
diff -r 035f447a8da7 -r 9a83087b80b0 public_html/docs/history
--- a/public_html/docs/history Thu Feb 12 12:22:39 2009 +0100
+++ b/public_html/docs/history Sat Feb 14 17:02:00 2009 +0100
@@ -58,6 +58,7 @@
Polls plugin
------------
+- Set the page title when viewing a poll [Dirk]
- Added auto installation support [Dirk]
- Added support for PLG_getItemInfo, PLG_itemSaved, PLG_itemDeleted [Dirk]
- Extended length of poll IDs to 40 characters (feature request #0000754) [Dirk]
diff -r 035f447a8da7 -r 9a83087b80b0 public_html/polls/index.php
--- a/public_html/polls/index.php Thu Feb 12 12:22:39 2009 +0100
+++ b/public_html/polls/index.php Sat Feb 14 17:02:00 2009 +0100
@@ -143,7 +143,7 @@
$msg = COM_applyFilter($_REQUEST['msg'], true);
}
-if (isset($pid)) {
+if (! empty($pid)) {
$questions_sql = "SELECT question,qid FROM {$_TABLES['pollquestions']} "
. "WHERE pid='$pid' ORDER BY qid";
$questions = DB_query($questions_sql);
@@ -160,8 +160,9 @@
$_CONF['cookie_path'], $_CONF['cookiedomain'],
$_CONF['cookiesecure']);
$display .= COM_siteHeader() . POLLS_pollsave($pid, $aid);
-} else if (isset($pid)) {
- $display .= COM_siteHeader();
+} elseif (! empty($pid)) {
+ $topic = DB_getItem ($_TABLES['polltopics'], 'topic', "pid = '{$pid}'");
+ $display .= COM_siteHeader('menu', $topic);
if ($msg > 0) {
$display .= COM_showMessage($msg, 'polls');
}
@@ -169,8 +170,7 @@
$display .= COM_startBlock (
$LANG_POLLS['not_saved'], '',
COM_getBlockTemplate ('_msg_block', 'header'))
- . $LANG_POLLS['answer_all'] . ' "'
- . DB_getItem ($_TABLES['polltopics'], 'topic', "pid = '{$pid}'") . '"'
+ . $LANG_POLLS['answer_all'] . ' "' . $topic . '"'
. COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
}
if (DB_getItem($_TABLES['polltopics'], 'is_open', "pid = '$pid'") != 1) {
From geeklog-cvs at lists.geeklog.net Sun Feb 15 14:14:34 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 15 Feb 2009 14:14:34 -0500
Subject: [geeklog-cvs] geeklog: Use IN to exlude topics instead of a
(possibly long) li...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/3a3d0cd63d7b
changeset: 6782:3a3d0cd63d7b
user: Dirk Haun
date: Sun Feb 15 10:59:22 2009 +0100
description:
Use IN to exlude topics instead of a (possibly long) list of ORs
diffstat:
1 file changed, 14 insertions(+), 17 deletions(-)
public_html/admin/story.php | 31 ++++++++++++++-----------------
diffs (53 lines):
diff -r 9a83087b80b0 -r 3a3d0cd63d7b public_html/admin/story.php
--- a/public_html/admin/story.php Sat Feb 14 17:02:00 2009 +0100
+++ b/public_html/admin/story.php Sun Feb 15 10:59:22 2009 +0100
@@ -116,35 +116,32 @@
$current_topic = $LANG09[9];
}
- if ($current_topic == $LANG09[9]) {
+ if ($current_topic == $LANG09[9]) { // "All"
$excludetopics = '';
$seltopics = '';
- $topicsql = "SELECT tid,topic FROM {$_TABLES['topics']}" . COM_getPermSQL ();
- $tresult = DB_query( $topicsql );
- $trows = DB_numRows( $tresult );
- if( $trows > 0 )
- {
- $excludetopics .= ' (';
- for( $i = 1; $i <= $trows; $i++ ) {
- $T = DB_fetchArray ($tresult);
- if ($i > 1) {
- $excludetopics .= ' OR ';
- }
- $excludetopics .= "tid = '{$T['tid']}'";
- $seltopics .= '
This release incorporates the following projects implemented during the
+the 2008 Google Summer of Code:
+
+
+
Site migration support and easier plugin installation, by Matt West
+
Improved search, by Sami Barakat
+
Comment moderation and editable comments, by Jared Wenerd
+
+
+
Other changes
+
+
+
The minimum PHP version required by Geeklog is now PHP 4.3.0. Given that the PHP team ended support for PHP in August 2008, you should be
+looking into upgrading to PHP 5 anyway.
diff -r 6e9c261610c2 -r 93f182e7807e public_html/docs/history
--- a/public_html/docs/history Sat Feb 21 15:07:45 2009 +0100
+++ b/public_html/docs/history Sat Feb 21 16:46:34 2009 +0100
@@ -7,10 +7,12 @@
the 2008 Google Summer of Code:
+ Site migration support and easier plugin installation, by Matt West
-+ (TBD) Improved search, by Sami Barakat
++ Improved search, by Sami Barakat
+ (TBD) Comment moderation and editable comments, by Jared Wenerd
Other changes:
+- Raised minimum required PHP version to PHP 4.3.0 and removed all workarounds
+ that ensured compatibility with PHP 4.1.0 [Dirk]
- Added a filename mask config option for the names of the database backups
[Dirk]
- Removed $_CONF['pagetitle'] hack. Use COM_siteHeader('menu', $pagetitle)
diff -r 6e9c261610c2 -r 93f182e7807e public_html/lib-common.php
--- a/public_html/lib-common.php Sat Feb 21 15:07:45 2009 +0100
+++ b/public_html/lib-common.php Sat Feb 21 16:46:34 2009 +0100
@@ -137,39 +137,18 @@
* If needed, add our PEAR path to the list of include paths
*
*/
-if( !$_CONF['have_pear'] )
-{
- $curPHPIncludePath = ini_get( 'include_path' );
- if( defined( 'PATH_SEPARATOR' ))
- {
- $separator = PATH_SEPARATOR;
- }
- else
- {
- // prior to PHP 4.3.0, we have to guess the correct separator ...
- $separator = ';';
- if( strpos( $curPHPIncludePath, $separator ) === false )
- {
- $separator = ':';
- }
- }
- if( ini_set( 'include_path', $_CONF['path_pear'] . $separator
- . $curPHPIncludePath ) === false )
- {
- COM_errorLog( 'ini_set failed - there may be problems using the PEAR classes.', 1);
- }
-}
-
-
-/**
From geeklog-cvs at lists.geeklog.net Sat Feb 21 13:46:55 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 21 Feb 2009 13:46:55 -0500
Subject: [geeklog-cvs] tools: Don't need the PHP_Compat package any more
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/c8968b9f3449
changeset: 23:c8968b9f3449
user: Dirk Haun
date: Sat Feb 21 17:09:21 2009 +0100
description:
Don't need the PHP_Compat package any more
diffstat:
1 file changed, 2 insertions(+)
ship/mkdist.sh | 2 ++
diffs (12 lines):
diff -r a1a5eac24259 -r c8968b9f3449 ship/mkdist.sh
--- a/ship/mkdist.sh Sun Feb 08 19:50:21 2009 +0100
+++ b/ship/mkdist.sh Sat Feb 21 17:09:21 2009 +0100
@@ -42,6 +42,8 @@
mv $repository $NEWVERSION
cp -r -p ../pear-1.3/pear/* $NEWVERSION/system/pear/
+# remove PHP_Compat package
+rm -rf $NEWVERSION/system/pear/PHP
cd $NEWVERSION
From geeklog-cvs at lists.geeklog.net Sat Feb 21 13:46:55 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 21 Feb 2009 13:46:55 -0500
Subject: [geeklog-cvs] tools: Added support for install script language
files and updat...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/d1819f2e9466
changeset: 24:d1819f2e9466
user: Dirk Haun
date: Sat Feb 21 19:43:00 2009 +0100
description:
Added support for install script language files and updated for Geeklog 1.6
diffstat:
5 files changed, 165 insertions(+), 20 deletions(-)
lm/README | 5 +-
lm/include/core.inc | 10 ++--
lm/include/install.inc | 118 ++++++++++++++++++++++++++++++++++++++++++++++++
lm/lm.php | 28 +++++++++--
lm/uplng.sh | 24 ++++++---
diffs (truncated from 340 to 300 lines):
diff -r c8968b9f3449 -r d1819f2e9466 lm/README
--- a/lm/README Sat Feb 21 17:09:21 2009 +0100
+++ b/lm/README Sat Feb 21 19:43:00 2009 +0100
@@ -1,4 +1,4 @@
-lm.php v1.0.1
+lm.php v1.0.2
This script merges a Geeklog (foreign) language file with the english.php
language file, so that new strings added to english.php are automatically added
@@ -44,7 +44,7 @@
http://lists.geeklog.net/mailman/listinfo/geeklog-translations
-Copyright (C) 2004-2008 by Dirk Haun, ,
+Copyright (C) 2004-2009 by Dirk Haun, ,
and released under the GNU General Public License v2.
@@ -60,4 +60,5 @@
0.9 moved updating code into includes; now supports plugins
1.0 now supports core language files and all 5 default plugins
1.0.1 fixed handling of tags and fixed accidentally created tags
+1.0.2 added support for install script language files
diff -r c8968b9f3449 -r d1819f2e9466 lm/include/core.inc
--- a/lm/include/core.inc Sat Feb 21 17:09:21 2009 +0100
+++ b/lm/include/core.inc Sat Feb 21 19:43:00 2009 +0100
@@ -2,13 +2,13 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.5 |
+// | Geeklog 1.6 |
// +---------------------------------------------------------------------------+
// | core.inc |
// | |
// | Update a core language file by merging it with english.php |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2004-2008 by the following authors: |
+// | Copyright (C) 2004-2009 by the following authors: |
// | |
// | Author: Dirk Haun - dirk AT haun-online DOT de |
// +---------------------------------------------------------------------------+
@@ -28,8 +28,6 @@
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
-//
-// $Id: core.inc,v 1.3 2008/05/02 15:18:20 dhaun Exp $
/**
* Helper function: Fix URLs in some language files
@@ -151,6 +149,10 @@
separator();
echo "\n";
+// http://project.geeklog.net/tracking/view.php?id=801
+$ENG01[95] = str_replace('Powered By', 'Powered by', $ENG01[95]);
+$LANG01[95] = str_replace('Powered By', 'Powered by', $LANG01[95]);
+
mergeArrays($ENG01, $LANG01, 'LANG01', 'lib-common.php');
mergeArrays($ENG03, $LANG03, 'LANG03', 'comment.php');
mergeArrays($ENG04, $LANG04, 'LANG04', 'users.php');
diff -r c8968b9f3449 -r d1819f2e9466 lm/include/install.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lm/include/install.inc Sat Feb 21 19:43:00 2009 +0100
@@ -0,0 +1,118 @@
+ $LANG_INSTALL[32],
+ \'site_slogan\' => $LANG_INSTALL[33],
+ \'db_type\' => $LANG_INSTALL[34],
+ \'db_host\' => $LANG_INSTALL[39],
+ \'db_name\' => $LANG_INSTALL[40],
+ \'db_user\' => $LANG_INSTALL[41],
+ \'db_pass\' => $LANG_INSTALL[42],
+ \'db_prefix\' => $LANG_INSTALL[43],
+ \'site_url\' => $LANG_INSTALL[45],
+ \'site_admin_url\' => $LANG_INSTALL[47],
+ \'site_mail\' => $LANG_INSTALL[48],
+ \'noreply_mail\' => $LANG_INSTALL[49],
+ \'utf8\' => $LANG_INSTALL[92],
+ \'migrate_file\' => $LANG_MIGRATE[6],
+ \'plugin_upload\' => $LANG_PLUGINS[10]
+);';
+
+echo "$label\n";
+
+?>
diff -r c8968b9f3449 -r d1819f2e9466 lm/lm.php
--- a/lm/lm.php Sat Feb 21 17:09:21 2009 +0100
+++ b/lm/lm.php Sat Feb 21 19:43:00 2009 +0100
@@ -3,13 +3,13 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.5 |
+// | Geeklog 1.6 |
// +---------------------------------------------------------------------------+
// | lm.php |
// | |
// | Update a language file by merging it with english.php |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2004-2008 by the following authors: |
+// | Copyright (C) 2004-2009 by the following authors: |
// | |
// | Author: Dirk Haun - dirk AT haun-online DOT de |
// +---------------------------------------------------------------------------+
@@ -29,10 +29,8 @@
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
-//
-// $Id: lm.php,v 1.7 2008/05/06 18:24:35 dhaun Exp $
-$VERSION = '1.0.1';
+$VERSION = '1.0.2';
// Prevent PHP from reporting uninitialized variables
error_reporting( E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR );
@@ -91,6 +89,8 @@
// load the English language file
if (empty($module)) {
require_once 'language/english.php';
+} elseif ($module == 'install') {
+ require_once 'public_html/admin/install/language/english.php';
} else {
require_once 'plugins/' . $module . '/language/english.php';
}
@@ -106,6 +106,11 @@
function separator()
{
echo "###############################################################################\n";
+}
+
+function separatorThin()
+{
+ echo "// +---------------------------------------------------------------------------+\n";
}
/**
@@ -333,6 +338,15 @@
} elseif (strstr($line, '*/') !== false) {
// end of credits reached, Spam-X style
break;
+ } elseif (strstr($line, '+-----') !== false) {
+ $nextline = fgets($fh);
+ $tst = trim($nextline);
+ if (empty($tst)) {
+ // end of credits reached, install script style
+ break;
+ } else {
+ $credits[] = $nextline;
+ }
}
} else {
if (strstr ($line, '#####') !== false) {
@@ -341,6 +355,10 @@
$credits[] = $line;
} elseif (strstr($line, '/**') !== false) {
// start of credits, Spam-X style
+ $firstcomment = true;
+ $credits[] = $line;
+ } elseif (strstr($line, '/* Reminder:') !== false) {
+ // start of credits, install script style
$firstcomment = true;
$credits[] = $line;
}
diff -r c8968b9f3449 -r d1819f2e9466 lm/uplng.sh
--- a/lm/uplng.sh Sat Feb 21 17:09:21 2009 +0100
+++ b/lm/uplng.sh Sat Feb 21 19:43:00 2009 +0100
@@ -1,13 +1,13 @@
#!/bin/bash
# +---------------------------------------------------------------------------+
-# | Geeklog 1.5 |
+# | Geeklog 1.6 |
# +---------------------------------------------------------------------------+
# | uplng.sh |
# | |
# | Helper script to update the Geeklog language files, |
# | using the lm.php script. |
# +---------------------------------------------------------------------------+
-# | Copyright (C) 2004-2008 by the following authors: |
+# | Copyright (C) 2004-2009 by the following authors: |
# | |
# | Author: Dirk Haun - dirk AT haun-online DOT de |
# +---------------------------------------------------------------------------+
@@ -27,8 +27,6 @@
# | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
# | |
# +---------------------------------------------------------------------------+
-#
-# $Id: uplng.sh,v 1.8 2008/04/29 18:47:45 dhaun Exp $
# Installation and usage:
# - copy this script into the /path/to/geeklog of a local Geeklog install
@@ -40,14 +38,14 @@
# just a basedir to save some typing ...
basedir=/Users/dirk/darwin
-# the /path/to/geeklog of your local copy of the CVS repository
-cvspath=$basedir/cvs.geeklog.net/Geeklog-1.x
+# the /path/to/geeklog of your local copy of the Mercurial repository
+cvspath=$basedir/hg.geeklog.net/geeklog/geeklog
From geeklog-cvs at lists.geeklog.net Sat Feb 21 13:52:20 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 21 Feb 2009 13:52:20 -0500
Subject: [geeklog-cvs] geeklog: Updated language files (test run for the
updated 'lm' s...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/ba2231f87362
changeset: 6791:ba2231f87362
user: Dirk Haun
date: Sat Feb 21 19:52:03 2009 +0100
description:
Updated language files (test run for the updated 'lm' script)
diffstat:
118 files changed, 5310 insertions(+), 2269 deletions(-)
language/afrikaans.php | 88 -
language/afrikaans_utf-8.php | 88 -
language/bosnian.php | 88 -
language/bosnian_utf-8.php | 88 -
language/bulgarian.php | 90 -
language/bulgarian_utf-8.php | 90 -
language/catalan.php | 88 -
language/catalan_utf-8.php | 88 -
language/chinese_simplified_utf-8.php | 88 -
language/chinese_traditional_utf-8.php | 88 -
language/croatian.php | 88 -
language/croatian_utf-8.php | 88 -
language/czech.php | 88 -
language/czech_utf-8.php | 88 -
language/danish.php | 88 -
language/danish_utf-8.php | 88 -
language/dutch.php | 88 -
language/dutch_utf-8.php | 88 -
language/english.php | 2
language/english_utf-8.php | 2
language/estonian.php | 113 -
language/estonian_utf-8.php | 113 -
language/farsi_utf-8.php | 88 -
language/finnish.php | 88 -
language/finnish_utf-8.php | 88 -
language/french_canada.php | 88 -
language/french_canada_utf-8.php | 88 -
language/french_france.php | 88 -
language/french_france_utf-8.php | 88 -
language/german.php | 61
language/german_formal.php | 61
language/german_formal_utf-8.php | 61
language/german_utf-8.php | 61
language/hebrew_utf-8.php | 94 -
language/hellenic.php | 88 -
language/hellenic_utf-8.php | 88 -
language/indonesian.php | 88 -
language/indonesian_utf-8.php | 88 -
language/italian.php | 90 -
language/italian_utf-8.php | 90 -
language/japanese_utf-8.php | 830 +++++-----
language/korean.php | 88 -
language/korean_utf-8.php | 88 -
language/norwegian.php | 88 -
language/norwegian_utf-8.php | 88 -
language/polish.php | 90 -
language/polish_utf-8.php | 90 -
language/portuguese.php | 88 -
language/portuguese_brazil.php | 88 -
language/portuguese_brazil_utf-8.php | 88 -
language/portuguese_utf-8.php | 88 -
language/romanian.php | 90 -
language/romanian_utf-8.php | 90 -
language/russian.php | 88 -
language/russian_utf-8.php | 88 -
language/slovak.php | 88 -
language/slovak_utf-8.php | 88 -
language/slovenian.php | 92 -
language/slovenian_utf-8.php | 94 -
language/spanish.php | 88 -
language/spanish_argentina.php | 90 -
language/spanish_argentina_utf-8.php | 90 -
language/spanish_utf-8.php | 88 -
language/swedish.php | 90 -
language/swedish_utf-8.php | 90 -
language/turkish.php | 90 -
language/turkish_utf-8.php | 90 -
language/ukrainian.php | 88 -
language/ukrainian_koi8-u.php | 88 -
language/ukrainian_utf-8.php | 88 -
plugins/calendar/language/estonian.php | 2
plugins/calendar/language/estonian_utf-8.php | 2
plugins/calendar/language/japanese_utf-8.php | 23
plugins/links/language/chinese_simplified_utf-8.php | 7
plugins/links/language/chinese_traditional_utf-8.php | 7
plugins/links/language/czech.php | 7
plugins/links/language/czech_utf-8.php | 7
plugins/links/language/dutch.php | 7
plugins/links/language/dutch_utf-8.php | 7
plugins/links/language/estonian.php | 9
plugins/links/language/estonian_utf-8.php | 9
plugins/links/language/french_canada.php | 7
plugins/links/language/french_canada_utf-8.php | 7
plugins/links/language/german.php | 8
plugins/links/language/german_formal.php | 8
plugins/links/language/german_formal_utf-8.php | 8
plugins/links/language/german_utf-8.php | 8
plugins/links/language/hebrew_utf-8.php | 78
plugins/links/language/japanese_utf-8.php | 164 -
plugins/links/language/korean.php | 7
plugins/links/language/korean_utf-8.php | 7
plugins/links/language/polish.php | 7
plugins/links/language/polish_utf-8.php | 7
plugins/links/language/russian.php | 7
plugins/links/language/russian_utf-8.php | 7
plugins/links/language/slovenian.php | 9
plugins/links/language/slovenian_utf-8.php | 7
plugins/links/language/spanish.php | 7
plugins/links/language/spanish_utf-8.php | 7
plugins/links/language/ukrainian.php | 7
plugins/links/language/ukrainian_koi8-u.php | 7
plugins/links/language/ukrainian_utf-8.php | 7
plugins/polls/language/estonian.php | 4
plugins/polls/language/estonian_utf-8.php | 4
plugins/polls/language/hebrew_utf-8.php | 56
plugins/polls/language/japanese_utf-8.php | 62
plugins/polls/language/slovenian.php | 2
plugins/spamx/language/estonian.php | 5
plugins/spamx/language/estonian_utf-8.php | 5
plugins/spamx/language/japanese_utf-8.php | 37
plugins/staticpages/language/japanese_utf-8.php | 13
public_html/admin/install/language/chinese_simplified_utf-8.php | 35
public_html/admin/install/language/chinese_traditional_utf-8.php | 35
public_html/admin/install/language/english.php | 2
public_html/admin/install/language/german.php | 26
public_html/admin/install/language/hebrew_utf-8.php | 35
public_html/admin/install/language/japanese_utf-8.php | 39
public_html/admin/install/language/polish.php | 35
diffs (truncated from 15534 to 300 lines):
diff -r 93f182e7807e -r ba2231f87362 language/afrikaans.php
--- a/language/afrikaans.php Sat Feb 21 16:46:34 2009 +0100
+++ b/language/afrikaans.php Sat Feb 21 19:52:03 2009 +0100
@@ -363,7 +363,10 @@
156 => 'Delete Account',
157 => 'Delete Option',
158 => 'Time Zone',
- 159 => 'This email was generated automatically. Please do not reply to this email.'
+ 159 => 'This email was generated automatically. Please do not reply to this email.',
+ 160 => '(max. %d x %d pixels, %d bytes; %s)',
+ 161 => 'will be scaled down',
+ 162 => 'will not be scaled'
);
###############################################################################
@@ -498,7 +501,14 @@
58 => 'Meer resultate >>',
59 => 'Resultate',
60 => 'per bladsy',
- 61 => 'Verfyn soektog'
+ 61 => 'Verfyn soektog',
+ 62 => '#',
+ 63 => 'Description',
+ 64 => 'Showing %d - %d of %d results',
+ 65 => 'Story',
+ 66 => 'Comment',
+ 67 => 'Show %d Results',
+ 68 => 'Sort By'
);
###############################################################################
@@ -919,7 +929,9 @@
82 => "Your account on {$_CONF['site_name']} has not been accesssed since %s and will be disabled if not accessed in the 30 days.",
83 => "Your account on {$_CONF['site_name']} has not been used since it was created and will deleted soon if not accessed.",
84 => "Your login name is: %s for our site: {$_CONF['site_url']}",
- 85 => 'If you have forgotten the password use the following link: %s'
+ 85 => 'If you have forgotten the password use the following link: %s',
+ 86 => 'Include',
+ 87 => 'Reminders'
);
###############################################################################
@@ -1021,7 +1033,20 @@
35 => 'Wysig',
36 => 'Kode',
37 => 'Data',
- 38 => 'Opdateer!'
+ 38 => 'Opdateer!',
+ 39 => 'Upload a plugin',
+ 40 => 'You can upload a plugin archive (.tar.gz, .tgz, .zip) directly here:',
+ 41 => 'Upload',
+ 99 => 'An unknown error occured',
+ 100 => 'Ok.',
+ 101 => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.',
+ 102 => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.',
+ 103 => 'The uploaded file was only partially uploaded.',
+ 104 => 'No file was uploaded.',
+ 105 => '(undefined error)',
+ 106 => 'Missing a temporary folder.',
+ 107 => 'Failed to write file to disk.',
+ 108 => 'File upload stopped by extension.'
);
###############################################################################
@@ -1112,24 +1137,24 @@
26 => '',
27 => 'Boodskap suksesvol gestuur.',
28 => 'Die proppie is suksesvol gestoor',
- 29 => '',
+ 29 => 'Sorry, you do not have access to this administration page. Please note that all attempts to access unauthorized features are logged',
30 => 'Toegang geweier',
- 31 => 'Jammer, u het nie toegang tot die artikel adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
- 32 => 'Jammer, u het nie toegang tot die onderwerp adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
- 33 => 'Jammer, u het nie toegang tot die blok adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
+ 31 => '',
+ 32 => '',
+ 33 => '',
34 => '',
35 => '',
36 => '',
- 37 => 'Jammer, u het nie toegang tot die gebruiker adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
- 38 => 'Jammer, u het nie toegang tot die prop adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
- 39 => 'Jammer, u het nie toegang tot die epos adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
+ 37 => '',
+ 38 => '',
+ 39 => '',
40 => 'Stelselboodskap',
- 41 => 'Jammer, u het nie toegang to die woordvervangingsblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
- 42 => 'U woord is suksesvol gestoor.',
- 43 => 'Die woord is suksesvol verwyder.',
+ 41 => '',
+ 42 => '',
+ 43 => '',
44 => 'Die prop is suksesvol gestoor!',
45 => 'Die prop is suksesvol verwyder.',
- 46 => 'Jammer, u het nie toegang tot die databasis rugsteunfunksie nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
+ 46 => '',
47 => 'Hierdie funksie werk slegs onder *nix stelsels. Indien u wel \'n *nix bedryfstelsel gebruik is u kasgeheue suksesvol skoongevee. As u op Windows werk, moet u na lêers soek met die naam adodb_*.php en hulle handmatig verwyder.',
48 => "Dankie vir u aansoek vir lidmaatskap tot {$_CONF['site_name']}. Ons span sal u aansoek nagaan. Indien goedgekeur, sal u wagwoord gestuur word aan die epos adres wat u verskaf het.",
49 => 'U groep is suksesvol gestoor.',
@@ -1179,8 +1204,14 @@
93 => 'Database back up was successful.',
94 => 'Backup Failed: Filesize less than 1kb',
95 => 'There was an error.',
- 96 => 'Sorry, you do not have access to the configuration administration page. Please note that all attempts to access unauthorized features are logged.',
- 97 => 'Not all required fields have been passed validation - default custom membership message'
+ 96 => '',
+ 97 => '',
+ 98 => 'The plugin was successfully uploaded.',
+ 99 => 'The plugin already exists.',
+ 100 => 'The plugin file you uploaded was not a GZip or Zip compressed archive.',
+ 101 => 'There are no topics (that you have access to). You need at least one topic to be able to submit stories.',
+ 400 => 'Not all required fields have been passed validation',
+ 401 => 'Please enter Fullname'
);
###############################################################################
@@ -1583,7 +1614,8 @@
'reset_form' => 'Reset Form',
'changes_made' => 'Changes were successfully made to',
'title' => 'Configuration Manager',
- 'disable' => 'Click to disable this option'
+ 'disable' => 'Click to disable this option',
+ 'enable' => 'Enable'
);
$LANG_configsections['Core'] = array(
@@ -1611,6 +1643,7 @@
'allow_mysqldump' => 'Allow MySQL Dump',
'mysqldump_path' => 'Path of Executable',
'mysqldump_options' => 'MySQL Dump Options',
+ 'mysqldump_filename_mask' => 'Backup File Name Mask',
'theme' => 'Theme',
'menu_elements' => 'Menu Elements',
'path_themes' => 'Themes Path',
@@ -1741,6 +1774,7 @@
'debug_image_upload' => 'Debug Image Uploading?',
'keep_unscaled_image' => 'Keep Unscaled Image?',
'allow_user_scaling' => 'Allow User Scaling?',
+ 'jpeg_quality' => 'JPEG Quality?',
'max_image_width' => 'Max Image Width?',
'max_image_height' => 'Max Image Height?',
'max_image_size' => 'Max Image Size?',
@@ -1763,6 +1797,7 @@
'login_speedlimit' => 'Login Speed Limit',
'user_html' => 'User HTML',
'admin_html' => 'Admin HTML',
+ 'advanced_html' => 'Additional HTML for Adv. Editor',
'skip_html_filter_for_root' => 'Skip HTML Filter for Root?',
'allowed_protocols' => 'Allowed Protocols',
'disable_autolinks' => 'Disable Autolinks?',
@@ -1776,7 +1811,18 @@
'default_permissions_topic' => 'Topic Default Permissions',
'atom_max_stories' => 'Max. Stories in Webservices Feed',
'disable_webservices' => 'Disable Webservices?',
- 'restrict_webservices' => 'Restrict Webservices?'
+ 'restrict_webservices' => 'Restrict Webservices?',
+ 'search_style' => 'Results List Style',
+ 'search_limits' => 'Page Limits',
+ 'search_show_num' => 'Show Result Number?',
+ 'search_show_type' => 'Show Result Type?',
+ 'search_show_user' => 'Show Author?',
+ 'search_show_hits' => 'Show Number of Hits?',
+ 'search_show_sort' => 'Allow User to Sort Results?',
+ 'search_show_limit' => 'Show Page Limits?',
+ 'search_no_data' => 'If No Data is Avaliable, Display',
+ 'search_separator' => 'Group Separator',
+ 'search_def_keytype' => 'Default Search Method'
);
$LANG_configsubgroups['Core'] = array(
@@ -1853,7 +1899,9 @@
15 => array('By Number' => 'sortnum', 'Alphabetically' => 'alpha'),
16 => array('No Login required' => 0, 'Advanced Search only' => 1, 'Simple + Advanced Search' => 2),
17 => array('Comments Enabled' => 0, 'Comments Disabled' => -1),
- 18 => array('Disabled' => 0, 'Enabled (Exact Match)' => 1, 'Enabled (Word Beginning)' => 2, 'Enabled (Word Fragment)' => 3)
+ 18 => array('Disabled' => 0, 'Enabled (Exact Match)' => 1, 'Enabled (Word Beginning)' => 2, 'Enabled (Word Fragment)' => 3),
+ 19 => array('Google' => 'google', 'Table' => 'table'),
+ 20 => array('Exact Phrase' => 'phrase', 'All of The Words' => 'all', 'Any of The Words' => 'any')
);
?>
\ No newline at end of file
diff -r 93f182e7807e -r ba2231f87362 language/afrikaans_utf-8.php
--- a/language/afrikaans_utf-8.php Sat Feb 21 16:46:34 2009 +0100
+++ b/language/afrikaans_utf-8.php Sat Feb 21 19:52:03 2009 +0100
@@ -363,7 +363,10 @@
156 => 'Delete Account',
157 => 'Delete Option',
158 => 'Time Zone',
- 159 => 'This email was generated automatically. Please do not reply to this email.'
+ 159 => 'This email was generated automatically. Please do not reply to this email.',
+ 160 => '(max. %d x %d pixels, %d bytes; %s)',
+ 161 => 'will be scaled down',
+ 162 => 'will not be scaled'
);
###############################################################################
@@ -498,7 +501,14 @@
58 => 'Meer resultate >>',
59 => 'Resultate',
60 => 'per bladsy',
- 61 => 'Verfyn soektog'
+ 61 => 'Verfyn soektog',
+ 62 => '#',
+ 63 => 'Description',
+ 64 => 'Showing %d - %d of %d results',
+ 65 => 'Story',
+ 66 => 'Comment',
+ 67 => 'Show %d Results',
+ 68 => 'Sort By'
);
###############################################################################
@@ -919,7 +929,9 @@
82 => "Your account on {$_CONF['site_name']} has not been accesssed since %s and will be disabled if not accessed in the 30 days.",
83 => "Your account on {$_CONF['site_name']} has not been used since it was created and will deleted soon if not accessed.",
84 => "Your login name is: %s for our site: {$_CONF['site_url']}",
- 85 => 'If you have forgotten the password use the following link: %s'
+ 85 => 'If you have forgotten the password use the following link: %s',
+ 86 => 'Include',
+ 87 => 'Reminders'
);
###############################################################################
@@ -1021,7 +1033,20 @@
35 => 'Wysig',
36 => 'Kode',
37 => 'Data',
- 38 => 'Opdateer!'
+ 38 => 'Opdateer!',
+ 39 => 'Upload a plugin',
+ 40 => 'You can upload a plugin archive (.tar.gz, .tgz, .zip) directly here:',
+ 41 => 'Upload',
+ 99 => 'An unknown error occured',
+ 100 => 'Ok.',
+ 101 => 'The uploaded file exceeds the upload_max_filesize directive in php.ini.',
+ 102 => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.',
+ 103 => 'The uploaded file was only partially uploaded.',
+ 104 => 'No file was uploaded.',
+ 105 => '(undefined error)',
+ 106 => 'Missing a temporary folder.',
+ 107 => 'Failed to write file to disk.',
+ 108 => 'File upload stopped by extension.'
);
###############################################################################
@@ -1112,24 +1137,24 @@
26 => '',
27 => 'Boodskap suksesvol gestuur.',
28 => 'Die proppie is suksesvol gestoor',
- 29 => '',
+ 29 => 'Sorry, you do not have access to this administration page. Please note that all attempts to access unauthorized features are logged',
30 => 'Toegang geweier',
- 31 => 'Jammer, u het nie toegang tot die artikel adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
- 32 => 'Jammer, u het nie toegang tot die onderwerp adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
- 33 => 'Jammer, u het nie toegang tot die blok adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
+ 31 => '',
+ 32 => '',
+ 33 => '',
34 => '',
35 => '',
36 => '',
- 37 => 'Jammer, u het nie toegang tot die gebruiker adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
- 38 => 'Jammer, u het nie toegang tot die prop adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
- 39 => 'Jammer, u het nie toegang tot die epos adminblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
+ 37 => '',
+ 38 => '',
+ 39 => '',
40 => 'Stelselboodskap',
- 41 => 'Jammer, u het nie toegang to die woordvervangingsblad nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
- 42 => 'U woord is suksesvol gestoor.',
- 43 => 'Die woord is suksesvol verwyder.',
+ 41 => '',
+ 42 => '',
+ 43 => '',
44 => 'Die prop is suksesvol gestoor!',
45 => 'Die prop is suksesvol verwyder.',
- 46 => 'Jammer, u het nie toegang tot die databasis rugsteunfunksie nie. Neem kennis dat alle pogings tot ongemagtigde toegang aangeteken word',
+ 46 => '',
47 => 'Hierdie funksie werk slegs onder *nix stelsels. Indien u wel \'n *nix bedryfstelsel gebruik is u kasgeheue suksesvol skoongevee. As u op Windows werk, moet u na lêers soek met die naam adodb_*.php en hulle handmatig verwyder.',
48 => "Dankie vir u aansoek vir lidmaatskap tot {$_CONF['site_name']}. Ons span sal u aansoek nagaan. Indien goedgekeur, sal u wagwoord gestuur word aan die epos adres wat u verskaf het.",
49 => 'U groep is suksesvol gestoor.',
@@ -1179,8 +1204,14 @@
93 => 'Database back up was successful.',
94 => 'Backup Failed: Filesize less than 1kb',
95 => 'There was an error.',
- 96 => 'Sorry, you do not have access to the configuration administration page. Please note that all attempts to access unauthorized features are logged.',
- 97 => 'Not all required fields have been passed validation - default custom membership message'
+ 96 => '',
+ 97 => '',
+ 98 => 'The plugin was successfully uploaded.',
+ 99 => 'The plugin already exists.',
+ 100 => 'The plugin file you uploaded was not a GZip or Zip compressed archive.',
+ 101 => 'There are no topics (that you have access to). You need at least one topic to be able to submit stories.',
+ 400 => 'Not all required fields have been passed validation',
+ 401 => 'Please enter Fullname'
);
###############################################################################
From geeklog-cvs at lists.geeklog.net Sat Feb 21 17:03:35 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 21 Feb 2009 17:03:35 -0500
Subject: [geeklog-cvs] geeklog: Added new permission 'group.assign',
now required to be...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/10dfb994ef83
changeset: 6793:10dfb994ef83
user: Dirk Haun
date: Sat Feb 21 22:58:23 2009 +0100
description:
Added new permission 'group.assign', now required to be able to assign a user to a group (feature request #0000190)
diffstat:
7 files changed, 64 insertions(+), 37 deletions(-)
public_html/admin/install/lib-upgrade.php | 2 -
public_html/admin/user.php | 48 ++++++++++++++---------------
public_html/docs/history | 3 +
sql/mssql_tableanddata.php | 2 +
sql/mysql_tableanddata.php | 2 +
sql/updates/mssql_1.5.2_to_1.6.0.php | 22 +++++++++----
sql/updates/mysql_1.5.2_to_1.6.0.php | 22 +++++++++----
diffs (254 lines):
diff -r b4dc97200076 -r 10dfb994ef83 public_html/admin/install/lib-upgrade.php
--- a/public_html/admin/install/lib-upgrade.php Sat Feb 21 22:41:54 2009 +0100
+++ b/public_html/admin/install/lib-upgrade.php Sat Feb 21 22:58:23 2009 +0100
@@ -464,7 +464,7 @@
INST_updateDB($_SQL);
update_ConfValues();
- upgrade_addPluginPermissions();
+ upgrade_addNewPermissions();
upgrade_addIsoFormat();
$current_gl_version = '1.6.0';
diff -r b4dc97200076 -r 10dfb994ef83 public_html/admin/user.php
--- a/public_html/admin/user.php Sat Feb 21 22:41:54 2009 +0100
+++ b/public_html/admin/user.php Sat Feb 21 22:58:23 2009 +0100
@@ -246,7 +246,7 @@
}
}
- if (SEC_hasRights('group.edit')) {
+ if (SEC_hasRights('group.assign')) {
$user_templates->set_var('lang_securitygroups',
$LANG_ACCESS['securitygroups']);
$user_templates->set_var('lang_groupinstructions',
@@ -543,23 +543,23 @@
$userChanged = true;
}
- // if groups is -1 then this user isn't allowed to change any groups so ignore
- if (is_array ($groups) && SEC_inGroup ('Group Admin')) {
- if (!SEC_inGroup ('Root')) {
- $rootgrp = DB_getItem ($_TABLES['groups'], 'grp_id',
- "grp_name = 'Root'");
- if (in_array ($rootgrp, $groups)) {
- COM_accessLog ("User {$_USER['username']} ({$_USER['uid']}) just tried to give Root permissions to user $username.");
- echo COM_refresh ($_CONF['site_admin_url'] . '/index.php');
+ // check that the user is allowed to change group assignments
+ if (is_array($groups) && SEC_hasRights('group.assign')) {
+ if (! SEC_inGroup('Root')) {
+ $rootgrp = DB_getItem($_TABLES['groups'], 'grp_id',
+ "grp_name = 'Root'");
+ if (in_array($rootgrp, $groups)) {
+ COM_accessLog("User {$_USER['username']} ({$_USER['uid']}) just tried to give Root permissions to user $username.");
+ echo COM_refresh($_CONF['site_admin_url'] . '/index.php');
exit;
}
}
// make sure the Remote Users group is in $groups
- if (SEC_inGroup ('Remote Users', $uid)) {
- $remUsers = DB_getItem ($_TABLES['groups'], 'grp_id',
- "grp_name = 'Remote Users'");
- if (!in_array ($remUsers, $groups)) {
+ if (SEC_inGroup('Remote Users', $uid)) {
+ $remUsers = DB_getItem($_TABLES['groups'], 'grp_id',
+ "grp_name = 'Remote Users'");
+ if (! in_array($remUsers, $groups)) {
$groups[] = $remUsers;
}
}
@@ -569,31 +569,31 @@
}
// remove user from all groups that the User Admin is a member of
- $UserAdminGroups = SEC_getUserGroups ();
+ $UserAdminGroups = SEC_getUserGroups();
$whereGroup = 'ug_main_grp_id IN ('
. implode (',', $UserAdminGroups) . ')';
DB_query("DELETE FROM {$_TABLES['group_assignments']} WHERE (ug_uid = $uid) AND " . $whereGroup);
// make sure to add user to All Users and Logged-in Users groups
- $allUsers = DB_getItem ($_TABLES['groups'], 'grp_id',
- "grp_name = 'All Users'");
- if (!in_array ($allUsers, $groups)) {
+ $allUsers = DB_getItem($_TABLES['groups'], 'grp_id',
+ "grp_name = 'All Users'");
+ if (! in_array($allUsers, $groups)) {
$groups[] = $allUsers;
}
- $logUsers = DB_getItem ($_TABLES['groups'], 'grp_id',
- "grp_name = 'Logged-in Users'");
- if (!in_array ($logUsers, $groups)) {
+ $logUsers = DB_getItem($_TABLES['groups'], 'grp_id',
+ "grp_name = 'Logged-in Users'");
+ if (! in_array($logUsers, $groups)) {
$groups[] = $logUsers;
}
foreach ($groups as $userGroup) {
- if (in_array ($userGroup, $UserAdminGroups)) {
+ if (in_array($userGroup, $UserAdminGroups)) {
if ($_USER_VERBOSE) {
- COM_errorLog ("adding group_assignment " . $userGroup
- . " for $username", 1);
+ COM_errorLog("adding group_assignment " . $userGroup
+ . " for $username", 1);
}
$sql = "INSERT INTO {$_TABLES['group_assignments']} (ug_main_grp_id, ug_uid) VALUES ($userGroup, $uid)";
- DB_query ($sql);
+ DB_query($sql);
}
}
}
diff -r b4dc97200076 -r 10dfb994ef83 public_html/docs/history
--- a/public_html/docs/history Sat Feb 21 22:41:54 2009 +0100
+++ b/public_html/docs/history Sat Feb 21 22:58:23 2009 +0100
@@ -11,6 +11,9 @@
+ (TBD) Comment moderation and editable comments, by Jared Wenerd
Other changes:
+- Added new permission 'group.assign', now required to be able to assign a user
+ to a group. Part of the Group Admin (not User Admin) permissions by default
+ (feature request #0000190) [Dirk]
- Raised minimum required PHP version to PHP 4.3.0 and removed all workarounds
that ensured compatibility with PHP 4.1.0 [Dirk]
- Added a filename mask config option for the names of the database backups
diff -r b4dc97200076 -r 10dfb994ef83 sql/mssql_tableanddata.php
--- a/sql/mssql_tableanddata.php Sat Feb 21 22:41:54 2009 +0100
+++ b/sql/mssql_tableanddata.php Sat Feb 21 22:58:23 2009 +0100
@@ -1180,6 +1180,7 @@
$_SQL[] = "INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES (16,4)";
$_SQL[] = "INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES (17,10)";
$_SQL[] = "INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES (18,10)";
+$_SQL[] = "INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES (19,11)";
$_SQL[] = "
set identity_insert {$_TABLES['blocks']} on;
@@ -1263,6 +1264,7 @@
INSERT INTO {$_TABLES['features']} (ft_id, ft_name, ft_descr, ft_gl_core) VALUES (16,'block.delete','Ability to delete a block',1)
INSERT INTO {$_TABLES['features']} (ft_id, ft_name, ft_descr, ft_gl_core) VALUES (17,'plugin.install','Can install/uninstall plugins',1)
INSERT INTO {$_TABLES['features']} (ft_id, ft_name, ft_descr, ft_gl_core) VALUES (18,'plugin.upload','Can upload new plugins',1)
+INSERT INTO {$_TABLES['features']} (ft_id, ft_name, ft_descr, ft_gl_core) VALUES (19,'group.assign','Ability to assign users to groups',1)
set identity_insert {$_TABLES['features']} off
";
diff -r b4dc97200076 -r 10dfb994ef83 sql/mysql_tableanddata.php
--- a/sql/mysql_tableanddata.php Sat Feb 21 22:41:54 2009 +0100
+++ b/sql/mysql_tableanddata.php Sat Feb 21 22:58:23 2009 +0100
@@ -508,6 +508,7 @@
$_DATA[] = "INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES (16,4) ";
$_DATA[] = "INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES (17,10) ";
$_DATA[] = "INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES (18,10) ";
+$_DATA[] = "INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES (19,11) ";
$_DATA[] = "INSERT INTO {$_TABLES['blocks']} (bid, is_enabled, name, type, title, tid, blockorder, content, rdfurl, rdfupdated, onleft, phpblockfn, group_id, owner_id, perm_owner, perm_group, perm_members, perm_anon) VALUES (1,1,'user_block','gldefault','User Functions','all',2,'','','0000-00-00 00:00:00',1,'',4,2,3,3,2,2) ";
$_DATA[] = "INSERT INTO {$_TABLES['blocks']} (bid, is_enabled, name, type, title, tid, blockorder, content, rdfurl, rdfupdated, onleft, phpblockfn, group_id, owner_id, perm_owner, perm_group, perm_members, perm_anon) VALUES (2,1,'admin_block','gldefault','Admins Only','all',1,'','','0000-00-00 00:00:00',1,'',4,2,3,3,2,2) ";
@@ -575,6 +576,7 @@
$_DATA[] = "INSERT INTO {$_TABLES['features']} (ft_id, ft_name, ft_descr, ft_gl_core) VALUES (16,'block.delete','Ability to delete a block',1) ";
$_DATA[] = "INSERT INTO {$_TABLES['features']} (ft_id, ft_name, ft_descr, ft_gl_core) VALUES (17,'plugin.install','Can install/uninstall plugins',1) ";
$_DATA[] = "INSERT INTO {$_TABLES['features']} (ft_id, ft_name, ft_descr, ft_gl_core) VALUES (18,'plugin.upload','Can upload new plugins',1) ";
+$_DATA[] = "INSERT INTO {$_TABLES['features']} (ft_id, ft_name, ft_descr, ft_gl_core) VALUES (19,'group.assign','Ability to assign users to groups',1) ";
$_DATA[] = "INSERT INTO {$_TABLES['frontpagecodes']} (code, name) VALUES (0,'Show Only in Topic') ";
$_DATA[] = "INSERT INTO {$_TABLES['frontpagecodes']} (code, name) VALUES (1,'Show on Front Page') ";
diff -r b4dc97200076 -r 10dfb994ef83 sql/updates/mssql_1.5.2_to_1.6.0.php
--- a/sql/updates/mssql_1.5.2_to_1.6.0.php Sat Feb 21 22:41:54 2009 +0100
+++ b/sql/updates/mssql_1.5.2_to_1.6.0.php Sat Feb 21 22:58:23 2009 +0100
@@ -7,6 +7,7 @@
$_SQL[] = "INSERT INTO {$_TABLES['features']} (ft_name, ft_descr, ft_gl_core) VALUES ('plugin.install','Can install/uninstall plugins',1)";
$_SQL[] = "INSERT INTO {$_TABLES['features']} (ft_name, ft_descr, ft_gl_core) VALUES ('plugin.upload','Can upload new plugins',1)";
$_SQL[] = "UPDATE {$_TABLES['features']} SET ft_descr = 'Can change plugin status' WHERE ft_name = 'plugin.edit'";
+$_SQL[] = "INSERT INTO {$_TABLES['features']} (ft_name, ft_descr, ft_gl_core) VALUES ('group.assign','Ability to assign users to groups',1)";
/**
* Add new config options
@@ -55,10 +56,10 @@
}
/**
- * Add new plugin-related permissions to Plugin Admin group
+ * Add new permissions
*
*/
-function upgrade_addPluginPermissions()
+function upgrade_addNewPermissions()
{
global $_TABLES;
@@ -66,12 +67,21 @@
"ft_name = 'plugin.install'");
$upload_id = DB_getItem($_TABLES['features'], 'ft_id',
"ft_name = 'plugin.upload'");
- $grp_id = DB_getItem($_TABLES['groups'], 'grp_id',
+ $plg_id = DB_getItem($_TABLES['groups'], 'grp_id',
"grp_name = 'Plugin Admin'");
- if (($grp_id > 0) && ($install_id > 0) && ($upload_id > 0)) {
- DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($install_id, $grp_id)");
- DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($upload_id, $grp_id)");
+ if (($plg_id > 0) && ($install_id > 0) && ($upload_id > 0)) {
+ DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($install_id, $plg_id)");
+ DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($upload_id, $plg_id)");
+ }
+
+ $assign_id = DB_getItem($_TABLES['features'], 'ft_id',
+ "ft_name = 'group.assign'");
+ $grp_id = DB_getItem($_TABLES['groups'], 'grp_id',
+ "grp_name = 'Group Admin'");
+
+ if (($grp_id > 0) && ($assign_id > 0)) {
+ DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($assign_id, $grp_id)");
}
}
diff -r b4dc97200076 -r 10dfb994ef83 sql/updates/mysql_1.5.2_to_1.6.0.php
--- a/sql/updates/mysql_1.5.2_to_1.6.0.php Sat Feb 21 22:41:54 2009 +0100
+++ b/sql/updates/mysql_1.5.2_to_1.6.0.php Sat Feb 21 22:58:23 2009 +0100
@@ -8,6 +8,7 @@
$_SQL[] = "INSERT INTO {$_TABLES['features']} (ft_name, ft_descr, ft_gl_core) VALUES ('plugin.install','Can install/uninstall plugins',1)";
$_SQL[] = "INSERT INTO {$_TABLES['features']} (ft_name, ft_descr, ft_gl_core) VALUES ('plugin.upload','Can upload new plugins',1)";
$_SQL[] = "UPDATE {$_TABLES['features']} SET ft_descr = 'Can change plugin status' WHERE ft_name = 'plugin.edit'";
+$_SQL[] = "INSERT INTO {$_TABLES['features']} (ft_name, ft_descr, ft_gl_core) VALUES ('group.assign','Ability to assign users to groups',1)";
/**
* Add new config options
@@ -56,10 +57,10 @@
}
/**
- * Add new plugin-related permissions to Plugin Admin group
+ * Add new permissions
*
*/
-function upgrade_addPluginPermissions()
+function upgrade_addNewPermissions()
{
global $_TABLES;
@@ -67,12 +68,21 @@
"ft_name = 'plugin.install'");
$upload_id = DB_getItem($_TABLES['features'], 'ft_id',
"ft_name = 'plugin.upload'");
- $grp_id = DB_getItem($_TABLES['groups'], 'grp_id',
+ $plg_id = DB_getItem($_TABLES['groups'], 'grp_id',
"grp_name = 'Plugin Admin'");
- if (($grp_id > 0) && ($install_id > 0) && ($upload_id > 0)) {
- DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($install_id, $grp_id)");
- DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($upload_id, $grp_id)");
+ if (($plg_id > 0) && ($install_id > 0) && ($upload_id > 0)) {
+ DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($install_id, $plg_id)");
+ DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($upload_id, $plg_id)");
+ }
+
+ $assign_id = DB_getItem($_TABLES['features'], 'ft_id',
+ "ft_name = 'group.assign'");
+ $grp_id = DB_getItem($_TABLES['groups'], 'grp_id',
+ "grp_name = 'Group Admin'");
+
+ if (($grp_id > 0) && ($assign_id > 0)) {
+ DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ($assign_id, $grp_id)");
}
}
From geeklog-cvs at lists.geeklog.net Sat Feb 21 17:03:34 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sat, 21 Feb 2009 17:03:34 -0500
Subject: [geeklog-cvs] geeklog: Fixed assigning groups to groups
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/b4dc97200076
changeset: 6792:b4dc97200076
user: Dirk Haun
date: Sat Feb 21 22:41:54 2009 +0100
description:
Fixed assigning groups to groups
diffstat:
1 file changed, 18 insertions(+), 20 deletions(-)
public_html/admin/group.php | 38 ++++++++++++++++++--------------------
diffs (66 lines):
diff -r ba2231f87362 -r b4dc97200076 public_html/admin/group.php
--- a/public_html/admin/group.php Sat Feb 21 19:52:03 2009 +0100
+++ b/public_html/admin/group.php Sat Feb 21 22:41:54 2009 +0100
@@ -466,8 +466,8 @@
global $_CONF, $_TABLES, $_USER, $LANG_ACCESS, $VERBOSE;
$retval = '';
- if (!empty ($grp_name) && !empty ($grp_descr)) {
- $GroupAdminGroups = SEC_getUserGroups ();
+ if (!empty($grp_name) && !empty($grp_descr)) {
+ $GroupAdminGroups = SEC_getUserGroups();
if (!empty ($grp_id) &&
($grp_id > 0) &&
!in_array ($grp_id, $GroupAdminGroups) &&
@@ -537,19 +537,18 @@
}
// now save the features
- DB_delete ($_TABLES['access'], 'acc_grp_id', $grp_id);
- if (SEC_inGroup ('Root')) {
- for ($i = 1; $i <= sizeof ($features); $i++) {
- DB_query ("INSERT INTO {$_TABLES['access']} (acc_ft_id,acc_grp_id) VALUES (" . current ($features) . ",$grp_id)");
- next ($features);
+ DB_delete($_TABLES['access'], 'acc_grp_id', $grp_id);
+ $num_features = count($features);
+ if (SEC_inGroup('Root')) {
+ foreach ($features as $f) {
+ DB_query ("INSERT INTO {$_TABLES['access']} (acc_ft_id,acc_grp_id) VALUES ($f,$grp_id)");
}
} else {
- $GroupAdminFeatures = SEC_getUserPermissions ();
- $availableFeatures = explode (',', $GroupAdminFeatures);
- for ($i = 1; $i <= sizeof($features); $i++) {
- if (in_array (current ($features), $availableFeatures)) {
- DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id,acc_grp_id) VALUES (" . current($features) . ",$grp_id)");
- next($features);
+ $GroupAdminFeatures = SEC_getUserPermissions();
+ $availableFeatures = explode(',', $GroupAdminFeatures);
+ foreach ($features as $f) {
+ if (in_array($f, $availableFeatures)) {
+ DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id,acc_grp_id) VALUES ($f,$grp_id)");
}
}
}
@@ -558,15 +557,14 @@
COM_errorLog("deleting all group_assignments for group $grp_id/$grp_name",1);
}
- DB_delete ($_TABLES['group_assignments'], 'ug_grp_id', $grp_id);
- if (!empty ($groups)) {
- for ($i = 1; $i <= sizeof ($groups); $i++) {
- if (in_array ($grp_id, $GroupAdminGroups)) {
- if ($VERBOSE) COM_errorLog("adding group_assignment " . current($groups) . " for $grp_name",1);
- $sql = "INSERT INTO {$_TABLES['group_assignments']} (ug_main_grp_id, ug_grp_id) VALUES (" . current($groups) . ",$grp_id)";
+ DB_delete($_TABLES['group_assignments'], 'ug_grp_id', $grp_id);
+ if (! empty($groups)) {
+ foreach ($groups as $g) {
+ if (in_array($g, $GroupAdminGroups)) {
+ if ($VERBOSE) COM_errorLog("adding group_assignment $g for $grp_name",1);
+ $sql = "INSERT INTO {$_TABLES['group_assignments']} (ug_main_grp_id, ug_grp_id) VALUES ($g,$grp_id)";
DB_query($sql);
}
- next($groups);
}
}
From geeklog-cvs at lists.geeklog.net Sun Feb 22 08:03:24 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 22 Feb 2009 08:03:24 -0500
Subject: [geeklog-cvs] geeklog: Add topic name in the when not "All"
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/00df2e53c8cf
changeset: 6796:00df2e53c8cf
user: Dirk Haun
date: Sun Feb 22 12:27:17 2009 +0100
description:
Add topic name in the when not "All"
diffstat:
1 file changed, 11 insertions(+), 2 deletions(-)
public_html/directory.php | 13 +++++++++++--
diffs (37 lines):
diff -r 1d2197278654 -r 00df2e53c8cf public_html/directory.php
--- a/public_html/directory.php Sun Feb 22 12:21:35 2009 +0100
+++ b/public_html/directory.php Sun Feb 22 12:27:17 2009 +0100
@@ -473,22 +473,31 @@
$month = 0;
}
+$topicName = '';
+if ($topic != 'all') {
+ $topicName = DB_getItem($_TABLES['topics'], 'topic',
+ "tid = '" . addslashes($topic) . "'");
+}
if (($year != 0) && ($month != 0)) {
$title = sprintf ($LANG_DIR['title_month_year'],
$LANG_MONTH[$month], $year);
+ if ($topic != 'all') {
+ $title .= ': ' . $topicName;
+ }
$display .= COM_siteHeader ('menu', $title);
$display .= DIR_displayMonth ($topic, $year, $month, true);
$display .= DIR_navBar ($topic, $year, $month);
} else if ($year != 0) {
$title = sprintf ($LANG_DIR['title_year'], $year);
+ if ($topic != 'all') {
+ $title .= ': ' . $topicName;
+ }
$display .= COM_siteHeader ('menu', $title);
$display .= DIR_displayYear ($topic, $year, true);
$display .= DIR_navBar ($topic, $year);
} else {
$title = $LANG_DIR['title'];
if ($topic != 'all') {
- $topicName = DB_getItem($_TABLES['topics'], 'topic',
- "tid = '" . addslashes($topic) . "'");
$title .= ': ' . $topicName;
}
$display .= COM_siteHeader('menu', $title);
From geeklog-cvs at lists.geeklog.net Sun Feb 22 08:03:23 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 22 Feb 2009 08:03:23 -0500
Subject: [geeklog-cvs] geeklog: Use get/set_include_path
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/9649bc9f60b6
changeset: 6794:9649bc9f60b6
user: Dirk Haun
date: Sun Feb 22 09:34:19 2009 +0100
description:
Use get/set_include_path
diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
public_html/admin/install/migrate.php | 6 +++---
diffs (16 lines):
diff -r 10dfb994ef83 -r 9649bc9f60b6 public_html/admin/install/migrate.php
--- a/public_html/admin/install/migrate.php Sat Feb 21 22:58:23 2009 +0100
+++ b/public_html/admin/install/migrate.php Sun Feb 22 09:34:19 2009 +0100
@@ -129,9 +129,9 @@
return $backup_file;
}
- $include_path = @ini_get('include_path');
- if (@ini_set('include_path', $_CONF['path'] . 'system/pear/'
- . PATH_SEPARATOR . $include_path) === false) {
+ $include_path = get_include_path();
+ if (set_include_path($_CONF['path'] . 'system/pear/' . PATH_SEPARATOR
+ . $include_path) === false) {
// couldn't set PEAR path - can't handle compressed backups
$display .= INST_getAlertMsg($LANG_MIGRATE[39]);
return false;
From geeklog-cvs at lists.geeklog.net Sun Feb 22 08:03:24 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 22 Feb 2009 08:03:24 -0500
Subject: [geeklog-cvs] geeklog: Allow comment indexing but disallow indexing
the "post ...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/1d2197278654
changeset: 6795:1d2197278654
user: Dirk Haun
date: Sun Feb 22 12:21:35 2009 +0100
description:
Allow comment indexing but disallow indexing the "post a comment" form
diffstat:
2 files changed, 4 insertions(+), 3 deletions(-)
public_html/comment.php | 6 ++++--
public_html/robots.txt | 1 -
diffs (32 lines):
diff -r 9649bc9f60b6 -r 1d2197278654 public_html/comment.php
--- a/public_html/comment.php Sun Feb 22 09:34:19 2009 +0100
+++ b/public_html/comment.php Sun Feb 22 12:21:35 2009 +0100
@@ -2,7 +2,7 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.5 |
+// | Geeklog 1.6 |
// +---------------------------------------------------------------------------+
// | comment.php |
// | |
@@ -347,7 +347,9 @@
$title = str_replace ( '<', '<', $title );
$title = str_replace ( '>', '>', $title );
}
- $display .= COM_siteHeader('menu', $LANG03[1])
+ $noindex = ''
+ . LB;
+ $display .= COM_siteHeader('menu', $LANG03[1], $noindex)
. CMT_commentForm ($title, '', $sid,
COM_applyFilter ($_REQUEST['pid'], true), $type, $mode,
$postmode)
diff -r 9649bc9f60b6 -r 1d2197278654 public_html/robots.txt
--- a/public_html/robots.txt Sun Feb 22 09:34:19 2009 +0100
+++ b/public_html/robots.txt Sun Feb 22 12:21:35 2009 +0100
@@ -1,5 +1,4 @@
User-agent: *
-Disallow: /comment.php
Disallow: /docs
Disallow: /pingback.php
Disallow: /submit.php
From geeklog-cvs at lists.geeklog.net Sun Feb 22 13:17:20 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 22 Feb 2009 13:17:20 -0500
Subject: [geeklog-cvs] geeklog: Added missing {lang_permissions_msg}
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/489c6192d42e
changeset: 6798:489c6192d42e
user: Dirk Haun
date: Sun Feb 22 18:58:00 2009 +0100
description:
Added missing {lang_permissions_msg}
diffstat:
2 files changed, 6 insertions(+)
plugins/calendar/templates/admin/eventeditor.thtml | 3 +++
public_html/layout/professional/admin/topic/topiceditor.thtml | 3 +++
diffs (26 lines):
diff -r 86ac6368a553 -r 489c6192d42e plugins/calendar/templates/admin/eventeditor.thtml
--- a/plugins/calendar/templates/admin/eventeditor.thtml Sun Feb 22 18:50:02 2009 +0100
+++ b/plugins/calendar/templates/admin/eventeditor.thtml Sun Feb 22 18:58:00 2009 +0100
@@ -151,6 +151,9 @@
{permissions_editor}
+
+
{lang_permissions_msg}
+
diff -r 86ac6368a553 -r 489c6192d42e public_html/layout/professional/admin/topic/topiceditor.thtml
--- a/public_html/layout/professional/admin/topic/topiceditor.thtml Sun Feb 22 18:50:02 2009 +0100
+++ b/public_html/layout/professional/admin/topic/topiceditor.thtml Sun Feb 22 18:58:00 2009 +0100
@@ -63,6 +63,9 @@
+
{lang_permissions_msg}
+
+
From geeklog-cvs at lists.geeklog.net Sun Feb 22 13:17:19 2009
From: geeklog-cvs at lists.geeklog.net (geeklog-cvs at lists.geeklog.net)
Date: Sun, 22 Feb 2009 13:17:19 -0500
Subject: [geeklog-cvs] geeklog: Ensure consistent template variable names
for the Permi...
Message-ID:
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/86ac6368a553
changeset: 6797:86ac6368a553
user: Dirk Haun
date: Sun Feb 22 18:50:02 2009 +0100
description:
Ensure consistent template variable names for the Permission Editor
diffstat:
20 files changed, 46 insertions(+), 24 deletions(-)
plugins/calendar/templates/admin/eventeditor.thtml | 2 -
plugins/links/templates/admin/categoryeditor.thtml | 4 +-
plugins/links/templates/admin/linkeditor.thtml | 4 +-
plugins/polls/templates/admin/polleditor.thtml | 2 -
plugins/staticpages/templates/admin/editor.thtml | 2 -
plugins/staticpages/templates/admin/editor_advanced.thtml | 2 -
public_html/admin/block.php | 7 ++---
public_html/admin/plugins/calendar/index.php | 2 +
public_html/admin/plugins/links/category.php | 2 +
public_html/admin/plugins/links/index.php | 2 +
public_html/admin/plugins/polls/index.php | 1
public_html/admin/plugins/staticpages/index.php | 7 ++---
public_html/admin/story.php | 1
public_html/admin/topic.php | 9 +++---
public_html/docs/history | 1
public_html/docs/theme.html | 14 ++++++++++
public_html/layout/professional/admin/block/defaultblockeditor.thtml | 2 -
public_html/layout/professional/admin/story/storyeditor.thtml | 2 -
public_html/layout/professional/admin/story/storyeditor_advanced.thtml | 2 -
public_html/layout/professional/admin/topic/topiceditor.thtml | 2 -
diffs (truncated from 345 to 300 lines):
diff -r 00df2e53c8cf -r 86ac6368a553 plugins/calendar/templates/admin/eventeditor.thtml
--- a/plugins/calendar/templates/admin/eventeditor.thtml Sun Feb 22 12:27:17 2009 +0100
+++ b/plugins/calendar/templates/admin/eventeditor.thtml Sun Feb 22 18:50:02 2009 +0100
@@ -144,7 +144,7 @@
-
{lang_permissionskey}
+
{lang_perm_key}
diff -r 00df2e53c8cf -r 86ac6368a553 plugins/links/templates/admin/categoryeditor.thtml
--- a/plugins/links/templates/admin/categoryeditor.thtml Sun Feb 22 12:27:17 2009 +0100
+++ b/plugins/links/templates/admin/categoryeditor.thtml Sun Feb 22 18:50:02 2009 +0100
@@ -45,7 +45,7 @@
-
{lang_permissionskey}
+
{lang_perm_key}
@@ -53,7 +53,7 @@
-
{lang_lockmsg}
+
{lang_permissions_msg}
diff -r 00df2e53c8cf -r 86ac6368a553 plugins/links/templates/admin/linkeditor.thtml
--- a/plugins/links/templates/admin/linkeditor.thtml Sun Feb 22 12:27:17 2009 +0100
+++ b/plugins/links/templates/admin/linkeditor.thtml Sun Feb 22 18:50:02 2009 +0100
@@ -66,7 +66,7 @@
-
{lang_permissionskey}
+
{lang_perm_key}
@@ -74,7 +74,7 @@
-
{lang_lockmsg}
+
{lang_permissions_msg}
diff -r 00df2e53c8cf -r 86ac6368a553 plugins/polls/templates/admin/polleditor.thtml
--- a/plugins/polls/templates/admin/polleditor.thtml Sun Feb 22 12:27:17 2009 +0100
+++ b/plugins/polls/templates/admin/polleditor.thtml Sun Feb 22 18:50:02 2009 +0100
@@ -39,7 +39,7 @@
{lang_owner}: {owner_name}
{lang_group}: {group_dropdown}
{lang_permissions}
-
{lang_permissionskey}
+
{lang_perm_key}
{permissions_editor}
{lang_permissions_msg}
diff -r 00df2e53c8cf -r 86ac6368a553 plugins/staticpages/templates/admin/editor.thtml
--- a/plugins/staticpages/templates/admin/editor.thtml Sun Feb 22 12:27:17 2009 +0100
+++ b/plugins/staticpages/templates/admin/editor.thtml Sun Feb 22 18:50:02 2009 +0100
@@ -116,7 +116,7 @@
-
{permissions_msg}
+
{lang_permissions_msg}
diff -r 00df2e53c8cf -r 86ac6368a553 plugins/staticpages/templates/admin/editor_advanced.thtml
--- a/plugins/staticpages/templates/admin/editor_advanced.thtml Sun Feb 22 12:27:17 2009 +0100
+++ b/plugins/staticpages/templates/admin/editor_advanced.thtml Sun Feb 22 18:50:02 2009 +0100
@@ -147,7 +147,7 @@
-
{permissions_msg}
+
{lang_permissions_msg}
diff -r 00df2e53c8cf -r 86ac6368a553 public_html/admin/block.php
--- a/public_html/admin/block.php Sun Feb 22 12:27:17 2009 +0100
+++ b/public_html/admin/block.php Sun Feb 22 18:50:02 2009 +0100
@@ -2,13 +2,13 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.5 |
+// | Geeklog 1.6 |
// +---------------------------------------------------------------------------+
// | block.php |
// | |
// | Geeklog block administration. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2008 by the following authors: |
+// | Copyright (C) 2000-2009 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Mark Limburg - mlimburg AT users DOT sourceforge DOT net |
@@ -32,8 +32,6 @@
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
-//
-// $Id: block.php,v 1.124 2008/06/07 12:41:44 dhaun Exp $
require_once '../lib-common.php';
require_once 'auth.inc.php';
@@ -163,6 +161,7 @@
$block_templates->set_var('lang_perm_key', $LANG_ACCESS['permissionskey']);
$block_templates->set_var('permissions_editor', SEC_getPermissionsHTML($A['perm_owner'],$A['perm_group'],$A['perm_members'],$A['perm_anon']));
$block_templates->set_var('permissions_msg', $LANG_ACCESS['permmsg']);
+ $block_templates->set_var('lang_permissions_msg', $LANG_ACCESS['permmsg']);
$block_templates->set_var('max_url_length', 255);
$block_templates->set_var('gltoken_name', CSRF_TOKEN);
$block_templates->set_var('gltoken', SEC_createToken());
diff -r 00df2e53c8cf -r 86ac6368a553 public_html/admin/plugins/calendar/index.php
--- a/public_html/admin/plugins/calendar/index.php Sun Feb 22 12:27:17 2009 +0100
+++ b/public_html/admin/plugins/calendar/index.php Sun Feb 22 18:50:02 2009 +0100
@@ -322,7 +322,9 @@
SEC_getGroupDropdown ($A['group_id'], $access));
$event_templates->set_var('lang_permissions', $LANG_ACCESS['permissions']);
$event_templates->set_var('lang_permissionskey', $LANG_ACCESS['permissionskey']);
+ $event_templates->set_var('lang_perm_key', $LANG_ACCESS['permissionskey']);
$event_templates->set_var('permissions_editor', SEC_getPermissionsHTML($A['perm_owner'],$A['perm_group'],$A['perm_members'],$A['perm_anon']));
+ $event_templates->set_var('lang_permissions_msg', $LANG_ACCESS['permmsg']);
$event_templates->set_var('gltoken_name', CSRF_TOKEN);
$event_templates->set_var('gltoken', SEC_createToken());
$event_templates->parse('output', 'editor');
diff -r 00df2e53c8cf -r 86ac6368a553 public_html/admin/plugins/links/category.php
--- a/public_html/admin/plugins/links/category.php Sun Feb 22 12:27:17 2009 +0100
+++ b/public_html/admin/plugins/links/category.php Sun Feb 22 18:50:02 2009 +0100
@@ -262,8 +262,10 @@
$T->set_var('group_dropdown', SEC_getGroupDropdown($A['group_id'], $access));
$T->set_var('lang_permissions', $LANG_ACCESS['permissions']);
$T->set_var('lang_permissionskey', $LANG_ACCESS['permissionskey']);
+ $T->set_var('lang_perm_key', $LANG_ACCESS['permissionskey']);
$T->set_var('permissions_editor', SEC_getPermissionsHTML($A['perm_owner'],
$A['perm_group'], $A['perm_members'], $A['perm_anon']));
+ $T->set_var('lang_permissions_msg', $LANG_ACCESS['permmsg']);
$T->set_var('lang_lockmsg', $LANG_ACCESS['permmsg']);
$T->set_var('gltoken_name', CSRF_TOKEN);
$T->set_var('gltoken', SEC_createToken());
diff -r 00df2e53c8cf -r 86ac6368a553 public_html/admin/plugins/links/index.php
--- a/public_html/admin/plugins/links/index.php Sun Feb 22 12:27:17 2009 +0100
+++ b/public_html/admin/plugins/links/index.php Sun Feb 22 18:50:02 2009 +0100
@@ -199,7 +199,9 @@
SEC_getGroupDropdown ($A['group_id'], $access));
$link_templates->set_var('lang_permissions', $LANG_ACCESS['permissions']);
$link_templates->set_var('lang_permissionskey', $LANG_ACCESS['permissionskey']);
+ $link_templates->set_var('lang_perm_key', $LANG_ACCESS['permissionskey']);
$link_templates->set_var('permissions_editor', SEC_getPermissionsHTML($A['perm_owner'],$A['perm_group'],$A['perm_members'],$A['perm_anon']));
+ $link_templates->set_var('lang_permissions_msg', $LANG_ACCESS['permmsg']);
$link_templates->set_var('lang_lockmsg', $LANG_ACCESS['permmsg']);
$link_templates->set_var('gltoken_name', CSRF_TOKEN);
$link_templates->set_var('gltoken', SEC_createToken());
diff -r 00df2e53c8cf -r 86ac6368a553 public_html/admin/plugins/polls/index.php
--- a/public_html/admin/plugins/polls/index.php Sun Feb 22 12:27:17 2009 +0100
+++ b/public_html/admin/plugins/polls/index.php Sun Feb 22 18:50:02 2009 +0100
@@ -441,6 +441,7 @@
SEC_getGroupDropdown ($T['group_id'], $access));
$poll_templates->set_var('lang_permissions', $LANG_ACCESS['permissions']);
$poll_templates->set_var('lang_permissionskey', $LANG_ACCESS['permissionskey']);
+ $poll_templates->set_var('lang_perm_key', $LANG_ACCESS['permissionskey']);
$poll_templates->set_var('permissions_editor', SEC_getPermissionsHTML($T['perm_owner'],$T['perm_group'],$T['perm_members'],$T['perm_anon']));
$poll_templates->set_var('lang_permissions_msg', $LANG_ACCESS['permmsg']);
$poll_templates->set_var('lang_answersvotes', $LANG25[10]);
diff -r 00df2e53c8cf -r 86ac6368a553 public_html/admin/plugins/staticpages/index.php
--- a/public_html/admin/plugins/staticpages/index.php Sun Feb 22 12:27:17 2009 +0100
+++ b/public_html/admin/plugins/staticpages/index.php Sun Feb 22 18:50:02 2009 +0100
@@ -2,13 +2,13 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Static Pages Geeklog Plugin 1.5 |
+// | Static Pages Geeklog Plugin 1.6 |
// +---------------------------------------------------------------------------+
// | index.php |
// | |
// | Administration page. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2008 by the following authors: |
+// | Copyright (C) 2000-2009 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Phill Gillespie - phill AT mediaaustralia DOT com DOT au |
@@ -31,8 +31,6 @@
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
-//
-// $Id: index.php,v 1.94 2008/06/22 14:49:06 dhaun Exp $
require_once '../../../lib-common.php';
require_once '../../auth.inc.php';
@@ -154,6 +152,7 @@
$sp_template->set_var('lang_permissions', $LANG_ACCESS['permissions']);
$sp_template->set_var('lang_perm_key', $LANG_ACCESS['permissionskey']);
$sp_template->set_var('permissions_msg', $LANG_ACCESS['permmsg']);
+ $sp_template->set_var('lang_permissions_msg', $LANG_ACCESS['permmsg']);
$sp_template->set_var('site_url', $_CONF['site_url']);
$sp_template->set_var('site_admin_url', $_CONF['site_admin_url']);
$sp_template->set_var('start_block_editor',
diff -r 00df2e53c8cf -r 86ac6368a553 public_html/admin/story.php
--- a/public_html/admin/story.php Sun Feb 22 12:27:17 2009 +0100
+++ b/public_html/admin/story.php Sun Feb 22 18:50:02 2009 +0100
@@ -423,6 +423,7 @@
$story->EditElements('perm_owner'),$story->EditElements('perm_group'),
$story->EditElements('perm_members'),$story->EditElements('perm_anon')));
$story_templates->set_var('permissions_msg', $LANG_ACCESS['permmsg']);
+ $story_templates->set_var('lang_permissions_msg', $LANG_ACCESS['permmsg']);
$curtime = COM_getUserDateTimeFormat($story->EditElements('date'));
$story_templates->set_var('lang_date', $LANG24[15]);
diff -r 00df2e53c8cf -r 86ac6368a553 public_html/admin/topic.php
--- a/public_html/admin/topic.php Sun Feb 22 12:27:17 2009 +0100
+++ b/public_html/admin/topic.php Sun Feb 22 18:50:02 2009 +0100
@@ -2,13 +2,13 @@
/* Reminder: always indent with 4 spaces (no tabs). */
// +---------------------------------------------------------------------------+
-// | Geeklog 1.5 |
+// | Geeklog 1.6 |
// +---------------------------------------------------------------------------+
// | topic.php |
// | |
// | Geeklog topic administration page. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2008 by the following authors: |
+// | Copyright (C) 2000-2009 by the following authors: |
// | |
// | Authors: Tony Bibbs - tony AT tonybibbs DOT com |
// | Mark Limburg - mlimburg AT users DOT sourceforge DOT net |
@@ -31,8 +31,6 @@
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
-//
-// $Id: topic.php,v 1.80 2008/05/18 16:58:51 dhaun Exp $
require_once '../lib-common.php';
require_once 'auth.inc.php';
@@ -140,6 +138,9 @@
SEC_getGroupDropdown ($A['group_id'], $access));
$topic_templates->set_var('lang_permissions', $LANG_ACCESS['permissions']);
$topic_templates->set_var('lang_permissions_key', $LANG_ACCESS['permissionskey']);
+ $topic_templates->set_var('lang_perm_key', $LANG_ACCESS['permissionskey']);
+ $topic_templates->set_var('permissions_msg', $LANG_ACCESS['permmsg']);
+ $topic_templates->set_var('lang_permissions_msg', $LANG_ACCESS['permmsg']);
$topic_templates->set_var('permissions_editor', SEC_getPermissionsHTML($A['perm_owner'],$A['perm_group'],$A['perm_members'],$A['perm_anon']));
// show sort order only if they specified sortnum as the sort method
diff -r 00df2e53c8cf -r 86ac6368a553 public_html/docs/history
--- a/public_html/docs/history Sun Feb 22 12:27:17 2009 +0100
+++ b/public_html/docs/history Sun Feb 22 18:50:02 2009 +0100
@@ -11,6 +11,7 @@
+ (TBD) Comment moderation and editable comments, by Jared Wenerd
Other changes:
+- Ensure consistent template variable names for the Permission Editor [Dirk]
- Added new permission 'group.assign', now required to be able to assign a user
to a group. Part of the Group Admin (not User Admin) permissions by default
(feature request #0000190) [Dirk]
diff -r 00df2e53c8cf -r 86ac6368a553 public_html/docs/theme.html
--- a/public_html/docs/theme.html Sun Feb 22 12:27:17 2009 +0100
+++ b/public_html/docs/theme.html Sun Feb 22 18:50:02 2009 +0100
@@ -223,6 +223,20 @@
now.
+
Permissions Editor
+
+
The various instances of the Permissions Editor (where you can set the Read
+/ Edit permissions for Owner, Group, Members, Anonymous) were using slightly
+different template variable names. From now on, the following names are defined
+everywhere:
+
+
{lang_permissions} (headline)
+
{lang_perm_key} (legend: R = read, ...)
+
{permissions_editor} (the actual checkboxes)
+
{lang_permissions_msg} ("Note: members is all logged in member ...)
+
+
Template files using the alternative names will continue to work, but new
+files should use the above names from now on.