Seditio Source
Root |
./othercms/elxis_5.3_atlas_rev2452/templates/system/offline.php
<?php
/**
* @version        $Id: offline.php 2150 2019-03-10 19:40:40Z IOS $
* @package        Elxis
* @subpackage    Templates / System
* @copyright    Copyright (c) 2006-2019 Elxis CMS (http://www.elxis.org). All rights reserved.
* @license        Elxis Public License ( http://www.elxis.org/elxis-public-license.html )
* @author        Elxis Team ( http://www.elxis.org )
* @description     Elxis CMS is free software. Read the license for copyright notices and details
*/

defined('_ELXIS_') or die ('Direct access to this location is not allowed');

$rtlsfx = ($eLang->getinfo('DIR') == 'rtl') ? '-rtl' : '';
if (
preg_match('#(\.png)$#i', $page->favicon)) {
   
$favrel = 'rel="icon" type="image/png"';
} else {
   
$favrel = 'rel="shortcut icon"';
}

echo
$page->doctype."\n";
?>
<html<?php echo $page->htmlattributes; ?>>
<head>
    <base href="<?php echo $elxis->getConfig('URL'); ?>/" />
    <meta http-equiv="content-type" content="<?php echo $page->contenttype; ?>; charset=utf-8" />
    <meta name="generator" content="Elxis - Open Source CMS" />
    <meta name="distribution" content="global" />
    <meta name="robots" content="index, follow" />
    <title><?php echo $page->title.' - '.$elxis->getConfig('SITENAME'); ?></title>
    <meta name="description" content="<?php echo $eLang->get('WEBSITE_OFFLINE'); ?>" />
    <link <?php echo $favrel; ?> href="<?php echo $page->favicon; ?>" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="HandheldFriendly" content="true" />
    <link rel="stylesheet" href="<?php echo $elxis->secureBase().'/templates/system/css/standard'.$rtlsfx.'.css'; ?>" type="text/css" media="all" />
    <link rel="stylesheet" href="<?php echo $elxis->secureBase().'/templates/system/css/exit'.$rtlsfx.'.css'; ?>" type="text/css" media="all" />
    <script>
    function exit5SwitchLang() {
        if (!document.getElementById('exitlngfm')) { return; }
        var fmObj = document.getElementById('exitlngfm');
        var selObj = document.getElementById('exit5_select_lang');
        var admURL = selObj.options[selObj.selectedIndex].getAttribute('data-act');
        window.location.href = admURL;
    }
    </script>
</head>
<body>
    <div class="exit5_pgwrapin">
        <div class="exit5_titlebox">
            <h1><?php echo $page->title; ?></h1>
            <div class="exit5_title_desc"><?php echo $page->msgtitle; ?></div>
        </div>
<?php
       
if ($elxis->getConfig('ONLINE') == 2) {
           
$msg = $page->message.' '.$eLang->get('OWN_ADMIN_LOGIN');
        } else if (
$elxis->getConfig('ONLINE') == 3) {
           
$msg = $page->message.' '.$eLang->get('OWN_USER_LOGIN');
        } else {
           
$msg = $page->message;
        }
        echo
'<div class="exit5_message">'.$msg."</div>\n";
        if (
$page->loginerror != '') {
            echo
'<div class="exit5_message_error">'.$page->loginerror."</div>\n";
        }

        if ((
$elxis->getConfig('ONLINE') == 2) || ($elxis->getConfig('ONLINE') == 3)) {
?>
       <form name="fmelxislogin" id="fmelxislogin" method="post" action="<?php echo $page->loginaction; ?>" class="elx5_form" autocomplete="off">
            <div class="elx5_dspace">
                <label for="uname" class="exit5_label"><?php echo $eLang->get('USERNAME'); ?></label>
                <input type="text" name="uname" id="uname" value="" dir="ltr" class="exit5_smpgtext" placeholder="<?php echo $eLang->get('USERNAME'); ?>" required="required" autocomplete="off" />
            </div>
            <div class="elx5_dspace">
                <label for="pword" class="exit5_label"><?php echo $eLang->get('PASSWORD'); ?></label>
                <input type="password" name="pword" id="pword" value="" dir="ltr" class="exit5_smpgtext" placeholder="<?php echo $eLang->get('PASSWORD'); ?>" required="required" autocomplete="off" />
            </div>
            <input type="hidden" name="remember" dir="ltr" value="1" />
            <input type="hidden" name="auth_method" dir="ltr" value="elxis" />
            <div class="elx5_dspace">
                <button type="submit" name="loginbtn" id="loginbtn" class="exit5_btn"><?php echo $eLang->get('LOGIN'); ?></button>
            </div>
        </form>
<?php
       
}

        if ((
$elxis->getConfig('SITELANGS') == '') || (strpos($elxis->getConfig('SITELANGS'), ',') !== false)) {
           
$infolangs = $eLang->getSiteLangs(true);
           
$flagsdir = $elxis->secureBase().'/includes/libraries/elxis/language/flags32/';
           
$curlng = $eLang->currentLang();
            echo
'<form name="exitlngfm" id="exitlngfm" method="get" action="" class="elx5_form">'."\n";
            echo
'<div class="exit5_lang_wrap">'."\n";
            echo
'<div class="exit5_downpick">'.$eLang->get('CHOOSE_LANG').'</div>';
            if (isset(
$infolangs[$curlng])) {
                echo
'<img src="'.$flagsdir.$curlng.'.png" alt="'.$infolangs[$curlng]['NAME'].' - '.$infolangs[$curlng]['NAME_ENG'].'" title="'.$infolangs[$curlng]['NAME'].' - '.$infolangs[$curlng]['NAME_ENG'].'" /> ';
                echo
'<div class="exit5_lang_selwrap">'."\n";
            }
            echo
'<select name="lang" class="exit5_select_lang" id="exit5_select_lang" onchange="exit5SwitchLang();">'."\n";
            foreach (
$infolangs as $lng => $info) {
               
$selected = ($curlng == $lng) ? ' selected="selected"' : '';
               
$link = $elxis->makeURL($lng, '', true);
                echo
'<option value="'.$lng.'"'.$selected.' data-act="'.$link.'">'.$info['NAME'].' - '.$info['NAME_ENG']."</option>\n";
            }
            echo
"</select>\n";
            if (isset(
$infolangs[$curlng])) { echo "</div>\n"; }
            echo
"</div>\n";
            echo
"</form>\n";
        }
?>
   </div><!-- exit5_pgwrapin -->
    <div class="exit5_pgfooter">
        <div class="exit5_pgfooter_copy"><a href="<?php echo $page->sitelink; ?>" title="<?php echo $elxis->getConfig('SITENAME'); ?>"><?php echo $elxis->getConfig('SITENAME'); ?></a> &copy; <?php echo date('Y'); ?></div>
        <a href="http://www.elxis.org" title="Elxis Open Source CMS" class="exit5_powerby">Powered by Elxis CMS &#169; 2006-<?php echo date('Y'); ?></a>
    </div>
</body>
</html>