Fix php notice + update copyright year

This commit is contained in:
Daniel Winzen
2018-04-22 15:02:09 +02:00
parent 36a8727d2f
commit a63901fc76
14 changed files with 389 additions and 385 deletions

View File

@ -1,4 +1,9 @@
Version 1.23.6 - Sep. 1, 2017 Version 1.23.6 - Apr. 22, 2018
Added Czech, Italian and Ukrainian translation
Updated Russian translation
Bugfixes
Version 1.23.5 - Sep. 1, 2017
Added Russian and Bulgarian translation Added Russian and Bulgarian translation
Updated Spanish translation Updated Spanish translation
Bugfixes and optimizations Bugfixes and optimizations

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - Main program * LE CHAT-PHP - a PHP Chat based on LE CHAT - Main program
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -2194,7 +2194,7 @@ function create_session($setup, $nickname, $password){
$U['entry']=$U['lastpost']=time(); $U['entry']=$U['lastpost']=time();
}else{ }else{
add_user_defaults($password); add_user_defaults($password);
check_captcha($_REQUEST['challenge'], $_REQUEST['captcha']); check_captcha(isset($_REQUEST['challenge']) ? $_REQUEST['challenge'] : '', isset($_REQUEST['captcha']) ? $_REQUEST['captcha'] : '');
$ga=(int) get_setting('guestaccess'); $ga=(int) get_setting('guestaccess');
if(!valid_nick($U['nickname'])){ if(!valid_nick($U['nickname'])){
send_error(sprintf($I['invalnick'], get_setting('maxname'), get_setting('nickregex'))); send_error(sprintf($I['invalnick'], get_setting('maxname'), get_setting('nickregex')));
@ -2499,7 +2499,7 @@ function check_member($password){
$stmt->execute([$U['nickname']]); $stmt->execute([$U['nickname']]);
if($temp=$stmt->fetch(PDO::FETCH_ASSOC)){ if($temp=$stmt->fetch(PDO::FETCH_ASSOC)){
if(get_setting('dismemcaptcha')==0){ if(get_setting('dismemcaptcha')==0){
check_captcha($_REQUEST['challenge'], $_REQUEST['captcha']); check_captcha(isset($_REQUEST['challenge']) ? $_REQUEST['challenge'] : '', isset($_REQUEST['captcha']) ? $_REQUEST['captcha'] : '');
} }
if($temp['passhash']===md5(sha1(md5($U['nickname'].$password)))){ if($temp['passhash']===md5(sha1(md5($U['nickname'].$password)))){
// old hashing method, update on the fly // old hashing method, update on the fly
@ -4174,7 +4174,7 @@ function load_lang(){
function load_config(){ function load_config(){
mb_internal_encoding('UTF-8'); mb_internal_encoding('UTF-8');
define('VERSION', '1.23.5'); // Script version define('VERSION', '1.23.6'); // Script version
define('DBVERSION', 41); // Database layout version define('DBVERSION', 41); // 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('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', 'MY_KEY'); // Encryption key for messages define('ENCRYPTKEY', 'MY_KEY'); // Encryption key for messages
@ -4196,4 +4196,3 @@ function load_config(){
define('COOKIENAME', PREFIX . 'chat_session'); // Cookie name storing the session information define('COOKIENAME', PREFIX . 'chat_session'); // Cookie name storing the session information
define('LANG', 'en'); // Default language define('LANG', 'en'); // Default language
} }

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - Bulgarian translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - Bulgarian translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - Czech translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - Czech translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - German translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - German translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - English translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - English translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - Spanish translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - Spanish translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - French translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - French translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - Indonesian translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - Indonesian translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - Italian translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - Italian translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - Russian translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - Russian translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - Ukrainian translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - Ukrainian translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -8,7 +8,7 @@ $file = "<?php
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - $english translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - $english translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -2,7 +2,7 @@
/* /*
* LE CHAT-PHP - a PHP Chat based on LE CHAT - Simplified Chinese translation * LE CHAT-PHP - a PHP Chat based on LE CHAT - Simplified Chinese translation
* *
* Copyright (C) 2015-2017 Daniel Winzen <d@winzen4.de> * Copyright (C) 2015-2018 Daniel Winzen <d@winzen4.de>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by