From b9628f189b0ca2f7c411bd79566da37c73cc8e8f Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 21 Sep 2016 06:40:03 +0400 Subject: Demo in beta mode. --- test/components/communication.php | 17 ---------- test/components/engine.php | 66 --------------------------------------- test/components/footer.php | 9 ------ test/components/navbar.php | 36 --------------------- test/components/results.php | 20 ------------ test/components/settings.php | 24 -------------- 6 files changed, 172 deletions(-) delete mode 100644 test/components/communication.php delete mode 100644 test/components/engine.php delete mode 100644 test/components/footer.php delete mode 100644 test/components/navbar.php delete mode 100644 test/components/results.php delete mode 100644 test/components/settings.php (limited to 'test/components') diff --git a/test/components/communication.php b/test/components/communication.php deleted file mode 100644 index 3f00204..0000000 --- a/test/components/communication.php +++ /dev/null @@ -1,17 +0,0 @@ - -
-
- -
- -
- -
- - - -
-
-
-
- diff --git a/test/components/engine.php b/test/components/engine.php deleted file mode 100644 index bc89d8e..0000000 --- a/test/components/engine.php +++ /dev/null @@ -1,66 +0,0 @@ -"); - echo("".$cookie['type'].""); - echo("".$cookie['textarea'].""); - echo("".date("H:i:s", $cookie['time']).""); - echo(""); - } - return 0; -} - - if (isset($_COOKIE['BOT_TOKEN'])) { - $BOT_TOKEN = $_COOKIE['BOT_TOKEN']; - } - - if (isset($_POST['BOT_TOKEN'])) { - unset($_COOKIE); // Clear the session - SetCookie("BOT_TOKEN", htmlspecialchars($_POST['BOT_TOKEN'])); - $BOT_TOKEN = htmlspecialchars($_POST['BOT_TOKEN']); - } - - if (isset($BOT_TOKEN)) { - define('BOT_TOKEN', $BOT_TOKEN); - $bot = new Bot(BOT_TOKEN); - if (isset($_COOKIE['BOT_SESSION'])) { - $session = $bot->session($_COOKIE['BOT_SESSION']); - } else { - $session = $bot->session(); - SetCookie("BOT_SESSION", $session); - } - if (!isset($session)) { ?> -
- -
- 'user', - 'textarea' => $textarea, - 'time' => time() - ); - SetCookie("TALK".$current_id, json_encode($cookie)); - - $current_id = $current_id+1; - SetCookie('CURRENT_ID', $current_id+1); - $cookie = array( - 'type' => 'bot', - 'textarea' => $bot->say($textarea), - 'time' => time() - ); - SetCookie("TALK".$current_id, json_encode($cookie)); - } -?> diff --git a/test/components/footer.php b/test/components/footer.php deleted file mode 100644 index fa5a161..0000000 --- a/test/components/footer.php +++ /dev/null @@ -1,9 +0,0 @@ - - - diff --git a/test/components/navbar.php b/test/components/navbar.php deleted file mode 100644 index ed858b5..0000000 --- a/test/components/navbar.php +++ /dev/null @@ -1,36 +0,0 @@ - - - diff --git a/test/components/results.php b/test/components/results.php deleted file mode 100644 index def09b1..0000000 --- a/test/components/results.php +++ /dev/null @@ -1,20 +0,0 @@ -
-
- - - - - - - -
#TextDate
-
-
diff --git a/test/components/settings.php b/test/components/settings.php deleted file mode 100644 index fe8e5ff..0000000 --- a/test/components/settings.php +++ /dev/null @@ -1,24 +0,0 @@ - - - -- cgit v1.2.3