summaryrefslogtreecommitdiff
path: root/buildmaster/todos.php
diff options
context:
space:
mode:
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` " .