Merge branch 'master' of git://github.com/DanWin/le-chat-php
This commit is contained in:
11
chat.php
11
chat.php
@ -1092,7 +1092,7 @@ function send_admin(string $arg){
|
||||
if($member[2]==0){
|
||||
echo ' (!)';
|
||||
}elseif($member[2]==2){
|
||||
echo ' (G)';
|
||||
echo ' (SG)';
|
||||
}elseif($member[2]==3){
|
||||
}elseif($member[2]==5){
|
||||
echo ' (M)';
|
||||
@ -1165,8 +1165,10 @@ function send_sessions(){
|
||||
foreach($lines as $temp){
|
||||
if($temp['status']==0){
|
||||
$s=' (K)';
|
||||
}elseif($temp['status']<=2){
|
||||
}elseif($temp['status']<=1){
|
||||
$s=' (G)';
|
||||
}elseif($temp['status']==2){
|
||||
$s=' (SG)';
|
||||
}elseif($temp['status']==3){
|
||||
$s='';
|
||||
}elseif($temp['status']==5){
|
||||
@ -4166,6 +4168,9 @@ function update_db(){
|
||||
if($dbversion<43){
|
||||
$db->exec('INSERT IGNORE INTO ' . PREFIX . "settings (setting, value) VALUES ('metadescription', '$I[defaultmetadescription]');");
|
||||
}
|
||||
if($dbversion<44){
|
||||
$db->exec('INSERT INTO ' . PREFIX . "settings (setting,value) VALUES ('publicnotes', '0');");
|
||||
}
|
||||
update_setting('dbversion', DBVERSION);
|
||||
if($msgencrypted!==MSGENCRYPTED){
|
||||
if(!extension_loaded('sodium')){
|
||||
@ -4359,7 +4364,7 @@ function load_lang(){
|
||||
function load_config(){
|
||||
mb_internal_encoding('UTF-8');
|
||||
define('VERSION', '1.24.1'); // Script version
|
||||
define('DBVERSION', 43); // Database layout version
|
||||
define('DBVERSION', 44); // Database layout version
|
||||
define('MSGENCRYPTED', false); // Store messages encrypted in the database to prevent other database users from reading them - true/false - visit the setup page after editing!
|
||||
define('ENCRYPTKEY_PASS', 'MY_SECRET_KEY'); // Recommended length: 32. Encryption key for messages
|
||||
define('AES_IV_PASS', '012345678912'); // Recommended length: 12. AES Encryption IV
|
||||
|
Reference in New Issue
Block a user