
<aside class="lyear-layout-sidebar">
      
      <!-- logo -->
      <div id="logo" class="sidebar-header">
        <a href="./"><img src="../media/<?php echo $C_logo?>" title="<?php echo $C_title?>" alt="<?php echo $C_title?>" /></a>
      </div>
      <div class="lyear-layout-sidebar-scroll"> 
        
        <nav class="sidebar-main">
          <ul class="nav nav-drawer">
            <li class="nav-item "> <a href="index.php"><i class="mdi mdi-home"></i> 后台首页</a> </li>
            <li class="nav-item nav-item-has-subnav">
              <a href="javascript:void(0)"><i class="mdi mdi-settings"></i> 系统设置</a>
              <ul class="nav nav-subnav">
                <li> <a href="config.php">基本设置</a> </li>
                <li> <a href="pay.php">接口设置</a> </li>
                <li> <a href="domain.php">自定义域名</a> </li>
              </ul>
            </li>
            <li class="nav-item nav-item-has-subnav">
              <a href="javascript:void(0)"><i class="mdi mdi-web"></i> 短网址管理</a>
              <ul class="nav nav-subnav">
                <li> <a href="url.php">短网址管理</a> </li>
              </ul>
            </li>
            <li class="nav-item nav-item-has-subnav">
              <a href="javascript:void(0)"><i class="mdi mdi-brightness-auto"></i> 广告管理</a>
              <ul class="nav nav-subnav">
                <li> <a href="ad.php">广告管理</a> </li>
              </ul>
            </li>
            <li class="nav-item nav-item-has-subnav">
              <a href="javascript:void(0)"><i class="mdi mdi-cart"></i> 交易管理</a>
              <ul class="nav nav-subnav">
                <li> <a href="orders.php">订单管理</a> </li>
              </ul>
            </li>
            <li class="nav-item nav-item-has-subnav">
              <a href="javascript:void(0)"><i class="mdi mdi-link-variant"></i> 友链管理</a>
              <ul class="nav nav-subnav">
                <li> <a href="link.php">友链管理</a> </li>
              </ul>
            </li>
            <li class="nav-item"> <a href="update.php"><i class="mdi mdi-update"></i> 检测更新</a> </li>
          </ul>
        </nav>
      </div>
    </aside>

    <!--End 左侧导航-->
    
    <!--头部信息-->
    <header class="lyear-layout-header">
      
      <nav class="navbar navbar-default">
        <div class="topbar">
          
          <div class="topbar-left">
            <div class="lyear-aside-toggler">
              <span class="lyear-toggler-bar"></span>
              <span class="lyear-toggler-bar"></span>
              <span class="lyear-toggler-bar"></span>
            </div>
            <?php if(!checkauth()){?>
  <div class="input-group">
                    <input type="text" class="form-control" placeholder="授权码" id="authcode">
                    <span class="input-group-btn">
                        <button class="btn btn-info" type="button" onclick="auth()"><i class="mdi mdi-check"></i></button>
                    </span>
                </div>
<?php }?>
          </div>
          
          <ul class="topbar-right">
            <li class="dropdown dropdown-profile">
              <a href="javascript:void(0)" data-toggle="dropdown">
                <img class="img-avatar img-avatar-48 m-r-10" src="images/admin.png" alt="管理员" />
                <span>管理员 <span class="caret"></span></span>
              </a>
              <ul class="dropdown-menu dropdown-menu-right">
                <li> <a href="../" target="_blank"><i class="mdi mdi-account"></i> 前往首页</a> </li>
                <li> <a href="login.php?action=unlogin"><i class="mdi mdi-logout-variant"></i> 退出登录</a> </li>
              </ul>
            </li>
            <!--切换主题配色-->
        
            <!--切换主题配色-->
          </ul>
          
        </div>
      </nav>
      
    </header>
<div id="largeModal" class="modal fade">
  <div class="modal-dialog modal-lg" role="document" >
    <div class="modal-content " style="width: 1000px">
      <div class="modal-header pd-x-20">
        <h6 class="modal-title">授权信息</h6>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <div class="row" >
                <div class="col-lg-6">
                  <div class="card">
                    <div class="card-body ">
                      <div class="pti-header bg-primary">
                        <h2> 免费</h2>
                        <div class="ptih-title">普通用户</div>
                      </div>

                      <div class="pti-body border">
                        <div class="ptib-item">
                          短网址1000条
                        </div>
                        <div class="ptib-item">
                          暂无技术支持
                        </div>

                        <div class="ptib-item">
                          保留版权文字
                        </div>
                      </div>

                      
                    </div>
                  </div>
                </div>
                
                <div class="col-lg-6">
                  <div class="card">
                    <div class="card-body">
                      <div class="pti-header bg-cyan">
                        <h2>￥99 <small>/ 永久</small></h2>
                        <div class="ptih-title">永久授权</div>
                      </div>

                      <div class="pti-body border">
                        <div class="ptib-item">
                          短网址条数不限制
                        </div>
                        <div class="ptib-item">
                          提供技术支持
                        </div>

                        <div class="ptib-item">
                          去除版权文字
                        </div>
                      </div>
                      
                    </div>
                  </div>
                </div>
              </div>

      购买授权码联系QQ：450245869 微信：shanling1706</div>
    </div>
  </div><!-- modal-dialog -->
</div><!-- modal -->
    <!--End 头部信息-->
    <script type="text/javascript">
      function auth(){
        $.post("api.php?action=get_auth", {
            authcode: $("#authcode").val(),
        },
        function(data) {
            if(data == "success") {
                alert("授权成功！");
                location.reload();
            }else{
              $('#largeModal').modal('show');
            }
        });
      }
    </script>