From a5836d59b5fa642b0090dd6fb8db747a9f7b963a Mon Sep 17 00:00:00 2001 From: Lana Alber Date: Tue, 21 Sep 2004 20:35:36 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=4219 --- checkin_notes | 8 ++++++++ html/inc/db.inc | 10 ---------- html/inc/util.inc | 18 ------------------ 3 files changed, 8 insertions(+), 28 deletions(-) diff --git a/checkin_notes b/checkin_notes index b92650cf1a..e24c98c0b3 100755 --- a/checkin_notes +++ b/checkin_notes @@ -17528,3 +17528,11 @@ David 21 Sept 2004 sched/ handle_request.C sched_send.C + +Lana 21 Sept 2004 + - fixed opening of the ops page + + html/ + inc/ + db.inc + util.inc diff --git a/html/inc/db.inc b/html/inc/db.inc index df36e3fec3..435b1fc772 100644 --- a/html/inc/db.inc +++ b/html/inc/db.inc @@ -25,16 +25,6 @@ function db_init_aux() { return 0; } -function lookup_user_auth($auth) { - $result = mysql_query("select * from user where authenticator='$auth'"); - if ($result) { - $user = mysql_fetch_object($result); - mysql_free_result($result); - return $user; - } - return null; -} - function lookup_user_id($id) { $result = mysql_query("select * from user where id=$id"); if ($result) { diff --git a/html/inc/util.inc b/html/inc/util.inc index 253736cd77..da1be58a96 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -4,24 +4,6 @@ require_once("../project/project.inc"); require_once("../inc/countries.inc"); require_once("../inc/db.inc"); -function db_init() { - if (project_is_stopped()) { - echo "Project is shut down for maintenance - please try again later\n"; - exit(); - } - $retval = db_init_aux(); - if ($retval == 1) { - echo "Unable to connect to database - please try again later\n"; - echo "Error: ", mysql_errno(), mysql_error(); - exit(); - } - if ($retval == 2) { - echo "Unable to select database - please try again later"; - echo mysql_error(); - exit(); - } -} - // Sends the authenticator to the given email address // function send_auth_email($email_addr, $auth) {