First off, thanks for this great MOD, the mod v1.0.3 works great in my localhost testing forum under 3.0.7pl1.
However, I found that when I use 'ACP logout' or 'admin logout' the URL connection is still staying with HTTPS, so I replaced the code of 'U_LOGOUT' and 'U_ADM_LOGOUT' with the code below,
- Code: Select all
// 'U_LOGOUT' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=logout'),
// 'U_ADM_LOGOUT' => append_sid("{$phpbb_admin_path}index.$phpEx", 'action=admlogout'),
'U_LOGOUT' => append_sid(str_replace('https://', 'http://', generate_board_url()) . "/ucp.$phpEx", 'mode=logout'),
'U_ADM_LOGOUT' => append_sid(str_replace('https://', 'http://', generate_board_url()) . "/{$phpbb_admin_path}index.$phpEx", 'action=admlogout'),
After then I use another local forum built with 3.0.7pl1 without any mod to make a comparing test and I found the behavior of 'ACP logout' of my code is incorrect a bit. As after 'ACP logout', I can click the link of 'Administration Control Panel' at the page bottom to get into ACP panel without another password input for self-authorization.
Since I am just an amateur programmer of C/C++ and my PHP capability is still very poor, please advice the correct code for the above change.
Btw, once after using 'Force https ACP', if the web server can not handle SSL request then besides stare at 4o4 page, can you please suggest a way to handle it? I would like to try to code that solution as my PHP practicing homework myself.
Thanks in advance for any help,
Hunt Chang

