Example #1
0
<?php

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) PHP-Fusion Inc
| https://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: language_panel.php
| Author: Frederick MC Chan (Hien)
| Author: Joakim Falk (Domi)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) {
    die("Access Denied");
}
if (!preg_match('/administration/i', $_SERVER['PHP_SELF']) && count($enabled_languages) > 1) {
    lang_switcher();
}
Example #2
0
    echo "</div>\n";
    if (preg_match('/administration/i', $_SERVER['PHP_SELF'])) {
        closesidex();
    } else {
        closeside();
    }
} else {
    //in visitor
    if (!preg_match('/login.php/i', FUSION_SELF)) {
        $action_url = FUSION_SELF . (FUSION_QUERY ? "?" . FUSION_QUERY : "");
        if (isset($_GET['redirect']) && strstr($_GET['redirect'], "/")) {
            $action_url = cleanurl(urldecode($_GET['redirect']));
        }
        openside($locale['global_100']);
        echo "<h5><strong>" . $locale['WWOLD_003'] . "</strong></h5>";
        echo lang_switcher();
        echo "<div class='m-t-10'>\n";
        //echo "<form name='loginform' method='post' action='".$action_url."'>\n";
        echo openform('loginform', 'loginform', 'post', $action_url, array('downtime' => 10));
        echo form_text($locale['global_101'], 'user_name', 'user_name', '', array('placeholder' => $locale['global_101'], 'required' => 1));
        echo form_text($locale['global_102'], 'user_pass', 'user_pass', '', array('placeholder' => $locale['global_102'], 'password' => 1, 'required' => 1));
        echo "<label><input type='checkbox' name='remember_me' value='y' title='" . $locale['global_103'] . "'/> " . $locale['global_103'] . "</label>\n";
        echo "<div>\n";
        echo form_button($locale['global_104'], 'login', 'login', '', array('class' => 'm-t-10 m-b-20 btn btn-primary'));
        echo "</div>\n";
        echo closeform();
        //echo "<input type='submit' name='login' value='".$locale['global_104']."' class='button' /><br />\n";
        //echo "</form>\n<br />\n";
        if ($settings['enable_registration']) {
            echo $locale['global_105'] . "<br /><br />\n";
        }