[geeklog-hg] geeklog: Added record count for SPAM-X Plugin Admin Option
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Fri Feb 21 18:54:21 EST 2014
changeset 9502:2df883f7d381
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/2df883f7d381
user: Tom <websitemaster at cogeco.net>
date: Fri Feb 21 18:54:14 2014 -0500
description:
Added record count for SPAM-X Plugin Admin Option
diffstat:
plugins/spamx/functions.inc | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r a3ce473861fc -r 2df883f7d381 plugins/spamx/functions.inc
--- a/plugins/spamx/functions.inc Wed Feb 19 22:13:50 2014 -0500
+++ b/plugins/spamx/functions.inc Fri Feb 21 18:54:14 2014 -0500
@@ -136,11 +136,15 @@
*/
function plugin_getadminoption_spamx()
{
- global $_CONF, $LANG_SX00;
+ global $_CONF, $LANG_SX00, $_TABLES;
if (SEC_hasRights('spamx.admin')) {
+ $result = DB_query ("SELECT count(*) AS cnt FROM {$_TABLES['spamx']}");
+ $A = DB_fetchArray ($result);
+ $count = $A['cnt'];
+
return array($LANG_SX00['plugin_name'],
- $_CONF['site_admin_url'] . '/plugins/spamx/index.php', '', 'tools');
+ $_CONF['site_admin_url'] . '/plugins/spamx/index.php', $count, 'tools');
}
}
More information about the geeklog-cvs
mailing list