├── src ├── robots.txt ├── favicon.ico ├── assets │ ├── img │ │ ├── block.gif │ │ ├── block2.gif │ │ └── btbg.png │ ├── layer │ │ └── 3.1.1 │ │ │ └── theme │ │ │ └── default │ │ │ ├── icon.png │ │ │ ├── icon-ext.png │ │ │ ├── loading-0.gif │ │ │ ├── loading-1.gif │ │ │ └── loading-2.gif │ ├── font-awesome │ │ └── 4.7.0 │ │ │ └── fonts │ │ │ ├── FontAwesome.otf │ │ │ ├── fontawesome-webfont.eot │ │ │ ├── fontawesome-webfont.ttf │ │ │ ├── fontawesome-webfont.woff │ │ │ └── fontawesome-webfont.woff2 │ ├── laydate │ │ └── 5.3.1 │ │ │ └── theme │ │ │ └── default │ │ │ └── font │ │ │ ├── iconfont.eot │ │ │ ├── iconfont.ttf │ │ │ └── iconfont.woff │ ├── twitter-bootstrap │ │ └── 3.4.1 │ │ │ └── fonts │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ └── glyphicons-halflings-regular.woff2 │ ├── bootstrap-table │ │ └── 1.20.2 │ │ │ ├── themes │ │ │ └── bootstrap-table │ │ │ │ └── fonts │ │ │ │ ├── bootstrap-table.eot │ │ │ │ ├── bootstrap-table.ttf │ │ │ │ └── bootstrap-table.woff │ │ │ └── extensions │ │ │ ├── group-by-v2 │ │ │ ├── bootstrap-table-group-by.css │ │ │ └── bootstrap-table-group-by.min.css │ │ │ ├── filter-control │ │ │ ├── bootstrap-table-filter-control.css │ │ │ └── bootstrap-table-filter-control.min.css │ │ │ ├── page-jump-to │ │ │ ├── bootstrap-table-page-jump-to.css │ │ │ └── bootstrap-table-page-jump-to.min.css │ │ │ ├── sticky-header │ │ │ ├── bootstrap-table-sticky-header.css │ │ │ └── bootstrap-table-sticky-header.min.css │ │ │ ├── fixed-columns │ │ │ ├── bootstrap-table-fixed-columns.css │ │ │ └── bootstrap-table-fixed-columns.min.css │ │ │ └── reorder-rows │ │ │ ├── bootstrap-table-reorder-rows.css │ │ │ └── bootstrap-table-reorder-rows.min.css │ └── css │ │ └── admin.css ├── includes │ ├── phpwhois │ │ ├── whois.pt.php │ │ ├── whois.am.php │ │ ├── whois.gtld.genericb.php │ │ ├── whois.pro.php │ │ ├── whois.travel.php │ │ ├── whois.us.php │ │ ├── whois.asia.php │ │ ├── whois.me.php │ │ ├── whois.ag.php │ │ ├── whois.sc.php │ │ ├── whois.tel.php │ │ ├── whois.biz.php │ │ ├── whois.in.php │ │ ├── whois.int.php │ │ ├── whois.name.php │ │ ├── whois.info.php │ │ ├── whois.cat.php │ │ ├── whois.museum.php │ │ ├── whois.aero.php │ │ ├── whois.mobi.php │ │ ├── whois.org.php │ │ ├── whois.xxx.php │ │ ├── whois.co.php │ │ ├── whois.gtld.alldomains.php │ │ ├── whois.gtld.tvcorp.php │ │ ├── whois.hu.php │ │ ├── whois.gtld.nicline.php │ │ ├── whois.gtld.ovh.php │ │ ├── whois.gtld.fabulous.php │ │ ├── whois.gtld.gandi.php │ │ ├── whois.pl.php │ │ ├── whois.gtld.iana.php │ │ ├── whois.gtld.srsplus.php │ │ ├── whois.si.php │ │ ├── whois.gtld.afternic.php │ │ ├── whois.gtld.ascio.php │ │ ├── whois.gtld.networksolutions.php │ │ ├── whois.gtld.domaindiscover.php │ │ ├── whois.gtld.assorted.php │ │ ├── whois.gtld.namejuice.php │ │ ├── whois.gtld.tmagnic.php │ │ ├── whois.gtld.namevault.php │ │ ├── whois.gtld.itsyourdomain.php │ │ ├── whois.gtld.moniker.php │ │ ├── whois.gtld.dotster.php │ │ ├── whois.gtld.wildwestdomains.php │ │ ├── whois.ir.php │ │ ├── whois.gtld.name.php │ │ ├── whois.cl.php │ │ ├── whois.gtld.directnic.php │ │ ├── whois.gtld.corporatedomains.php │ │ ├── whois.gtld.dreamhost.php │ │ ├── whois.se.php │ │ ├── whois.gtld.names4ever.php │ │ ├── whois.ie.php │ │ ├── whois.ae.php │ │ ├── whois.gtld.godaddy.php │ │ ├── whois.lt.php │ │ ├── whois.bh.php │ │ ├── whois.gtld.opensrs.php │ │ ├── whois.edu.php │ │ ├── whois.gtld.nicco.php │ │ ├── whois.rwhois.php │ │ ├── whois.fj.php │ │ ├── whois.dk.php │ │ ├── whois.gtld.publicdomainregistry.php │ │ ├── whois.su.php │ │ ├── whois.gtld.domainpeople.php │ │ ├── whois.org.za.php │ │ ├── whois.ru.php │ │ ├── whois.fi.php │ │ ├── whois.mx.php │ │ ├── whois.gtld.nameintel.php │ │ ├── whois.is.php │ │ ├── whois.ly.php │ │ ├── whois.au.php │ │ ├── whois.gtld.joker.php │ │ ├── whois.it.php │ │ ├── whois.gtld.markmonitor.php │ │ ├── whois.gtld.melbourneit.php │ │ ├── whois.gtld.nameking.php │ │ ├── whois.fr.php │ │ ├── whois.de.php │ │ ├── whois.gtld.register.php │ │ ├── whois.ws.php │ │ ├── whois.ve.php │ │ ├── whois.be.php │ │ ├── whois.gtld.enom.php │ │ ├── whois.ca.php │ │ ├── whois.cz.php │ │ ├── whois.ip.afrinic.php │ │ ├── whois.fm.php │ │ ├── whois.gtld.fastdomain.php │ │ ├── whois.ip.ripe.php │ │ └── whois.nu.php │ ├── 360safe │ │ └── webscan_cache.php │ ├── autoloader.php │ └── lib │ │ ├── Cache.php │ │ └── Oauth.php ├── user │ └── footer.php └── admin │ ├── ajax_whois.php │ └── ajax_server_order.php ├── assets ├── screenshot.png ├── donation-alipay.jpg └── donation-weixin.jpg ├── .gitignore ├── README.md └── LICENSE /src/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: / 3 | -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/favicon.ico -------------------------------------------------------------------------------- /assets/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/assets/screenshot.png -------------------------------------------------------------------------------- /src/assets/img/block.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/img/block.gif -------------------------------------------------------------------------------- /src/assets/img/block2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/img/block2.gif -------------------------------------------------------------------------------- /src/assets/img/btbg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/img/btbg.png -------------------------------------------------------------------------------- /assets/donation-alipay.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/assets/donation-alipay.jpg -------------------------------------------------------------------------------- /assets/donation-weixin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/assets/donation-weixin.jpg -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.pt.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/includes/phpwhois/whois.pt.php -------------------------------------------------------------------------------- /src/assets/layer/3.1.1/theme/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/layer/3.1.1/theme/default/icon.png -------------------------------------------------------------------------------- /src/assets/layer/3.1.1/theme/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/layer/3.1.1/theme/default/icon-ext.png -------------------------------------------------------------------------------- /src/assets/layer/3.1.1/theme/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/layer/3.1.1/theme/default/loading-0.gif -------------------------------------------------------------------------------- /src/assets/layer/3.1.1/theme/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/layer/3.1.1/theme/default/loading-1.gif -------------------------------------------------------------------------------- /src/assets/layer/3.1.1/theme/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/layer/3.1.1/theme/default/loading-2.gif -------------------------------------------------------------------------------- /src/assets/font-awesome/4.7.0/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/font-awesome/4.7.0/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /src/assets/laydate/5.3.1/theme/default/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/laydate/5.3.1/theme/default/font/iconfont.eot -------------------------------------------------------------------------------- /src/assets/laydate/5.3.1/theme/default/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/laydate/5.3.1/theme/default/font/iconfont.ttf -------------------------------------------------------------------------------- /src/assets/laydate/5.3.1/theme/default/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/laydate/5.3.1/theme/default/font/iconfont.woff -------------------------------------------------------------------------------- /src/assets/font-awesome/4.7.0/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/font-awesome/4.7.0/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/assets/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/assets/font-awesome/4.7.0/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/font-awesome/4.7.0/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/assets/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Editor directories and files 2 | .idea 3 | .vscode 4 | *.suo 5 | *.ntvs* 6 | *.njsproj 7 | *.sln 8 | 9 | .DS_Store 10 | MP_verify_*.txt 11 | install.lock 12 | *config.php* 13 | -------------------------------------------------------------------------------- /src/assets/twitter-bootstrap/3.4.1/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/twitter-bootstrap/3.4.1/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /src/assets/twitter-bootstrap/3.4.1/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/twitter-bootstrap/3.4.1/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /src/assets/twitter-bootstrap/3.4.1/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/twitter-bootstrap/3.4.1/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/assets/twitter-bootstrap/3.4.1/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/twitter-bootstrap/3.4.1/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/themes/bootstrap-table/fonts/bootstrap-table.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/bootstrap-table/1.20.2/themes/bootstrap-table/fonts/bootstrap-table.eot -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/themes/bootstrap-table/fonts/bootstrap-table.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/bootstrap-table/1.20.2/themes/bootstrap-table/fonts/bootstrap-table.ttf -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/themes/bootstrap-table/fonts/bootstrap-table.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Crogram/DouName/master/src/assets/bootstrap-table/1.20.2/themes/bootstrap-table/fonts/bootstrap-table.woff -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/extensions/group-by-v2/bootstrap-table-group-by.css: -------------------------------------------------------------------------------- 1 | .bootstrap-table .table > tbody > tr.groupBy.expanded, 2 | .bootstrap-table .table > tbody > tr.groupBy.collapsed { 3 | cursor: pointer; 4 | } 5 | 6 | .bootstrap-table .table > tbody > tr.hidden { 7 | display: none; 8 | } 9 | -------------------------------------------------------------------------------- /src/user/footer.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/extensions/filter-control/bootstrap-table-filter-control.css: -------------------------------------------------------------------------------- 1 | @charset "UTF-8"; 2 | /** 3 | * @author: Dennis Hernández 4 | * @webSite: http://djhvscf.github.io/Blog 5 | * @version: v2.1.1 6 | */ 7 | .no-filter-control { 8 | height: 40px; 9 | } 10 | 11 | .filter-control { 12 | margin: 0 2px 2px 2px; 13 | } 14 | 15 | .ms-choice { 16 | border: 0; 17 | } 18 | 19 | .ms-parent > button:focus { 20 | outline: 0; 21 | } 22 | -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/extensions/page-jump-to/bootstrap-table-page-jump-to.css: -------------------------------------------------------------------------------- 1 | .bootstrap-table.bootstrap3 .fixed-table-pagination > .pagination .page-jump-to { 2 | display: inline-block; 3 | } 4 | 5 | .bootstrap-table.bootstrap3 .fixed-table-pagination > .pagination .input-group-btn { 6 | width: auto; 7 | } 8 | 9 | .bootstrap-table .fixed-table-pagination > .pagination .page-jump-to input { 10 | width: 70px; 11 | margin-left: 5px; 12 | text-align: center; 13 | float: left; 14 | } 15 | -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/extensions/sticky-header/bootstrap-table-sticky-header.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @author vincent loh 3 | * @update zhixin wen 4 | */ 5 | .fix-sticky { 6 | position: fixed !important; 7 | overflow: hidden; 8 | z-index: 100; 9 | } 10 | 11 | .fix-sticky table thead { 12 | background: #fff; 13 | } 14 | 15 | .fix-sticky table thead.thead-light { 16 | background: #e9ecef; 17 | } 18 | 19 | .fix-sticky table thead.thead-dark { 20 | background: #212529; 21 | } 22 | -------------------------------------------------------------------------------- /src/includes/360safe/webscan_cache.php: -------------------------------------------------------------------------------- 1 | 'mod=admin-set'); 14 | ?> -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/extensions/fixed-columns/bootstrap-table-fixed-columns.css: -------------------------------------------------------------------------------- 1 | .fixed-columns, 2 | .fixed-columns-right { 3 | position: absolute; 4 | top: 0; 5 | height: 100%; 6 | background-color: #fff; 7 | box-sizing: border-box; 8 | z-index: 1; 9 | } 10 | 11 | .fixed-columns { 12 | left: 0; 13 | } 14 | 15 | .fixed-columns .fixed-table-body { 16 | overflow: hidden !important; 17 | } 18 | 19 | .fixed-columns-right { 20 | right: 0; 21 | } 22 | 23 | .fixed-columns-right .fixed-table-body { 24 | overflow-x: hidden !important; 25 | } 26 | -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/extensions/filter-control/bootstrap-table-filter-control.min.css: -------------------------------------------------------------------------------- 1 | /** 2 | * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) 3 | * 4 | * @version v1.20.2 5 | * @homepage https://bootstrap-table.com 6 | * @author wenzhixin (http://wenzhixin.net.cn/) 7 | * @license MIT 8 | */ 9 | 10 | @charset "UTF-8";.no-filter-control{height:40px}.filter-control{margin:0 2px 2px 2px}.ms-choice{border:0}.ms-parent>button:focus{outline:0} -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/extensions/group-by-v2/bootstrap-table-group-by.min.css: -------------------------------------------------------------------------------- 1 | /** 2 | * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) 3 | * 4 | * @version v1.20.2 5 | * @homepage https://bootstrap-table.com 6 | * @author wenzhixin (http://wenzhixin.net.cn/) 7 | * @license MIT 8 | */ 9 | 10 | .bootstrap-table .table>tbody>tr.groupBy.collapsed,.bootstrap-table .table>tbody>tr.groupBy.expanded{cursor:pointer}.bootstrap-table .table>tbody>tr.hidden{display:none} -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/extensions/sticky-header/bootstrap-table-sticky-header.min.css: -------------------------------------------------------------------------------- 1 | /** 2 | * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) 3 | * 4 | * @version v1.20.2 5 | * @homepage https://bootstrap-table.com 6 | * @author wenzhixin (http://wenzhixin.net.cn/) 7 | * @license MIT 8 | */ 9 | 10 | .fix-sticky{position:fixed!important;overflow:hidden;z-index:100}.fix-sticky table thead{background:#fff}.fix-sticky table thead.thead-light{background:#e9ecef}.fix-sticky table thead.thead-dark{background:#212529} -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css: -------------------------------------------------------------------------------- 1 | /** 2 | * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) 3 | * 4 | * @version v1.20.2 5 | * @homepage https://bootstrap-table.com 6 | * @author wenzhixin (http://wenzhixin.net.cn/) 7 | * @license MIT 8 | */ 9 | 10 | .fixed-columns,.fixed-columns-right{position:absolute;top:0;height:100%;background-color:#fff;box-sizing:border-box;z-index:1}.fixed-columns{left:0}.fixed-columns .fixed-table-body{overflow:hidden!important}.fixed-columns-right{right:0}.fixed-columns-right .fixed-table-body{overflow-x:hidden!important} -------------------------------------------------------------------------------- /src/assets/bootstrap-table/1.20.2/extensions/page-jump-to/bootstrap-table-page-jump-to.min.css: -------------------------------------------------------------------------------- 1 | /** 2 | * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) 3 | * 4 | * @version v1.20.2 5 | * @homepage https://bootstrap-table.com 6 | * @author wenzhixin (http://wenzhixin.net.cn/) 7 | * @license MIT 8 | */ 9 | 10 | .bootstrap-table.bootstrap3 .fixed-table-pagination>.pagination .page-jump-to{display:inline-block}.bootstrap-table.bootstrap3 .fixed-table-pagination>.pagination .input-group-btn{width:auto}.bootstrap-table .fixed-table-pagination>.pagination .page-jump-to input{width:70px;margin-left:5px;text-align:center;float:left} -------------------------------------------------------------------------------- /src/includes/autoloader.php: -------------------------------------------------------------------------------- 1 | (http://wenzhixin.net.cn/) 7 | * @license MIT 8 | */ 9 | 10 | .reorder_rows_onDragClass td{background-color:#eee;-webkit-box-shadow:11px 5px 12px 2px #333,0 1px 0 #ccc inset,0 -1px 0 #ccc inset;-webkit-box-shadow:6px 3px 5px #555,0 1px 0 #ccc inset,0 -1px 0 #ccc inset;-moz-box-shadow:6px 4px 5px 1px #555,0 1px 0 #ccc inset,0 -1px 0 #ccc inset;-box-shadow:6px 4px 5px 1px #555,0 1px 0 #ccc inset,0 -1px 0 #ccc inset}.reorder_rows_onDragClass td:last-child{-webkit-box-shadow:8px 7px 12px 0 #333,0 1px 0 #ccc inset,0 -1px 0 #ccc inset;-webkit-box-shadow:1px 8px 6px -4px #555,0 1px 0 #ccc inset,0 -1px 0 #ccc inset;-moz-box-shadow:0 9px 4px -4px #555,0 1px 0 #ccc inset,0 -1px 0 #ccc inset,-1px 0 0 #ccc inset;-box-shadow:0 9px 4px -4px #555,0 1px 0 #ccc inset,0 -1px 0 #ccc inset,-1px 0 0 #ccc inset} -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 程江域名资产管理系统 2 | 3 | DouName 是一款基于 PHP+MySQL 开发的域名资产管理系统。通过本系统,轻松实现在一个管理端,对不同厂商的域名进行基本信息、域名订单以及 DNS 解析的管理。 4 | 5 | ## 功能列表 6 | 7 | 1. 域名管理:添加和编辑域名,进行域名基本信息(域名、备案信息)管理; 8 | 2. 域名 Whois 查询工具; 9 | 3. 域名订单管理:添加和编辑订单信息; 10 | 11 | ## 预览截图 12 | 13 | ![程江域名资产管理系统](assets/screenshot.png) 14 | 15 | ## 开发计划 16 | 17 | 1. 域名 Whois 信息同步到本地功能:注册时间、到期时间以及注册商等信息; 18 | 2. 域名备案查询; 19 | 3. 域名备案本地同步功能; 20 | 4. 域名证书申请和续期管理; 21 | 5. 对接主流域名注册商,通过接口同步域名到本地; 22 | 6. 对接主流域名注册商,通过接口同步和修改域名 DNS 解析记录; 23 | 7. 对接主流域名注册商,通过接口同步域名订单信息; 24 | 25 | ### 部署方法 26 | 27 | - 运行环境要求 PHP5.4+,MySQL5.6+ 28 | - 将 `src` 目录内文件全部上传到网站运行目录 29 | - 访问网站,会自动跳转到安装页面,根据提示填写配置信息,进行安装 30 | - 安装完成后,访问 /admin 进入后台管理 31 | 32 | ### 赞助项目 33 | 34 | 开源不易, 有了您的赞助, 我们会做的更好。 35 | 36 | 使用微信赞赏码使用支付宝转账 37 | 38 | 转账时请备注您的称呼,方便我们在网站 [https://crogram.org/sponsors](https://crogram.org/sponsors.html) 上展示。 39 | 40 | ## 开源许可 41 | 42 | DouName 采用 [BSD](./LICENSE) 许可发布。个人使用无限制。商业使用请联系我们获得授权许可。 43 | 44 | ## 作者 45 | 46 | [Jackson Dou](https://github.com/jksdou 'Jackson Dou') 47 | 48 | ### 版权信息 49 | 50 | 版权所有 Copyright © 2023 [CROGRAM](https://crogram.com) 51 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.am.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 13 | 'domain.name' => 'Domain name:', 14 | 'domain.created' => 'Registered:', 15 | 'domain.changed' => 'Last modified:', 16 | 'domain.nserver' => 'DNS servers:', 17 | 'domain.status' => 'Status:', 18 | 'tech' => 'Technical contact:', 19 | 'admin' => 'Administrative contact:', 20 | ); 21 | 22 | $r['regrinfo'] = get_blocks($data_str['rawdata'], $items); 23 | 24 | if (!empty($r['regrinfo']['domain']['name'])) 25 | { 26 | $r['regrinfo'] = get_contacts($r['regrinfo']); 27 | $r['regrinfo']['registered'] = 'yes'; 28 | } 29 | else 30 | { 31 | $r = ''; 32 | $r['regrinfo']['registered'] = 'no'; 33 | } 34 | 35 | $r['regyinfo'] = array( 36 | 'referrer' => 'http://www.isoc.am', 37 | 'registrar' => 'ISOCAM' 38 | ); 39 | 40 | return $r; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.genericb.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.pro.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/includes/lib/Cache.php: -------------------------------------------------------------------------------- 1 | getColumn("SELECT v FROM pre_config WHERE k='cache' LIMIT 1"); 16 | return $value; 17 | } 18 | public function save($value) 19 | { 20 | if (is_array($value)) $value = serialize($value); 21 | global $DB; 22 | return $DB->exec("REPLACE INTO pre_config VALUES ('cache', :value)", [':value' => $value]); 23 | } 24 | public function pre_fetch() 25 | { 26 | global $_CACHE; 27 | $_CACHE = array(); 28 | $cache = $this->read(); 29 | $_CACHE = @unserialize($cache); 30 | if (empty($_CACHE['version'])) $_CACHE = $this->update(); 31 | return $_CACHE; 32 | } 33 | public function update() 34 | { 35 | global $DB; 36 | $cache = array(); 37 | $result = $DB->getAll("SELECT * FROM pre_config"); 38 | foreach ($result as $row) { 39 | if ($row['k'] == 'cache') continue; 40 | $cache[$row['k']] = $row['v']; 41 | } 42 | $this->save($cache); 43 | return $cache; 44 | } 45 | public function clear() 46 | { 47 | global $DB; 48 | return $DB->exec("UPDATE pre_config SET v='' WHERE k='cache'"); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.travel.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.us.php: -------------------------------------------------------------------------------- 1 | 'http://www.neustar.us', 39 | 'registrar' => 'NEUSTAR INC.' 40 | ); 41 | return $r; 42 | } 43 | } 44 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.asia.php: -------------------------------------------------------------------------------- 1 | 'http://www.dotasia.org/', 39 | 'registrar' => 'DotAsia' 40 | ); 41 | return $r; 42 | } 43 | } 44 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.me.php: -------------------------------------------------------------------------------- 1 | 'http://domain.me', 40 | 'registrar' => 'doMEn' 41 | ); 42 | return $r; 43 | } 44 | } 45 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.ag.php: -------------------------------------------------------------------------------- 1 | 'http://www.nic.ag', 40 | 'registrar' => 'Nic AG' 41 | ); 42 | return $r; 43 | } 44 | } 45 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.sc.php: -------------------------------------------------------------------------------- 1 | 'http://www.nic.sc', 40 | 'registrar' => 'VCS (Pty) Limited' 41 | ); 42 | return $r; 43 | } 44 | } 45 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.tel.php: -------------------------------------------------------------------------------- 1 | 'http://www.telnic.org', 40 | 'registrar' => 'Telnic' 41 | ); 42 | return $r; 43 | } 44 | } 45 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.biz.php: -------------------------------------------------------------------------------- 1 | 'http://www.neulevel.biz', 40 | 'registrar' => 'NEULEVEL' 41 | ); 42 | return $r; 43 | } 44 | } 45 | ?> 46 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.in.php: -------------------------------------------------------------------------------- 1 | 'http://whois.registry.in', 40 | 'registrar' => 'INRegistry' 41 | ); 42 | return $r; 43 | } 44 | } 45 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.int.php: -------------------------------------------------------------------------------- 1 | parse($data_str['rawdata'], $query); 39 | $r['regyinfo']['referrer'] = 'http://www.iana.org/int-dom/int.htm'; 40 | $r['regyinfo']['registrar'] = 'Internet Assigned Numbers Authority'; 41 | return ($r); 42 | } 43 | } 44 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.name.php: -------------------------------------------------------------------------------- 1 | 'http://www.nic.name/', 40 | 'registrar' => 'Global Name Registry' 41 | ); 42 | return $r; 43 | } 44 | } 45 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.info.php: -------------------------------------------------------------------------------- 1 | 'http://whois.afilias.info', 40 | 'registrar' => 'Afilias Global Registry Services' 41 | ); 42 | return $r; 43 | } 44 | } 45 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.cat.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.museum.php: -------------------------------------------------------------------------------- 1 | 'http://musedoma.museum', 40 | 'registrar' => 'Museum Domain Management Association' 41 | ); 42 | return $r; 43 | } 44 | } 45 | ?> -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | BSD 3-Clause License 2 | 3 | Copyright (c) 2023, Crogram 4 | 5 | Redistribution and use in source and binary forms, with or without 6 | modification, are permitted provided that the following conditions are met: 7 | 8 | 1. Redistributions of source code must retain the above copyright notice, this 9 | list of conditions and the following disclaimer. 10 | 11 | 2. Redistributions in binary form must reproduce the above copyright notice, 12 | this list of conditions and the following disclaimer in the documentation 13 | and/or other materials provided with the distribution. 14 | 15 | 3. Neither the name of the copyright holder nor the names of its 16 | contributors may be used to endorse or promote products derived from 17 | this software without specific prior written permission. 18 | 19 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 20 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 22 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 23 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 25 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 26 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 27 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.aero.php: -------------------------------------------------------------------------------- 1 | 'http://www.nic.aero', 40 | 'registrar' => 'Societe Internationale de Telecommunications Aeronautiques SC' 41 | ); 42 | return $r; 43 | } 44 | } 45 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.mobi.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.org.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.xxx.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.co.php: -------------------------------------------------------------------------------- 1 | 'domain.sponsor', 39 | 'Registry Expiry Date:' => 'domain.expires', 40 | 'Updated Date:' => 'domain.changed', 41 | 'Creation Date:' => 'domain.created', 42 | ]; 43 | 44 | $r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'Y-m-d'); 45 | $r['regyinfo']['referrer'] = 'http://www.cointernet.com.co/'; 46 | $r['regyinfo']['registrar'] = '.CO Internet, S.A.S.'; 47 | return $r; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.alldomains.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative', 40 | 'tech' => 'Technical', 41 | 'domain.name' => 'Domain name:', 42 | 'domain.sponsor' => 'Registrar:', 43 | 'domain.nserver.' => 'Domain servers in listed order:' 44 | ); 45 | 46 | return easy_parser($data_str, $items, 'ymd'); 47 | } 48 | } 49 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.tvcorp.php: -------------------------------------------------------------------------------- 1 | 'Registrant', 39 | 'admin' => 'Admin', 40 | 'tech' => 'Technical', 41 | 'billing' => 'Billing', 42 | 'domain.nserver.' => 'Domain servers:', 43 | 'domain.created' => 'Record created on', 44 | 'domain.expires' => 'Record expires on' 45 | ); 46 | 47 | return easy_parser($data_str, $items, 'mdy'); 48 | } 49 | } 50 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.hu.php: -------------------------------------------------------------------------------- 1 | 'domain.name', 39 | 'record created:' => 'domain.created' 40 | ); 41 | 42 | $r['regrinfo'] = generic_parser_b($data_str['rawdata'],$items,'ymd'); 43 | 44 | if (isset($r['regrinfo']['domain'])) 45 | $r['regrinfo']['registered'] = 'yes'; 46 | else 47 | $r['regrinfo']['registered'] = 'no'; 48 | 49 | $r['regyinfo'] = array('referrer'=>'http://www.nic.hu','registrar'=>'HUNIC'); 50 | return $r; 51 | } 52 | } 53 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.nicline.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative contact:', 40 | 'tech' => 'Technical contact:', 41 | 'domain.name' => 'Domain name:', 42 | 'domain.nserver.' => 'Domain servers in listed order:', 43 | 'domain.created' => 'Created:', 44 | 'domain.expires' => 'Expires:', 45 | 'domain.changed' => 'Last updated:' 46 | ); 47 | 48 | return easy_parser($data_str, $items, 'dmy'); 49 | } 50 | } 51 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.ovh.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact:', 40 | 'tech' => 'Technical Contact:', 41 | 'billing' => 'Billing Contact:', 42 | 'domain.sponsor' => 'Registrar of Record:', 43 | 'domain.changed' => 'Record last updated on', 44 | 'domain.expires' => 'Record expires on', 45 | 'domain.created' => 'Record created on' 46 | ); 47 | 48 | return easy_parser($data_str, $items, 'mdy',false,false,true); 49 | } 50 | } 51 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.fabulous.php: -------------------------------------------------------------------------------- 1 | 'Domain '.$query.':', 39 | 'admin' => 'Administrative contact:', 40 | 'tech' => 'Technical contact:', 41 | 'billing' => 'Billing contact:', 42 | '' => 'Record dates:' 43 | ); 44 | 45 | $r = easy_parser($data_str, $items, 'mdy',false,false,true); 46 | 47 | if (!isset($r['tech'])) $r['tech'] = $r['billing']; 48 | 49 | if (!isset($r['admin'])) $r['admin'] = $r['tech']; 50 | 51 | return $r; 52 | } 53 | } 54 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.gandi.php: -------------------------------------------------------------------------------- 1 | 'owner-c', 39 | 'admin' => 'admin-c', 40 | 'tech' => 'tech-c', 41 | 'billing' => 'bill-c' 42 | ); 43 | 44 | $trans = array( 45 | 'nic-hdl:' => 'handle', 46 | 'person:' => 'name', 47 | 'zipcode:' => 'address.pcode', 48 | 'city:' => 'address.city', 49 | 'lastupdated:' => 'changed', 50 | 'owner-name:' => '' 51 | ); 52 | 53 | return easy_parser($data_str, $items, 'dmy', $trans); 54 | } 55 | } 56 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.pl.php: -------------------------------------------------------------------------------- 1 | 'created:', 39 | 'domain.changed' => 'last modified:', 40 | 'domain.sponsor' => 'REGISTRAR:', 41 | '#' => 'WHOIS displays data with a delay not exceeding 15 minutes in relation to the .pl Registry system' 42 | 43 | ); 44 | 45 | $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd'); 46 | 47 | $r['regyinfo'] = array( 48 | 'referrer' => 'http://www.dns.pl/english/index.html', 49 | 'registrar' => 'NASK' 50 | ); 51 | return $r; 52 | } 53 | } 54 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.iana.php: -------------------------------------------------------------------------------- 1 | 'contact: administrative', 39 | 'tech' => 'contact: technical', 40 | 'domain.nserver.' => 'nserver:', 41 | 'domain.created' => 'created:', 42 | 'domain.changed' => 'changed:', 43 | 'domain.source' => 'source:', 44 | 'domain.name' => 'domain:', 45 | 'disclaimer.' => '% ' 46 | ); 47 | 48 | return easy_parser($data_str,$items,'Ymd',false,false,false,'owner'); 49 | } 50 | } 51 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.srsplus.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative', 40 | 'tech' => 'Technical', 41 | 'billing' => 'Billing', 42 | 'domain.name' => 'Domain Name:', 43 | 'domain.nserver' => 'Domain servers:', 44 | 'domain.created' => 'Record created on', 45 | 'domain.expires' => 'Record expires on' 46 | ); 47 | 48 | return easy_parser($data_str, $items, 'ymd',false,true,true); 49 | } 50 | } 51 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.si.php: -------------------------------------------------------------------------------- 1 | 'handle', 39 | 'nameserver' => 'nserver' 40 | ); 41 | 42 | $contacts = array( 43 | 'registrant' => 'owner', 44 | 'tech-c' => 'tech' 45 | ); 46 | 47 | $r['regrinfo'] = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd'); 48 | $r['regyinfo'] = array( 49 | 'referrer' => 'http://www.arnes.si', 50 | 'registrar' => 'ARNES' 51 | ); 52 | return $r; 53 | } 54 | } 55 | ?> 56 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.afternic.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact', 40 | 'tech' => 'Technical Contact', 41 | 'zone' => 'Zone Contact', 42 | 'domain.name' => 'Domain Name:', 43 | 'domain.changed' => 'Last updated on', 44 | 'domain.created' => 'Domain created on', 45 | 'domain.expires' => 'Domain expires on' 46 | ); 47 | 48 | return easy_parser($data_str, $items, 'dmy', false, false, true); 49 | } 50 | } 51 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.ascio.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative ', 40 | 'tech' => 'Technical ', 41 | 'domain.name' => 'Domain name:', 42 | 'domain.nserver.' => 'Domain servers in listed order:', 43 | 'domain.created' => 'Record created:', 44 | 'domain.expires' => 'Record expires:', 45 | 'domain.changed' => 'Record last updated:' 46 | ); 47 | 48 | return easy_parser($data_str, $items, 'ymd',false,false,true); 49 | } 50 | } 51 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.networksolutions.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact', 40 | 'tech' => 'Technical Contact', 41 | 'domain.name' => 'Domain Name:', 42 | 'domain.nserver.' => 'Domain servers in listed order:', 43 | 'domain.created' => 'Record created on', 44 | 'domain.expires' => 'Record expires on' 45 | ); 46 | 47 | return easy_parser($data_str, $items, 'dmy',false,true,true); 48 | } 49 | } 50 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.domaindiscover.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact', 40 | 'tech' => 'Technical Contact', 41 | 'zone' => 'Zone Contact', 42 | 'domain.name' => 'Domain Name:', 43 | 'domain.changed' => 'Last updated on', 44 | 'domain.created' => 'Domain created on', 45 | 'domain.expires' => 'Domain expires on' 46 | ); 47 | 48 | return easy_parser($data_str, $items, 'dmy', false, false, true); 49 | } 50 | } 51 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.assorted.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact:', 40 | 'tech' => 'Technical Contact:', 41 | 'domain.name' => 'Domain Name:', 42 | 'domain.nserver.' => 'Domain servers in listed order:', 43 | 'domain.created' => 'Record created on', 44 | 'domain.expires' => 'Record expires on', 45 | 'domain.changed' => 'Record last updated' 46 | ); 47 | 48 | return easy_parser($data_str, $items, 'ymd',false,false,true); 49 | } 50 | } 51 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.namejuice.php: -------------------------------------------------------------------------------- 1 | 'Registrant Contact:', 39 | 'admin' => 'Administrative Contact:', 40 | 'tech' => 'Technical Contact:', 41 | 'domain.name' => 'Domain name:', 42 | 'domain.nserver.' => 'Name Servers:', 43 | 'domain.created' => 'Creation date:', 44 | 'domain.expires' => 'Expiration date:', 45 | 'domain.changed' => 'Update date:', 46 | 'domain.status' => 'Status:', 47 | 'domain.sponsor' => 'Registration Service Provided By:' 48 | ); 49 | 50 | return easy_parser($data_str, $items, 'dmy', false, true, true); 51 | } 52 | } 53 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.tmagnic.php: -------------------------------------------------------------------------------- 1 | 'Owner Contact:', 39 | 'admin' => 'Admin Contact', 40 | 'tech' => 'Technical Contact', 41 | 'domain.name' => 'Domain Name:', 42 | 'domain.nserver.' => 'Domain servers in listed order:', 43 | 'domain.expires' => 'Record expires on: ', 44 | 'domain.changed' => 'Record last updated on: ', 45 | '' => 'Zone Contact', 46 | '#' => 'Punycode Name:' 47 | ); 48 | 49 | return easy_parser($data_str, $items, 'ymd',false,false,true); 50 | } 51 | } 52 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.namevault.php: -------------------------------------------------------------------------------- 1 | 'Registrant', 39 | 'admin' => 'Administrative Contact:', 40 | 'tech' => 'Technical Contact:', 41 | 'billing' => 'Billing Contact:', 42 | 'domain.name' => 'Domain Name:', 43 | 'domain.nserver.' => 'Name Servers', 44 | 'domain.created' => 'Creation Date:', 45 | 'domain.expires' => 'Expiration Date:', 46 | 'domain.status' => 'Status:' 47 | ); 48 | 49 | return easy_parser($data_str, $items, 'dmy', false, true, true); 50 | } 51 | } 52 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.itsyourdomain.php: -------------------------------------------------------------------------------- 1 | 'Registrant', 39 | 'admin' => 'Administrative', 40 | 'tech' => 'Technical', 41 | 'billing' => 'Billing', 42 | 'domain.name' => 'Domain:', 43 | 'domain.nserver.' => 'Domain Name Servers:', 44 | 'domain.created' => 'Record created on ', 45 | 'domain.expires' => 'Record expires on ', 46 | 'domain.changed' => 'Record last updated on ' 47 | ); 48 | 49 | return easy_parser($data_str, $items, 'mdy'); 50 | } 51 | } 52 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.moniker.php: -------------------------------------------------------------------------------- 1 | 'Registrant', 39 | 'admin' => 'Administrative ', 40 | 'tech' => 'Technical ', 41 | 'billing' => 'Billing ', 42 | 'domain.name' => 'Domain Name:', 43 | 'domain.nserver.' => 'Domain servers in listed order:', 44 | 'domain.created' => 'Record created on: ', 45 | 'domain.expires' => 'Domain Expires on: ', 46 | 'domain.changed' => 'Database last updated on: ' 47 | ); 48 | 49 | return easy_parser($data_str, $items, 'ymd'); 50 | } 51 | } 52 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.dotster.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative', 40 | 'tech' => 'Technical', 41 | 'domain.nserver' => 42 | 'Domain servers in listed order:', 43 | 'domain.name' => 'Domain name:', 44 | 'domain.created' => 'Created on:', 45 | 'domain.expires' => 'Expires on:', 46 | 'domain.changed' => 'Last Updated on:', 47 | 'domain.sponsor' => 'Registrar:' 48 | ); 49 | 50 | return easy_parser($data_str, $items, 'dmy'); 51 | } 52 | } 53 | ?> -------------------------------------------------------------------------------- /src/admin/ajax_whois.php: -------------------------------------------------------------------------------- 1 | window.location.href='./login.php';"); 6 | $act = isset($_REQUEST['act']) ? daddslashes($_REQUEST['act']) : null; 7 | if (!checkRefererHost()) exit('{"code":403}'); 8 | 9 | @header('Content-Type: application/json; charset=UTF-8'); 10 | 11 | switch ($act) { 12 | case 'check': 13 | if (!isset($_POST['domain'])) { 14 | exit('{"code":-1,"msg":"请输入查询域名!"}'); 15 | } 16 | $domain = strip_tags($_POST['domain']); 17 | 18 | include_once(SYSTEM_ROOT . '/phpwhois/whois.main.php'); 19 | include_once(SYSTEM_ROOT . '/phpwhois/whois.utils.php'); 20 | 21 | $whois = new Whois(); 22 | 23 | // Set to true if you want to allow proxy requests 24 | $allowproxy = false; 25 | 26 | // get faster but less acurate results 27 | $whois->deep_whois = false; 28 | 29 | // To use special whois servers (see README) 30 | //$whois->UseServer('uk','whois.nic.uk:1043?{hname} {ip} {query}'); 31 | //$whois->UseServer('au','whois-check.ausregistry.net.au'); 32 | 33 | // Comment the following line to disable support for non ICANN tld's 34 | $whois->non_icann = true; 35 | 36 | $result = $whois->Lookup($domain); 37 | $winfo = ''; 38 | 39 | if (!empty($result['rawdata'])) { 40 | // $winfo .= '
' . implode($result['rawdata'], "\n") . '
'; 41 | $winfo .= implode($result['rawdata'], "\n"); 42 | } else { 43 | $winfo = implode($whois->Query['errstr'], "\n

"); 44 | } 45 | exit(json_encode(array('code' => 0, 'data' => $winfo))); 46 | break; 47 | default: 48 | exit('{"code":-4,"msg":"No Act"}'); 49 | break; 50 | } 51 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.wildwestdomains.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact:', 40 | 'tech' => 'Technical Contact:', 41 | 'domain.name' => 'Domain name:', 42 | 'domain.sponsor'=> 'Registered through:', 43 | 'domain.nserver' => 'Domain servers in listed order:', 44 | 'domain.created' => 'Created on:', 45 | 'domain.expires' => 'Expires on:', 46 | 'domain.changed' => 'Last Updated on:' 47 | ); 48 | 49 | return easy_parser($data_str, $items, 'mdy'); 50 | } 51 | } 52 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.ir.php: -------------------------------------------------------------------------------- 1 | . 19 | */ 20 | 21 | // Define the handler flag. 22 | if (!defined('__IR_HANDLER__')) 23 | define('__IR_HANDLER__', 1); 24 | 25 | // Loadup the parser. 26 | require_once('whois.parser.php'); 27 | 28 | /** 29 | * IR Domain names lookup handler class. 30 | */ 31 | class ir_handler 32 | { 33 | function parse($data_str, $query) 34 | { 35 | $translate = array( 36 | 'nic-hdl' => 'handle', 37 | 'org' => 'organization', 38 | 'e-mail' => 'email', 39 | 'person' => 'name', 40 | 'fax-no' => 'fax', 41 | 'domain' => 'name' 42 | ); 43 | 44 | $contacts = array( 45 | 'admin-c' => 'admin', 46 | 'tech-c' => 'tech', 47 | 'holder-c' => 'owner' 48 | ); 49 | 50 | $reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd'); 51 | 52 | $r['regrinfo'] = $reg; 53 | $r['regyinfo'] = array( 54 | 'referrer'=>'http://whois.nic.ir/', 55 | 'registrar' => 'NIC-IR' 56 | ); 57 | return $r; 58 | } 59 | } 60 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.name.php: -------------------------------------------------------------------------------- 1 | 'REGISTRANT CONTACT INFO', 39 | 'admin' => 'ADMINISTRATIVE CONTACT INFO', 40 | 'tech' => 'TECHNICAL CONTACT INFO', 41 | 'billing' => 'BILLING CONTACT INFO', 42 | 'domain.name' => 'Domain Name:', 43 | 'domain.sponsor' => 'Registrar', 44 | 'domain.created' => 'Creation Date', 45 | 'domain.expires' => 'Expiration Date' 46 | ); 47 | 48 | $extra = array( 49 | 'phone:' => 'phone', 50 | 'email address:' => 'email' 51 | ); 52 | 53 | return easy_parser($data_str, $items, 'y-m-d', $extra, false, true); 54 | } 55 | } 56 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.cl.php: -------------------------------------------------------------------------------- 1 | '(Administrative Contact)', 39 | 'tech' => 'Contacto Técnico (Technical Contact):', 40 | 'domain.nserver' => 'Servidores de nombre (Domain servers):', 41 | 'domain.changed' => '(Database last updated on):' 42 | ); 43 | 44 | $trans = array( 45 | 'organización:' => 'organization', 46 | 'nombre :' => 'name'); 47 | 48 | $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'd-m-y', $trans); 49 | $r['regyinfo'] = array( 50 | 'referrer' => 'http://www.nic.cl', 51 | 'registrar' => 'NIC Chile' 52 | ); 53 | return $r; 54 | } 55 | } 56 | ?> 57 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.directnic.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact', 40 | 'tech' => 'Technical Contact', 41 | 'domain.name' => 'Domain Name:', 42 | 'domain.sponsor' => 'Registration Service Provider:', 43 | 'domain.nserver' => 'Domain servers in listed order:', 44 | 'domain.changed' => 'Record last updated ', 45 | 'domain.created' => 'Record created on ', 46 | 'domain.expires' => 'Record expires on ', 47 | '' => 'By submitting a WHOIS query' 48 | ); 49 | 50 | return easy_parser($data_str, $items, 'mdy',false,false,true); 51 | } 52 | } 53 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.corporatedomains.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact', 40 | 'tech' => 'Technical Contact', 41 | 'zone' => 'Zone Contact', 42 | 'domain.name' => 'Domain Name:', 43 | 'domain.changed' => 'Last updated on', 44 | 'domain.created' => 'Domain created on', 45 | 'domain.expires' => 'Domain expires on', 46 | 'domain.sponsor' => 'Registrar Name....:', 47 | 'domain.nserver' => 'DNS Servers:' 48 | ); 49 | 50 | return easy_parser($data_str, $items, 'dmy', false, false, true); 51 | } 52 | } 53 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.dreamhost.php: -------------------------------------------------------------------------------- 1 | 'Registrant Contact:', 39 | 'admin' => 'Administrative Contact:', 40 | 'tech' => 'Technical Contact:', 41 | 'billing' => 'Billing Contact:', 42 | 'domain.name' => 'Domain Name:', 43 | 'domain.nserver' => 'Domain servers in listed order:', 44 | 'domain.created' => 'Record created on', 45 | 'domain.expires' => 'Record expires on' 46 | ); 47 | 48 | $r = easy_parser($data_str, $items, 'dmy', false, false, true); 49 | if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor'])) 50 | $r['domain']['sponsor'] = $r['domain']['sponsor'][0]; 51 | return $r; 52 | } 53 | } 54 | ?> 55 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.se.php: -------------------------------------------------------------------------------- 1 | 'domain.name', 39 | 'state:' => 'domain.status.', 40 | 'status:' => 'domain.status.', 41 | 'expires:' => 'domain.expires', 42 | 'created:' => 'domain.created', 43 | 'nserver:' => 'domain.nserver.', 44 | 'holder:' => 'owner.handle' 45 | ); 46 | 47 | $r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd', false); 48 | 49 | $r['regrinfo']['registered'] = isset($r['regrinfo']['domain']['name']) ? 'yes' : 'no'; 50 | 51 | $r['regyinfo'] = array( 52 | 'referrer' => 'http://www.nic-se.se', 53 | 'registrar' => 'NIC-SE' 54 | ); 55 | return $r; 56 | } 57 | } 58 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.names4ever.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact', 40 | 'tech' => 'Technical Contact', 41 | 'domain.name' => 'Domain Name:', 42 | 'domain.sponsor' => 'Registrar Name....:', 43 | 'domain.referrer' => 'Registrar Homepage:', 44 | 'domain.nserver' => 'DNS Servers:', 45 | 'domain.created' => 'Record created on', 46 | 'domain.expires' => 'Record expires on', 47 | 'domain.changed' => 'Record last updated on', 48 | 'domain.status' => 'Domain status:' 49 | ); 50 | 51 | return easy_parser($data_str, $items, 'dmy', false, false, true); 52 | } 53 | } 54 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.ie.php: -------------------------------------------------------------------------------- 1 | 'handle', 39 | 'person' => 'name', 40 | 'renewal' => 'expires', 41 | 'registration' => 'created', 42 | 'ren-status' => 'status' 43 | ]; 44 | 45 | $contacts = [ 46 | 'admin-c' => 'admin', 47 | 'tech-c' => 'tech', 48 | ]; 49 | 50 | $reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'Ymd'); 51 | 52 | if (isset($reg['domain']['descr'])) 53 | { 54 | $reg['owner']['organization'] = $reg['domain']['descr']; 55 | unset($reg['domain']['descr']); 56 | } 57 | 58 | $r['regrinfo'] = $reg; 59 | $r['regyinfo'] = [ 60 | 'referrer' => 'http://www.domainregistry.ie', 61 | 'registrar' => 'IE Domain Registry' 62 | ]; 63 | return $r; 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.ae.php: -------------------------------------------------------------------------------- 1 | 'domain.name', 39 | 'Registrar Name:' => 'domain.sponsor', 40 | 'Status:' => 'domain.status', 41 | 'Registrant Contact ID:' => 'owner.handle', 42 | 'Registrant Contact Name:' => 'owner.name', 43 | 'Tech Contact Name:' => 'tech.name', 44 | 'Tech Contact ID:' => 'tech.handle', 45 | 'Name Server:' => 'domain.nserver.' 46 | ); 47 | 48 | $r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd'); 49 | 50 | $r['regyinfo'] = array( 51 | 'referrer' => 'http://www.nic.ae', 52 | 'registrar' => 'UAENIC' 53 | ); 54 | 55 | return $r; 56 | } 57 | } 58 | ?> 59 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.godaddy.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact', 40 | 'tech' => 'Technical Contact', 41 | 'domain.name' => 'Domain Name:', 42 | 'domain.nserver.' => 'Domain servers in listed order:', 43 | 'domain.created' => 'Created on:', 44 | 'domain.expires' => 'Expires on:', 45 | 'domain.changed' => 'Last Updated on:', 46 | 'domain.sponsor' => 'Registered through:' 47 | ); 48 | 49 | $r = get_blocks($data_str, $items); 50 | $r['owner'] = get_contact($r['owner']); 51 | $r['admin'] = get_contact($r['admin'],false,true); 52 | $r['tech'] = get_contact($r['tech'],false,true); 53 | return format_dates($r, 'dmy'); 54 | } 55 | } 56 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.lt.php: -------------------------------------------------------------------------------- 1 | 'handle', 39 | 'contact name:' => 'name' 40 | ); 41 | 42 | $items = array( 43 | 'admin' => 'Contact type: Admin', 44 | 'tech' => 'Contact type: Tech', 45 | 'zone' => 'Contact type: Zone', 46 | 'owner.name' => 'Registrar:', 47 | 'owner.email' => 'Registrar email:', 48 | 'domain.status' => 'Status:', 49 | 'domain.created' => 'Registered:', 50 | 'domain.changed' => 'Last updated:', 51 | 'domain.nserver.' => 'NS:', 52 | '' => '%' 53 | ); 54 | 55 | $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd', $translate); 56 | 57 | $r['regyinfo'] = array( 58 | 'referrer' => 'http://www.domreg.lt', 59 | 'registrar' => 'DOMREG.LT' 60 | ); 61 | return $r; 62 | } 63 | } 64 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.bh.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | Maintained by David Saez 8 | 9 | For the most recent version of this package visit: 10 | 11 | http://www.phpwhois.org 12 | 13 | This program is free software; you can redistribute it and/or 14 | modify it under the terms of the GNU General Public License 15 | as published by the Free Software Foundation; either version 2 16 | of the License, or (at your option) any later version. 17 | 18 | This program is distributed in the hope that it will be useful, 19 | but WITHOUT ANY WARRANTY; without even the implied warranty of 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 | GNU General Public License for more details. 22 | 23 | You should have received a copy of the GNU General Public License 24 | along with this program; if not, write to the Free Software 25 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 26 | */ 27 | 28 | if (!defined('__BH_HANDLER__')) 29 | define('__BH_HANDLER__', 1); 30 | 31 | require_once('whois.parser.php'); 32 | 33 | class bh_handler 34 | { 35 | function parse($data_str, $query) 36 | { 37 | $items = array( 38 | 'Sponsoring Registrar Name:' => 'domain.sponsor.name', 39 | 'Sponsoring Registrar Email:' => 'domain.sponsor.email', 40 | 'Sponsoring Registrar Uri:' => 'domain.sponsor.uri', 41 | 'Sponsoring Registrar Phone:' => 'domain.sponsor.phone' 42 | ); 43 | $i = generic_parser_b($data_str['rawdata'], $items); 44 | $r['regrinfo'] = generic_parser_b($data_str['rawdata']); 45 | if (isset($r['regrinfo']['domain']) 46 | && is_array($r['regrinfo']['domain'])) 47 | $r['regrinfo']['domain']['sponsor'] = $i['domain']['sponsor']; 48 | if (empty($r['regrinfo']['domain']['created'])) 49 | $r['regrinfo']['registered'] = 'no'; 50 | else 51 | $r['regrinfo']['registered'] = 'yes'; 52 | $r['regyinfo'] = array( 53 | 'referrer' => 'http://www.nic.bh/', 54 | 'registrar' => 'NIC-BH' 55 | ); 56 | return $r; 57 | } 58 | } 59 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.opensrs.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact', 40 | 'tech' => 'Technical Contact', 41 | 'domain.name' => 'Domain name:', 42 | '' => 'Registration Service Provider:', 43 | 'domain.nserver' => 'Domain servers in listed order:', 44 | 'domain.changed' => 'Record last updated on', 45 | 'domain.created' => 'Record created on', 46 | 'domain.expires' => 'Record expires on', 47 | 'domain.sponsor' => 'Registrar of Record:' 48 | ); 49 | 50 | $r = easy_parser($data_str, $items, 'dmy', false, false, true); 51 | 52 | if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor'])) 53 | $r['domain']['sponsor'] = $r['domain']['sponsor'][0]; 54 | 55 | return $r; 56 | } 57 | } 58 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.edu.php: -------------------------------------------------------------------------------- 1 | 'Domain name:', 39 | 'domain.sponsor' => 'Registrar:', 40 | 'domain.nserver' => 'Name Servers:', 41 | 'domain.changed' => 'Domain record last updated:', 42 | 'domain.created' => 'Domain record activated:', 43 | 'owner' => 'Registrant:', 44 | 'admin' => 'Administrative Contact:', 45 | 'tech' => 'Technical Contact:', 46 | 'billing' => 'Billing Contact:' 47 | ); 48 | 49 | $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'dmy'); 50 | 51 | if (isset($b['tech'])) 52 | { 53 | if ($r['regrinfo']['tech']['name'] == 'Same as above') 54 | $r['regrinfo']['tech'] = $r['regrinfo']['admin']; 55 | } 56 | 57 | $r['regyinfo']['referrer'] = 'http://whois.educause.net'; 58 | $r['regyinfo']['registrar'] = 'EDUCASE'; 59 | return ($r); 60 | } 61 | } 62 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.nicco.php: -------------------------------------------------------------------------------- 1 | 'Holder Contact', 39 | 'admin' => 'Admin Contact', 40 | 'tech' => 'Tech. Contact', 41 | 'domain.nserver.' => 'Nameservers', 42 | 'domain.created' => 'Creation Date:', 43 | 'domain.expires' => 'Expiration Date:' 44 | ); 45 | 46 | $translate = array( 47 | 'city:' => 'address.city', 48 | 'org. name:' => 'organization', 49 | 'address1:' => 'address.street.', 50 | 'address2:' => 'address.street.', 51 | 'state:' => 'address.state', 52 | 'postal code:' => 'address.zip' 53 | ); 54 | 55 | $r = get_blocks($data_str, $items, true); 56 | $r['owner'] = get_contact($r['owner'],$translate); 57 | $r['admin'] = get_contact($r['admin'],$translate,true); 58 | $r['tech'] = get_contact($r['tech'],$translate,true); 59 | return format_dates($r, 'dmy'); 60 | } 61 | } 62 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.rwhois.php: -------------------------------------------------------------------------------- 1 | 'owner.name', 39 | 'network:Organization;I:' => 'owner.organization', 40 | 'network:Organization-City:' => 'owner.address.city', 41 | 'network:Organization-Zip:' => 'owner.address.pcode', 42 | 'network:Organization-Country:' => 'owner.address.country', 43 | 'network:IP-Network-Block:' => 'network.inetnum', 44 | 'network:IP-Network:' => 'network.inetnum', 45 | 'network:Network-Name:' => 'network.name', 46 | 'network:ID:' => 'network.handle', 47 | 'network:Created:' => 'network.created', 48 | 'network:Updated:' => 'network.changed', 49 | 'network:Tech-Contact;I:' => 'tech.email', 50 | 'network:Admin-Contact;I:' => 'admin.email' 51 | ); 52 | 53 | $res = generic_parser_b($data_str, $items, 'Ymd', false); 54 | if (isset($res['disclaimer'])) unset($res['disclaimer']); 55 | return array( 'regrinfo' => $res ); 56 | } 57 | } 58 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.fj.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'domain.status' => 'Status:', 40 | 'domain.expires' => 'Expires:', 41 | 'domain.nserver' => 'Domain servers:' 42 | ); 43 | 44 | $r['regrinfo'] = get_blocks($data_str['rawdata'], $items); 45 | 46 | if (!empty($r['regrinfo']['domain']['status'])) 47 | { 48 | $r['regrinfo'] = get_contacts($r['regrinfo']); 49 | 50 | date_default_timezone_set("Pacific/Fiji"); 51 | 52 | if (isset($r['regrinfo']['domain']['expires'])) 53 | $r['regrinfo']['domain']['expires'] = strftime("%Y-%m-%d",strtotime($r['regrinfo']['domain']['expires'])); 54 | 55 | $r['regrinfo']['registered'] = 'yes'; 56 | } 57 | else 58 | $r['regrinfo']['registered'] = 'no'; 59 | 60 | $r['regyinfo'] = array( 61 | 'referrer' => 'http://www.domains.fj', 62 | 'registrar' => 'FJ Domain Name Registry' 63 | ); 64 | return $r; 65 | } 66 | } 67 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.dk.php: -------------------------------------------------------------------------------- 1 | 'Domain:', 39 | 'domain.nserver.' => 'Hostname:', 40 | 'domain.status' => 'Status:', 41 | 'domain.desc.' => 'Descr:', 42 | 'domain.registered' => 'Registered:', 43 | 'domain.expires' => 'Expires:', 44 | 'domain.registration_period' => 'Registration period:', 45 | 'domain.VID' => 'VID:', 46 | 'domain.DNSSEC' => 'DNSSEC:', 47 | 'owner' => 'Name:', 48 | 'admin' => '[Admin-C]', 49 | 'tech' => '[Tech-C]', 50 | 'zone' => '[Zone-C]' 51 | ); 52 | 53 | $r['regrinfo'] = get_blocks($data_str['rawdata'], $items); 54 | 55 | $r['regyinfo'] = array( 56 | 'registrar' => 'DK Hostmaster A/S', 57 | 'referrer' => 'https://www.dk-hostmaster.dk/' 58 | ); 59 | 60 | return $r; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.publicdomainregistry.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'owner#' => '(Registrant):', 40 | 'admin' => 'Administrative Contact', 41 | 'tech' => 'Technical Contact', 42 | 'billing' => 'Billing Contact', 43 | 'domain.name' => 'Domain name:', 44 | 'domain.sponsor' => 'Registration Service Provided By:', 45 | 'domain.nserver' => 'Domain servers in listed order:', 46 | 'domain.changed' => 'Record last updated ', 47 | 'domain.created' => 'Record created on', 48 | 'domain.created#' => 'Creation Date:', 49 | 'domain.expires' => 'Record expires on', 50 | 'domain.expires#' => 'Expiration Date:', 51 | 'domain.status' => 'Status:' 52 | ); 53 | 54 | return easy_parser($data_str, $items, 'mdy', false, true, true); 55 | } 56 | } 57 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.su.php: -------------------------------------------------------------------------------- 1 | 'domain.name', 39 | 'state:' => 'domain.status', 40 | 'person:' => 'owner.name', 41 | 'phone:' => 'owner.phone', 42 | 'e-mail:' => 'owner.email', 43 | 'created:' => 'domain.created', 44 | 'paid-till:' => 'domain.expires', 45 | /* 46 | 'nserver:' => 'domain.nserver.', 47 | 'source:' => 'domain.source', 48 | 'type:' => 'owner.type', 49 | 'org:' => 'owner.organization', 50 | 'fax-no:' => 'owner.fax', 51 | */ 52 | ); 53 | 54 | $r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'dmy'); 55 | 56 | $r['regyinfo'] = array( 57 | 'referrer' => 'http://www.ripn.net', 58 | 'registrar' => 'RUCENTER-REG-RIPN' 59 | ); 60 | return $r; 61 | } 62 | } 63 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.domainpeople.php: -------------------------------------------------------------------------------- 1 | 'Registrant Contact:', 41 | 'admin' => 'Administrative Contact:', 42 | 'tech' => 'Technical Contact:', 43 | 'domain.name' => 'Domain name:', 44 | 'domain.sponsor' => 'Registration Service Provided By:', 45 | 'domain.referrer' => 'Contact:', 46 | 'domain.nserver.' => 'Name Servers:', 47 | 'domain.created' => 'Creation date:', 48 | 'domain.expires' => 'Expiration date:', 49 | // 'domain.changed' => 'Record last updated on', 50 | 'domain.status' => 'Status:' 51 | ); 52 | 53 | $r = easy_parser($data_str, $items, 'dmy', false, false, true); 54 | if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor'])) 55 | $r['domain']['sponsor'] = $r['domain']['sponsor'][0]; 56 | return $r; 57 | } 58 | } 59 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.org.za.php: -------------------------------------------------------------------------------- 1 | 'Status:', 39 | 'domain.nserver' => 'Domain name servers in listed order:', 40 | 'domain.changed' => 'Record last updated on', 41 | 'owner' => 'rwhois search on', 42 | 'admin' => 'Administrative Contact:', 43 | 'tech' => 'Technical Contact:', 44 | 'billing' => 'Billing Contact:', 45 | '#' => 'Search Again' 46 | ); 47 | 48 | $r['regrinfo'] = get_blocks($data['rawdata'], $items); 49 | 50 | if (isset($r['regrinfo']['domain']['status'])) 51 | { 52 | $r['regrinfo']['registered'] = 'yes'; 53 | $r['regrinfo']['domain']['handler'] = strtok(array_shift($r['regrinfo']['owner']),' '); 54 | $r['regrinfo'] = get_contacts($r['regrinfo']); 55 | } 56 | else 57 | $r['regrinfo']['registered'] = 'no'; 58 | 59 | $r['regyinfo']['referrer'] = 'http://www.org.za'; 60 | $r['regyinfo']['registrar'] = 'The ORG.ZA Domain'; 61 | return $r; 62 | } 63 | } 64 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.ru.php: -------------------------------------------------------------------------------- 1 | 'domain.name', 39 | 'state:' => 'domain.status', 40 | 'nserver:' => 'domain.nserver.', 41 | 'source:' => 'domain.source', 42 | 'created:' => 'domain.created', 43 | 'paid-till:' => 'domain.expires', 44 | 'type:' => 'owner.type', 45 | 'org:' => 'owner.organization', 46 | 'phone:' => 'owner.phone', 47 | 'fax-no:' => 'owner.fax', 48 | 'e-mail:' => 'owner.email' 49 | ); 50 | 51 | $r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'dmy'); 52 | 53 | if (empty($r['regrinfo']['domain']['status'])) 54 | $r['regrinfo']['registered'] = 'no'; 55 | 56 | $r['regyinfo'] = array( 57 | 'referrer' => 'http://www.ripn.net', 58 | 'registrar' => 'RU-CENTER-REG-RIPN' 59 | ); 60 | return $r; 61 | } 62 | } 63 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.fi.php: -------------------------------------------------------------------------------- 1 | 'domain.name', 39 | 'created............:' => 'domain.created', 40 | 'expires............:' => 'domain.expires', 41 | 'status.............:' => 'domain.status', 42 | 'modified...........:' => 'domain.changed', 43 | 'RegistryLock.......:' => 'domain.lock', 44 | 'nserver............:' => 'domain.nserver.', 45 | 'registrar..........:' => 'domain.sponsor', 46 | 'dnssec.............:' => 'domain.dnssec', 47 | 'name...............:' => 'owner.name', 48 | 'address............:' => 'owner.address.', 49 | 'phone..............:' => 'owner.phone', 50 | 'register number....:' => 'owner.handle', 51 | 'holder email.......:' => 'owner.email' 52 | ]; 53 | 54 | $r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items); 55 | 56 | $r['regyinfo'] = [ 57 | 'referrer' => 'https://domain.ficora.fi/', 58 | 'registrar' => 'Finnish Communications Regulatory Authority' 59 | ]; 60 | return $r; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.mx.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact:', 40 | 'tech' => 'Technical Contact:', 41 | 'billing' => 'Billing Contact:', 42 | 'domain.nserver' => 'Name Servers:', 43 | 'domain.created' => 'Created On:', 44 | 'domain.expires' => 'Expiration Date:', 45 | 'domain.changed' => 'Last Updated On:', 46 | 'domain.sponsor' => 'Registrar:' 47 | ); 48 | 49 | $extra = array( 50 | 'city:' => 'address.city', 51 | 'state:' => 'address.state', 52 | 'dns:' => '0' 53 | ); 54 | 55 | $r['regrinfo'] = easy_parser($data_str['rawdata'],$items,'dmy',$extra); 56 | 57 | $r['regyinfo'] = array( 58 | 'registrar' => 'NIC Mexico', 59 | 'referrer' => 'http://www.nic.mx/' 60 | ); 61 | 62 | if (empty($r['regrinfo']['domain']['created'])) 63 | $r['regrinfo']['registered'] = 'no'; 64 | else 65 | $r['regrinfo']['registered'] = 'yes'; 66 | 67 | return $r; 68 | } 69 | } 70 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.nameintel.php: -------------------------------------------------------------------------------- 1 | 'Registrant Contact:', 39 | 'admin' => 'Administrative Contact:', 40 | 'tech' => 'Technical Contact', 41 | 'domain.name' => 'Domain Name:', 42 | 'domain.status' => 'Status:', 43 | 'domain.nserver' => 'Name Server:', 44 | 'domain.created' => 'Creation Date:', 45 | 'domain.expires' => 'Expiration Date:' 46 | ); 47 | 48 | $r = easy_parser($data_str, $items, 'dmy', false, false, true); 49 | 50 | if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor'])) 51 | $r['domain']['sponsor'] = $r['domain']['sponsor'][0]; 52 | 53 | foreach($r as $key => $part) 54 | { 55 | if (isset($part['address'])) 56 | { 57 | $r[$key]['organization'] = array_shift($r[$key]['address']); 58 | $r[$key]['address']['country'] = array_pop($r[$key]['address']); 59 | } 60 | } 61 | return $r; 62 | } 63 | } 64 | ?> 65 | -------------------------------------------------------------------------------- /src/admin/ajax_server_order.php: -------------------------------------------------------------------------------- 1 | window.location.href='./login.php';"); 6 | // $act=isset($_GET['act'])?daddslashes($_GET['act']):null; 7 | $act = isset($_REQUEST['act']) ? daddslashes($_REQUEST['act']) : 'list'; 8 | if (!checkRefererHost()) exit('{"code":403}'); 9 | 10 | @header('Content-Type: application/json; charset=UTF-8'); 11 | 12 | switch ($act) { 13 | case 'list': 14 | $sql = " 1=1"; 15 | $order_server_id = isset($_POST['order_server_id']) && !empty($_POST['order_server_id']) ? trim(daddslashes($_POST['order_server_id'])) : null; 16 | $order_provider = isset($_POST['order_provider']) && !empty($_POST['order_provider']) ? trim(daddslashes($_POST['order_provider'])) : null; 17 | $order_type = isset($_POST['order_type']) && !empty($_POST['order_type']) ? trim(daddslashes($_POST['order_type'])) : null; 18 | 19 | if (!empty($order_server_id)) { 20 | $sql .= " AND `order_server_id`='{$order_server_id}'"; 21 | } 22 | if (!empty($order_provider)) { 23 | $sql .= " AND `order_provider`='{$order_provider}'"; 24 | } 25 | if (!empty($order_type)) { 26 | $sql .= " AND `order_type`='{$order_type}'"; 27 | } 28 | $offset = intval($_POST['offset']); 29 | $limit = intval($_POST['limit']); 30 | $total = $DB->count('order_server', $sql); 31 | $list = $DB->findAll('order_server', '*', $sql, 'create_time desc', "$offset,$limit"); 32 | 33 | exit(json_encode(['total' => $total, 'rows' => $list])); 34 | break; 35 | case 'remark': 36 | $order_id = intval($_POST['id']); 37 | $order_remark = trim(daddslashes($_POST['remark'])); 38 | if (empty($order_id)) exit('{"code":-1,"msg":"id不能为空"}'); 39 | if (!$DB->update('order_server', array('order_remark' => $order_remark, 'update_time' => date("Y-m-d H:i:s")), ['order_id' => $order_id])) { 40 | exit('{"code":-1,"msg":"修改备注失败[' . $DB->error() . ']"}'); 41 | } 42 | exit('{"code":0,"msg":"修改备注成功!"}'); 43 | break; 44 | default: 45 | exit('{"code":-4,"msg":"No Act"}'); 46 | break; 47 | } 48 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.is.php: -------------------------------------------------------------------------------- 1 | 'fax', 39 | 'e-mail' => 'email', 40 | 'nic-hdl' => 'handle', 41 | 'person' => 'name' 42 | ); 43 | 44 | $contacts = array( 45 | 'owner-c' => 'owner', 46 | 'admin-c' => 'admin', 47 | 'tech-c' => 'tech', 48 | 'billing-c' => 'billing', 49 | 'zone-c' => 'zone' 50 | ); 51 | 52 | $reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'mdy'); 53 | 54 | if (isset($reg['domain']['descr'])) 55 | { 56 | $reg['owner']['name'] = array_shift($reg['domain']['descr']); 57 | $reg['owner']['address'] = $reg['domain']['descr']; 58 | unset($reg['domain']['descr']); 59 | } 60 | 61 | $r['regrinfo'] = $reg; 62 | $r['regyinfo'] = array( 63 | 'referrer' => 'http://www.isnic.is', 64 | 'registrar' => 'ISNIC' 65 | ); 66 | return $r; 67 | } 68 | } 69 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.ly.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact:', 40 | 'tech' => 'Technical Contact:', 41 | 'domain.name' => 'Domain Name:', 42 | 'domain.status' => 'Domain Status:', 43 | 'domain.created' => 'Created:', 44 | 'domain.changed' => 'Updated:', 45 | 'domain.expires' => 'Expired:', 46 | 'domain.nserver' => 'Domain servers in listed order:' 47 | ); 48 | 49 | $extra = array( 'zip/postal code:' => 'address.pcode' ); 50 | 51 | $r['regrinfo'] = get_blocks($data_str['rawdata'], $items); 52 | 53 | if (!empty($r['regrinfo']['domain']['name'])) 54 | { 55 | $r['regrinfo'] = get_contacts($r['regrinfo'],$extra); 56 | $r['regrinfo']['domain']['name'] = $r['regrinfo']['domain']['name'][0]; 57 | $r['regrinfo']['registered'] = 'yes'; 58 | } 59 | else 60 | { 61 | $r = ''; 62 | $r['regrinfo']['registered'] = 'no'; 63 | } 64 | 65 | $r['regyinfo'] = array( 66 | 'referrer' => 'http://www.nic.ly', 67 | 'registrar' => 'Libya ccTLD' 68 | ); 69 | return $r; 70 | } 71 | } 72 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.au.php: -------------------------------------------------------------------------------- 1 | 'domain.name', 40 | 'Last Modified:' => 'domain.changed', 41 | 'Registrar Name:' => 'domain.sponsor', 42 | 'Status:' => 'domain.status', 43 | 'Domain ROID:' => 'domain.handle', 44 | 'Registrant:' => 'owner.organization', 45 | 'Registrant Contact ID:' => 'owner.handle', 46 | 'Registrant Contact Email:' => 'owner.email', 47 | 'Registrant Contact Name:' => 'owner.name', 48 | 'Tech Contact Name:' => 'tech.name', 49 | 'Tech Contact Email:' => 'tech.email', 50 | 'Tech Contact ID:' => 'tech.handle', 51 | 'Name Server:' => 'domain.nserver.' 52 | ); 53 | 54 | $r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items); 55 | $r['regyinfo'] = array( 56 | 'referrer' => 'http://www.aunic.net', 57 | 'registrar' => 'AU-NIC' 58 | ); 59 | return $r; 60 | } 61 | } 62 | 63 | ?> 64 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.joker.php: -------------------------------------------------------------------------------- 1 | 'handle', 39 | 'modified' => 'changed', 40 | 'reseller' => 'sponsor', 41 | 'address' => 'address.street', 42 | 'postal-code' => 'address.pcode', 43 | 'city' => 'address.city', 44 | 'state' => 'address.state', 45 | 'country' => 'address.country', 46 | 'person' => 'name', 47 | 'domain' => 'name' 48 | ); 49 | 50 | $contacts = array( 51 | 'admin-c' => 'admin', 52 | 'tech-c' => 'tech', 53 | 'billing-c' => 'billing' 54 | ); 55 | 56 | $items = array( 57 | 'owner' => 'name', 58 | 'organization' => 'organization', 59 | 'email' => 'email', 60 | 'phone' => 'phone', 61 | 'address' => 'address', 62 | ); 63 | 64 | $r = generic_parser_a($data_str, $translate, $contacts, 'domain', 'Ymd'); 65 | 66 | foreach($items as $tag => $convert) 67 | { 68 | if (isset($r['domain'][$tag])) 69 | { 70 | $r['owner'][$convert] = $r['domain'][$tag]; 71 | unset($r['domain'][$tag]); 72 | } 73 | } 74 | 75 | return $r; 76 | } 77 | } 78 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.it.php: -------------------------------------------------------------------------------- 1 | array 31 | - ContactID in address 32 | */ 33 | 34 | if (!defined('__IT_HANDLER__')) 35 | define('__IT_HANDLER__', 1); 36 | 37 | require_once('whois.parser.php'); 38 | 39 | class it_handler 40 | { 41 | function parse($data_str, $query) 42 | { 43 | $items = array( 44 | 'domain.name' => 'Domain:', 45 | 'domain.nserver' => 'Nameservers', 46 | 'domain.status' => 'Status:', 47 | 'domain.expires' => 'Expire Date:', 48 | 'owner' => 'Registrant', 49 | 'admin' => 'Admin Contact', 50 | 'tech' => 'Technical Contacts', 51 | 'registrar' => 'Registrar' 52 | ); 53 | 54 | $extra = array( 55 | 'address:' => 'address.', 56 | 'contactid:' => 'handle', 57 | 'organization:' => 'organization', 58 | 'created:' => 'created', 59 | 'last update:' => 'changed', 60 | 'web:' => 'web' 61 | ); 62 | 63 | $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd',$extra); 64 | 65 | if (isset($r['regrinfo']['registrar'])) 66 | { 67 | $r['regrinfo']['domain']['registrar'] = $r['regrinfo']['registrar']; 68 | unset($r['regrinfo']['registrar']); 69 | } 70 | 71 | $r['regyinfo'] = array( 72 | 'registrar' => 'IT-Nic', 73 | 'referrer' => 'http://www.nic.it/' 74 | ); 75 | return $r; 76 | } 77 | } 78 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.markmonitor.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative Contact:', 40 | 'tech' => 'Technical Contact, Zone Contact:', 41 | 'domain.name' => 'Domain Name:', 42 | 'domain.sponsor' => 'Registrar Name:', 43 | 'domain.nserver' => 'Domain servers in listed order:', 44 | 'domain.created' => 'Created on..............:', 45 | 'domain.expires' => 'Expires on..............:', 46 | 'domain.changed' => 'Record last updated on..:' 47 | ); 48 | 49 | $r = easy_parser($data_str, $items, 'dmy', false, false, true); 50 | 51 | if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor'])) 52 | $r['domain']['sponsor'] = $r['domain']['sponsor'][0]; 53 | 54 | foreach($r as $key => $part) 55 | { 56 | if (isset($part['address'])) 57 | { 58 | $r[$key]['organization'] = array_shift($r[$key]['address']); 59 | $r[$key]['address']['country'] = array_pop($r[$key]['address']); 60 | } 61 | } 62 | return $r; 63 | } 64 | } 65 | ?> 66 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.melbourneit.php: -------------------------------------------------------------------------------- 1 | 'domain.name', 39 | 'Registration Date....' => 'domain.created', 40 | 'Expiry Date..........' => 'domain.expires', 41 | 'Organisation Name....' => 'owner.name', 42 | 'Organisation Address.' => 'owner.address.', 43 | 'Admin Name...........' => 'admin.name', 44 | 'Admin Address........' => 'admin.address.', 45 | 'Admin Email..........' => 'admin.email', 46 | 'Admin Phone..........' => 'admin.phone', 47 | 'Admin Fax............' => 'admin.fax', 48 | 'Tech Name............' => 'tech.name', 49 | 'Tech Address.........' => 'tech.address.', 50 | 'Tech Email...........' => 'tech.email', 51 | 'Tech Phone...........' => 'tech.phone', 52 | 'Tech Fax.............' => 'tech.fax', 53 | 'Name Server..........' => 'domain.nserver.' 54 | ); 55 | 56 | return generic_parser_b($data_str, $items, 'ymd'); 57 | } 58 | } 59 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.nameking.php: -------------------------------------------------------------------------------- 1 | 'Registrant', 39 | 'admin' => 'Admin Contact', 40 | 'tech' => 'Tech Contact', 41 | 'billing' => 'Billing Contact', 42 | 'domain.sponsor' => 'Registration Provided By:', 43 | 'domain.created' => 'Creation Date:', 44 | 'domain.expires' => 'Expiration Date:', 45 | ); 46 | 47 | $extra = array( 48 | 'tel--' => 'phone', 49 | 'tel:' => 'phone', 50 | 'tel --:' => 'phone', 51 | 'email-:' => 'email', 52 | 'email:' => 'email', 53 | 'mail:' => 'email', 54 | 'name--' => 'name', 55 | 'org:' => 'organization', 56 | 'zipcode:' => 'address.pcode', 57 | 'postcode:' => 'address.pcode', 58 | 'address:' => 'address.street', 59 | 'city:' => 'address.city', 60 | 'province:' => 'address.city.', 61 | ',province:' => '', 62 | ',country:' => 'address.country', 63 | 'organization:' => 'organization', 64 | 'city, province, post code:' => 'address.city' 65 | ); 66 | 67 | return easy_parser($data_str, $items, 'mdy', $extra, false, true); 68 | } 69 | } 70 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.fr.php: -------------------------------------------------------------------------------- 1 | 'fax', 39 | 'e-mail' => 'email', 40 | 'nic-hdl' => 'handle', 41 | 'ns-list' => 'handle', 42 | 'person' => 'name', 43 | 'address' => 'address.', 44 | 'descr' => 'desc', 45 | 'anniversary' => '', 46 | 'domain' => '', 47 | 'last-update' => 'changed', 48 | 'registered' => 'created', 49 | 'country' => 'address.country', 50 | 'registrar' => 'sponsor', 51 | 'role' => 'organization' 52 | ); 53 | 54 | $contacts = array( 55 | 'admin-c' => 'admin', 56 | 'tech-c' => 'tech', 57 | 'zone-c' => 'zone', 58 | 'holder-c' => 'owner', 59 | 'nsl-id' => 'nserver' 60 | ); 61 | 62 | $reg = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain','dmY'); 63 | 64 | if (isset($reg['nserver'])) 65 | { 66 | $reg['domain'] = array_merge($reg['domain'],$reg['nserver']); 67 | unset($reg['nserver']); 68 | } 69 | 70 | $r['regrinfo'] = $reg; 71 | $r['regyinfo'] = array( 72 | 'referrer' => 'http://www.nic.fr', 73 | 'registrar' => 'AFNIC' 74 | ); 75 | return $r; 76 | } 77 | } 78 | ?> -------------------------------------------------------------------------------- /src/includes/lib/Oauth.php: -------------------------------------------------------------------------------- 1 | apiurl = $apiurl . 'connect.php'; 19 | $this->appid = $appid; 20 | $this->appkey = $appkey; 21 | $this->callback = $site_url . 'login.php'; 22 | } 23 | 24 | //获取登录跳转url 25 | public function login($type) 26 | { 27 | 28 | //-------生成唯一随机串防CSRF攻击 29 | $state = md5(uniqid(rand(), TRUE)); 30 | $_SESSION['Oauth_state'] = $state; 31 | 32 | //-------构造请求参数列表 33 | $keysArr = array( 34 | "act" => "login", 35 | "appid" => $this->appid, 36 | "appkey" => $this->appkey, 37 | "type" => $type, 38 | "redirect_uri" => $this->callback, 39 | "state" => $state 40 | ); 41 | $login_url = $this->apiurl . '?' . http_build_query($keysArr); 42 | $response = get_curl($login_url); 43 | $arr = json_decode($response, true); 44 | return $arr; 45 | } 46 | 47 | //登录成功返回网站 48 | public function callback() 49 | { 50 | //-------请求参数列表 51 | $keysArr = array( 52 | "act" => "callback", 53 | "appid" => $this->appid, 54 | "appkey" => $this->appkey, 55 | "code" => $_GET['code'] 56 | ); 57 | 58 | //------构造请求access_token的url 59 | $token_url = $this->apiurl . '?' . http_build_query($keysArr); 60 | $response = get_curl($token_url); 61 | 62 | $arr = json_decode($response, true); 63 | return $arr; 64 | } 65 | 66 | //查询用户信息 67 | public function query($type, $social_uid) 68 | { 69 | //-------请求参数列表 70 | $keysArr = array( 71 | "act" => "query", 72 | "appid" => $this->appid, 73 | "appkey" => $this->appkey, 74 | "type" => $type, 75 | "social_uid" => $social_uid 76 | ); 77 | 78 | //------构造请求access_token的url 79 | $token_url = $this->apiurl . '?' . http_build_query($keysArr); 80 | $response = get_curl($token_url); 81 | 82 | $arr = json_decode($response, true); 83 | return $arr; 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.de.php: -------------------------------------------------------------------------------- 1 | 'Domain:', 39 | 'domain.nserver.' => 'Nserver:', 40 | 'domain.nserver.#' => 'Nsentry:', 41 | 'domain.status' => 'Status:', 42 | 'domain.changed' => 'Changed:', 43 | 'domain.desc.' => 'Descr:', 44 | 'owner' => '[Holder]', 45 | 'admin' => '[Admin-C]', 46 | 'tech' => '[Tech-C]', 47 | 'zone' => '[Zone-C]' 48 | ]; 49 | 50 | $extra = [ 51 | 'city:' => 'address.city', 52 | 'postalcode:' => 'address.pcode', 53 | 'countrycode:' => 'address.country', 54 | 'remarks:' => '', 55 | 'sip:' => 'sip', 56 | 'type:' => '', 57 | 'address:' => 'address.street.' 58 | ]; 59 | 60 | $r['regrinfo'] = easy_parser($data_str['rawdata'], $items, 'ymd', $extra); 61 | 62 | $r['regyinfo'] = [ 63 | 'registrar' => 'DENIC eG', 64 | 'referrer' => 'http://www.denic.de/' 65 | ]; 66 | 67 | if (!isset($r['regrinfo']['domain']['status']) || $r['regrinfo']['domain']['status'] == 'free') 68 | { 69 | $r['regrinfo']['registered'] = 'no'; 70 | } 71 | else 72 | { 73 | $r['regrinfo']['domain']['changed'] = substr($r['regrinfo']['domain']['changed'], 0, 10); 74 | $r['regrinfo']['registered'] = 'yes'; 75 | } 76 | 77 | return $r; 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.register.php: -------------------------------------------------------------------------------- 1 | 'Registrant Info:', 39 | 'owner#1' => 'Organization:', 40 | 'owner#2' => 'Registrant:', 41 | 'owner#3' => 'Registrant Contact:', 42 | 'admin' => 'Administrative', 43 | 'tech' => 'Technical', 44 | 'zone' => 'Zone', 45 | 'domain.sponsor#0' => 'Registrar Name....:', 46 | 'domain.sponsor#1' => 'Registration Service Provided By:', 47 | 'domain.referrer' => 'Registrar Homepage:', 48 | 'domain.nserver' => 'Domain servers in listed order:', 49 | 'domain.nserver' => 'DNS Servers:', 50 | 'domain.name' => 'Domain name:', 51 | 'domain.created#0' => 'Created on..............:', 52 | 'domain.created#1' => 'Creation date:', 53 | 'domain.expires#0' => 'Expires on..............:', 54 | 'domain.expires#1' => 'Expiration date:', 55 | 'domain.changed' => 'Record last updated on..:', 56 | 'domain.status' => 'Status:' 57 | ); 58 | 59 | return easy_parser($data_str, $items, 'ymd'); 60 | } 61 | } 62 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.ws.php: -------------------------------------------------------------------------------- 1 | 'domain.name', 39 | 'Registrant Name:' => 'owner.organization', 40 | 'Registrant Email:' => 'owner.email', 41 | 'Domain Created:' => 'domain.created', 42 | 'Domain Last Updated:' => 'domain.changed', 43 | 'Registrar Name:' => 'domain.sponsor', 44 | 'Current Nameservers:' => 'domain.nserver.', 45 | 'Administrative Contact Email:' => 'admin.email', 46 | 'Administrative Contact Telephone:' => 'admin.phone', 47 | 'Registrar Whois:' => 'rwhois' 48 | ); 49 | 50 | $r['regrinfo'] = generic_parser_b($data_str['rawdata'], $items, 'ymd'); 51 | 52 | $r['regyinfo']['referrer'] = 'http://www.samoanic.ws'; 53 | $r['regyinfo']['registrar'] = 'Samoa Nic'; 54 | 55 | if (!empty($r['regrinfo']['domain']['name'])) 56 | { 57 | $r['regrinfo']['registered'] = 'yes'; 58 | 59 | if (isset($r['regrinfo']['rwhois'])) 60 | { 61 | if ($this->deep_whois) 62 | { 63 | $r['regyinfo']['whois'] = $r['regrinfo']['rwhois']; 64 | $r = $this->DeepWhois($query,$r); 65 | } 66 | 67 | unset($r['regrinfo']['rwhois']); 68 | } 69 | } 70 | else 71 | $r['regrinfo']['registered'] = 'no'; 72 | 73 | return $r; 74 | } 75 | } 76 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.ve.php: -------------------------------------------------------------------------------- 1 | 'Titular:', 40 | 'domain.name' => 'Nombre de Dominio:', 41 | 'admin' => 'Contacto Administrativo', 42 | 'tech' => 'Contacto Tecnico', 43 | 'billing' => 'Contacto de Cobranza:', 44 | 'domain.created' => 'Fecha de Creacion:', 45 | 'domain.changed' => 'Ultima Actualizacion:', 46 | 'domain.expires' => 'Fecha de Vencimiento:', 47 | 'domain.status' => 'Estatus del dominio:', 48 | 'domain.nserver' => 'Servidor(es) de Nombres de Dominio' 49 | ); 50 | 51 | $r['regrinfo'] = get_blocks($data_str['rawdata'], $items); 52 | 53 | if (!isset($r['regrinfo']['domain']['created']) || is_array($r['regrinfo']['domain']['created'])) 54 | { 55 | $r['regrinfo'] = array ( 'registered' => 'no'); 56 | return $r; 57 | } 58 | 59 | $dns = array(); 60 | 61 | foreach($r['regrinfo']['domain']['nserver'] as $nserv) 62 | { 63 | if ($nserv[0] == '-') $dns[] = $nserv; 64 | } 65 | 66 | $r['regrinfo']['domain']['nserver'] = $dns; 67 | $r['regrinfo'] = get_contacts($r['regrinfo']); 68 | $r['regyinfo'] = array( 69 | 'referrer' => 'http://registro.nic.ve', 70 | 'registrar' => 'NIC-Venezuela - CNTI' 71 | ); 72 | return $r; 73 | } 74 | } 75 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.be.php: -------------------------------------------------------------------------------- 1 | 'Domain:', 39 | 'domain.status' => 'Status:', 40 | 'domain.nserver' => 'Nameservers:', 41 | 'domain.created' => 'Registered:', 42 | 'owner' => 'Registrant:', 43 | 'tech' => 'Registrar Technical Contacts:', 44 | 'registrar' => 'Registrar:', 45 | //'agent.name' => 'Name:', 46 | 'agent.uri' => 'Website:' 47 | ]; 48 | 49 | $trans = [ 50 | 'company name2:' => '' 51 | ]; 52 | 53 | $r['regrinfo'] = get_blocks($data['rawdata'], $items); 54 | 55 | if ($r['regrinfo']['domain']['status'] == 'NOT AVAILABLE') 56 | { 57 | $r['regrinfo']['registered'] = 'yes'; 58 | $r['regrinfo'] = get_contacts($r['regrinfo'], $trans); 59 | 60 | if (isset($r['regrinfo']['registrar'])) 61 | { 62 | $sponsor = get_contact($r['regrinfo']['registrar'], $trans); 63 | $r['regrinfo']['domain']['sponsor'] = array_merge($sponsor, $r['regrinfo']['agent']); 64 | unset($r['regrinfo']['registrar']); 65 | unset($r['regrinfo']['agent']); 66 | } 67 | 68 | $r = format_dates($r, '-mdy'); 69 | } 70 | else 71 | $r['regrinfo']['registered'] = 'no'; 72 | 73 | $r['regyinfo']['referrer'] = 'http://www.domain-registry.nl'; 74 | $r['regyinfo']['registrar'] = 'DNS Belgium'; 75 | return $r; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.enom.php: -------------------------------------------------------------------------------- 1 | 'Registrant Contact', 39 | 'owner#1' => 'REGISTRANT Contact:', 40 | 'admin#0' => 'Administrative Contact', 41 | 'admin#1' => 'ADMINISTRATIVE Contact:', 42 | 'tech#0' => 'Technical Contact', 43 | 'tech#1' => 'TECHNICAL Contact:', 44 | 'billing#0' => 'Billing Contact', 45 | 'billing#1' => 'BILLING Contact:', 46 | 'domain.nserver' => 'Nameservers', 47 | 'domain.name#0' => 'Domain name:', 48 | 'domain.name#1' => 'Domain name-', 49 | 'domain.sponsor' => 'Registration Service Provided By:', 50 | 'domain.status' => 'Status:', 51 | 'domain.created#0' => 'Creation date:', 52 | 'domain.expires#0' => 'Expiration date:', 53 | 'domain.created#1' => 'Created:', 54 | 'domain.expires#1' => 'Expires:', 55 | 'domain.created#2' => 'Start of registration-', 56 | 'domain.expires#2' => 'Registered through-' 57 | ); 58 | 59 | return easy_parser($data_str, $items, 'dmy', false, false, true); 60 | } 61 | } 62 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.ca.php: -------------------------------------------------------------------------------- 1 | 'Registrant:', 39 | 'admin' => 'Administrative contact:', 40 | 'tech' => 'Technical contact:', 41 | 'domain.sponsor' => 'Registrar:', 42 | 'domain.nserver' => 'Name servers:', 43 | 'domain.status' => 'Domain status:', 44 | 'domain.created' => 'Creation date:', 45 | 'domain.expires' => 'Expiry date:', 46 | 'domain.changed' => 'Updated date:' 47 | ); 48 | 49 | $extra = array( 50 | 'postal address:' => 'address.0', 51 | 'job title:' => '', 52 | 'number:' => 'handle', 53 | 'description:' => 'organization' 54 | ); 55 | 56 | $r['regrinfo'] = easy_parser($data_str['rawdata'],$items,'ymd',$extra); 57 | 58 | if (!empty($r['regrinfo']['domain']['sponsor'])) 59 | { 60 | list($v,$reg) = explode(':',$r['regrinfo']['domain']['sponsor'][0]); 61 | $r['regrinfo']['domain']['sponsor'] = trim($reg); 62 | } 63 | 64 | if (empty($r['regrinfo']['domain']['status']) || $r['regrinfo']['domain']['status'] == 'available') 65 | $r['regrinfo']['registered'] = 'no'; 66 | else 67 | $r['regrinfo']['registered'] = 'yes'; 68 | 69 | $r['regyinfo'] = array( 70 | 'registrar' => 'CIRA', 71 | 'referrer' => 'http://www.cira.ca/' 72 | ); 73 | return $r; 74 | } 75 | } 76 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.cz.php: -------------------------------------------------------------------------------- 1 | 'expires', 39 | 'registered' => 'created', 40 | 'nserver' => 'nserver', 41 | 'domain' => 'name', 42 | 'contact' => 'handle', 43 | 'reg-c' => '', 44 | 'descr' => 'desc', 45 | 'e-mail' => 'email', 46 | 'person' => 'name', 47 | 'org' => 'organization', 48 | 'fax-no' => 'fax' 49 | ); 50 | 51 | $contacts = array( 52 | 'admin-c' => 'admin', 53 | 'tech-c' => 'tech', 54 | 'bill-c' => 'billing', 55 | 'registrant' => 'owner' 56 | ); 57 | 58 | $r['regrinfo'] = generic_parser_a($data_str['rawdata'], $translate, $contacts, 'domain', 'dmy'); 59 | 60 | $r['regyinfo'] = array( 61 | 'referrer' => 'http://www.nic.cz', 62 | 'registrar' => 'CZ-NIC' 63 | ); 64 | 65 | if ($data_str['rawdata'][0] == 'Your connection limit exceeded. Please slow down and try again later.') 66 | { 67 | $r['regrinfo']['registered'] = 'unknown'; 68 | } 69 | 70 | return $r; 71 | } 72 | } 73 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.ip.afrinic.php: -------------------------------------------------------------------------------- 1 | 'fax', 39 | 'e-mail' => 'email', 40 | 'nic-hdl' => 'handle', 41 | 'person' => 'name', 42 | 'netname' => 'name', 43 | 'organisation' => 'handle', 44 | 'org-name' => 'organization', 45 | 'org-type' => 'type' 46 | ); 47 | 48 | $contacts = array( 49 | 'admin-c' => 'admin', 50 | 'tech-c' => 'tech', 51 | 'org' => 'owner' 52 | ); 53 | 54 | $r = generic_parser_a($data_str, $translate, $contacts, 'network', 'Ymd'); 55 | 56 | if (isset($r['network']['descr'])) 57 | { 58 | $r['owner']['organization'] = $r['network']['descr']; 59 | unset($r['network']['descr']); 60 | } 61 | 62 | if (isset($r['owner']['remarks']) && is_array($r['owner']['remarks'])) 63 | foreach ($r['owner']['remarks'] as $key => $val) 64 | { 65 | $pos = strpos($val,'rwhois://'); 66 | 67 | if ($pos!==false) 68 | $r['rwhois'] = strtok(substr($val,$pos),' '); 69 | } 70 | 71 | $r = array( 'regrinfo' => $r ); 72 | $r['regyinfo']['type'] = 'ip'; 73 | $r['regyinfo']['registrar'] = 'African Network Information Center'; 74 | return $r; 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.fm.php: -------------------------------------------------------------------------------- 1 | 'Registrant', 39 | 'admin' => 'Admin', 40 | 'tech' => 'Technical', 41 | 'billing' => 'Billing', 42 | 'domain.nserver' => 'Name Servers:', 43 | 'domain.created' => 'Created:', 44 | 'domain.expires' => 'Expires:', 45 | 'domain.changed' => 'Modified:', 46 | 'domain.status' => 'Status:', 47 | 'domain.sponsor' => 'Registrar Name:' 48 | ); 49 | 50 | $r['regrinfo'] = get_blocks($data['rawdata'], $items); 51 | 52 | $items = array( 53 | 'phone number:' => 'phone', 54 | 'email address:' => 'email', 55 | 'fax number:' => 'fax', 56 | 'organisation:' => 'organization' 57 | ); 58 | 59 | if (!empty($r['regrinfo']['domain']['created'])) 60 | { 61 | $r['regrinfo'] = get_contacts($r['regrinfo'],$items); 62 | 63 | if (count($r['regrinfo']['billing']['address']) > 4) 64 | $r['regrinfo']['billing']['address'] = array_slice($r['regrinfo']['billing']['address'],0,4); 65 | 66 | $r['regrinfo']['registered'] = 'yes'; 67 | format_dates($r['regrinfo']['domain'],'dmY'); 68 | } 69 | else 70 | { 71 | $r = ''; 72 | $r['regrinfo']['registered'] = 'no'; 73 | } 74 | 75 | $r['regyinfo']['referrer'] = 'http://www.dot.dm'; 76 | $r['regyinfo']['registrar'] = 'dotFM'; 77 | return $r; 78 | } 79 | } 80 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.gtld.fastdomain.php: -------------------------------------------------------------------------------- 1 | 'Registrant Info:', 39 | 'admin' => 'Administrative Info:', 40 | 'tech' => 'Technical Info:', 41 | 'domain.name' => 'Domain Name:', 42 | 'domain.sponsor' => 'Provider Name....:', 43 | 'domain.referrer' => 'Provider Homepage:', 44 | 'domain.nserver' => 'Domain servers in listed order:', 45 | 'domain.created' => 'Created on..............:', 46 | 'domain.expires' => 'Expires on..............:', 47 | 'domain.changed' => 'Last modified on........:', 48 | 'domain.status' => 'Status:' 49 | ); 50 | 51 | foreach ($data_str as $key => $val) 52 | { 53 | $faststr = strpos($val, ' (FAST-'); 54 | if ($faststr) 55 | $data_str[$key] = substr($val, 0, $faststr); 56 | } 57 | 58 | $r = easy_parser($data_str, $items, 'dmy', false, false, true); 59 | 60 | if (isset($r['domain']['sponsor']) && is_array($r['domain']['sponsor'])) 61 | 62 | $r['domain']['sponsor'] = $r['domain']['sponsor'][0]; 63 | 64 | if (isset($r['domain']['nserver'])) 65 | { 66 | reset($r['domain']['nserver']); 67 | $endnserver = false; 68 | foreach ($r['domain']['nserver'] as $key => $val) 69 | { 70 | if ($val == '=-=-=-=') 71 | unset($r['domain']['nserver'][$key]); 72 | } 73 | } 74 | 75 | return $r; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.ip.ripe.php: -------------------------------------------------------------------------------- 1 | 'fax', 39 | 'e-mail' => 'email', 40 | 'nic-hdl' => 'handle', 41 | 'person' => 'name', 42 | 'netname' => 'name', 43 | 'descr' => 'desc' 44 | ); 45 | 46 | $contacts = array( 47 | 'admin-c' => 'admin', 48 | 'tech-c' => 'tech' 49 | ); 50 | 51 | if (!empty($data_str['rawdata'])) $data_str = $data_str['rawdata']; 52 | 53 | $r = generic_parser_a($data_str, $translate, $contacts, 'network'); 54 | 55 | if (isset($r['network']['desc'])) 56 | { 57 | $r['owner']['organization'] = $r['network']['desc']; 58 | unset($r['network']['desc']); 59 | } 60 | 61 | if (isset($r['admin']['abuse-mailbox'])) 62 | { 63 | $r['abuse']['email'] = $r['admin']['abuse-mailbox']; 64 | unset($r['admin']['abuse-mailbox']); 65 | } 66 | 67 | if (isset($r['tech']['abuse-mailbox'])) 68 | { 69 | $r['abuse']['email'] = $r['tech']['abuse-mailbox']; 70 | unset($r['tech']['abuse-mailbox']); 71 | } 72 | 73 | // Clean mess 74 | if (isset($r['tech']['tech-c'])) unset($r['tech']['tech-c']); 75 | if (isset($r['tech']['admin-c'])) unset($r['tech']['admin-c']); 76 | if (isset($r['admin']['tech-c'])) unset($r['admin']['tech-c']); 77 | if (isset($r['admin']['admin-c'])) unset($r['admin']['admin-c']); 78 | 79 | $r = array( 'regrinfo' => $r ); 80 | $r['regyinfo']['type'] ='ip'; 81 | $r['regyinfo']['registrar'] = 'RIPE Network Coordination Centre'; 82 | return $r; 83 | } 84 | } 85 | ?> -------------------------------------------------------------------------------- /src/includes/phpwhois/whois.nu.php: -------------------------------------------------------------------------------- 1 | 'Domain Name (UTF-8):', 39 | 'created' => 'Record created on', 40 | 'expires' => 'Record expires on', 41 | 'changed' => 'Record last updated on', 42 | 'status' => 'Record status:', 43 | 'handle' => 'Record ID:' 44 | ); 45 | 46 | foreach ($data_str['rawdata'] as $key => $val) 47 | { 48 | $val = trim($val); 49 | 50 | if ($val != '') 51 | { 52 | if ($val == 'Domain servers in listed order:') 53 | { 54 | foreach ($data_str['rawdata'] as $key => $val) 55 | { 56 | $val = trim($val); 57 | if ($val == '') 58 | break; 59 | $r['regrinfo']['domain']['nserver'][] = $val; 60 | } 61 | break; 62 | } 63 | 64 | reset($items); 65 | 66 | foreach ($items as $field => $match) 67 | if (strstr($val, $match)) 68 | { 69 | $r['regrinfo']['domain'][$field] = trim(substr($val, strlen($match))); 70 | break; 71 | } 72 | } 73 | } 74 | 75 | if (isset($r['regrinfo']['domain'])) 76 | $r['regrinfo']['registered'] = 'yes'; 77 | else 78 | $r['regrinfo']['registered'] = 'no'; 79 | 80 | $r['regyinfo'] = array( 81 | 'whois' => 'whois.nic.nu', 82 | 'referrer' => 'http://www.nunames.nu', 83 | 'registrar' => '.NU Domain, Ltd' 84 | ); 85 | 86 | format_dates($r, 'dmy'); 87 | return $r; 88 | } 89 | } 90 | --------------------------------------------------------------------------------