diff options
Diffstat (limited to 'header')
| -rw-r--r-- | header/index.php | 16 | ||||
| -rw-r--r-- | header/robots.txt | 2 |
2 files changed, 13 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) ); diff --git a/header/robots.txt b/header/robots.txt new file mode 100644 index 0000000..1f53798 --- /dev/null +++ b/header/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: / |
