diff options
-rw-r--r-- | chat/lib/class/AJAXChat.php | 29 | ||||
-rw-r--r-- | chat/lib/class/AJAXChatDataBase.php | 7 | ||||
-rw-r--r-- | chat/lib/class/AJAXChatHTTPHeader.php | 7 | ||||
-rw-r--r-- | chat/lib/class/AJAXChatLanguage.php | 11 | ||||
-rw-r--r-- | chat/lib/class/AJAXChatMySQLDataBase.php | 9 | ||||
-rw-r--r-- | chat/lib/class/AJAXChatMySQLiDataBase.php | 9 | ||||
-rw-r--r-- | chat/lib/class/AJAXChatTemplate.php | 18 | ||||
-rw-r--r-- | chat/lib/class/CustomAJAXChatShoutBox.php | 2 |
8 files changed, 51 insertions, 41 deletions
diff --git a/chat/lib/class/AJAXChat.php b/chat/lib/class/AJAXChat.php index dcd12b4..381987e 100644 --- a/chat/lib/class/AJAXChat.php +++ b/chat/lib/class/AJAXChat.php @@ -10,19 +10,22 @@ // Ajax Chat backend logic: class AJAXChat { - var $db; - var $_config; - var $_requestVars; - var $_infoMessages; - var $_channels; - var $_allChannels; - var $_view; - var $_lang; - var $_invitations; - var $_customVars; - var $_sessionNew; - var $_onlineUsersData; - var $_bannedUsersData; + public + $db; + + protected + $_config, + $_requestVars, + $_infoMessages, + $_channels, + $_allChannels, + $_view, + $_lang, + $_invitations, + $_customVars, + $_sessionNew, + $_onlineUsersData, + $_bannedUsersData; function __construct() { $this->initialize(); diff --git a/chat/lib/class/AJAXChatDataBase.php b/chat/lib/class/AJAXChatDataBase.php index 3b4d07f..df50b86 100644 --- a/chat/lib/class/AJAXChatDataBase.php +++ b/chat/lib/class/AJAXChatDataBase.php @@ -10,7 +10,8 @@ // Class to initialize the DataBase connection: class AJAXChatDataBase { - var $_db; + protected + $_db; function __construct(&$dbConnectionConfig) { switch($dbConnectionConfig['type']) { @@ -67,9 +68,9 @@ class AJAXChatDataBase { // Method to retrieve the current DataBase name: function getName() { - return $this->_db->getName(); + return $this->_db->getName(); //If your database has hyphens ( - ) in it, try using this instead: - //return '`'.$this->_db->getName().'`'; + //return '`'.$this->_db->getName().'`'; } // Method to retrieve the last inserted ID: diff --git a/chat/lib/class/AJAXChatHTTPHeader.php b/chat/lib/class/AJAXChatHTTPHeader.php index e488367..56552e4 100644 --- a/chat/lib/class/AJAXChatHTTPHeader.php +++ b/chat/lib/class/AJAXChatHTTPHeader.php @@ -10,9 +10,10 @@ // Class to manage HTTP header class AJAXChatHTTPHeader { - var $_contentType; - var $_constant; - var $_noCache; + protected + $_contentType, + $_constant, + $_noCache; function __construct($encoding='UTF-8', $contentType=null, $noCache=true) { if($contentType) { diff --git a/chat/lib/class/AJAXChatLanguage.php b/chat/lib/class/AJAXChatLanguage.php index 7369025..94b29e1 100644 --- a/chat/lib/class/AJAXChatLanguage.php +++ b/chat/lib/class/AJAXChatLanguage.php @@ -9,11 +9,12 @@ class AJAXChatLanguage { - var $_regExpAcceptLangCode; - var $_availableLangCodes; - var $_defaultLangCode; - var $_strictMode; - var $_langCode; + protected + $_regExpAcceptLangCode, + $_availableLangCodes, + $_defaultLangCode, + $_strictMode, + $_langCode; function __construct($availableLangCodes, $defaultLangCode, $langCode=null, $strictMode=false) { $this->_regExpAcceptLangCode = '/^([a-z]{1,8}(?:-[a-z]{1,8})*)(?:;\s*q=(0(?:\.[0-9]{1,3})?|1(?:\.0{1,3})?))?$/i'; diff --git a/chat/lib/class/AJAXChatMySQLDataBase.php b/chat/lib/class/AJAXChatMySQLDataBase.php index c6cf098..2524dec 100644 --- a/chat/lib/class/AJAXChatMySQLDataBase.php +++ b/chat/lib/class/AJAXChatMySQLDataBase.php @@ -10,10 +10,11 @@ // Class to initialize the MySQL DataBase connection: class AJAXChatDataBaseMySQL { - var $_connectionID; - var $_errno = 0; - var $_error = ''; - var $_dbName; + protected + $_connectionID, + $_errno = 0, + $_error = '', + $_dbName; function __construct(&$dbConnectionConfig) { $this->_connectionID = $dbConnectionConfig['link']; diff --git a/chat/lib/class/AJAXChatMySQLiDataBase.php b/chat/lib/class/AJAXChatMySQLiDataBase.php index bd3db34..53dd053 100644 --- a/chat/lib/class/AJAXChatMySQLiDataBase.php +++ b/chat/lib/class/AJAXChatMySQLiDataBase.php @@ -10,10 +10,11 @@ // Class to initialize the MySQL DataBase connection: class AJAXChatDataBaseMySQLi { - var $_connectionID; - var $_errno = 0; - var $_error = ''; - var $_dbName; + protected + $_connectionID, + $_errno = 0, + $_error = '', + $_dbName; function __construct(&$dbConnectionConfig) { $this->_connectionID = $dbConnectionConfig['link']; diff --git a/chat/lib/class/AJAXChatTemplate.php b/chat/lib/class/AJAXChatTemplate.php index 839cbe5..6209919 100644 --- a/chat/lib/class/AJAXChatTemplate.php +++ b/chat/lib/class/AJAXChatTemplate.php @@ -10,14 +10,16 @@ // Class to handle HTML templates class AJAXChatTemplate { - var $ajaxChat; - var $_regExpTemplateTags; - var $_templateFile; - var $_contentType; - var $_content; - var $_parsedContent; - - // Constructor: + public + $ajaxChat; + + protected + $_regExpTemplateTags, + $_templateFile, + $_contentType, + $_content, + $_parsedContent; + function __construct(&$ajaxChat, $templateFile, $contentType=null) { $this->ajaxChat = $ajaxChat; $this->_regExpTemplateTags = '/\[(\w+?)(?:(?:\/)|(?:\](.+?)\[\/\1))\]/s'; diff --git a/chat/lib/class/CustomAJAXChatShoutBox.php b/chat/lib/class/CustomAJAXChatShoutBox.php index c545032..0b47370 100644 --- a/chat/lib/class/CustomAJAXChatShoutBox.php +++ b/chat/lib/class/CustomAJAXChatShoutBox.php @@ -19,6 +19,6 @@ class CustomAJAXChatShoutBox extends CustomAJAXChat { // Return parsed template content: return $template->getParsedContent(); - } + } } |