index : archweb32 | |
Archlinux32 website | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-04-17 10:04:07 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-04-17 10:04:07 +0200 |
commit | 5c5ed42237757efcf698a36c37cf9bd0630232c3 (patch) | |
tree | 184a92122c95c33ccb09aa5db2955af2d32e2771 /buildmaster/todos.php | |
parent | 8af016645fee5c0b22e69d46de9b3401c1bc82d3 (diff) |
-rw-r--r-- | buildmaster/todos.php | 9 |
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` " . |