Интересная проверка авторизации на PHP. Мне кажется некоторый дупликат проверок. 😚
1 2 3 4 5 6 7 8 9 |
if (isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset( $HTTP_POST_VARS['logout']) || isset($HTTP_GET_VARS['logout'])) { if ((isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login'])) && (!$userdata ['session_logged_in'] || isset($HTTP_POST_VARS['admin']))) { $username = isset($HTTP_POST_VARS['username']) ? phpbb_clean_username($HTTP_POST_VARS ['username']) : ''; $password = isset($HTTP_POST_VARS['password']) ? $HTTP_POST_VARS['password'] : ''; } } |