*** empty log message ***

svn path=/trunk/boinc/; revision=4220
This commit is contained in:
Lana Alber 2004-09-21 21:56:10 +00:00
parent a5836d59b5
commit b5bc0a836d
4 changed files with 29 additions and 8 deletions

2
aclocal.m4 vendored
View File

@ -1106,7 +1106,7 @@ AC_DEFUN([SAH_HEADER_STDCXX],[
#
# Revision Log:
# $Log$
# Revision 1.146 2004/09/13 22:58:46 boincadm
# Revision 1.147 2004/09/21 21:56:04 lana
# *** empty log message ***
#
# Revision 1.1 2003/12/11 18:38:24 korpela

View File

@ -17529,10 +17529,3 @@ David 21 Sept 2004
handle_request.C
sched_send.C
Lana 21 Sept 2004
- fixed opening of the ops page
html/
inc/
db.inc
util.inc

View File

@ -25,6 +25,16 @@ 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) {

View File

@ -4,6 +4,24 @@ 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) {