PHP预约上门回收废品系统的代码披露
<?php
namespace app\admin\controller;
class Code
{
public function getTopDomainhuo()
{
error_reporting(0);
$host = $_SERVER["HTTP_HOST"];
$matchstr = "[^\\.]+\\.(?:(" . $host . ")|\\w{2}|((" . $host . ")\\.\\w{2}))\$";
if (preg_match("/" . $matchstr . "/ies", $host, $matchs)) {
$domain = $matchs[0];
} else {
$domain = $host;
}
return $domain;
}
public function domain()
{
return true;
}
}
error_reporting(0);
function getTopDomainhuo(){
$host=$_SERVER['HTTP_HOST'];
$matchstr="[^\.]+\.(?:(".$str.")|\w{2}|((".$str.")\.\w{2}))$";
if(preg_match("/".$matchstr."/ies",$host,$matchs)){
$domain=$matchs['0'];
}else{
$domain=$host;
}
return $domain;
}
<view class="loginImg" style="{{'background-image:'+'url('+system.admin_background+')'+';'}}">
<view style="margin:60rpx 0rpx 170rpx 76rpx;">
<image class="logo-img" src="{{system.logo}}"></image>
<view class="welcome-text">欢迎使用管理系统</view>
</view>
<view class="flex-column-center">
<view style="width:80%;">
<view style="margin-bottom:60rpx;">
<view class="account-text">管理员账号</view>
<view class="account-input">
<input bindinput="__e" data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '','account','$event',[] ] ] ] ] ]}}" placeholder="请输入您的管理员账号" placeholderStyle="font-size:28rpx;color:#C9CACA;" value="{{account}}"></input>
</view>
</view>
<view>
<view class="account-text">管理员密码</view>
<view class="account-input">
<input bindinput="__e" data-event-opts="{{[ [ 'input',[ [ '__set_model',[ '','password','$event',[] ] ] ] ] ]}}" placeholder="请输入您的管理员密码" placeholderStyle="font-size:28rpx;color:#C9CACA;" type="password" value="{{password}}"></input>
</view>
</view>
</view>
<view bindtap="__e" class="quickly-login flex" data-event-opts="{{[ [ 'tap',[ ['quicklyLogin'] ] ] ]}}">立即登录</view>
</view>
</view>