Subversion Repositories cryptochat

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 daniel-mar 1
<?php
2
 
3
define('X_SALT',                 '<enter something secret here>'); // If you change this, existing chats will become unreadable.
4
define('KEEP_X_SALT_SECRET',     true); // More secure. Only applies to manual_create.php
5
define('CHAT_MUST_EXIST',        true); // If set to false, users can create chat rooms themselves.
6
define('PWD_LIST_ROOMS',         '');   // Password for listing chat rooms
7
define('LIST_CHATS_REQUIRE_PWD', true); // If set to true, you need a password for listing all chat rooms.
8
define('PWD_CREATE_ROOM',        '');   // Password for creating new chat rooms
9
define('REQUIRE_TLS',            true); // If set to true, you can only connect via HTTPS.
10
define('TIMER_1',                2500); // Default reload timer (ms)
11
define('TIMER_2',                1000); // Reload timer (ms) when a new message arrived
12
define('TIMER_KEYCHANGE',        1000); // Timer when the key edit was changed
13
define('TIMER_DEAD',             5000); // Max timeout until AJAX request is seen as failed
14
define('THEME_DARK',             true); // Please set to true if you use a dark theme (important for automatical username coloring)
15
define('USERSTAT_INACTIVE_SECS', 10);   // After how many seconds will the user be removed from the online list?
16
define('DELETE_OLD_USERSTATS',   true); // Delete user stats when the activity is above USERSTAT_INACTIVE_SECS?
17
 
18
// Default cipher suite for sending new messages. Note that messages sent with another cipher suite still will be decrypted using the original algorithm.
19
// ----+-------+----------------------------------------------------------------
20
// Num | Since | Description
21
// ----+-------+----------------------------------------------------------------
22
// 1   | 0.9   | AES Encryption. Salted SHA256 hash, AES encryption.
23
// 2   | 0.9   | AES Encryption. Salted&Cascaded MD5 because of SHA256 compatibility issues with OpenPandora's web browser.
24
define('CFG_CIPHERSUITE',    2);
25
 
26
// CryptoJS
27
// Minimum required version: 3.1.2
28
// Get it here: http://code.google.com/p/crypto-js/
29
define('DEP_DIR_CRYPTOJS', 'dependencies/cryptojs');
30
 
31
// SAJAX
32
// Minimum required version: 0.13
33
// Get it here: https://github.com/AJenbo/Sajax/
34
define('DEP_DIR_SAJAX', 'dependencies/sajax');
35
 
36
// JSONWrapper
37
// Get it here: http://www.boutell.com/scripts/jsonwrapper.html
38
define('DEP_DIR_JSONWRAPPER', 'dependencies/jsonwrapper');
39
 
40
// CRC32 JS PHP
41
// Get it here: https://github.com/wbond/crc32-js-php
42
define('DEP_DIR_CRC32', 'dependencies/crc32-js-php');