Bug #0002219: Compatibilité PHP 8.2 , 8.1 , 8.0

This commit is contained in:
sparkyx 2023-01-30 23:27:57 +01:00
parent 7893d2395f
commit 89368f334f
4 changed files with 47 additions and 24 deletions

View file

@ -86,3 +86,6 @@ define ("DEBUGNOALYSS",0);
//
// Audit everything
// define ("AUDIT_ENABLE",true);
//
// display a captcha
// define ("NOALYSS_CAPTCHA",true);

View file

@ -1469,7 +1469,7 @@ function remove_divide_zero($p_formula)
* @brief Create randomly a string
* @param int $p_length length of the generate string
*/
function generate_random_string($car)
function generate_random_string($p_length)
{
$string="";
$chaine="abcdefghijklmnpqrstuvwxyABCDEFGHIJKLMNPQRSTUVWXY0123456789*/+-=";

View file

@ -257,6 +257,8 @@ function display_file_config($p_array,$from_setup=1,$p_os=1)
print ("// Uncomment and define if you want to Name of the sender of the email \r\n");
print ("// if you activate the possibility to reinitialize password by email\r\n");
print ("// define('ADMIN_WEB', 'www-data@localhost');\r\n");
print ("// Define a random session key if you work with different version of NOALYSS\r\n");
printf ("define ('SESSION_KEY','%s')",generate_random_string(10)) ;
}
/*!\brief create the config file