From c32c1785108597b3bb500ea7f85d2c63cef00359 Mon Sep 17 00:00:00 2001 From: Alib Date: Tue, 23 Mar 2010 19:29:29 +0100 Subject: added auth --- bin/auth.php | 6 +- bin/backend.php | 2 +- index.html | 258 ------------------------------------------------------ index.php | 265 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 269 insertions(+), 262 deletions(-) delete mode 100644 index.html create mode 100644 index.php diff --git a/bin/auth.php b/bin/auth.php index 1545b7c..7e6eace 100644 --- a/bin/auth.php +++ b/bin/auth.php @@ -4,9 +4,9 @@ global $user, $pass; session_start(); -if (isset($_COOKIE['istream'])) +if (isset($_COOKIE['istreamdev'])) { - if(sha1($pass) == $_COOKIE['istream'] ) { + if(sha1($pass) == $_COOKIE['istreamdev'] ) { setcookie ("istream", sha1($pass), time()+60*60*24*30); $authorized = true; } else { @@ -19,7 +19,7 @@ if (isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) { if (($user == $_SERVER['PHP_AUTH_USER']) && ($pass == ($_SERVER['PHP_AUTH_PW'])) ) { - setcookie ("istream", sha1($pass), time()+60*60*24*30); + setcookie ("istreamdev", sha1($pass), time()+60*60*24*30); $authorized = true; } } diff --git a/bin/backend.php b/bin/backend.php index a27fac0..706dd91 100755 --- a/bin/backend.php +++ b/bin/backend.php @@ -6,7 +6,7 @@ if (file_exists('../config.php')) include ('../config.php'); else include ('../config_default.php'); -//include ('./auth.php'); +include ('./auth.php'); include ('../getid3/getid3.php'); include ('./utils.php'); include ('./files.php'); diff --git a/index.html b/index.html deleted file mode 100644 index 79cdea8..0000000 --- a/index.html +++ /dev/null @@ -1,258 +0,0 @@ - - - - - iStreamdev - - - - -
-
-
- - -
-
-

HOME

-
-
    -
  • SESSIONS
  • -
  • Checking running session
  • -
-
- - - -
-
- Home -

CATEGORIES

-
-
    -
-
- -
-
- Back - Home -

CHANNELS

-
-
    -
-
- - - -
-
- Back - Home -

Channel

-
-
-
    -
  • - -
  • -
  • - -
  • -
-
-
- Edge 3G WifiRec. -

-
-
- - - - -
-
- -
-
- Back - Home -

Recordings

-
-
-
    -
  • - - - -
  • -
-

- Edge 3G Wifi -

-
-
- - -
-
-
-
- Back - Home -

Video

-
-
-
    -
  • - - - -
  • -
-

- Edge 3G Wifi -

-
-
- - -
-
- -
-
- Back - Home -

-
-
-
    - Status - -
-
    -
-
- Stop stream -

-
-
- - - - - -
-
- - - - -
-
- Home -

TIMERS

-
- -
    -
- -
- -
-
- Back - Home -

-
-
-
    -
  • Active
  • -
-
    -
  • Name
  • -
  • Recording name is missing
  • -
  • -
-
    -
  • - Channel -
  • -
  • - -
  • -
- - - - - - - -
-
- - -
-
- Home -

EPG

-
- -
- -
-
- Back - Home -

WHAT'S ON

-
-
-
    -
  • Select a Channel
  • -
  • -
  • -
-
- -
- -
- - \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..f5d0dee --- /dev/null +++ b/index.php @@ -0,0 +1,265 @@ + + + + + + iStreamdev + + + + +
+
+
+ + +
+
+

HOME

+
+
    +
  • SESSIONS
  • +
  • Checking running session
  • +
+
+ + + +
+
+ Home +

CATEGORIES

+
+
    +
+
+ +
+
+ Back + Home +

CHANNELS

+
+
    +
+
+ + + +
+
+ Back + Home +

Channel

+
+
+
    +
  • + +
  • +
  • + +
  • +
+
+
+ Edge 3G WifiRec. +

+
+
+ + + + +
+
+ +
+
+ Back + Home +

Recordings

+
+
+
    +
  • + + + +
  • +
+

+ Edge 3G Wifi +

+
+
+ + +
+
+
+
+ Back + Home +

Video

+
+
+
    +
  • + + + +
  • +
+

+ Edge 3G Wifi +

+
+
+ + +
+
+ +
+
+ Back + Home +

+
+
+
    + Status + +
+
    +
+
+ Stop stream +

+
+
+ + + + + +
+
+ + + + +
+
+ Home +

TIMERS

+
+ +
    +
+ +
+ +
+
+ Back + Home +

+
+
+
    +
  • Active
  • +
+
    +
  • Name
  • +
  • Recording name is missing
  • +
  • +
+
    +
  • + Channel +
  • +
  • + +
  • +
+ + + + + + + +
+
+ + +
+
+ Home +

EPG

+
+ +
+ +
+
+ Back + Home +

WHAT'S ON

+
+
+
    +
  • Select a Channel
  • +
  • +
  • +
+
+ +
+ +
+ + \ No newline at end of file -- cgit v1.2.3