|
From: Benjamin C. <bc...@us...> - 2002-03-20 23:56:25
|
Update of /cvsroot/phpbt/phpbt/inc
In directory usw-pr-cvs1:/tmp/cvs-serv27272/inc
Modified Files:
functions.php
Log Message:
Reworking authentication
Index: functions.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/inc/functions.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- functions.php 20 Mar 2002 20:00:14 -0000 1.10
+++ functions.php 20 Mar 2002 23:56:22 -0000 1.11
@@ -43,7 +43,7 @@
///
/// Build a select box with the item matching $value selected
function build_select($box, $value = '', $project = 0) {
- global $db, $select, $perm, $auth, $STRING, $restricted_projects;
+ global $db, $select, $perm, $STRING, $restricted_projects;
//create hash to map tablenames
$cfgDatabase = array(
@@ -300,9 +300,9 @@
///
/// If the constant is set do a little email masking to make harvesting a little harder
function maskemail($email) {
- global $auth;
+ global $_sv;
- if (HIDE_EMAIL && empty($auth->auth['uid'])) {
+ if (HIDE_EMAIL && empty($_sv['uid'])) {
return '******';
} elseif (MASK_EMAIL) {
return str_replace('@', ' at ', str_replace('.', ' dot ', $email));
@@ -314,7 +314,7 @@
///
/// Build the javascript for the dynamic project -> component -> version select boxes
function build_project_js() {
- global $db, $u, $perm, $auth;
+ global $db, $u, $perm, $_sv;
$js = '';
@@ -326,7 +326,7 @@
$rs = $db->query('select p.project_id, project_name from '.TBL_PROJECT.
' p left join '.TBL_PROJECT_GROUP.' pg using(project_id)
where active = 1 and (pg.project_id is null or pg.group_id in ('.
- delimit_list(',', $auth->auth['group_ids']).')) group by
+ delimit_list(',', $_sv['group_ids']).')) group by
p.project_id, p.project_name order by project_name');
}
while (list($pid, $pname) = $rs->fetchRow(DB_FETCHMODE_ORDERED)) {
|