aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2004-02-26 17:58:55 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2004-02-26 17:58:55 +0000
commit114fa416d911a7970793e9c30e16114f6c46e75d (patch)
tree015ad4a3cae0c111701d86fe32ec532f4421428b /phpBB/includes/functions_user.php
parent884381d11be181e8031d7495ee127a2e3c923d9a (diff)
downloadforums-114fa416d911a7970793e9c30e16114f6c46e75d.tar
forums-114fa416d911a7970793e9c30e16114f6c46e75d.tar.gz
forums-114fa416d911a7970793e9c30e16114f6c46e75d.tar.bz2
forums-114fa416d911a7970793e9c30e16114f6c46e75d.tar.xz
forums-114fa416d911a7970793e9c30e16114f6c46e75d.zip
Minor updates for group parameter fetching
git-svn-id: file:///svn/phpbb/trunk@4840 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php28
1 files changed, 27 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 655bad5d8f..97553ce321 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -813,6 +813,11 @@ function validate_username($username)
return false;
}
+// TODO?
+// Ability to limit types of email address ... not by banning, seperate table
+// capability to require (or deny) use of certain addresses when user is
+// registering from certain IP's/hosts
+
// Check to see if email address is banned or already present in the DB
function validate_email($email)
{
@@ -1224,7 +1229,7 @@ function group_delete($group_id, $group_name = false)
return false;
}
-function group_user_add($group_id, $user_id_ary = false, $username_ary = false, $group_name = false, $default = false, $leader = false)
+function group_user_add($group_id, $user_id_ary = false, $username_ary = false, $group_name = false, $default = false, $leader = 0)
{
global $db, $auth;
@@ -1347,6 +1352,15 @@ function group_user_add($group_id, $user_id_ary = false, $username_ary = false,
{
trigger_error("Could not obtain group attributes for group_id $group_id", E_USER_ERROR);
}
+
+ if (!$group_avatar_width)
+ {
+ unset($group_avatar_width);
+ }
+ if (!$group_avatar_height)
+ {
+ unset($group_avatar_height);
+ }
}
$sql_set = '';
@@ -1601,8 +1615,20 @@ function group_user_attributes($action, $group_id, $user_id_ary = false, $userna
return 'NO_GROUP';
}
$db->sql_freeresult($result);
+
+ if (!$group_avatar_width)
+ {
+ unset($group_avatar_width);
+ }
+ if (!$group_avatar_height)
+ {
+ unset($group_avatar_height);
+ }
}
+ // FAILURE HERE when grabbing data from DB and checking "isset" ... will
+ // be true for all similar functionality
+
$sql_set = '';
foreach ($attribute_ary as $attribute => $type)
{