aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_zebra.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-10-04 21:31:35 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-10-04 21:31:35 +0000
commit5449c591a9721a63098f794a24e0bcef690ebb51 (patch)
treecffa50a6b77b053e3e738cada55f5623352977f5 /phpBB/includes/ucp/ucp_zebra.php
parent95ff1f3b64fdbf7d72fa86a94cf606a0369aa6bd (diff)
downloadforums-5449c591a9721a63098f794a24e0bcef690ebb51.tar
forums-5449c591a9721a63098f794a24e0bcef690ebb51.tar.gz
forums-5449c591a9721a63098f794a24e0bcef690ebb51.tar.bz2
forums-5449c591a9721a63098f794a24e0bcef690ebb51.tar.xz
forums-5449c591a9721a63098f794a24e0bcef690ebb51.zip
- changed ucp classes to work with the new module system
- mcp is no longer working, i know. git-svn-id: file:///svn/phpbb/trunk@5254 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_zebra.php')
-rw-r--r--phpBB/includes/ucp/ucp_zebra.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/ucp/ucp_zebra.php b/phpBB/includes/ucp/ucp_zebra.php
index 496b97ece4..908ebaff5a 100644
--- a/phpBB/includes/ucp/ucp_zebra.php
+++ b/phpBB/includes/ucp/ucp_zebra.php
@@ -12,9 +12,9 @@
* @package ucp
* ucp_zebra
*/
-class ucp_zebra extends module
+class ucp_zebra
{
- function ucp_zebra($id, $mode)
+ function main($id, $mode)
{
global $config, $db, $user, $auth, $SID, $template, $phpbb_root_path, $phpEx;
@@ -125,7 +125,7 @@ class ucp_zebra extends module
case 'mssql':
case 'sqlite':
$sql = 'INSERT INTO ' . ZEBRA_TABLE . " (user_id, zebra_id, $sql_mode)
- " . implode(' UNION ALL ', preg_replace('#^([0-9]+)$#', '(' . $user->data['user_id'] . ", \\1, 1)", $user_id_ary));
+ VALUES " . implode(' UNION ALL ', preg_replace('#^([0-9]+)$#', '(' . $user->data['user_id'] . ", \\1, 1)", $user_id_ary));
$db->sql_query($sql);
break;
@@ -201,7 +201,7 @@ class ucp_zebra extends module
'S_UCP_ACTION' => "ucp.$phpEx$SID&amp;i=$id&amp;mode=$mode")
);
- $this->display($user->lang['UCP_ZEBRA'], 'ucp_zebra_' . $mode . '.html');
+ $this->tpl_name = 'ucp_zebra_' . $mode;
}
}