Cookies crypt

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
truefriend-cz
Posts: 65
Joined: Jan 08, 2019 2:14 am

Cookies crypt

Post by truefriend-cz » Feb 15, 2019 9:18 pm

Hi. I make changes Mantis PHP code for i want crypting cookies for users (browser).

Any idea how i can crypted Cookies for users? And decrypting if will be back from browser for Mantis.
Where is best place in PHP scripts for adding this feature?

I find gpc_api.php funtions gpc_get_cookie, etc. And i have crypt/decrypt function in custom_functions_api.php and if added require_api( 'custom_function_api.php' );
to gpc_api.php, then no loading my functions for crypt/decrypt.

Any idea?

Thanks
Mantis version: 2.19.0, OS: Windows, PHP: 7.3, Charset (PHP, Database): UTF-8, and: little, bad english

cas
Posts: 669
Joined: Mar 11, 2006 11:08 am
Contact:

Re: Cookies crypt

Post by cas » Feb 16, 2019 12:26 pm

custom_function_api is automatically loaded :mrgreen:

truefriend-cz
Posts: 65
Joined: Jan 08, 2019 2:14 am

Re: Cookies crypt

Post by truefriend-cz » Feb 18, 2019 10:16 pm

Have you tried it yet?
Mantis version: 2.19.0, OS: Windows, PHP: 7.3, Charset (PHP, Database): UTF-8, and: little, bad english

cas
Posts: 669
Joined: Mar 11, 2006 11:08 am
Contact:

Re: Cookies crypt

Post by cas » Feb 19, 2019 1:29 am

Using custom_functions Yes, what you want No since i have No need for this.
If you believe there is a bug, please report it together with steps to reproduce🤔

Post Reply