summaryrefslogtreecommitdiffstats
path: root/web/lib/aur.inc
diff options
context:
space:
mode:
authorSimo Leone <simo@archlinux.org>2008-01-23 09:51:33 +0100
committerSimo Leone <simo@archlinux.org>2008-01-23 09:51:33 +0100
commit7bad8a8357773e7918e0b794dbec8a36ee9154ad (patch)
tree65374bd77f1a6abf41092aeb2919d3f10b4c6816 /web/lib/aur.inc
parent2bcd8ff1db2b590121d14a616c8969348ca1dfe6 (diff)
downloadaur-7bad8a8357773e7918e0b794dbec8a36ee9154ad.tar.gz
aur-7bad8a8357773e7918e0b794dbec8a36ee9154ad.tar.xz
Removed QBUG and DBUG
It was broken and hardly used. It's just as easy to add short print statements or logging if some debugging output is needed. Signed-off-by: Simo Leone <simo@archlinux.org>
Diffstat (limited to 'web/lib/aur.inc')
-rw-r--r--web/lib/aur.inc16
1 files changed, 0 insertions, 16 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index 5dec6e3c..234dca98 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -86,7 +86,6 @@ function check_sid() {
} else {
$row = mysql_fetch_row($result);
if ($row[0] + $LOGIN_TIMEOUT <= $row[1]) {
- dbug("login timeout reached");
$failed = 2;
}
}
@@ -267,18 +266,12 @@ function db_connect() {
# query logging/debuggin in.
#
function db_query($query="", $db_handle="") {
- global $QBUG;
if (!$query) {
return FALSE;
}
if (!$db_handle) {
$db_handle = db_connect();
}
- if ($QBUG) {
- $fp = fopen(AURQ_LOG, "a");
- fwrite($fp, $query . "\n");
- fclose($fp);
- }
$result = @mysql_query($query, $db_handle);
return $result;
}
@@ -419,15 +412,6 @@ function html_footer($ver="") {
return;
}
-# debug logging
-#
-function dbug($msg) {
- $fp = fopen(AURD_LOG, "a");
- fwrite($fp, $msg . "\n");
- fclose($fp);
- return;
-}
-
# check to see if the user can submit a package
#
function can_submit_pkg($name="", $sid="") {