From e602d68798541b49661509fcb4c7a2c4e59131a2 Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Tue, 19 Jul 2011 01:23:00 +0100 Subject: [PATCH] tabs -> spaces 7 remove old file --- index.php | 304 +++++++++++++++++++++++++++--------------------------- 1 file changed, 152 insertions(+), 152 deletions(-) diff --git a/index.php b/index.php index 97485d2..1c42acd 100644 --- a/index.php +++ b/index.php @@ -1,36 +1,36 @@ 0: - $agent = "android"; $touchscreen = true; - break; - - case stripos($_SERVER['HTTP_USER_AGENT'], 'iphone') > 0: - $agent = "iphone"; $touchscreen = true; - break; - - case stripos($_SERVER['HTTP_USER_AGENT'], 'ipod') > 0: - $agent = "ipod"; $touchscreen = true; - break; - - case stripos($_SERVER['HTTP_USER_AGENT'], 'ipad') > 0: - $agent = "ipad"; $touchscreen = true; - break; - - default: - $agent = "normal"; - $touchscreen = false; - } - - define("SERVER_SET", isset($_GET['server'])); - $server = isset($_GET['server']) ? $_GET['server'] : "irc.anonnet.org"; - $nick = isset($_GET['nick']) ? $_GET['nick'] : ""; - // Channel is set via javascript using location.hash - - $node_server = $_SERVER['HTTP_HOST']; - + $node_config = json_decode(file_get_contents("node/config.json"), true); + + switch(true){ + case stripos($_SERVER['HTTP_USER_AGENT'], 'android') > 0: + $agent = "android"; $touchscreen = true; + break; + + case stripos($_SERVER['HTTP_USER_AGENT'], 'iphone') > 0: + $agent = "iphone"; $touchscreen = true; + break; + + case stripos($_SERVER['HTTP_USER_AGENT'], 'ipod') > 0: + $agent = "ipod"; $touchscreen = true; + break; + + case stripos($_SERVER['HTTP_USER_AGENT'], 'ipad') > 0: + $agent = "ipad"; $touchscreen = true; + break; + + default: + $agent = "normal"; + $touchscreen = false; + } + + define("SERVER_SET", isset($_GET['server'])); + $server = isset($_GET['server']) ? $_GET['server'] : "irc.anonnet.org"; + $nick = isset($_GET['nick']) ? $_GET['nick'] : ""; + // Channel is set via javascript using location.hash + + $node_server = $_SERVER['HTTP_HOST']; + ?> @@ -63,84 +63,84 @@ @@ -148,63 +148,63 @@
-
-

Kiwi IRC

-
-
-
-
    -
  • -
  • -
- Connect.. -
- -
"> - More -
-
    -
  • -
  • -
  • -
  • -
- Connect.. -
-
-
-
-
- - - -
-
Powered by Kiwi IRC
-
    -
    - -
    - -
    -
      -
      - -
      - -
      -
      -
      :
      - -
      -
      - -
      -
      +
      +

      Kiwi IRC

      +
      +
      +
      +
        +
      • +
      • +
      + Connect.. +
      + +
      "> + More +
      +
        +
      • +
      • +
      • +
      • +
      + Connect.. +
      +
      +
      +
      +
      + + + +
      +
      Powered by Kiwi IRC
      +
        +
        + +
        + +
        +
          +
          + +
          + +
          +
          +
          :
          + +
          +
          + +
          +
          -- 2.25.1