|
@@ -5,139 +5,147 @@ namespace app\index;
|
|
|
|
|
|
class domain extends BaseUser
|
|
class domain extends BaseUser
|
|
{
|
|
{
|
|
- function initialize()
|
|
|
|
- {
|
|
|
|
- parent::initialize();
|
|
|
|
- }
|
|
|
|
- function index()
|
|
|
|
- {
|
|
|
|
- $_var_0 = db("app_domain")->where("uid", $this->userid)->order("id desc")->select();
|
|
|
|
- ?> <!DOCTYPE html>
|
|
|
|
|
|
+ function initialize()
|
|
|
|
+ {
|
|
|
|
+ parent::initialize();
|
|
|
|
+ }
|
|
|
|
+ function index()
|
|
|
|
+ {
|
|
|
|
+ $_var_0 = db("app_domain")->where("uid", $this->userid)->order("id desc")->select();
|
|
|
|
+?>
|
|
|
|
+ <!DOCTYPE html>
|
|
<html lang="zh-cn">
|
|
<html lang="zh-cn">
|
|
|
|
+
|
|
<head>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta charset="utf-8">
|
|
- <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"/>
|
|
|
|
- <meta name="keywords" content="<?php echo IN_KEYWORDS;?>"/>
|
|
|
|
- <meta name="description" content="<?php echo IN_DESCRIPTION;?>"/>
|
|
|
|
- <title>自定义域名设置 - <?php echo IN_NAME;?> - 免费应用内测托管平台|iOS应用Beta测试分发|Android应用内测分发</title>
|
|
|
|
- <?php
|
|
|
|
- $this->static_();
|
|
|
|
- ?> </head>
|
|
|
|
|
|
+ <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0" />
|
|
|
|
+ <meta name="keywords" content="<?php echo IN_KEYWORDS; ?>" />
|
|
|
|
+ <meta name="description" content="<?php echo IN_DESCRIPTION; ?>" />
|
|
|
|
+ <title>自定义域名设置 - <?php echo IN_NAME; ?> - 免费应用内测托管平台|iOS应用Beta测试分发|Android应用内测分发</title>
|
|
|
|
+ <?php
|
|
|
|
+ $this->static_();
|
|
|
|
+ ?>
|
|
|
|
+ </head>
|
|
|
|
+
|
|
<body>
|
|
<body>
|
|
- <?php
|
|
|
|
- $this->header();
|
|
|
|
- ?> <link rel="stylesheet" href="/static/pack/font-awesome-4.7.0/css/font-awesome.css"/>
|
|
|
|
- <script src="/static/index/js/jquery.form.js"></script>
|
|
|
|
- <div class="release-app-wrap">
|
|
|
|
- <div class="container">
|
|
|
|
- <div class="release-app2">
|
|
|
|
- <div class="crumbs">
|
|
|
|
- <a href="/index/apps">我的应用</a>
|
|
|
|
- <span>/</span>
|
|
|
|
- <a href="/index/apps">应用列表</a>
|
|
|
|
- <span>/</span>
|
|
|
|
- 自定义域名
|
|
|
|
- </div>
|
|
|
|
- <div class="row clearfix">
|
|
|
|
- <div class="col-sm-2">
|
|
|
|
- <aside class="aside-left">
|
|
|
|
- <ul>
|
|
|
|
- <li class="<?php echo ($this->module == 'publish' || $this->module == 'publish_update') ? 'active' : '' ?>">
|
|
|
|
- <a href="/index/publish/<?php echo $this->action ?>"> <span class="iconfont icon-upload1"></span>上传应用</a>
|
|
|
|
- </li>
|
|
|
|
-
|
|
|
|
- <li class="<?php echo $this->module == 'apps' ? 'active' : '' ?>">
|
|
|
|
- <a href="/index/apps/<?php echo $this->action ?>"><span class="iconfont icon-41"></span>应用列表</a>
|
|
|
|
- </li>
|
|
|
|
- <li class="<?php echo $this->module == 'domain' ? 'active' : '' ?>">
|
|
|
|
- <a href="/index/domain/<?php echo $this->action ?>"><span class="iconfont icon-liulanqi"></span>绑定域名</a>
|
|
|
|
- </li>
|
|
|
|
- <li class="<?php echo $this->module == 'combine' ? 'active' : '' ?>">
|
|
|
|
- <a href="/index/combine/<?php echo $this->action ?>"><span class="iconfont icon-erweima"></span>外部链接合并</a>
|
|
|
|
- </li>
|
|
|
|
- <li class="<?php echo $this->module == 'jilu' ? 'active' : '' ?>">
|
|
|
|
- <a href="/index/jilu/<?php echo $this->action ?>"><span class="iconfont icon-jilu"></span>合并记录</a>
|
|
|
|
- </li>
|
|
|
|
- </ul>
|
|
|
|
- </aside>
|
|
|
|
- </div>
|
|
|
|
- <div class="col-sm-10">
|
|
|
|
- <div class="aside-right">
|
|
|
|
- <div class="app-details app-details2">
|
|
|
|
- <div class="details-top clearfix">
|
|
|
|
- <b>自定义域名</b>
|
|
|
|
- <div>
|
|
|
|
- 设置提示:首先将您的域名别名解析(cname)到 <?php echo IN_CNAME ? IN_CNAME : $_SERVER["HTTP_HOST"];?> ,然后下方添加域名。<br>苹果应用需支持https访问,请去第三方平台申请cdn加速配置证书。
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <hr/>
|
|
|
|
- <div class="download-details">
|
|
|
|
|
|
+ <?php
|
|
|
|
+ $this->header();
|
|
|
|
+ ?>
|
|
|
|
+ <link rel="stylesheet" href="/static/pack/font-awesome-4.7.0/css/font-awesome.css" />
|
|
|
|
+ <script src="/static/index/js/jquery.form.js"></script>
|
|
|
|
+ <div class="release-app-wrap">
|
|
|
|
+ <div class="container">
|
|
|
|
+ <div class="release-app2">
|
|
|
|
+ <div class="crumbs">
|
|
|
|
+ <a href="/index/apps">我的应用</a>
|
|
|
|
+ <span>/</span>
|
|
|
|
+ <a href="/index/apps">应用列表</a>
|
|
|
|
+ <span>/</span>
|
|
|
|
+ 自定义域名
|
|
|
|
+ </div>
|
|
|
|
+ <div class="row clearfix">
|
|
|
|
+ <div class="col-sm-2">
|
|
|
|
+ <aside class="aside-left">
|
|
|
|
+ <ul>
|
|
|
|
+ <li class="<?php echo ($this->module == 'publish' || $this->module == 'publish_update') ? 'active' : '' ?>">
|
|
|
|
+ <a href="/index/publish/<?php echo $this->action ?>"> <span class="iconfont icon-upload1"></span>上传应用</a>
|
|
|
|
+ </li>
|
|
|
|
|
|
- <div class="d-top clearfix">
|
|
|
|
- <div class="fl">
|
|
|
|
- <input class="form-control" type="text" id="urlpre" value=""
|
|
|
|
- placeholder="输入您的域名">
|
|
|
|
|
|
+ <li class="<?php echo $this->module == 'apps' ? 'active' : '' ?>">
|
|
|
|
+ <a href="/index/apps/<?php echo $this->action ?>"><span class="iconfont icon-41"></span>应用列表</a>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="<?php echo $this->module == 'domain' ? 'active' : '' ?>">
|
|
|
|
+ <a href="/index/domain/<?php echo $this->action ?>"><span class="iconfont icon-liulanqi"></span>绑定域名</a>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="<?php echo $this->module == 'combine' ? 'active' : '' ?>">
|
|
|
|
+ <a href="/index/combine/<?php echo $this->action ?>"><span class="iconfont icon-erweima"></span>外部链接合并</a>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="<?php echo $this->module == 'jilu' ? 'active' : '' ?>">
|
|
|
|
+ <a href="/index/jilu/<?php echo $this->action ?>"><span class="iconfont icon-jilu"></span>合并记录</a>
|
|
|
|
+ </li>
|
|
|
|
+ </ul>
|
|
|
|
+ </aside>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-sm-10">
|
|
|
|
+ <div class="aside-right">
|
|
|
|
+ <div class="app-details app-details2">
|
|
|
|
+ <div class="details-top clearfix" style="padding: 39px 30px;">
|
|
|
|
+ <b class="f16-w500-c151515">自定义域名</b>
|
|
|
|
+ <div class="f16-w500-c151515">
|
|
|
|
+ 设置提示:首先将您的域名别名解析(cname)到 <?php echo IN_CNAME ? IN_CNAME : $_SERVER["HTTP_HOST"]; ?> ,然后下方添加域名。<br>苹果应用需支持https访问,请去第三方平台申请cdn加速配置证书。
|
|
</div>
|
|
</div>
|
|
- <button onclick="urladd();" type="button"
|
|
|
|
- class="ms-btn ms-btn-primary fl query">添加
|
|
|
|
- </button>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
+ <div style="height: 10px; background: rgb(242, 242, 245)"></div>
|
|
|
|
+ <div class="download-details" style="padding: 20px 30px;">
|
|
|
|
+
|
|
|
|
+ <div class="d-top clearfix">
|
|
|
|
+ <div class="fl">
|
|
|
|
+ <input class="form-control w194-h34" type="text" id="urlpre" value=""
|
|
|
|
+ placeholder="输入您的域名">
|
|
|
|
+ </div>
|
|
|
|
+ <button onclick="urladd();" type="button"
|
|
|
|
+ class="app-bloder-btn">添加
|
|
|
|
+ </button>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="table-responsive">
|
|
|
|
- <table class="table version-history-table">
|
|
|
|
- <tbody>
|
|
|
|
- <tr>
|
|
|
|
- <th>
|
|
|
|
- ID
|
|
|
|
- </th>
|
|
|
|
- <th>
|
|
|
|
- 域名地址
|
|
|
|
- </th>
|
|
|
|
- <th>
|
|
|
|
- 访问次数
|
|
|
|
- </th>
|
|
|
|
|
|
+ <div class="table-responsive">
|
|
|
|
+ <table class="table version-history-table">
|
|
|
|
+ <tbody>
|
|
|
|
+ <tr>
|
|
|
|
+ <th>
|
|
|
|
+ ID
|
|
|
|
+ </th>
|
|
|
|
+ <th>
|
|
|
|
+ 域名地址
|
|
|
|
+ </th>
|
|
|
|
+ <th>
|
|
|
|
+ 访问次数
|
|
|
|
+ </th>
|
|
|
|
|
|
- <th>
|
|
|
|
- 添加时间
|
|
|
|
- </th>
|
|
|
|
- <th>
|
|
|
|
- 操作
|
|
|
|
- </th>
|
|
|
|
- </tr>
|
|
|
|
- <?php
|
|
|
|
- if ($_var_0) {
|
|
|
|
- foreach ($_var_0 as $_var_1 => $_var_2) {
|
|
|
|
- ?> <tr>
|
|
|
|
- <td class="angle-parent">
|
|
|
|
- <?php echo $_var_2["id"];?> </td>
|
|
|
|
- <td>
|
|
|
|
- <a id="copylink<?php echo $_var_2["id"];?>"
|
|
|
|
- style="margin:0 5px;color:#157df1;font-size:14px;"
|
|
|
|
- class="fl" target="_blank"
|
|
|
|
- href="http://<?php echo $_var_2["domain"];?>">http://<?php echo $_var_2["domain"];?></a>
|
|
|
|
- <button class="copy table-btn fl"
|
|
|
|
- style="padding: 0 5px;border:0;font-size:14px;"
|
|
|
|
- data-clipboard-action="copy"
|
|
|
|
- data-clipboard-target="#copylink<?php echo $_var_2["id"];?>">
|
|
|
|
- 复制
|
|
|
|
- </button>
|
|
|
|
- </td>
|
|
|
|
- <td>
|
|
|
|
- <?php echo $_var_2["hits"];?> </td>
|
|
|
|
- <td>
|
|
|
|
- <?php echo $_var_2["create_time"];?> </td>
|
|
|
|
- <td>
|
|
|
|
- <input name="del_id" type="hidden"
|
|
|
|
- value="<?php echo $_var_2["id"];?>">
|
|
|
|
- <a href="javascript:;" class="iconfont icon-shanchu"
|
|
|
|
- title="删除"></a>
|
|
|
|
- </td>
|
|
|
|
|
|
+ <th>
|
|
|
|
+ 添加时间
|
|
|
|
+ </th>
|
|
|
|
+ <th>
|
|
|
|
+ 操作
|
|
|
|
+ </th>
|
|
</tr>
|
|
</tr>
|
|
- <?php
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- ?> </tbody>
|
|
|
|
- </table>
|
|
|
|
|
|
+ <?php
|
|
|
|
+ if ($_var_0) {
|
|
|
|
+ foreach ($_var_0 as $_var_1 => $_var_2) {
|
|
|
|
+ ?> <tr>
|
|
|
|
+ <td class="angle-parent">
|
|
|
|
+ <?php echo $_var_2["id"]; ?> </td>
|
|
|
|
+ <td>
|
|
|
|
+ <a id="copylink<?php echo $_var_2["id"]; ?>"
|
|
|
|
+ style="margin:0 5px;color:#157df1;font-size:14px;"
|
|
|
|
+ class="fl" target="_blank"
|
|
|
|
+ href="http://<?php echo $_var_2["domain"]; ?>">http://<?php echo $_var_2["domain"]; ?></a>
|
|
|
|
+ <button class="copy table-btn fl"
|
|
|
|
+ style="padding: 0 5px;border:0;font-size:14px;background:transparent;"
|
|
|
|
+ data-clipboard-action="copy"
|
|
|
|
+ data-clipboard-target="#copylink<?php echo $_var_2["id"]; ?>">
|
|
|
|
+ 复制
|
|
|
|
+ </button>
|
|
|
|
+ </td>
|
|
|
|
+ <td>
|
|
|
|
+ <?php echo $_var_2["hits"]; ?> </td>
|
|
|
|
+ <td>
|
|
|
|
+ <?php echo $_var_2["create_time"]; ?> </td>
|
|
|
|
+ <td>
|
|
|
|
+ <input name="del_id" type="hidden"
|
|
|
|
+ value="<?php echo $_var_2["id"]; ?>">
|
|
|
|
+ <!-- <a href="javascript:;" class="iconfont icon-shanchu"
|
|
|
|
+ title="删除"></a> -->
|
|
|
|
+ <div class="icon-shanchu app-bloder-btn" style="color: #FF7429;border-color:#FF7429">删除</div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ <?php
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -146,58 +154,62 @@ class domain extends BaseUser
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <script>
|
|
|
|
- function urladd() {
|
|
|
|
- var domain = $("#urlpre").val();
|
|
|
|
- if (!domain) {
|
|
|
|
- return alert('请输入域名!');
|
|
|
|
- }
|
|
|
|
- $.post('/index/domain/add', {domain}, function (ret) {
|
|
|
|
- ret.msg && alert(ret.msg, function () {
|
|
|
|
- if (ret.code) {
|
|
|
|
- window.location.reload();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
- }, 'json');
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- $('.icon-shanchu').click(function () {
|
|
|
|
- var id = $(this).parent().find('input').val();
|
|
|
|
- alert('<b>你确定要删除该记录吗?</b>', function () {
|
|
|
|
- $.post('/index/domain/del', {id}, function (ret) {
|
|
|
|
- ret.msg && alert(ret.msg, function () {
|
|
|
|
|
|
+ <script>
|
|
|
|
+ function urladd() {
|
|
|
|
+ var domain = $("#urlpre").val();
|
|
|
|
+ if (!domain) {
|
|
|
|
+ return alert('请输入域名!');
|
|
|
|
+ }
|
|
|
|
+ $.post('/index/domain/add', {
|
|
|
|
+ domain
|
|
|
|
+ }, function(ret) {
|
|
|
|
+ ret.msg && alert(ret.msg, function() {
|
|
if (ret.code) {
|
|
if (ret.code) {
|
|
window.location.reload();
|
|
window.location.reload();
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}, 'json');
|
|
}, 'json');
|
|
- }, function () {
|
|
|
|
- }, 'center', '删除', '取消');
|
|
|
|
- });
|
|
|
|
- </script>
|
|
|
|
- <?php
|
|
|
|
- $this->footer();
|
|
|
|
- ?> </body>
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ $('.icon-shanchu').click(function() {
|
|
|
|
+ var id = $(this).parent().find('input').val();
|
|
|
|
+ alert('<b>你确定要删除该记录吗?</b>', function() {
|
|
|
|
+ $.post('/index/domain/del', {
|
|
|
|
+ id
|
|
|
|
+ }, function(ret) {
|
|
|
|
+ ret.msg && alert(ret.msg, function() {
|
|
|
|
+ if (ret.code) {
|
|
|
|
+ window.location.reload();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }, 'json');
|
|
|
|
+ }, function() {}, 'center', '删除', '取消');
|
|
|
|
+ });
|
|
|
|
+ </script>
|
|
|
|
+ <?php
|
|
|
|
+ $this->footer();
|
|
|
|
+ ?>
|
|
|
|
+ </body>
|
|
|
|
+
|
|
</html>
|
|
</html>
|
|
- <?php
|
|
|
|
- }
|
|
|
|
- function add()
|
|
|
|
- {
|
|
|
|
- $_var_3 = SafeRequest("domain");
|
|
|
|
- if (!$_var_3) {
|
|
|
|
- reJson("请输入域名!");
|
|
|
|
- }
|
|
|
|
- if (db("app_domain")->where("domain", $_var_3)->count() || $_var_3 == $_SERVER["HTTP_HOST"] || $_var_3 == IN_TZDOMAIN || stristr(IN_SJDOMAIN, $_var_3)) {
|
|
|
|
- reJson("域名已存在!");
|
|
|
|
- }
|
|
|
|
- $_var_4 = db("app_domain")->insertGetId(["uid" => $this->userid, "domain" => $_var_3]);
|
|
|
|
- reJson($_var_4 ? "添加成功!" : "添加失败!", $_var_4);
|
|
|
|
- }
|
|
|
|
- function del()
|
|
|
|
- {
|
|
|
|
- $_var_5 = SafeRequest("id");
|
|
|
|
- $_var_6 = db("app_domain")->where("id", $_var_5)->delete();
|
|
|
|
- reJson($_var_6 ? "删除成功!" : "删除失败!", $_var_6);
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+<?php
|
|
|
|
+ }
|
|
|
|
+ function add()
|
|
|
|
+ {
|
|
|
|
+ $_var_3 = SafeRequest("domain");
|
|
|
|
+ if (!$_var_3) {
|
|
|
|
+ reJson("请输入域名!");
|
|
|
|
+ }
|
|
|
|
+ if (db("app_domain")->where("domain", $_var_3)->count() || $_var_3 == $_SERVER["HTTP_HOST"] || $_var_3 == IN_TZDOMAIN || stristr(IN_SJDOMAIN, $_var_3)) {
|
|
|
|
+ reJson("域名已存在!");
|
|
|
|
+ }
|
|
|
|
+ $_var_4 = db("app_domain")->insertGetId(["uid" => $this->userid, "domain" => $_var_3]);
|
|
|
|
+ reJson($_var_4 ? "添加成功!" : "添加失败!", $_var_4);
|
|
|
|
+ }
|
|
|
|
+ function del()
|
|
|
|
+ {
|
|
|
|
+ $_var_5 = SafeRequest("id");
|
|
|
|
+ $_var_6 = db("app_domain")->where("id", $_var_5)->delete();
|
|
|
|
+ reJson($_var_6 ? "删除成功!" : "删除失败!", $_var_6);
|
|
|
|
+ }
|
|
|
|
+}
|