aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_zebra.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-11-17 17:32:25 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-11-17 17:32:25 +0000
commite21245f2ee5e3f7a39ae865c93e2f4bca6682f3a (patch)
tree2d703e0fb605b3ea4099c0be5bda414f56280a29 /phpBB/includes/ucp/ucp_zebra.php
parent3676222231726823faa2a70d296edf928c79a393 (diff)
downloadforums-e21245f2ee5e3f7a39ae865c93e2f4bca6682f3a.tar
forums-e21245f2ee5e3f7a39ae865c93e2f4bca6682f3a.tar.gz
forums-e21245f2ee5e3f7a39ae865c93e2f4bca6682f3a.tar.bz2
forums-e21245f2ee5e3f7a39ae865c93e2f4bca6682f3a.tar.xz
forums-e21245f2ee5e3f7a39ae865c93e2f4bca6682f3a.zip
- some ucp changes (added the module info too)
git-svn-id: file:///svn/phpbb/trunk@5302 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_zebra.php')
-rw-r--r--phpBB/includes/ucp/ucp_zebra.php39
1 files changed, 33 insertions, 6 deletions
diff --git a/phpBB/includes/ucp/ucp_zebra.php b/phpBB/includes/ucp/ucp_zebra.php
index ca39afc86a..76311ea9e6 100644
--- a/phpBB/includes/ucp/ucp_zebra.php
+++ b/phpBB/includes/ucp/ucp_zebra.php
@@ -18,13 +18,13 @@ class ucp_zebra
{
global $config, $db, $user, $auth, $SID, $template, $phpbb_root_path, $phpEx;
- $submit = (!empty($_POST['submit']) || !empty($_GET['add'])) ? true : false;
+ $submit = (isset($_POST['submit']) || isset($_GET['add'])) ? true : false;
$s_hidden_fields = '';
if ($submit)
{
$var_ary = array(
- 'usernames' => 0,
+ 'usernames' => array(0),
'add' => '',
);
@@ -77,7 +77,7 @@ class ucp_zebra
if ($add)
{
- $sql = 'SELECT user_id
+ $sql = 'SELECT user_id
FROM ' . USERS_TABLE . '
WHERE username IN (' . $add . ')';
$result = $db->sql_query($sql);
@@ -193,17 +193,44 @@ class ucp_zebra
$db->sql_freeresult($result);
$template->assign_vars(array(
- 'L_TITLE' => $user->lang['UCP_ZEBRA_' . strtoupper($mode)],
+ 'L_TITLE' => $user->lang['UCP_ZEBRA_' . strtoupper($mode)],
- 'U_SEARCH_USER' => "memberlist.$phpEx$SID&amp;mode=searchuser&amp;form=ucp&amp;field=add",
+ 'U_SEARCH_USER' => "{$phpbb_root_path}memberlist.$phpEx$SID&amp;mode=searchuser&amp;form=ucp&amp;field=add",
'S_USERNAME_OPTIONS' => $s_username_options,
'S_HIDDEN_FIELDS' => $s_hidden_fields,
- 'S_UCP_ACTION' => "ucp.$phpEx$SID&amp;i=$id&amp;mode=$mode")
+ 'S_UCP_ACTION' => "{$phpbb_root_path}ucp.$phpEx$SID&amp;i=$id&amp;mode=$mode")
);
$this->tpl_name = 'ucp_zebra_' . $mode;
}
}
+/**
+* @package module_install
+*/
+class ucp_zebra_info
+{
+ function module()
+ {
+ return array(
+ 'filename' => 'ucp_zebra',
+ 'title' => 'UCP_ZEBRA',
+ 'version' => '1.0.0',
+ 'modes' => array(
+ 'friends' => array('title' => 'UCP_ZEBRA_FRIENDS', 'auth' => ''),
+ 'foes' => array('title' => 'UCP_ZEBRA_FOES', 'auth' => ''),
+ ),
+ );
+ }
+
+ function install()
+ {
+ }
+
+ function uninstall()
+ {
+ }
+}
+
?> \ No newline at end of file