Commit b3271f1944e652dcc97c39d9c7446205d7a834b5
1 parent
6ceb00a015
Exists in
master
test
Showing 4 changed files with 243 additions and 0 deletions Inline Diff
cfg/tvoeavto/config.php
| File was created | 1 | <?php | |
| 2 | /* | ||
| 3 | * @package AJAX_Chat | ||
| 4 | * @author Sebastian Tschan | ||
| 5 | * @copyright (c) Sebastian Tschan | ||
| 6 | * @license Modified MIT License | ||
| 7 | * @link https://blueimp.net/ajax/ | ||
| 8 | */ | ||
| 9 | |||
| 10 | // Define AJAX Chat user roles: | ||
| 11 | define('AJAX_CHAT_CHATBOT', 4); | ||
| 12 | define('AJAX_CHAT_ADMIN', 3); | ||
| 13 | define('AJAX_CHAT_MODERATOR', 2); | ||
| 14 | define('AJAX_CHAT_USER', 1); | ||
| 15 | define('AJAX_CHAT_GUEST', 0); | ||
| 16 | |||
| 17 | // AJAX Chat config parameters: | ||
| 18 | $config = array(); | ||
| 19 | |||
| 20 | // Database connection values: | ||
| 21 | $config['dbConnection'] = array(); | ||
| 22 | // Database hostname: | ||
| 23 | $config['dbConnection']['host'] = 'localhost'; | ||
| 24 | // Database username: | ||
| 25 | $config['dbConnection']['user'] = 'vipss'; | ||
| 26 | // Database password: | ||
| 27 | $config['dbConnection']['pass'] = 'd893Dhdn'; | ||
| 28 | // Database name: | ||
| 29 | $config['dbConnection']['name'] = 'vipss'; | ||
| 30 | // Database type: | ||
| 31 | $config['dbConnection']['type'] = null; | ||
| 32 | // Database link: | ||
| 33 | $config['dbConnection']['link'] = null; | ||
| 34 | |||
| 35 | // Database table names: | ||
| 36 | $config['dbTableNames'] = array(); | ||
| 37 | $config['dbTableNames']['online'] = 'ajax_chat_online'; | ||
| 38 | $config['dbTableNames']['messages'] = 'ajax_chat_messages'; | ||
| 39 | $config['dbTableNames']['bans'] = 'ajax_chat_bans'; | ||
| 40 | $config['dbTableNames']['invitations'] = 'ajax_chat_invitations'; | ||
| 41 | |||
| 42 | // Available languages: | ||
| 43 | $config['langAvailable'] = array( | ||
| 44 | 'ar','bg','ca','cy','cz','da','de','el','en','es','et','fa','fi','fr','gl','he','hr','hu','in','it','ja','ka','kr','mk','nl','nl-be','no','pl','pt-br','pt-pt','ro','ru','sk','sl','sr','sv','th','tr','uk','zh','zh-tw' | ||
| 45 | ); | ||
| 46 | // Default language: | ||
| 47 | $config['langDefault'] = 'ru'; | ||
| 48 | // Language names (each languge code in available languages must have a display name assigned here): | ||
| 49 | $config['langNames'] = array( | ||
| 50 | 'ar'=>'عربي', 'bg'=>'Български', 'ca'=>'Català', 'cy'=>'Cymraeg', 'cz'=>'Česky', 'da'=>'Dansk', 'de'=>'Deutsch', 'el'=>'Ελληνικα', 'en'=>'English', | ||
| 51 | 'es'=>'Español', 'et'=>'Eesti', 'fa'=>'فارسی', 'fi'=>'Suomi', 'fr'=>'Français', 'gl'=>'Galego', 'he'=>'עברית', 'hr' => 'Hrvatski', 'hu' => 'Magyar', 'in'=>'Bahasa Indonesia', 'it'=>'Italiano', | ||
| 52 | 'ja'=>'日本語','ka'=>'ქართული','kr'=>'한 글','mk'=>'Македонски', 'nl'=>'Nederlands', 'nl-be'=>'Nederlands (België)', 'no'=>'Norsk', 'pl'=> 'Polski', 'pt-br'=>'Português (Brasil)', 'pt-pt'=>'Português (Portugal)', | ||
| 53 | 'ro'=>'România', 'ru'=>'Русский', 'sk'=> 'Slovenčina', 'sl'=>'Slovensko', 'sr'=>'Srpski', 'sv'=> 'Svenska', 'th'=>'ภาษาไทย', | ||
| 54 | 'tr'=>'Türkçe', 'uk'=>'Українська', 'zh'=>'中文 (简体)', 'zh-tw'=>'中文 (繁體)' | ||
| 55 | ); | ||
| 56 | |||
| 57 | // Available styles: | ||
| 58 | $config['styleAvailable'] = array('beige','black','grey','Oxygen','Lithium','Sulfur','Cobalt','Mercury','Uranium','Plum','prosilver','subblack2','subSilver','Core','MyBB','vBulletin'); | ||
| 59 | // Default style: | ||
| 60 | $config['styleDefault'] = 'prosilver'; | ||
| 61 | |||
| 62 | // The encoding used for the XHTML content: | ||
| 63 | $config['contentEncoding'] = 'UTF-8'; | ||
| 64 | // The encoding of the data source, like userNames and channelNames: | ||
| 65 | $config['sourceEncoding'] = 'UTF-8'; | ||
| 66 | // The content-type of the XHTML page (e.g. "text/html", will be set dependent on browser capabilities if set to null): | ||
| 67 | $config['contentType'] = null; | ||
| 68 | |||
| 69 | // Session name used to identify the session cookie: | ||
| 70 | $config['sessionName'] = 'ajax_chat'; | ||
| 71 | // Prefix added to every session key: | ||
| 72 | $config['sessionKeyPrefix'] = 'ajaxChat'; | ||
| 73 | // The lifetime of the language, style and setting cookies in days: | ||
| 74 | $config['sessionCookieLifeTime'] = 365; | ||
| 75 | // The path of the cookies, '/' allows to read the cookies from all directories: | ||
| 76 | $config['sessionCookiePath'] = '/'; | ||
| 77 | // The domain of the cookies, defaults to the hostname of the server if set to null: | ||
| 78 | $config['sessionCookieDomain'] = null; | ||
| 79 | // If enabled, cookies must be sent over secure (SSL/TLS encrypted) connections: | ||
| 80 | $config['sessionCookieSecure'] = null; | ||
| 81 | |||
| 82 | // Default channelName used together with the defaultChannelID if no channel with this ID exists: | ||
| 83 | $config['defaultChannelName'] = 'Public'; | ||
| 84 | // ChannelID used when no channel is given: | ||
| 85 | $config['defaultChannelID'] = 0; | ||
| 86 | // Defines an array of channelIDs (e.g. array(0, 1)) to limit the number of available channels, will be ignored if set to null: | ||
| 87 | $config['limitChannelList'] = null; | ||
| 88 | |||
| 89 | // UserID plus this value are private channels (this is also the max userID and max channelID): | ||
| 90 | $config['privateChannelDiff'] = 500000000; | ||
| 91 | // UserID plus this value are used for private messages: | ||
| 92 | $config['privateMessageDiff'] = 1000000000; | ||
| 93 | |||
| 94 | // Enable/Disable private Channels: | ||
| 95 | $config['allowPrivateChannels'] = true; | ||
| 96 | // Enable/Disable private Messages: | ||
| 97 | $config['allowPrivateMessages'] = true; | ||
| 98 | |||
| 99 | // Private channels should be distinguished by either a prefix or a suffix or both (no whitespace): | ||
| 100 | $config['privateChannelPrefix'] = '['; | ||
| 101 | // Private channels should be distinguished by either a prefix or a suffix or both (no whitespace): | ||
| 102 | $config['privateChannelSuffix'] = ']'; | ||
| 103 | |||
| 104 | // If enabled, users will be logged in automatically as guest users (if allowed), if not authenticated: | ||
| 105 | $config['forceAutoLogin'] = false; | ||
| 106 | |||
| 107 | // Defines if login/logout and channel enter/leave are displayed: | ||
| 108 | $config['showChannelMessages'] = true; | ||
| 109 | |||
| 110 | // If enabled, the chat will only be accessible for the admin: | ||
| 111 | $config['chatClosed'] = false; | ||
| 112 | // Defines the timezone offset in seconds (-12*60*60 to 12*60*60) - if null, the server timezone is used: | ||
| 113 | $config['timeZoneOffset'] = null; | ||
| 114 | // Defines the hour of the day the chat is opened (0 - closingHour): | ||
| 115 | $config['openingHour'] = 0; | ||
| 116 | // Defines the hour of the day the chat is closed (openingHour - 24): | ||
| 117 | $config['closingHour'] = 24; | ||
| 118 | // Defines the weekdays the chat is opened (0=Sunday to 6=Saturday): | ||
| 119 | $config['openingWeekDays'] = array(0,1,2,3,4,5,6); | ||
| 120 | |||
| 121 | // Enable/Disable guest logins: | ||
| 122 | $config['allowGuestLogins'] = false; | ||
| 123 | // Enable/Disable write access for guest users - if disabled, guest users may not write messages: | ||
| 124 | $config['allowGuestWrite'] = true; | ||
| 125 | // Allow/Disallow guest users to choose their own userName: | ||
| 126 | $config['allowGuestUserName'] = true; | ||
| 127 | // Guest users should be distinguished by either a prefix or a suffix or both (no whitespace): | ||
| 128 | $config['guestUserPrefix'] = '('; | ||
| 129 | // Guest users should be distinguished by either a prefix or a suffix or both (no whitespace): | ||
| 130 | $config['guestUserSuffix'] = ')'; | ||
| 131 | // Guest userIDs may not be lower than this value (and not higher than privateChannelDiff): | ||
| 132 | $config['minGuestUserID'] = 400000000; | ||
| 133 | |||
| 134 | // Allow/Disallow users to change their userName (Nickname): | ||
| 135 | $config['allowNickChange'] = true; | ||
| 136 | // Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace): | ||
| 137 | $config['changedNickPrefix'] = '('; | ||
| 138 | // Changed userNames should be distinguished by either a prefix or a suffix or both (no whitespace): | ||
| 139 | $config['changedNickSuffix'] = ')'; | ||
| 140 | |||
| 141 | // Allow/Disallow registered users to delete their own messages: | ||
| 142 | $config['allowUserMessageDelete'] = true; | ||
| 143 | |||
| 144 | // The userID used for ChatBot messages: | ||
| 145 | $config['chatBotID'] = 2147483647; | ||
| 146 | // The userName used for ChatBot messages | ||
| 147 | $config['chatBotName'] = 'ChatBot'; | ||
| 148 | |||
| 149 | // Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes: | ||
| 150 | $config['inactiveTimeout'] = 2; | ||
| 151 | // Interval in minutes to check for inactive users: | ||
| 152 | $config['inactiveCheckInterval'] = 5; | ||
| 153 | |||
| 154 | // Defines if messages are shown which have been sent before the user entered the channel: | ||
| 155 | $config['requestMessagesPriorChannelEnter'] = true; | ||
| 156 | // 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): | ||
| 157 | $config['requestMessagesPriorChannelEnterList'] = null; | ||
| 158 | // Max time difference in hours for messages to display on each request: | ||
| 159 | $config['requestMessagesTimeDiff'] = 24; | ||
| 160 | // Max number of messages to display on each request: | ||
| 161 | $config['requestMessagesLimit'] = 10; | ||
| 162 | |||
| 163 | // Max users in chat (does not affect moderators or admins): | ||
| 164 | $config['maxUsersLoggedIn'] = 100; | ||
| 165 | // Max userName length: | ||
| 166 | $config['userNameMaxLength'] = 16; | ||
| 167 | // Max messageText length: | ||
| 168 | $config['messageTextMaxLength'] = 1040; | ||
| 169 | // Defines the max number of messages a user may send per minute: | ||
| 170 | $config['maxMessageRate'] = 20; | ||
| 171 | |||
| 172 | // Defines the default time in minutes a user gets banned if kicked from a moderator without ban minutes parameter: | ||
| 173 | $config['defaultBanTime'] = 5; | ||
| 174 | |||
| 175 | // Argument that is given to the handleLogout JavaScript method: | ||
| 176 | $config['logoutData'] = './?logout=true'; | ||
| 177 | |||
| 178 | // If true, checks if the user IP is the same when logged in: | ||
| 179 | $config['ipCheck'] = true; | ||
| 180 | |||
| 181 | // Defines the max time difference in hours for logs when no period or search condition is given: | ||
| 182 | $config['logsRequestMessagesTimeDiff'] = 1; | ||
| 183 | // Defines how many logs are returned on each logs request: | ||
| 184 | $config['logsRequestMessagesLimit'] = 10; | ||
| 185 | |||
| 186 | // Defines the earliest year used for the logs selection: | ||
| 187 | $config['logsFirstYear'] = 2007; | ||
| 188 | |||
| 189 | // Defines if old messages are purged from the database: | ||
| 190 | $config['logsPurgeLogs'] = false; | ||
| 191 | // Max time difference in days for old messages before they are purged from the database: | ||
| 192 | $config['logsPurgeTimeDiff'] = 365; | ||
| 193 | |||
| 194 | // Defines if registered users (including moderators) have access to the logs (admins are always granted access): | ||
| 195 | $config['logsUserAccess'] = false; | ||
| 196 | // 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: | ||
| 197 | $config['logsUserAccessChannelList'] = null; | ||
| 198 | |||
| 199 | // Defines if the socket server is enabled: | ||
| 200 | $config['socketServerEnabled'] = false; | ||
| 201 | // Defines the hostname of the socket server used to connect from client side (the server hostname is used if set to null): | ||
| 202 | $config['socketServerHost'] = null; | ||
| 203 | // Defines the IP of the socket server used to connect from server side to broadcast update messages: | ||
| 204 | $config['socketServerIP'] = '127.0.0.1'; | ||
| 205 | // Defines the port of the socket server: | ||
| 206 | $config['socketServerPort'] = 1935; | ||
| 207 | // This ID can be used to distinguish between different chat installations using the same socket server: | ||
| 208 | $config['socketServerChatID'] = 0; | ||
| 209 | ?> |
cfg/tvoeavto/k2adminpage.php
| File was created | 1 | <?php | |
| 2 | |||
| 3 | $this->admincomp =array( | ||
| 4 | 'k2newshopadmin' => 'k2newshopadmin', | ||
| 5 | //'k2importexport' => 'k2importexport', | ||
| 6 | |||
| 7 | 'k2magadmin' => 'k2magadmin', | ||
| 8 | 'k2siteadmin' => 'k2siteadmin', | ||
| 9 | 'k2adminfunc' => 'k2adminfunc', | ||
| 10 | |||
| 11 | |||
| 12 | 'k2test' => 'k2test', | ||
| 13 | |||
| 14 | /*'k2constructor' => 'k2constructor'*/ | ||
| 15 | ); |
cfg/tvoeavto/k2cfg.php
| File was created | 1 | <?php | |
| 2 | |||
| 3 | $this->selfurl=false; | ||
| 4 | $this->kurs_eur=27.1; // Курс евро | ||
| 5 | $this->kurd_us=25; // Курс доллара | ||
| 6 | $this->curtemplate='tvoeavto'; // edocs | ||
| 7 | $this->lng='ua'; | ||
| 8 | $this->lngadmin='ua'; | ||
| 9 | $this->root_url='/?p=main'; | ||
| 10 | |||
| 11 | $this->debug=1; // Отладочный режим | ||
| 12 | $this->packs = ['k2', 'edoc', 'shop', 'newshop']; | ||
| 13 | //$this->packs = ['k2', 'edoc', 'shop', 'transfer', 'vdocs', 'willdo', 'dp2pub']; | ||
| 14 | //$this->packs = ['k2', 'edoc', 'shop','transfer','cards','kartin','booster','vdocs', 'newshop','designer','constructor', 'k2board']; | ||
| 15 | |||
| 16 | $this->proto='http'; | ||
| 17 |
cfg/tvoeavto/k2struct.php
| File was created | 1 | <?php | |
| 2 | |||
| 3 | $this->packs = ['k2','dp2']; |