diff --git a/boot.php b/boot.php
index b52ef87eb..7be74e64a 100755
--- a/boot.php
+++ b/boot.php
@@ -46,7 +46,7 @@ define ( 'RED_PLATFORM', 'Red Matrix' );
define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R');
define ( 'ZOT_REVISION', 1 );
-define ( 'DB_UPDATE_VERSION', 1092 );
+define ( 'DB_UPDATE_VERSION', 1094 );
define ( 'EOL', ' ' . "\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
diff --git a/doc/To-Do-Code.md b/doc/To-Do-Code.md
index 3baf08d40..5804801b4 100644
--- a/doc/To-Do-Code.md
+++ b/doc/To-Do-Code.md
@@ -17,7 +17,7 @@ We need much more than this, but here are areas where developers can help. Pleas
* (Advanced) create a UI for building Comanche pages
-* Help with WebDAV and file storage implementation, especially replacing the fugly Sabre web UI.
+* templatise and translate the Web interface to webDAV
* Extend WebDAV to provide desktop access to photo albums
@@ -25,7 +25,7 @@ We need much more than this, but here are areas where developers can help. Pleas
* service classes - account overview page showing resources consumed by channel. With special consideration this page can also be accessed at a meta level by the site admin to drill down on problematic accounts/channels.
-* Events module - bring back birthday reminders for friends, fix permissions on events, and provide JS translation support for the calendar overview
+* Events module - bring back birthday reminders for friends, fix permissions on events, and provide JS translation support for the calendar overview; integrate with calDAV
* Events module - event followups and RSVP
diff --git a/doc/bbcode.html b/doc/bbcode.html
index a24dd8b5d..d46f9d05a 100644
--- a/doc/bbcode.html
+++ b/doc/bbcode.html
@@ -1,5 +1,5 @@
BBcode reference
-
+
[b]bold[/b] - bold
@@ -9,6 +9,10 @@
[color=red]red[/color] - red
[url=https://redmatrix.me]Red Matrix[/url] Red Matrix
';
- }
- return $errorMessages;
- }
-
- function getLogsChannelOptionTags() {
- $channelOptions = '';
- $channelOptions .= '';
- foreach($this->ajaxChat->getChannels() as $key=>$value) {
- if($this->ajaxChat->getUserRole() != AJAX_CHAT_ADMIN && $this->ajaxChat->getConfig('logsUserAccessChannelList') && !in_array($value, $this->ajaxChat->getConfig('logsUserAccessChannelList'))) {
- continue;
- }
- $channelOptions .= '';
- }
- $channelOptions .= '';
- $channelOptions .= '';
- return $channelOptions;
- }
-
- function getLogsYearOptionTags() {
- $yearOptions = '';
- $yearOptions .= '';
- for($year=date('Y'); $year>=$this->ajaxChat->getConfig('logsFirstYear'); $year--) {
- $yearOptions .= '';
- }
- return $yearOptions;
- }
-
- function getLogsMonthOptionTags() {
- $monthOptions = '';
- $monthOptions .= '';
- for($month=1; $month<=12; $month++) {
- $monthOptions .= '';
- }
- return $monthOptions;
- }
-
- function getLogsDayOptionTags() {
- $dayOptions = '';
- $dayOptions .= '';
- for($day=1; $day<=31; $day++) {
- $dayOptions .= '';
- }
- return $dayOptions;
- }
-
- function getLogsHourOptionTags() {
- $hourOptions = '';
- $hourOptions .= '';
- for($hour=0; $hour<=23; $hour++) {
- $hourOptions .= '';
- }
- return $hourOptions;
- }
-
-}
-?>
diff --git a/library/ajaxchat/chat/lib/class/CustomAJAXChat.php b/library/ajaxchat/chat/lib/class/CustomAJAXChat.php
deleted file mode 100644
index a18e64069..000000000
--- a/library/ajaxchat/chat/lib/class/CustomAJAXChat.php
+++ /dev/null
@@ -1,124 +0,0 @@
-getCustomUsers();
-
- if($this->getRequestVar('password')) {
- // Check if we have a valid registered user:
-
- $userName = $this->getRequestVar('userName');
- $userName = $this->convertEncoding($userName, $this->getConfig('contentEncoding'), $this->getConfig('sourceEncoding'));
-
- $password = $this->getRequestVar('password');
- $password = $this->convertEncoding($password, $this->getConfig('contentEncoding'), $this->getConfig('sourceEncoding'));
-
- foreach($customUsers as $key=>$value) {
- if(($value['userName'] == $userName) && ($value['password'] == $password)) {
- $userData = array();
- $userData['userID'] = $key;
- $userData['userName'] = $this->trimUserName($value['userName']);
- $userData['userRole'] = $value['userRole'];
- return $userData;
- }
- }
-
- return null;
- } else {
- // Guest users:
- return $this->getGuestUser();
- }
- }
-
- // Store the channels the current user has access to
- // Make sure channel names don't contain any whitespace
- function &getChannels() {
- if($this->_channels === null) {
- $this->_channels = array();
-
- $customUsers = $this->getCustomUsers();
-
- // Get the channels, the user has access to:
- if($this->getUserRole() == AJAX_CHAT_GUEST) {
- $validChannels = $customUsers[0]['channels'];
- } else {
- $validChannels = $customUsers[$this->getUserID()]['channels'];
- }
-
- // Add the valid channels to the channel list (the defaultChannelID is always valid):
- foreach($this->getAllChannels() as $key=>$value) {
- if ($value == $this->getConfig('defaultChannelID')) {
- $this->_channels[$key] = $value;
- continue;
- }
- // Check if we have to limit the available channels:
- if($this->getConfig('limitChannelList') && !in_array($value, $this->getConfig('limitChannelList'))) {
- continue;
- }
- if(in_array($value, $validChannels)) {
- $this->_channels[$key] = $value;
- }
- }
- }
- return $this->_channels;
- }
-
- // Store all existing channels
- // Make sure channel names don't contain any whitespace
- function &getAllChannels() {
- if($this->_allChannels === null) {
- // Get all existing channels:
- $customChannels = $this->getCustomChannels();
-
- $defaultChannelFound = false;
-
- foreach($customChannels as $name=>$id) {
- $this->_allChannels[$this->trimChannelName($name)] = $id;
- if($id == $this->getConfig('defaultChannelID')) {
- $defaultChannelFound = true;
- }
- }
-
- if(!$defaultChannelFound) {
- // Add the default channel as first array element to the channel list
- // First remove it in case it appeard under a different ID
- unset($this->_allChannels[$this->getConfig('defaultChannelName')]);
- $this->_allChannels = array_merge(
- array(
- $this->trimChannelName($this->getConfig('defaultChannelName'))=>$this->getConfig('defaultChannelID')
- ),
- $this->_allChannels
- );
- }
- }
- return $this->_allChannels;
- }
-
- function &getCustomUsers() {
- // List containing the registered chat users:
- $users = null;
- require(AJAX_CHAT_PATH.'lib/data/users.php');
- return $users;
- }
-
- function getCustomChannels() {
- // List containing the custom channels:
- $channels = null;
- require(AJAX_CHAT_PATH.'lib/data/channels.php');
- // Channel array structure should be:
- // ChannelName => ChannelID
- return array_flip($channels);
- }
-
-}
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/class/CustomAJAXChatInterface.php b/library/ajaxchat/chat/lib/class/CustomAJAXChatInterface.php
deleted file mode 100644
index a950739c5..000000000
--- a/library/ajaxchat/chat/lib/class/CustomAJAXChatInterface.php
+++ /dev/null
@@ -1,21 +0,0 @@
-initConfig();
-
- // Initialize the DataBase connection:
- $this->initDataBaseConnection();
- }
-
-}
-?>
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/class/CustomAJAXChatShoutBox.php b/library/ajaxchat/chat/lib/class/CustomAJAXChatShoutBox.php
deleted file mode 100644
index c014d639e..000000000
--- a/library/ajaxchat/chat/lib/class/CustomAJAXChatShoutBox.php
+++ /dev/null
@@ -1,25 +0,0 @@
-initConfig();
- }
-
- function getShoutBoxContent() {
- $template = new AJAXChatTemplate($this, AJAX_CHAT_PATH.'lib/template/shoutbox.html');
-
- // Return parsed template content:
- return $template->getParsedContent();
- }
-
-}
-?>
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/classes.php b/library/ajaxchat/chat/lib/classes.php
deleted file mode 100644
index ff1dee265..000000000
--- a/library/ajaxchat/chat/lib/classes.php
+++ /dev/null
@@ -1,26 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/config.php.example b/library/ajaxchat/chat/lib/config.php.example
deleted file mode 100644
index 023adcdbb..000000000
--- a/library/ajaxchat/chat/lib/config.php.example
+++ /dev/null
@@ -1,209 +0,0 @@
-'عربي', 'bg'=>'Български', 'ca'=>'Català', 'cy'=>'Cymraeg', 'cz'=>'Česky', 'da'=>'Dansk', 'de'=>'Deutsch', 'el'=>'Ελληνικα', 'en'=>'English',
- 'es'=>'Español', 'et'=>'Eesti', 'fa'=>'فارسی', 'fi'=>'Suomi', 'fr'=>'Français', 'gl'=>'Galego', 'he'=>'עברית', 'hr' => 'Hrvatski', 'hu' => 'Magyar', 'in'=>'Bahasa Indonesia', 'it'=>'Italiano',
- 'ja'=>'日本語','ka'=>'ქართული','kr'=>'한 글','mk'=>'Македонски', 'nl'=>'Nederlands', 'nl-be'=>'Nederlands (België)', 'no'=>'Norsk', 'pl'=> 'Polski', 'pt-br'=>'Português (Brasil)', 'pt-pt'=>'Português (Portugal)',
- 'ro'=>'România', 'ru'=>'Русский', 'sk'=> 'Slovenčina', 'sl'=>'Slovensko', 'sr'=>'Srpski', 'sv'=> 'Svenska', 'th'=>'ภาษาไทย',
- 'tr'=>'Türkçe', 'uk'=>'Українська', 'zh'=>'中文 (简体)', 'zh-tw'=>'中文 (繁體)'
-);
-
-// Available styles:
-$config['styleAvailable'] = array('beige','black','grey','Oxygen','Lithium','Sulfur','Cobalt','Mercury','Uranium','Plum','prosilver','subblack2','subSilver','Core','MyBB','vBulletin');
-// Default style:
-$config['styleDefault'] = 'prosilver';
-
-// The encoding used for the XHTML content:
-$config['contentEncoding'] = 'UTF-8';
-// The encoding of the data source, like userNames and channelNames:
-$config['sourceEncoding'] = 'UTF-8';
-// The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null):
-$config['contentType'] = null;
-
-// Session name used to identify the session cookie:
-$config['sessionName'] = 'ajax_chat';
-// Prefix added to every session key:
-$config['sessionKeyPrefix'] = 'ajaxChat';
-// The lifetime of the language, style and setting cookies in days:
-$config['sessionCookieLifeTime'] = 365;
-// The path of the cookies, '/' allows to read the cookies from all directories:
-$config['sessionCookiePath'] = '/';
-// The domain of the cookies, defaults to the hostname of the server if set to null:
-$config['sessionCookieDomain'] = null;
-// If enabled, cookies must be sent over secure (SSL/TLS encrypted) connections:
-$config['sessionCookieSecure'] = null;
-
-// Default channelName used together with the defaultChannelID if no channel with this ID exists:
-$config['defaultChannelName'] = 'Public';
-// ChannelID used when no channel is given:
-$config['defaultChannelID'] = 0;
-// Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null:
-$config['limitChannelList'] = null;
-
-// UserID plus this value are private channels (this is also the max userID and max channelID):
-$config['privateChannelDiff'] = 500000000;
-// UserID plus this value are used for private messages:
-$config['privateMessageDiff'] = 1000000000;
-
-// Enable/Disable private Channels:
-$config['allowPrivateChannels'] = true;
-// Enable/Disable private Messages:
-$config['allowPrivateMessages'] = true;
-
-// Private channels should be distinguished by either a prefix or a suffix or both (no whitespace):
-$config['privateChannelPrefix'] = '[';
-// Private channels should be distinguished by either a prefix or a suffix or both (no whitespace):
-$config['privateChannelSuffix'] = ']';
-
-// If enabled, users will be logged in automatically as guest users (if allowed), if not authenticated:
-$config['forceAutoLogin'] = false;
-
-// Defines if login/logout and channel enter/leave are displayed:
-$config['showChannelMessages'] = true;
-
-// If enabled, the chat will only be accessible for the admin:
-$config['chatClosed'] = false;
-// Defines the timezone offset in seconds (-12*60*60 to 12*60*60) - if null, the server timezone is used:
-$config['timeZoneOffset'] = null;
-// Defines the hour of the day the chat is opened (0 - closingHour):
-$config['openingHour'] = 0;
-// Defines the hour of the day the chat is closed (openingHour - 24):
-$config['closingHour'] = 24;
-// Defines the weekdays the chat is opened (0=Sunday to 6=Saturday):
-$config['openingWeekDays'] = array(0,1,2,3,4,5,6);
-
-// Enable/Disable guest logins:
-$config['allowGuestLogins'] = true;
-// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
-$config['allowGuestWrite'] = true;
-// Allow/Disallow guest users to choose their own userName:
-$config['allowGuestUserName'] = true;
-// Guest users should be distinguished by either a prefix or a suffix or both (no whitespace):
-$config['guestUserPrefix'] = '(';
-// Guest users should be distinguished by either a prefix or a suffix or both (no whitespace):
-$config['guestUserSuffix'] = ')';
-// Guest userIDs may not be lower than this value (and not higher than privateChannelDiff):
-$config['minGuestUserID'] = 400000000;
-
-// Allow/Disallow users to change their userName (Nickname):
-$config['allowNickChange'] = true;
-// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
-$config['changedNickPrefix'] = '(';
-// Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace):
-$config['changedNickSuffix'] = ')';
-
-// Allow/Disallow registered users to delete their own messages:
-$config['allowUserMessageDelete'] = true;
-
-// The userID used for ChatBot messages:
-$config['chatBotID'] = 2147483647;
-// The userName used for ChatBot messages
-$config['chatBotName'] = 'ChatBot';
-
-// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
-$config['inactiveTimeout'] = 2;
-// Interval in minutes to check for inactive users:
-$config['inactiveCheckInterval'] = 5;
-
-// Defines if messages are shown which have been sent before the user entered the channel:
-$config['requestMessagesPriorChannelEnter'] = true;
-// Defines an array of channelIDs (e.g. array(0, 1)) for which the previous setting is always true (will be ignored if set to null):
-$config['requestMessagesPriorChannelEnterList'] = null;
-// Max time difference in hours for messages to display on each request:
-$config['requestMessagesTimeDiff'] = 24;
-// Max number of messages to display on each request:
-$config['requestMessagesLimit'] = 10;
-
-// Max users in chat (does not affect moderators or admins):
-$config['maxUsersLoggedIn'] = 100;
-// Max userName length:
-$config['userNameMaxLength'] = 16;
-// Max messageText length:
-$config['messageTextMaxLength'] = 1040;
-// Defines the max number of messages a user may send per minute:
-$config['maxMessageRate'] = 20;
-
-// Defines the default time in minutes a user gets banned if kicked from a moderator without ban minutes parameter:
-$config['defaultBanTime'] = 5;
-
-// Argument that is given to the handleLogout JavaScript method:
-$config['logoutData'] = './?logout=true';
-
-// If true, checks if the user IP is the same when logged in:
-$config['ipCheck'] = true;
-
-// Defines the max time difference in hours for logs when no period or search condition is given:
-$config['logsRequestMessagesTimeDiff'] = 1;
-// Defines how many logs are returned on each logs request:
-$config['logsRequestMessagesLimit'] = 10;
-
-// Defines the earliest year used for the logs selection:
-$config['logsFirstYear'] = 2007;
-
-// Defines if old messages are purged from the database:
-$config['logsPurgeLogs'] = false;
-// Max time difference in days for old messages before they are purged from the database:
-$config['logsPurgeTimeDiff'] = 365;
-
-// Defines if registered users (including moderators) have access to the logs (admins are always granted access):
-$config['logsUserAccess'] = false;
-// Defines a list of channels (e.g. array(0, 1)) to limit the logs access for registered users, includes all channels the user has access to if set to null:
-$config['logsUserAccessChannelList'] = null;
-
-// Defines if the socket server is enabled:
-$config['socketServerEnabled'] = false;
-// Defines the hostname of the socket server used to connect from client side (the server hostname is used if set to null):
-$config['socketServerHost'] = null;
-// Defines the IP of the socket server used to connect from server side to broadcast update messages:
-$config['socketServerIP'] = '127.0.0.1';
-// Defines the port of the socket server:
-$config['socketServerPort'] = 1935;
-// This ID can be used to distinguish between different chat installations using the same socket server:
-$config['socketServerChatID'] = 0;
-?>
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/custom.php b/library/ajaxchat/chat/lib/custom.php
deleted file mode 100644
index a9d08841b..000000000
--- a/library/ajaxchat/chat/lib/custom.php
+++ /dev/null
@@ -1,11 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/data/channels.php b/library/ajaxchat/chat/lib/data/channels.php
deleted file mode 100644
index 8688e5e7b..000000000
--- a/library/ajaxchat/chat/lib/data/channels.php
+++ /dev/null
@@ -1,16 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/data/users.php b/library/ajaxchat/chat/lib/data/users.php
deleted file mode 100644
index 52ca77e50..000000000
--- a/library/ajaxchat/chat/lib/data/users.php
+++ /dev/null
@@ -1,40 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/ar.php b/library/ajaxchat/chat/lib/lang/ar.php
deleted file mode 100644
index af9c8305e..000000000
--- a/library/ajaxchat/chat/lib/lang/ar.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/bg.php b/library/ajaxchat/chat/lib/lang/bg.php
deleted file mode 100644
index 46d6af163..000000000
--- a/library/ajaxchat/chat/lib/lang/bg.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/ca.php b/library/ajaxchat/chat/lib/lang/ca.php
deleted file mode 100644
index e45c376da..000000000
--- a/library/ajaxchat/chat/lib/lang/ca.php
+++ /dev/null
@@ -1,125 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/cy.php b/library/ajaxchat/chat/lib/lang/cy.php
deleted file mode 100644
index dea446df5..000000000
--- a/library/ajaxchat/chat/lib/lang/cy.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/cz.php b/library/ajaxchat/chat/lib/lang/cz.php
deleted file mode 100644
index cc6868c1e..000000000
--- a/library/ajaxchat/chat/lib/lang/cz.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/da.php b/library/ajaxchat/chat/lib/lang/da.php
deleted file mode 100644
index 55e7eff1b..000000000
--- a/library/ajaxchat/chat/lib/lang/da.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
diff --git a/library/ajaxchat/chat/lib/lang/de.php b/library/ajaxchat/chat/lib/lang/de.php
deleted file mode 100644
index f345d100a..000000000
--- a/library/ajaxchat/chat/lib/lang/de.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/el.php b/library/ajaxchat/chat/lib/lang/el.php
deleted file mode 100644
index 526c31bf9..000000000
--- a/library/ajaxchat/chat/lib/lang/el.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/en.php b/library/ajaxchat/chat/lib/lang/en.php
deleted file mode 100644
index cb9492bde..000000000
--- a/library/ajaxchat/chat/lib/lang/en.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/es.php b/library/ajaxchat/chat/lib/lang/es.php
deleted file mode 100644
index 27b9b7273..000000000
--- a/library/ajaxchat/chat/lib/lang/es.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/et.php b/library/ajaxchat/chat/lib/lang/et.php
deleted file mode 100644
index f1169fe19..000000000
--- a/library/ajaxchat/chat/lib/lang/et.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/fa.php b/library/ajaxchat/chat/lib/lang/fa.php
deleted file mode 100644
index 0dc3cb132..000000000
--- a/library/ajaxchat/chat/lib/lang/fa.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
diff --git a/library/ajaxchat/chat/lib/lang/fi.php b/library/ajaxchat/chat/lib/lang/fi.php
deleted file mode 100644
index 73466b412..000000000
--- a/library/ajaxchat/chat/lib/lang/fi.php
+++ /dev/null
@@ -1,125 +0,0 @@
-
diff --git a/library/ajaxchat/chat/lib/lang/fr.php b/library/ajaxchat/chat/lib/lang/fr.php
deleted file mode 100644
index 52ffaf1a2..000000000
--- a/library/ajaxchat/chat/lib/lang/fr.php
+++ /dev/null
@@ -1,125 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/gl.php b/library/ajaxchat/chat/lib/lang/gl.php
deleted file mode 100644
index 54b8a8ee6..000000000
--- a/library/ajaxchat/chat/lib/lang/gl.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/he.php b/library/ajaxchat/chat/lib/lang/he.php
deleted file mode 100644
index 39fa799d2..000000000
--- a/library/ajaxchat/chat/lib/lang/he.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/hr.php b/library/ajaxchat/chat/lib/lang/hr.php
deleted file mode 100644
index ed0451033..000000000
--- a/library/ajaxchat/chat/lib/lang/hr.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
diff --git a/library/ajaxchat/chat/lib/lang/hu.php b/library/ajaxchat/chat/lib/lang/hu.php
deleted file mode 100644
index 5f2174134..000000000
--- a/library/ajaxchat/chat/lib/lang/hu.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/in.php b/library/ajaxchat/chat/lib/lang/in.php
deleted file mode 100644
index 175cc904b..000000000
--- a/library/ajaxchat/chat/lib/lang/in.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/it.php b/library/ajaxchat/chat/lib/lang/it.php
deleted file mode 100644
index abcd4f9db..000000000
--- a/library/ajaxchat/chat/lib/lang/it.php
+++ /dev/null
@@ -1,125 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/ja.php b/library/ajaxchat/chat/lib/lang/ja.php
deleted file mode 100644
index 075fc4fcb..000000000
--- a/library/ajaxchat/chat/lib/lang/ja.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/ka.php b/library/ajaxchat/chat/lib/lang/ka.php
deleted file mode 100644
index d92d50886..000000000
--- a/library/ajaxchat/chat/lib/lang/ka.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/kr.php b/library/ajaxchat/chat/lib/lang/kr.php
deleted file mode 100644
index 687dd6e30..000000000
--- a/library/ajaxchat/chat/lib/lang/kr.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/mk.php b/library/ajaxchat/chat/lib/lang/mk.php
deleted file mode 100644
index f43bcfb7d..000000000
--- a/library/ajaxchat/chat/lib/lang/mk.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/nl-be.php b/library/ajaxchat/chat/lib/lang/nl-be.php
deleted file mode 100644
index db01b9871..000000000
--- a/library/ajaxchat/chat/lib/lang/nl-be.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/nl.php b/library/ajaxchat/chat/lib/lang/nl.php
deleted file mode 100644
index c7dcc4b38..000000000
--- a/library/ajaxchat/chat/lib/lang/nl.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/no.php b/library/ajaxchat/chat/lib/lang/no.php
deleted file mode 100644
index 52fe4afbe..000000000
--- a/library/ajaxchat/chat/lib/lang/no.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/pl.php b/library/ajaxchat/chat/lib/lang/pl.php
deleted file mode 100644
index 92a1716a6..000000000
--- a/library/ajaxchat/chat/lib/lang/pl.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/pt-br.php b/library/ajaxchat/chat/lib/lang/pt-br.php
deleted file mode 100644
index 034a5fb09..000000000
--- a/library/ajaxchat/chat/lib/lang/pt-br.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/pt-pt.php b/library/ajaxchat/chat/lib/lang/pt-pt.php
deleted file mode 100644
index e3399eb04..000000000
--- a/library/ajaxchat/chat/lib/lang/pt-pt.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/ro.php b/library/ajaxchat/chat/lib/lang/ro.php
deleted file mode 100644
index 8e6d6418f..000000000
--- a/library/ajaxchat/chat/lib/lang/ro.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/ru.php b/library/ajaxchat/chat/lib/lang/ru.php
deleted file mode 100644
index ac86531dc..000000000
--- a/library/ajaxchat/chat/lib/lang/ru.php
+++ /dev/null
@@ -1,125 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/sk.php b/library/ajaxchat/chat/lib/lang/sk.php
deleted file mode 100644
index fae99a785..000000000
--- a/library/ajaxchat/chat/lib/lang/sk.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/sl.php b/library/ajaxchat/chat/lib/lang/sl.php
deleted file mode 100644
index 6e4941532..000000000
--- a/library/ajaxchat/chat/lib/lang/sl.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/sr.php b/library/ajaxchat/chat/lib/lang/sr.php
deleted file mode 100644
index a14ba5512..000000000
--- a/library/ajaxchat/chat/lib/lang/sr.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/sv.php b/library/ajaxchat/chat/lib/lang/sv.php
deleted file mode 100644
index 87f03a0ce..000000000
--- a/library/ajaxchat/chat/lib/lang/sv.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/th.php b/library/ajaxchat/chat/lib/lang/th.php
deleted file mode 100644
index 7ed3b1ef0..000000000
--- a/library/ajaxchat/chat/lib/lang/th.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/tr.php b/library/ajaxchat/chat/lib/lang/tr.php
deleted file mode 100644
index 00f7dfaa6..000000000
--- a/library/ajaxchat/chat/lib/lang/tr.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/uk.php b/library/ajaxchat/chat/lib/lang/uk.php
deleted file mode 100644
index a7d80c16b..000000000
--- a/library/ajaxchat/chat/lib/lang/uk.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/lang/zh-tw.php b/library/ajaxchat/chat/lib/lang/zh-tw.php
deleted file mode 100644
index d39fe6b14..000000000
--- a/library/ajaxchat/chat/lib/lang/zh-tw.php
+++ /dev/null
@@ -1,123 +0,0 @@
-
diff --git a/library/ajaxchat/chat/lib/lang/zh.php b/library/ajaxchat/chat/lib/lang/zh.php
deleted file mode 100644
index 1d18f0bc0..000000000
--- a/library/ajaxchat/chat/lib/lang/zh.php
+++ /dev/null
@@ -1,124 +0,0 @@
-
\ No newline at end of file
diff --git a/library/ajaxchat/chat/lib/template/loggedIn.html b/library/ajaxchat/chat/lib/template/loggedIn.html
deleted file mode 100644
index 16a75ebe9..000000000
--- a/library/ajaxchat/chat/lib/template/loggedIn.html
+++ /dev/null
@@ -1,387 +0,0 @@
-
-
-
-
-
-
- [LANG]title[/LANG]
-
- [STYLE_SHEETS/]
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/library/ajaxchat/chat/license.txt b/library/ajaxchat/chat/license.txt
deleted file mode 100644
index 618f9a318..000000000
--- a/library/ajaxchat/chat/license.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-Modified MIT License (MIT)
-
-Copyright (c) 2013 blueimp.net
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-The above license does not apply to files included in the AJAX Chat project
-which fall under other licenses. Such files are provided with their own
-license text included beside or within the files themselves.
-The presence of this modified MIT license in AJAX Chat does NOT supersede
-the licenses applying to those files. You many NOT redistribute this project
-or included files in a way that conflicts with their respective licenses.
\ No newline at end of file
diff --git a/library/ajaxchat/chat/readme.html b/library/ajaxchat/chat/readme.html
deleted file mode 100644
index 145e188d3..000000000
--- a/library/ajaxchat/chat/readme.html
+++ /dev/null
@@ -1,436 +0,0 @@
-
-
-
-
- AJAX Chat Readme
-
-
-
-
-
-
This is the standalone version of blueimp's AJAX Chat designed to run on its own, without another web application.
-If you want to integrate AJAX Chat with one of the forums we support, go back and choose the right version.
-This version is good for customizing your own integration, or using on its own.
-
-
- AJAX stands for "Asynchronous JavaScript and XML".
- The AJAX Chat client (your browser) uses JavaScript to query the web server for updates.
- Instead of delivering a complete HTML page only updated data is sent in XML format.
- By using JavaScript the chat page can be updated without having to reload the whole page.
- PHP is used to communicate with the database and authenticate users.
-
Download your preferred version of AJAX Chat and unzip the file on your computer.
-
Before You Begin
-
-
- In order to edit PHP files you will need a good text editor. You should not use Windows notepad, wordpad, or Microsoft Word to edit PHP files. These programs will add something called a byte-order-mark (BOM) to the files and this may prevent chat from functioning properly.
- We recommend using Notepad ++ ( http://notepad-plus-plus.org ) for editing all files. It also has the benefit of color-coding your files so you can edit them more easily.
- If you get an error message like "Cannot modify header information - headers already sent" it is likely because you have used one of the above programs to edit files.
-
-
-
-
Configure Database Settings
-
-
- The first and most important thing you need to do is tell AJAX Chat how to connect to your database. This, and all core settings must be located inside the file lib/config.php.
- You need to create this file.
- An example config.php file can be found in lib/config.php.example that shipped with chat.
- Duplicate this file and save it as config.php (or just delete .example from the end of the file name) and then fill out at least the following four fields in the file:
Sufficed to say you need this information. Talk to your hosting provider if you don't know.
-
In most cases, chat will function with only these fields filled out and you can proceed to the next step.
-
-
If your host does not use mysqli you will need to change the connection type field:
- $config['dbConnection']['type'] = null;
- If this is set to "null" it defaults to "mysqli" if existing, else to "mysql". In most cases this field can be left as null.
-
- You can reference an existing database connection link or object by changing:
- $config['dbConnection']['link'] = null;
- If this is set to null, a new database connection is created.
-
-
-
Choose Your Channel Settings
-
-
Edit the file lib/data/channels.php.
- We have provided you with two sample channels, named public and private. You can add your own, or leave it as-is.
- Channels follow the following format:
-
- $channels[channel id] = 'channel name';
- Each channel must have a unique channel id number and a unique name.
- Whitespace in the channel names will be converted to the underscore "_".
-
-
-
Add Your Users
-
-
Edit users in lib/data/users.php.
- Users follow the following format:
-
-
$users[user id] = array();
- $users[user id]['userRole'] = AJAX_CHAT_ROLE;
- $users[user id]['userName'] = 'user name';
- $users[user id]['password'] = 'user password';
- $users[user id]['channels'] = array(allowed channel ids);
- Each user must have a unique user id number and a unique name.
- The first user in the list (user id 0) is used for the guest user settings. All guest users will have access to the channels set for this user and the user role AJAX_CHAT_GUEST.
- Registered users can have the user roles AJAX_CHAT_USER, AJAX_CHAT_MODERATOR or AJAX_CHAT_ADMIN. (this is case sensitive, type it exactly)
- The list of channels a user has access to can be set for each user individually. Channel id's are separated by commas. eg: array(0,1,23); allows channels 0, 1 and 23.
- Whitespace in the user names will be converted to the underscore "_".
-
-
-
Upload to Your Server
-
-
Upload the chat folder to your server somewhere under your document root:
- e.g. http://example.org/path/to/chat/
-
-
Create the Database Tables
-
-
There are two options available to you to create the database. The first, and usually the easiest option, is to run the installation script included with AJAX Chat. Alternatively, you may use a database tool like PHPMyAdmin to manually create the tables.
-
-
To use the installation script, visit the following URL in your browser:
- http://example.org/path/to/chat/install.php
- Where
- "http://example.org/path/to/chat/" is the real URL to your chat directory.
-
To install it manually using PHPMyAdmin or a similar tool, copy the contents of the chat.sql file and run it as a query.
-
-
Either of these methods will create the tables your database needs to store chat messages and other information.
-
-
-
Delete the Installation Script
-
-
Delete the file install.php from the chat directory on your server. You may also delete the file chat.sql.
-
-
-
Congradulation! You Are Winner!
-
-
Yay! You're done! To test your chat, navigate to your chat URL in a browser: http://example.org/path/to/chat/index.php
- You are now free to customize chat to further suit your needs.
-
-
-
-
Configuring and Customizing
-
-
Configuration Files
-
-
AJAX Chat is fully customizable and contains two configuration files:
-
-
lib/config.php: This file contains the core configuration options for chat. Essential options for configuring the database, security, available languages, etc, are found here.
-
js/config.js: This file contains client side settings that change your users' default options in chat. Many of these settings can be changed by users in their options but some (like the refresh rate) cannot.
-
-
Both of these files are well commented with information on what the settings mean.
-
-
-
Customizing the Layout
-
-
The layout of AJAX Chat is fully customizable by using CSS (Cascaded Style Sheets).
- AJAX Chat comes with a predefined set of styles. To add your own style, do the following:
-
-
Add a new CSS file (e.g. mystyle.css) by copying one of the existing styles from the CSS directory.
-
Edit your file (css/mystyle.css) and adjust the CSS settings to your liking.
-
Add the name of your style without file extension to the available styles in lib/config.php:
- // Available styles:
- $config['styleAvailable'] = array('mystyle','beige','black','grey');
- // Default style:
- $config['styleDefault'] = 'mystyle';
-
-
To further customize the layout you can adjust the template files in lib/template/.
-
Make sure you are creating valid XHTML, else you will produce errors in modern browsers.
- This is due to the page content-type served as "application/xhtml+xml".
- Using this content-type improves performance when manipulating the Document Object Model (DOM).
-
If for some reason you cannot create valid XHTML you can force a HTML content-type.
- Just edit lib/config.php and set the following option:
-
$config['contentType'] = 'text/html';
-
-
-
Adjusting the Language Settings
-
-
AJAX Chat comes with two language file directories:
-
-
js/lang/: This directory contains the language files used for the chat messages localization. These are JavaScript files with the extension ".js".
-
lib/lang/: This directory contains the language files used for the template output. These are PHP files with the extension ".php".
-
-
Many languages are already included with the download and you can customize them by editing these files.
- For each language, you need a file in both of these directories, with the language code as file name (such as en.js and en.php)..
- The language code is used following the ISO 639 standards.
-
The files for the english (language code "en") localization are js/lang/en.js and lib/lang/en.php.
-
If you create your own localization, you must put the files in the correct folders and then make two changes to config.php:
-
-
Add the language code (this must match the filename you chose for the language. Remember to use commas correctly to separate multiple language codes):
- $config['langAvailable'] = array('en');
-
Add the language name (this is what users see in the dropdown menu to choose the language):
- $config['langNames'] = array('en'=>'English');
-
-
To avoid errors, you should follow these rules:
-
-
Make sure you encode your localization files in UTF-8 (without Byte-order mark).
-
Don't use HTML entities in your localization files.
-
Don't remove any "%s" inside the JavaScript language files - these are filled with dynamic data.
-
-
-
-
Adding Features
-
-
AJAX Chat is designed with numerous hooks and overrides available to improve core functionality without requiring you to edit the core files.
- With an intermediate understading of PHP and javascript you can modify your chat to suit your needs.
By default, AJAX Chat stores all chat messages in the database.
- To access the logs you have to add the GET parameter view=logs to your chat url (add ?view=logs to the end of the url):
-
e.g. http://example.org/path/to/chat/?view=logs
-
If you are not already logged in, you have to login as administrator to access the logs.
-
The log view enables you to monitor the latest chat messages on all channels.
- It is also possible to view the logs of private rooms and private messages.
- You have the option to filter the logs by date, time and search strings.
Using the AJAX technology alone the chat clients have to permanently pull updates from the server.
- This is due to AJAX being a web technology and HTTP being a stateless protocol.
- Events pushed from server-side need a permanent or long-lasting socket connection between clients and server.
- This requires either a custom HTTP server (called "comet") or another custom socket server.
-
AJAX Chat uses a JavaScript-to-Flash bridge to establish a permanent socket connection from client side.
- The JavaScript-to-Flash bridge requires a Flash plugin >= 9 installed on the user browser.
- Clients without this requirement will fall back to pull the server for updates.
-
This part of the setup is OPTIONAL and meant for experienced users only.
-
Installation
-
-
The socket server coming with AJAX Chat is implemented in Ruby.
- You need to be able to run a Ruby script as a service to run the socket server.
- To be able to start the service, the script files in the socket/ directory have to be executable:
-
$ chmod +x server
- $ chmod +x server.rb
-
"server" is a simple bash script to start and stop a service.
- "server.rb" is the ruby socket server script.
- "server.conf" is a configuration file - each setting is explained with a comment.
-
To start the service, execute the "server" script with the parameter "start":
-
$ ./server start
-
This will create two additional files:
-
"server.pid" contains the process id of the service.
- "server.log" is filled with the socket server log.
-
To monitor the socket server logs, you can use the "tail" command included in most GNU/Linux distributions:
-
$ tail -f server.log
-
By default only errors and start/stop of the server are logged.
- To get more detailed logs configure the log level by editing the configuration file.
-
To stop the service, execute the "server" script with the parameter "stop":
-
$ ./server stop
-
If the socket server is running, you have to enable the following option in lib/config.php:
-
$config['socketServerEnabled'] = true;
-
- This tells the server-side chat script to broadcast chat messages via the socket server.
- Chat clients will establish a permanent connection to the socket server to listen for chat messages.
-
By default only local clients (127.0.0.1,::1) may broadcast messages.
- Clients allowed to broadcast messages may also handle the channel authentication.
- If your socket server is running on another host you should set the broadcast_clients option to the chat server IP.
-
Using the socket server increases response time while improving server performance at the same time.
-
-
-
Flash Permissions
-
-
- Since Flash 9.0.115.0 and all Flash 10 versions, permissions for creating sockets using Flash have changed.
- Now an explicit permission (using xml-syntax) is required for creating socket connections.
- In the current state, socket server won't work with the newest Flash versions.
- You will get a "Flash security error" in the browser.
-
-
- A solution is to use a policy-files server which will listen to connections in port 843 in the server.
- Each time a client tries to connect to the chat, the Flash client will request the policy authorization to the server.
- The policy-files server is downloadable from http://ammonlauritzen.com/FlashPolicyService-09b.zip
- It works with FF3 and IE7 (not yet tested in other browsers).
-
- Please do not email the devs with support questions.
- For further documentation and some examples, check out our github wiki.
- For general support questions use our google group.
- For specific bug reports and a list of pending issues view our github project.
-
-
-
-
Donate
-
-
- Your donations contribute to the growth and development of this project and are always appreciated.
-