summaryrefslogtreecommitdiff
path: root/linkshorter/db.php
diff options
context:
space:
mode:
authorroot2014-11-27 02:41:21 +0100
committerroot2014-11-27 02:41:21 +0100
commit92babb43a2a0041a71b54db35cbc9d2fba908a63 (patch)
tree8971101b53b6a6b12a092b456dc11a4dbfc034a3 /linkshorter/db.php
parent2b24f3ef0e800f878177973eefcb28380a292503 (diff)
downloadtools.iamfabulous.de-92babb43a2a0041a71b54db35cbc9d2fba908a63.tar.gz
Rewrote the linkshorter.
Diffstat (limited to 'linkshorter/db.php')
-rw-r--r--linkshorter/db.php16
1 files changed, 0 insertions, 16 deletions
diff --git a/linkshorter/db.php b/linkshorter/db.php
deleted file mode 100644
index 4dcf58a..0000000
--- a/linkshorter/db.php
+++ /dev/null
@@ -1,16 +0,0 @@
-<?php
-
-$db = new Redis();
-$db->connect('/var/run/redis/redis.sock');
-
-try {
- $db->ping();
-} catch (Exception $e){
- do_output("<p>No connection to the database established.</p>", "500 Server Failure", false, "<h1>Redis went away</h1>");
-}
-
-try {
- $db->select(1);
-} catch (Exception $e){
- do_output("<p>No connection to the database established.</p>", "500 Server Failure", false, "<h1>Redis went away</h1>");
-}