set_filenames( array('identification'=>'identification.tpl') ); $template->assign( array( 'U_REDIRECT' => $redirect_to, 'F_LOGIN_ACTION' => get_root_url().'identification.php', 'authorize_remembering' => $conf['authorize_remembering'], )); if (!$conf['gallery_locked'] && $conf['allow_user_registration']) { $template->assign('U_REGISTER', get_root_url().'register.php' ); } if (!$conf['gallery_locked']) { $template->assign('U_LOST_PASSWORD', get_root_url().'password.php' ); } // include menubar $themeconf = $template->get_template_vars('themeconf'); if (!$conf['gallery_locked'] && (!isset($themeconf['hide_menu_on']) OR !in_array('theIdentificationPage', $themeconf['hide_menu_on']))) { include( PHPWG_ROOT_PATH.'include/menubar.inc.php'); } //Load language if cookie is set from login/register/password pages if (isset($_COOKIE['lang']) and $user['language'] != $_COOKIE['lang']) { if (!array_key_exists($_COOKIE['lang'], get_languages())) { fatal_error('[Hacking attempt] the input parameter "'.$_COOKIE['lang'].'" is not valid'); } $user['language'] = $_COOKIE['lang']; load_language('common.lang', '', array('language'=>$user['language'])); } //Get list of languages foreach (get_languages() as $language_code => $language_name) { $language_options[$language_code] = $language_name; } $template->assign(array( 'language_options' => $language_options, 'current_language' => $user['language'] )); //Get link to doc if ('fr' == substr($user['language'], 0, 2)) { $help_link = "https://doc-fr.piwigo.org/les-utilisateurs/se-connecter-a-piwigo"; } else { $help_link = "https://doc.piwigo.org/managing-users/log-in-to-piwigo"; } $template->assign('HELP_LINK', $help_link); //----------------------------------------------------------- html code display include(PHPWG_ROOT_PATH.'include/page_header.php'); trigger_notify('loc_end_identification'); flush_page_messages(); $template->pparse('identification'); include(PHPWG_ROOT_PATH.'include/page_tail.php'); ?>