*** empty log message ***

svn path=/trunk/boinc/; revision=4228
This commit is contained in:
Lana Alber 2004-09-23 00:32:10 +00:00
parent 7e60d8baf1
commit 3b576016af
4 changed files with 12 additions and 42 deletions

View File

@ -17607,3 +17607,12 @@ Rom 22 Sept 2004
client/
client_state.h
cs_apps.C
Lana 22 Sept 2004
- fixed opening of the ops page
html/
inc/
util_ops.inc
db_ops.inc

View File

@ -1,40 +1,5 @@
<?php
function db_init() {
$config = get_config();
$user = parse_config($config, "<db_user>");
$pass = parse_config($config, "<db_passwd>");
$host = parse_config($config, "<db_host>");
if ($host == null) {
$host = "localhost";
}
$retval = mysql_connect($host, $user, $pass);
if (!$retval) {
echo "Unable to connect to database - please try again later";
echo mysql_error();
exit();
}
$db_name = parse_config($config, "<db_name>");
if(!mysql_select_db($db_name)) {
echo "Unable to select database '$db_name' - please try again later";
echo mysql_error();
exit();
}
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;
} else {
return 0;
}
}
function join_query_string($s1, $s2) {
if ($s1) {
if ($s2) {

View File

@ -226,8 +226,9 @@ function row3($x, $y, $z) {
echo "<tr><td width=30% valign=top align=right>$x</td><td>$y</td><td>$z</td></tr>\n";
}
function row4($w, $x, $y, $z) {
echo "<tr><td width=30% valign=top align=right>$w</td><td>$x</td><td>$y</td><td>$z</td></tr>\n";
function row4($xx, $xy, $yx, $yy) {
echo "<tr><td width=25% valign=top align=right>$xx</td><td width=25%>$xy</td>"
. "<td width=25% align=right>$yx</td><td width=%25>$yy</td></tr>\n";
}
function rowify($string) {

View File

@ -59,9 +59,4 @@ function c_row2($color, $x, $y) {
echo "<tr bgcolor=$color><td align=right>$x</td><td>$y</td></tr>\n";
}
function row4($xx, $xy, $yx, $yy) {
echo "<tr><td width=25% valign=top align=right>$xx</td><td width=25%>$xy</td>"
. "<td width=25% align=right>$yx</td><td width=%25>$yy</td></tr>\n";
}
?>