@keyframes login_move { from {margin-left: 10%;margin-right: 10%;opacity:0.1} to {margin-left: 5%;margin-right: 5%;opacity:1} } div.container_login{ animation-name: login_move; animation-duration: 3s; } '; } if (!isset($login_screen)) { $login_screen = 'login'; } switch ($login_screen) { case 'login': $logo_link = 'http://www.pandorafms.com'; $logo_title = __('Go to %s Website', get_product_name()); break; case 'logout': case 'double_auth': case 'error_install': case 'error_authconfig': case 'error_dbconfig': case 'error_noconfig': case 'error_perms': case 'homedir_bad_defined': case 'homeurl_bad_defined': case 'disabled_access_node': $logo_link = 'index.php'; $logo_title = __('Go to Login'); break; default: error_reporting(0); $error_info = ui_get_error($login_screen); $logo_link = 'index.php'; $logo_title = __('Refresh'); break; } $splash_title = __('Splash login'); $url = '?login=1'; // These variables come from index.php if (!empty($page) && !empty($sec)) { foreach ($_GET as $key => $value) { $url .= '&'.safe_url_extraclean($key).'='.safe_url_extraclean($value); } } $login_body_style = ''; $login_body_class = ''; // Overrides the default background with the defined by the user. if (!empty($config['login_background'])) { $background_url = 'images/backgrounds/'.$config['login_background']; $login_body_style = "style=\"background-size: 100% 100% !important;background:linear-gradient(74deg, rgba(2, 2, 2, 0.333) 36%, transparent 36%), url('".$background_url."');\""; } // Support for Internet Explorer and Microsoft Edge browsers if (strpos($_SERVER['HTTP_USER_AGENT'], 'Trident') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'Edge') !== false) { $login_body_class = "class='login_body_trident'"; } // Get alternative custom in case of db fail. $custom_fields = [ 'custom_logo_login', 'custom_splash_login', 'custom_title1_login', 'custom_title2_login', 'rb_product_name', 'custom_docs_url', 'custom_support_url', ]; foreach ($custom_fields as $field) { if (!isset($config[$field])) { if (isset($config[$field.'_alt'])) { $config[$field] = $config[$field.'_alt']; $custom_conf_enabled = true; } } } // Get the custom icons. $docs_logo = ui_get_docs_logo(); $support_logo = ui_get_support_logo(); echo '
DELETE FROM tconfig WHERE token = "auth";', get_product_name()); } break; case 'error_emptyconfig': $title = __('Empty configuration table'); $message = __( 'Cannot load configuration variables from database. Please check your database setup in the include/config.php file.