今天给大家分享帝国后台CMS模版,废话不多说,看代码:—-博客园老牛大讲堂

备注:内容不完善,后期补充。

 

1、帝国后台登陆模版

一、替换目录—-博客园老牛大讲堂

  解答:帝国后台upload-》e-》admin-》login.php,(直接把代码全部替换)

 

二、源代码—-博客园老牛大讲堂

<?php
define('EmpireCMSAdmin','1');
define('EmpireCMSAPage','login');
define('EmpireCMSNFPage','1');
require("../class/connect.php");
require("../class/functions.php");
//风格
$loginadminstyleid=EcmsReturnAdminStyle();
//变量处理
$empirecmskey1='';
$empirecmskey2='';
$empirecmskey3='';
$empirecmskey4='';
$empirecmskey5='';
if($_POST['empirecmskey1']&&$_POST['empirecmskey2']&&$_POST['empirecmskey3']&&$_POST['empirecmskey4']&&$_POST['empirecmskey5'])
{
    $empirecmskey1=RepPostVar($_POST['empirecmskey1']);
    $empirecmskey2=RepPostVar($_POST['empirecmskey2']);
    $empirecmskey3=RepPostVar($_POST['empirecmskey3']);
    $empirecmskey4=RepPostVar($_POST['empirecmskey4']);
    $empirecmskey5=RepPostVar($_POST['empirecmskey5']);
    $ecertkeyrndstr=$empirecmskey1.'#!#'.$empirecmskey2.'#!#'.$empirecmskey3.'#!#'.$empirecmskey4.'#!#'.$empirecmskey5;
    esetcookie('ecertkeyrnds',$ecertkeyrndstr,0);
}
elseif(getcvar('ecertkeyrnds'))
{
    $certr=explode('#!#',getcvar('ecertkeyrnds'));
    $empirecmskey1=RepPostVar($certr[0]);
    $empirecmskey2=RepPostVar($certr[1]);
    $empirecmskey3=RepPostVar($certr[2]);
    $empirecmskey4=RepPostVar($certr[3]);
    $empirecmskey5=RepPostVar($certr[4]);
}
else
{}


?>

