aboutsummaryrefslogtreecommitdiffstats
path: root/library/ajaxchat/chat/lib/data
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-18 23:49:39 -0800
committerfriendica <info@friendica.com>2014-01-18 23:49:39 -0800
commit724ad4505628d493b43b4f585512d67dc0b4ee76 (patch)
tree4fb920a79e3dff961a6301ec56ec9f40e91f6af3 /library/ajaxchat/chat/lib/data
parent3f7032e542e3c451507fc9266ab3536155c8190f (diff)
downloadvolse-hubzilla-724ad4505628d493b43b4f585512d67dc0b4ee76.tar.gz
volse-hubzilla-724ad4505628d493b43b4f585512d67dc0b4ee76.tar.bz2
volse-hubzilla-724ad4505628d493b43b4f585512d67dc0b4ee76.zip
add ajaxchat library - needs a lot of integration work to handle decentralisation (e.g. chatroom@website) and zotid w/permissions (e.g. ACL controlled chatrooms); we can also rip out a lot of stuff we don't need.
Diffstat (limited to 'library/ajaxchat/chat/lib/data')
-rw-r--r--library/ajaxchat/chat/lib/data/channels.php16
-rw-r--r--library/ajaxchat/chat/lib/data/users.php40
2 files changed, 56 insertions, 0 deletions
diff --git a/library/ajaxchat/chat/lib/data/channels.php b/library/ajaxchat/chat/lib/data/channels.php
new file mode 100644
index 000000000..8688e5e7b
--- /dev/null
+++ b/library/ajaxchat/chat/lib/data/channels.php
@@ -0,0 +1,16 @@
+<?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';
+?> \ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/data/users.php b/library/ajaxchat/chat/lib/data/users.php
new file mode 100644
index 000000000..52ca77e50
--- /dev/null
+++ b/library/ajaxchat/chat/lib/data/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();
+
+// 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);
+
+// 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);
+?> \ No newline at end of file