summaryrefslogtreecommitdiffstats
path: root/data/example
diff options
context:
space:
mode:
authorPhilip Nicolcev <frugen@gmail.com>2014-08-24 13:12:44 -0400
committerPhilip Nicolcev <frugen@gmail.com>2014-08-24 13:12:44 -0400
commitf5fe739314de24e3a9cb94b9c8c64e11ed9cc14c (patch)
treebe46c6120d6dc0d08a7112a8dc80840281cbad33 /data/example
parent9ffeed7646620ae7de51b929a3b44f2cdffb677f (diff)
parent5d8755faf06fd2ff9d3977f103e641b0ba9f714e (diff)
downloadAJAX-Chat-origin/cli_testing.zip
AJAX-Chat-origin/cli_testing.tar.gz
AJAX-Chat-origin/cli_testing.tar.bz2
Merge pull request #178 from stevleibelt/masterorigin/cli_testing
Implemented Command Line Tools in cli_testing branch
Diffstat (limited to 'data/example')
-rw-r--r--data/example/channels.php15
-rw-r--r--data/example/users.php40
-rw-r--r--data/example/version.php7
3 files changed, 62 insertions, 0 deletions
diff --git a/data/example/channels.php b/data/example/channels.php
new file mode 100644
index 0000000..13a6b6a
--- /dev/null
+++ b/data/example/channels.php
@@ -0,0 +1,15 @@
+<?php
+/*
+ * @package AJAX_Chat
+ * @author Sebastian Tschan
+ * @copyright (c) Sebastian Tschan
+ * @license Modified MIT License
+ * @link https://blueimp.net/ajax/
+ */
+
+// List containing the custom channels:
+$channels = array();
+
+// Sample channel list:
+$channels[0] = 'Public';
+$channels[1] = 'Private';
diff --git a/data/example/users.php b/data/example/users.php
new file mode 100644
index 0000000..564f36c
--- /dev/null
+++ b/data/example/users.php
@@ -0,0 +1,40 @@
+<?php
+/*
+ * @package AJAX_Chat
+ * @author Sebastian Tschan
+ * @copyright (c) Sebastian Tschan
+ * @license Modified MIT License
+ * @link https://blueimp.net/ajax/
+ */
+
+// List containing the registered chat users:
+$users = array();
+/*
+ // Sample admin user:
+ $users[1] = array();
+ $users[1]['userRole'] = AJAX_CHAT_ADMIN;
+ $users[1]['userName'] = 'admin';
+ $users[1]['password'] = 'admin';
+ $users[1]['channels'] = array(0,1);
+
+ // Sample moderator user:
+ $users[2] = array();
+ $users[2]['userRole'] = AJAX_CHAT_MODERATOR;
+ $users[2]['userName'] = 'moderator';
+ $users[2]['password'] = 'moderator';
+ $users[2]['channels'] = array(0,1);
+
+ // Sample registered user:
+ $users[3] = array();
+ $users[3]['userRole'] = AJAX_CHAT_USER;
+ $users[3]['userName'] = 'user';
+ $users[3]['password'] = 'user';
+ $users[3]['channels'] = array(0,1);
+*/
+
+// Default guest user (don't delete this one):
+$users[0] = array();
+$users[0]['userRole'] = AJAX_CHAT_GUEST;
+$users[0]['userName'] = null;
+$users[0]['password'] = null;
+$users[0]['channels'] = array(0);
diff --git a/data/example/version.php b/data/example/version.php
new file mode 100644
index 0000000..e71f22b
--- /dev/null
+++ b/data/example/version.php
@@ -0,0 +1,7 @@
+<?php
+/**
+ * @author stev leibelt <artodeto@bazzline.net>
+ * @since 2014-08-14
+ */
+
+return '0.8.7'; \ No newline at end of file