<!DOCTYPE html>
<html>

    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>欢迎进入柘城博客网后台</title>
        <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
        <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
        <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        <!--[if lt IE 9]>
             <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">  
            <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
            <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        <![endif]-->

        <script>
            if(self != top) {
                parent.location.href = 'index.php';
            }

            function CheckLogin(obj) {
                if(obj.username.value == '') {
                    alert('请输入用户名');
                    obj.username.focus();
                    return false;
                }
                if(obj.password.value == '') {
                    alert('请输入登录密码');
                    obj.password.focus();
                    return false;
                }
                if(obj.loginauth != null) {
                    if(obj.loginauth.value == '') {
                        alert('请输入认证码');
                        obj.loginauth.focus();
                        return false;
                    }
                }
                if(obj.key != null) {
                    if(obj.key.value == '') {
                        alert('请输入验证码');
                        obj.key.focus();
                        return false;
                    }
                }

                return true;
            }

            function edoshowkey(showid, vname) {
                document.getElementById(showid).innerHTML = '<img src="ShowKey.php?v=' + vname + '&t=' + Math.random() + '" name="' + vname + 'KeyImg" id="' + vname + 'KeyImg" align="bottom" onclick=edoshowkey("' + showid + '","' + vname + '") title="看不清楚,点击刷新">';
            }
        </script>

    </head>

    <body style="background: url('http://images.cnblogs.com/likecs_com/laonniudajiangtang/1230019/o_body-bg.png');">
        <!--头部-->
        <nav class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example-navbar-collapse">
                     <span class="sr-only"></span>
                     <span class="icon-bar"></span>
                     <span class="icon-bar"></span>
                     <span class="icon-bar"></span>
                  </button>
                <a class="navbar-brand" href="#">欢迎进入柘城博客网后台</a>
            </div>
            <div class="collapse navbar-collapse" id="example-navbar-collapse">
                <ul class="nav navbar-nav pull-right">
                    <li>
                        <a href="#" data-toggle="modal" data-target="#about-modal">开发者选项</a>
                    </li>
                </ul>
            </div>
        </nav>
        <!--头部-->

        <!--登录页面-->
        <div style=" width: 480px;margin: 15% auto;">
            <!--导航条-->
            <nav class="navbar navbar-inverse" style="background-color: #3E434C">
                <div class="navbar-header">
                    <a class="navbar-brand " href="javascript:volid(0);" style="cursor:default;color: #FFFFFF;">管理员登陆窗口 </a>
                </div>
            </nav>
            <!--面板-->
            <form name="login" id="login" method="post" action="ecmsadmin.php" onsubmit="return CheckLogin(document.login);" autocomplete="off">


                <!--隐藏的部分 -->
                <div class="hidden">
                    <input type="hidden" name="enews" value="login">
                    <input name="eposttime" type="hidden" id="eposttime" value="0">

                    <tr>
                        <td height="27">&nbsp; &nbsp;问: </td>
                        <td colspan="2">
                            <select name="equestion" id="equestion" onchange="if(this.options[this.selectedIndex].value==0){showanswer.style.display='none';}else{showanswer.style.display='';}">
                                <option value="0">无安全提问</option>
                                <option value="1">母亲的名字</option>
                                <option value="2">爷爷的名字</option>
                                <option value="3">父亲出生的城市</option>
                                <option value="4">您其中一位老师的名字</option>
                                <option value="5">您个人计算机的型号</option>
                                <option value="6">您最喜欢的餐馆名称</option>
                                <option value="7">驾驶执照的最后四位数字</option>
                            </select>
                        </td>
                    </tr>
                    <tr id="showanswer">
                        <td height="27">&nbsp; &nbsp;案: </td>
                        <td colspan="2"><input name="eanswer" type="text" id="eanswer" class="b-form2" size="22"></td>
                    </tr>
                    <?php
          if(empty($public_r['adminloginkey']))
          {
          ?>
                        <tr>
                            <td height="27">验证码: </td>
                            <td width="83"> <input name="key" type="text" class="b-form2" size="9">
                            </td>
                            <td width="97" id="checkkeyshowkey">
                                <a href="#EmpireCMS" onclick="edoshowkey('checkkeyshowkey','checkkey');" title="点击显示验证码">点击显示</a>
                            </td>
                        </tr>
                        <?php
          }
          ?>
                </div>
                <!--隐藏的部分 -->



                <div class="panel panel-default">
                    <div class="panel-body">
                        <div class="control-group">
                            <p class="navbar-text">用户名:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
                            <input class="form-control" name="username" type="text" id="username" placeholder="请输入用户名" style="padding-left: 20px;width:90%;margin-left: 20px;">
                        </div>
                        <div class="control-group">
                            <p class="navbar-text">密码:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 12px;" id="mima"></span></p>
                            <input class="form-control" type="password" name="password" id="password" placeholder="请输入密码" style="padding-left: 20px;width:90%;margin-left: 20px;">
                        </div>

                        <?php
                              if($ecms_config['esafe']['loginauth'])
                            {
                        ?>
                            <div class="control-group">
                                <p class="navbar-text">认证码:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: red;font-size: 12px;"></span></p>
                                <input class="form-control" name="loginauth" type="password" id="loginauth" placeholder="请输入认证码" style="padding-left: 20px;width:90%;margin-left: 20px;">
                            </div>
                            <?php
                            }
                        ?>

                            <div id="remember-me" class="pull-left" style="margin-top: 20px;font-size: 13px;">
                                <input type="checkbox" name="remember" checked="checked" />
                                <label id="remember-label">
                            记住密码
                        </label>
                            </div>

                            <div class="pull-right " style="margin-top: 20px;font-size: 13px;margin-right: 20px;">
                                <button type="submit" class="btn btn-warning btn-large">
                            登录
                        </button>
                            </div>
                    </div>
                </div>
            </form>

            <div class="text-center">
                <p>版权归属:
                    <a href="http://www.zhechengboke.com">柘城博客网</a>
                </p>
                <p>意见反馈:2631745603@qq.com</p>
            </div>
        </div>

        <!-- 关于 -->
        <div class="modal fade" id="about-modal" tabindex="1" role="dialog" aria-labelledby="modal-label" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span
                            aria-hidden="true">&times;</span><span class="sr-only"></span></button>
                        <h4 class="modal-title" id="modal-label">开发者介绍</h4>
                    </div>
                    <div class="modal-body">
                        <p>
                            &nbsp;&nbsp;&nbsp;开发版本:2018.6.5<br><br> &nbsp;&nbsp;&nbsp;版权归属:
                            <a href="http://www.zhechengboke.com">http://www.zhechengboke.com</a>
                            <br><br> &nbsp;&nbsp;&nbsp;意见反馈:2631745603@qq.com
                            <br><br> &nbsp;&nbsp;&nbsp;备案号:来源:博客园老牛大讲堂
                            <br><br>
                        </p>
                    </div>
                    <div class="modal-body">
                        <p></p>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">了解了</button>
                    </div>
                </div>
            </div>
        </div>

    </body>

</html>

登陆模版源代码

 

三、效果图:—-博客园老牛大讲堂

版权声明:本文为laonniudajiangtang原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/laonniudajiangtang/p/9138650.html