[geeklog-hg] geeklog: Merged with upstream
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Tue Apr 2 17:39:51 EDT 2013
changeset 9025:73af92003982
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/73af92003982
user: Tom <websitemaster at cogeco.net>
date: Tue Apr 02 17:39:32 2013 -0400
description:
Merged with upstream
diffstat:
language/english.php | 2 +-
language/english_utf-8.php | 2 +-
plugins/calendar/functions.inc | 11 +----
plugins/links/functions.inc | 20 +++--------
plugins/polls/functions.inc | 31 +++++++----------
plugins/staticpages/functions.inc | 9 +----
plugins/staticpages/language/english.php | 2 +-
plugins/staticpages/language/english_utf-8.php | 2 +-
plugins/staticpages/services.inc.php | 16 +-------
public_html/admin/plugins/calendar/index.php | 30 +++--------------
public_html/admin/plugins/links/index.php | 10 +----
public_html/admin/plugins/polls/index.php | 17 ++-------
public_html/admin/plugins/staticpages/index.php | 5 +--
public_html/article.php | 5 +--
public_html/calendar/event.php | 4 +-
public_html/lib-common.php | 20 +++++++++++-
public_html/links/index.php | 5 +--
public_html/polls/index.php | 6 +--
public_html/profiles.php | 11 +-----
public_html/stats.php | 16 ++-------
public_html/submit.php | 29 +++-------------
public_html/users.php | 36 +++++++--------------
public_html/usersettings.php | 42 ++++++++----------------
system/lib-comment.php | 15 +-------
system/lib-story.php | 14 +------
25 files changed, 111 insertions(+), 249 deletions(-)
diffs (truncated from 855 to 300 lines):
diff -r 84cfc7409e9f -r 73af92003982 language/english.php
--- a/language/english.php Tue Apr 02 17:37:17 2013 -0400
+++ b/language/english.php Tue Apr 02 17:39:32 2013 -0400
@@ -712,7 +712,7 @@
22 => 'Dynamic Blocks',
23 => 'Block Order',
24 => 'Dynamic',
- 25 => 'To modify or delete a regular block, click on that block\'s edit icon below. To create a new regular block, click on "Create New" above. To move a regular block, click on the arrows or [R] and [L] boxes. To edit dynamic blocks check the plugin configuration that the block is related too.',
+ 25 => 'To modify or delete a regular block, click on that block\'s edit icon below. To create a new regular block, click on "Create New" above. To move a regular block, click on the arrows or [R] and [L] boxes. To edit dynamic blocks check the plugin configuration that the block is related to.',
26 => 'Layout Block',
27 => 'PHP Block',
28 => 'PHP Block Options',
diff -r 84cfc7409e9f -r 73af92003982 language/english_utf-8.php
--- a/language/english_utf-8.php Tue Apr 02 17:37:17 2013 -0400
+++ b/language/english_utf-8.php Tue Apr 02 17:39:32 2013 -0400
@@ -712,7 +712,7 @@
22 => 'Dynamic Blocks',
23 => 'Block Order',
24 => 'Dynamic',
- 25 => 'To modify or delete a regular block, click on that block\'s edit icon below. To create a new regular block, click on "Create New" above. To move a regular block, click on the arrows or [R] and [L] boxes. To edit dynamic blocks check the plugin configuration that the block is related too.',
+ 25 => 'To modify or delete a regular block, click on that block\'s edit icon below. To create a new regular block, click on "Create New" above. To move a regular block, click on the arrows or [R] and [L] boxes. To edit dynamic blocks check the plugin configuration that the block is related to.',
26 => 'Layout Block',
27 => 'PHP Block',
28 => 'PHP Block Options',
diff -r 84cfc7409e9f -r 73af92003982 plugins/calendar/functions.inc
--- a/plugins/calendar/functions.inc Tue Apr 02 17:37:17 2013 -0400
+++ b/plugins/calendar/functions.inc Tue Apr 02 17:39:32 2013 -0400
@@ -438,11 +438,8 @@
// check for missing textfields
if (empty ($A['title']) || empty ($A['start_month']) || empty ($A['start_day']) || empty ($A['start_year'])) {
- $retval .= COM_startBlock ($LANG12[22], '',
- COM_getBlockTemplate ('_msg_block', 'header'))
- . $LANG12[23]
- . COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'))
- . plugin_submit_calendar ($A['calendar_type']);
+ $retval .= COM_showMessageText($LANG12[23], $LANG12[22])
+ . plugin_submit_calendar($A['calendar_type']);
$retval = COM_createHTMLDocument($retval, array('pagetitle' => $LANG_CAL_1[27]));
return $retval;
@@ -1394,9 +1391,7 @@
}
$display .= ADMIN_simpleList("", $header_arr, $text_arr, $data_arr);
} else {
- $display .= COM_startBlock($LANG_CAL_1[47]);
- $display .= $LANG_CAL_1[49];
- $display .= COM_endBlock();
+ $display .= COM_showMessageText($LANG_CAL_1[49], $LANG_CAL_1[47]);
}
return $display;
diff -r 84cfc7409e9f -r 73af92003982 plugins/links/functions.inc
--- a/plugins/links/functions.inc Tue Apr 02 17:37:17 2013 -0400
+++ b/plugins/links/functions.inc Tue Apr 02 17:39:32 2013 -0400
@@ -330,11 +330,9 @@
'hits' => $hits
);
}
- $retval .= ADMIN_simpleList ('', $header_arr, $text_arr, $data_arr);
+ $retval .= ADMIN_simpleList('', $header_arr, $text_arr, $data_arr);
} else {
- $retval .= COM_startBlock ($LANG_LINKS_STATS['stats_headline']);
- $retval .= $LANG_LINKS_STATS['stats_no_hits'];
- $retval .= COM_endBlock ();
+ $retval .= COM_showMessageText($LANG_LINKS_STATS['stats_no_hits'], $LANG_LINKS_STATS['stats_headline']);
}
return $retval;
@@ -984,11 +982,8 @@
&& ($A['url'] != 'http://')) {
$retval = plugin_save_submit_links($A);
} else {
- $retval .= COM_startBlock ($LANG12[22], '',
- COM_getBlockTemplate ('_msg_block', 'header'))
- . $LANG12[23]
- . COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'))
- . plugin_submit_links();
+ $retval .= COM_showMessageText($LANG12[23], $LANG12[22])
+ . plugin_submit_links();
$retval = COM_createHTMLDocument($retval);
}
@@ -1080,11 +1075,8 @@
}
}
if (!$validcat) {
- $retval .= COM_startBlock($LANG12[22], '',
- COM_getBlockTemplate('_msg_block', 'header'))
- . $LANG12[23]
- . COM_endBlock(COM_getBlockTemplate('_msg_block', 'footer'))
- . submissionform('links');
+ $retval .= COM_showMessageText($LANG12[23], $LANG12[22])
+ . submissionform('links');
$retval = COM_createHTMLDocument($retval);
return $retval;
diff -r 84cfc7409e9f -r 73af92003982 plugins/polls/functions.inc
--- a/plugins/polls/functions.inc Tue Apr 02 17:37:17 2013 -0400
+++ b/plugins/polls/functions.inc Tue Apr 02 17:39:32 2013 -0400
@@ -248,11 +248,9 @@
$voters = COM_NumberFormat ($A['voters']);
$data_arr[] = array ('pid' => $pid, 'voters' => $voters);
}
- $retval .= ADMIN_simpleList ('', $header_arr, $text_arr, $data_arr);
+ $retval .= ADMIN_simpleList('', $header_arr, $text_arr, $data_arr);
} else {
- $retval .= COM_startBlock ($LANG_POLLS['stats_top10']);
- $retval .= $LANG_POLLS['stats_none'];
- $retval .= COM_endBlock ();
+ $retval .= COM_showMessageText($LANG_POLLS['stats_none'], $LANG_POLLS['stats_top10']);
}
return $retval;
@@ -736,13 +734,12 @@
// This always does an insert so no need to provide key_field and key_value args
DB_query("INSERT INTO {$_TABLES['pollvoters']} (ipaddress,date,pid) VALUES ('{$_SERVER['REMOTE_ADDR']}'," . time() . ",'$pid')");
- $retval .= COM_startBlock ($LANG_POLLS['savedvotetitle'], '',
- COM_getBlockTemplate ('_msg_block', 'header'))
- . $LANG_POLLS['savedvotemsg'] . ' "'
- . DB_getItem ($_TABLES['polltopics'], 'topic', "pid = '{$pid}'")
- . '"'
- . COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'))
- . POLLS_pollResults($pid);
+ $retval .= COM_showMessageText(
+ $LANG_POLLS['savedvotemsg'] . ' "'
+ . DB_getItem($_TABLES['polltopics'], 'topic', "pid = '{$pid}'") . '"',
+ $LANG_POLLS['savedvotetitle']
+ )
+ . POLLS_pollResults($pid);
return $retval;
}
@@ -1016,14 +1013,12 @@
(SEC_hasAccess ($A['owner_id'], $A['group_id'],
$A['perm_owner'], $A['perm_group'], $A['perm_members'],
$A['perm_anon']) == 3));
- $retval .= CMT_userComments ($id, $title, 'polls', $order, $format,
- $cid, $page, $view, $delete_option,
- $A['commentcode']);
+ $retval .= CMT_userComments($id, $title, 'polls', $order, $format,
+ $cid, $page, $view, $delete_option,
+ $A['commentcode']);
} else {
- $retval .= COM_startBlock ($LANG_ACCESS['accessdenied'], '',
- COM_getBlockTemplate ('_msg_block', 'header'))
- . $LANG_POLLS['deny_msg']
- . COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
+ $retval .= COM_showMessageText($LANG_POLLS['deny_msg'], $LANG_ACCESS['accessdenied'])
+ . COM_endBlock(COM_getBlockTemplate ('_msg_block', 'footer'));
}
return $retval;
diff -r 84cfc7409e9f -r 73af92003982 plugins/staticpages/functions.inc
--- a/plugins/staticpages/functions.inc Tue Apr 02 17:37:17 2013 -0400
+++ b/plugins/staticpages/functions.inc Tue Apr 02 17:39:32 2013 -0400
@@ -179,10 +179,7 @@
$cid, $page, $view, $delete_option,
$A['commentcode']);
} else {
- $retval .= COM_startBlock ($LANG_ACCESS['accessdenied'], '',
- COM_getBlockTemplate ('_msg_block', 'header'))
- . $LANG_STATIC['deny_msg']
- . COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
+ $retval .= COM_showMessageText($LANG_STATIC['deny_msg'], $LANG_ACCESS['accessdenied']);
}
return $retval;
@@ -736,9 +733,7 @@
}
$retval .= ADMIN_simpleList("", $header_arr, $text_arr, $data_arr);
} else {
- $retval .= COM_startBlock($LANG_STATIC['stats_headline']);
- $retval .= $LANG_STATIC['stats_no_hits'];
- $retval .= COM_endBlock();
+ $retval .= COM_showMessageText($LANG_STATIC['stats_no_hits'], $LANG_STATIC['stats_headline']);
}
return $retval;
diff -r 84cfc7409e9f -r 73af92003982 plugins/staticpages/language/english.php
--- a/plugins/staticpages/language/english.php Tue Apr 02 17:37:17 2013 -0400
+++ b/plugins/staticpages/language/english.php Tue Apr 02 17:39:32 2013 -0400
@@ -80,7 +80,7 @@
'duplicate_id' => 'The ID you chose for this static page is already in use. Please select another ID.',
'instructions' => 'To modify or delete a static page, click on that page\'s edit icon below. To view a static page, click on the title of the page you wish to view. To create a new static page, click on "Create New" above. Click on on the copy icon to create a copy of an existing page.',
'centerblock' => 'Centerblock: ',
- 'centerblock_msg' => 'When checked, this Static Page will be displayed as a center block on the index page of the topics it is assigned too.',
+ 'centerblock_msg' => 'When checked, this Static Page will be displayed as a center block on the index page of the topics it is assigned to.',
'topic' => 'Topic',
'position' => 'Position: ',
'all_topics' => 'All',
diff -r 84cfc7409e9f -r 73af92003982 plugins/staticpages/language/english_utf-8.php
--- a/plugins/staticpages/language/english_utf-8.php Tue Apr 02 17:37:17 2013 -0400
+++ b/plugins/staticpages/language/english_utf-8.php Tue Apr 02 17:39:32 2013 -0400
@@ -80,7 +80,7 @@
'duplicate_id' => 'The ID you chose for this static page is already in use. Please select another ID.',
'instructions' => 'To modify or delete a static page, click on that page\'s edit icon below. To view a static page, click on the title of the page you wish to view. To create a new static page, click on "Create New" above. Click on on the copy icon to create a copy of an existing page.',
'centerblock' => 'Centerblock: ',
- 'centerblock_msg' => 'When checked, this Static Page will be displayed as a center block on the index page of the topics it is assigned too.',
+ 'centerblock_msg' => 'When checked, this Static Page will be displayed as a center block on the index page of the topics it is assigned to.',
'topic' => 'Topic',
'position' => 'Position: ',
'all_topics' => 'All',
diff -r 84cfc7409e9f -r 73af92003982 plugins/staticpages/services.inc.php
--- a/plugins/staticpages/services.inc.php Tue Apr 02 17:37:17 2013 -0400
+++ b/plugins/staticpages/services.inc.php Tue Apr 02 17:39:32 2013 -0400
@@ -69,10 +69,7 @@
$output = '';
if (!SEC_hasRights('staticpages.edit')) {
- $output .= COM_startBlock($LANG_STATIC['access_denied'], '',
- COM_getBlockTemplate('_msg_block', 'header'));
- $output .= $LANG_STATIC['access_denied_msg'];
- $output .= COM_endBlock(COM_getBlockTemplate('_msg_block', 'footer'));
+ $output .= COM_showMessageText($LANG_STATIC['access_denied_msg'], $LANG_STATIC['access_denied']);
$output = COM_createHTMLDocument($output, array('pagetitle' => $LANG_STATIC['access_denied']));
return PLG_RET_AUTH_FAILED;
@@ -563,10 +560,7 @@
$sp_id = $args['sp_id'];
if (!SEC_hasRights ('staticpages.delete')) {
- $output .= COM_startBlock ($LANG_STATIC['access_denied'], '',
- COM_getBlockTemplate ('_msg_block', 'header'));
- $output .= $LANG_STATIC['access_denied_msg'];
- $output .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
+ $output .= COM_showMessageText($LANG_STATIC['access_denied_msg'], $LANG_STATIC['access_denied']);
$output = COM_createHTMLDocument($output, array('pagetitle' => $LANG_STATIC['access_denied']));
if ($_USER['uid'] > 1) {
return PLG_RET_PERMISSION_DENIED;
@@ -787,11 +781,7 @@
$output = COM_createHTMLDocument($output, array('rightblock' => true));
}
} else {
- $output .= COM_startBlock($LANG_ACCESS['accessdenied'], '',
- COM_getBlockTemplate('_msg_block', 'header'));
- $output .= $LANG_STATIC['deny_msg'];
- $output .= COM_endBlock(COM_getBlockTemplate('_msg_block',
- 'footer'));
+ $output .= COM_showMessageText($LANG_STATIC['deny_msg'], $LANG_ACCESS['accessdenied']);
if ($mode !== 'autotag') {
$output = COM_createHTMLDocument($output, array('rightblock' => true));
}
diff -r 84cfc7409e9f -r 73af92003982 public_html/admin/plugins/calendar/index.php
--- a/public_html/admin/plugins/calendar/index.php Tue Apr 02 17:37:17 2013 -0400
+++ b/public_html/admin/plugins/calendar/index.php Tue Apr 02 17:39:32 2013 -0400
@@ -97,10 +97,7 @@
$retval = '';
if (!empty ($msg)) {
- $retval .= COM_startBlock ($LANG_CAL_ADMIN[2], '',
- COM_getBlockTemplate ('_msg_block', 'header'));
- $retval .= $msg;
- $retval .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
+ $retval .= COM_showMessageText($msg, $LANG_CAL_ADMIN[2]);
}
$event_templates = COM_newTemplate($_CONF['path'] . 'plugins/calendar/templates/admin');
@@ -114,10 +111,7 @@
$access = SEC_hasAccess($A['owner_id'],$A['group_id'],$A['perm_owner'],$A['perm_group'],$A['perm_members'],$A['perm_anon']);
if ($access == 0 OR $access == 2) {
// Uh, oh! User doesn't have access to this object
- $retval .= COM_startBlock ($LANG_ACCESS['accessdenied'], '',
- COM_getBlockTemplate ('_msg_block', 'header'));
- $retval .= $LANG_CAL_ADMIN[17];
- $retval .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
+ $retval .= COM_showMessageText($LANG_CAL_ADMIN[17], $LANG_ACCESS['accessdenied']);
COM_accessLog("User {$_USER['username']} tried to illegally submit or edit event $eid.");
return $retval;
}
@@ -445,10 +439,7 @@
$start_year, $start_month, $start_day);
$timestart = $start_hour . ':' . $start_minute . ':00';
} else {
- $retval .= COM_startBlock ($LANG_CAL_ADMIN[2], '',
- COM_getBlockTemplate ('_msg_block', 'header'));
- $retval .= $LANG_CAL_ADMIN[23];
- $retval .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
+ $retval .= COM_showMessageText($LANG_CAL_ADMIN[23], $LANG_CAL_ADMIN[2]);
$retval = COM_createHTMLDocument($retval, array('pagetitle' => $LANG_CAL_ADMIN[2]));
return $retval;
@@ -457,20 +448,14 @@
$dateend = sprintf('%4d-%02d-%02d', $end_year, $end_month, $end_day);
$timeend = $end_hour . ':' . $end_minute . ':00';
} else {
- $retval .= COM_startBlock ($LANG_CAL_ADMIN[2], '',
- COM_getBlockTemplate ('_msg_block', 'header'));
- $retval .= $LANG_CAL_ADMIN[24];
- $retval .= COM_endBlock (COM_getBlockTemplate ('_msg_block', 'footer'));
+ $retval .= COM_showMessageText($LANG_CAL_ADMIN[24], $LANG_CAL_ADMIN[2]);
$retval = COM_createHTMLDocument($retval, array('pagetitle' => $LANG_CAL_ADMIN[2]));
return $retval;
}
if ($allday == 0) {
if ($dateend < $datestart) {
- $retval .= COM_startBlock ($LANG_CAL_ADMIN[2], '',
- COM_getBlockTemplate ('_msg_block', 'header'));
More information about the geeklog-cvs
mailing list