From: Jack Allnutt Date: Tue, 19 Jul 2011 00:23:00 +0000 (+0100) Subject: tabs -> spaces 7 remove old file X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e602d68798541b49661509fcb4c7a2c4e59131a2;p=KiwiIRC.git tabs -> spaces 7 remove old file --- 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
      +
        +
        + +
        + +
        +
          +
          + +
          + +
          +
          +
          :
          + +
          +
          + +
          +