From a5fea4f736f147d49a2e001235eb64af4942c6db Mon Sep 17 00:00:00 2001 From: hecht Date: Mon, 7 Nov 2011 19:54:05 +0000 Subject: [PATCH] remove the include folder and replace with the linked folder :) --- cronjob/include/usergroup.inc.php | 80 ------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 cronjob/include/usergroup.inc.php diff --git a/cronjob/include/usergroup.inc.php b/cronjob/include/usergroup.inc.php deleted file mode 100644 index c0acdce..0000000 --- a/cronjob/include/usergroup.inc.php +++ /dev/null @@ -1,80 +0,0 @@ - $result['gruppen_id'], "gruppen_name" => $result['gruppen_name']); - $i++; - } - - return $groups; -} - -function isUserInGroup($usergrouparray, $group) { - for($i = 0; $i < count($usergrouparray); $i++) { - if($usergrouparray[$i]['gruppen_id'] == $group) { - return true; - } - } - return false; -} - -function removeUserFromGroup($user, $group) { - if($user !== NULL) { - if ($group !== NULL && $group >= 0) { - $qry = 'DELETE FROM user_gruppe_zuordnung WHERE user_id in (SELECT id FROM user WHERE nickname = \''.$user. - '\') AND gruppen_id = '.$group.';'; - mysql_query($qry); - return true; - } - } - return false; -} - -function addUserToGroup($user, $group) { - if($user !== NULL) { - if ($group !== NULL && $group >= 0) { - $qry = 'INSERT INTO user_gruppe_zuordnung(user_id, gruppen_id) - VALUES((SELECT id FROM user WHERE nickname = \''.$user.'\'), '.$group.');'; - mysql_query($qry); - return true; - } - } - return false; -} -?> \ No newline at end of file