summaryrefslogtreecommitdiff
path: root/header/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'header/index.php')
-rw-r--r--header/index.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/header/index.php b/header/index.php
index a41912a..b57643d 100644
--- a/header/index.php
+++ b/header/index.php
@@ -4,6 +4,13 @@ if ( isset($_REQUEST['url']) && $_REQUEST['url'] != "" )
$set = true;
else
$set = false;
+
+require '../tools/config.php';
+
+if ( $_SERVER["HTTP_HOST"] == "header.iamfabulous.de"){
+ header($_SERVER["SERVER_PROTOCOL"] . " 301 Moved Permanently");
+ header("Location: " . __domain_ . "/header/");
+}
?>
<!doctype html>
<html>
@@ -22,7 +29,7 @@ else
}
?>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel='shortcut icon' href='../tools/favicon.ico' type='image/x-icon'>
+ <link rel='shortcut icon' href='<?php echo __domain_; ?>/tools/favicon.ico' type='image/x-icon'>
</head>
<body>
<?php require("../tools/navbar.php"); ?>
@@ -33,10 +40,9 @@ else
if ( $set ){
function getInfo($url, $method = "get", $customHeader = array()){
- $redis = new Redis();
- $redis ->connect("/var/run/redis/redis.sock");
- $redis->ping();
- $redis->select(9);
+ require '../tools/class/redis.php';
+
+ $redis = new Database(REDIS_CONNECT, 9);
$key = md5( $url . $method . serialize($customHeader) );