diff options
author | Valentin Popov <dev@valentineus.link> | 2016-09-21 17:38:59 +0300 |
---|---|---|
committer | Valentin Popov <dev@valentineus.link> | 2016-09-21 17:38:59 +0300 |
commit | f44d37a204b1f0b0e6874c04893bbfc050a54fbd (patch) | |
tree | 8fdbaed45a1dba786fbd2a2e5b6b5267183005a9 /demo | |
parent | 07c1b99cb5880f9f3b54ab417387487365db87ac (diff) | |
download | iii-module-f44d37a204b1f0b0e6874c04893bbfc050a54fbd.tar.xz iii-module-f44d37a204b1f0b0e6874c04893bbfc050a54fbd.zip |
Final touches
Diffstat (limited to 'demo')
-rw-r--r-- | demo/components/functions.php (renamed from demo/components/class-application.php) | 3 | ||||
-rw-r--r-- | demo/index.php | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/demo/components/class-application.php b/demo/components/functions.php index 317795d..e3f872a 100644 --- a/demo/components/class-application.php +++ b/demo/components/functions.php @@ -2,6 +2,7 @@ /** * The function returns the current ID. * Returns zero if no ID is stored. +* @return integer - ID session. */ function GetID() { // Search current ID... @@ -21,6 +22,7 @@ function GetID() { * init or returns zero on failure. * @param $token - The values of the token. * @param $bot - Initialized bot. +* @return string - ID bot session. */ function GetSession($token, $bot) { // Search the old session @@ -44,6 +46,7 @@ function GetSession($token, $bot) { * the specified or the next. If any missing ID * returns the one. * @param $id - Current ID. +* @return integer - Next ID. */ function SetID($id) { // Process the specified ID... diff --git a/demo/index.php b/demo/index.php index ec526d1..cb000c3 100644 --- a/demo/index.php +++ b/demo/index.php @@ -19,7 +19,7 @@ <body> <?php // Connect all of the dependencies include("../src/bot.php"); // Class for working with AI - include("components/class-application.php"); // Class to work with application logic + include("components/functions.php"); // Class to work with application logic include("components/navbar.php"); // Connect the navigation bar include("components/settings.php"); // Connecting a modal window with the settings ?> |