daily pastebin goal
15%
SHARE
TWEET

Untitled

a guest Oct 26th, 2010 154 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3.  * @package AJAX_Chat
  4.  * @author Sebastian Tschan
  5.  * @copyright (c) Sebastian Tschan
  6.  * @license GNU Affero General Public License
  7.  * @link https://blueimp.net/ajax/
  8.  */
  9.  
  10. // List containing the registered chat users:
  11. $users = array();
  12.  
  13. // Default guest user (don't delete this one):
  14. $users[0] = array();
  15. $users[0]['userRole'] = AJAX_CHAT_GUEST;
  16. $users[0]['userName'] = null;
  17. $users[0]['password'] = null;
  18. $users[0]['channels'] = array(0);
  19.  
  20. // Sample admin user:
  21. $users[1] = array();
  22. $users[1]['userRole'] = AJAX_CHAT_ADMIN;
  23. $users[1]['userName'] = 'admin';
  24. $users[1]['password'] = 'admin';
  25. $users[1]['channels'] = array(0,1);
  26.  
  27. // Sample moderator user:
  28. $users[2] = array();
  29. $users[2]['userRole'] = AJAX_CHAT_MODERATOR;
  30. $users[2]['userName'] = 'moderator';
  31. $users[2]['password'] = 'moderator';
  32. $users[2]['channels'] = array(0,1);
  33.  
  34. // Sample registered user:
  35. $users[3] = array();
  36. $users[3]['userRole'] = AJAX_CHAT_USER;
  37. $users[3]['userName'] = 'user';
  38. $users[3]['password'] = 'user';
  39. $users[3]['channels'] = array(0,1);
  40. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top