|
From: Benjamin C. <bc...@us...> - 2002-03-20 20:04:09
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv12137
Modified Files:
user.php
Log Message:
Reworked authentication
Index: user.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/user.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- user.php 17 Mar 2002 01:44:24 -0000 1.20
+++ user.php 20 Mar 2002 20:04:04 -0000 1.21
@@ -32,9 +32,9 @@
}
function change_bug_list_columns($column_list) {
- global $db, $u, $t, $auth;
+ global $db, $u, $t, $_sv;
- $auth->auth['db_fields'] = $column_list;
+ $_sv['db_fields'] = $column_list;
$column_list = serialize($column_list);
$db->query("update ".TBL_AUTH_USER." set bug_list_fields = '$column_list' where user_id = $u");
//$t->set_file('content', 'columnlistchanged.html');
@@ -63,7 +63,7 @@
}
function show_preferences_form($error = '') {
- global $t, $pass1, $pass2, $all_db_fields, $default_db_fields, $auth, $db, $u;
+ global $t, $pass1, $pass2, $all_db_fields, $default_db_fields, $_sv, $db, $u;
$t->set_file('content', 'user.html');
$t->set_block('content', 'column_list_row', 'list_rows');
@@ -76,7 +76,7 @@
'pass2' => $pass2
));
- $my_fields = $auth->auth['db_fields'] ? $auth->auth['db_fields'] :
+ $my_fields = $_sv['db_fields'] ? $_sv['db_fields'] :
$default_db_fields;
foreach ($my_fields as $field) {
$checked[$field] = true;
|