Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/buildmaster/todos.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-04-17 10:04:07 +0200
committerErich Eckner <git@eckner.net>2018-04-17 10:04:07 +0200
commit5c5ed42237757efcf698a36c37cf9bd0630232c3 (patch)
tree184a92122c95c33ccb09aa5db2955af2d32e2771 /buildmaster/todos.php
parent8af016645fee5c0b22e69d46de9b3401c1bc82d3 (diff)
buildmaster/*.php: use lib/mysql.php
Diffstat (limited to 'buildmaster/todos.php')
-rw-r--r--buildmaster/todos.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/buildmaster/todos.php b/buildmaster/todos.php
index 99e991c..ba870fc 100644
--- a/buildmaster/todos.php
+++ b/buildmaster/todos.php
@@ -1,11 +1,8 @@
<?php
-$mysql = new mysqli("localhost", "webserver", "empty", "buildmaster");
-if ($mysql->connect_error) {
- die("Connection failed: " . $mysql->connect_error);
-}
+include "lib/mysql.php";
-$result = $mysql -> query(
+$result = mysql_run_query(
"SELECT DISTINCT " .
"`todos`.`id`," .
"`todos`.`file`," .
@@ -28,7 +25,7 @@ if (isset($_GET["graph"])) {
}
- $result = $mysql -> query(
+ $result = mysql_run_query(
"SELECT DISTINCT " .
"`todo_links`.`dependent`," .
"`todo_links`.`depending_on` " .