removed old code

This commit is contained in:
gtbu 2025-08-01 12:06:13 +02:00
parent 2b21aaa6f9
commit bdd07d6cb2
3 changed files with 2 additions and 8 deletions

View file

@ -22,7 +22,7 @@ gp_defined('gpdebugjs', gpdebug);
gp_defined('gp_cookie_cmd', true);
gp_defined('gp_browser_auth', false);
gp_defined('gp_require_encrypt', false);
gp_defined('gp_nonce_algo', 'legacy'); // Since 5.0
gp_defined('gp_nonce_algo', 'sha512'); // Since 5.0
gp_defined('gp_chmod_file', 0666);
gp_defined('gp_chmod_dir', 0755);
gp_defined('gp_index_filenames', true);

View file

@ -166,7 +166,7 @@ html {
*
*/
#ckeditor_area {
padding: 3px 3px 0 3px;
padding: 1px 1px 0 1px;
overflow: auto;
box-sizing: border-box;
}

View file

@ -86,12 +86,6 @@ class Nonce{
$nonce_tick = ceil(time() / $factor) - $tick_offset;
$nonce = $nonce . $config['gpuniq'] . $nonce_tick;
//nonces before version 5.0
if( gp_nonce_algo === 'legacy' ){
return substr( md5($nonce), -12, 10);
}
return \gp\tool::hash($nonce,gp_nonce_algo, 2);
}
}