PHP预约上门回收废品系统的代码披露

PHP预约上门回收废品系统的代码披露

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;

}
html 复制代码
<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>







相关推荐
weixin_4569042710 分钟前
C# 中的回调函数
java·前端·c#
kura_tsuki25 分钟前
[Web网页] LAMP 架构与环境搭建
前端·架构
yinuo33 分钟前
UniApp+Vue3多分包引入同一 npm 库被重复打包至 vendor 的问题分析与解决
前端
码界奇点44 分钟前
Spring Web MVC构建现代Java Web应用的基石
java·前端·spring·设计规范
yinuo1 小时前
UniApp + Vue3 使用 marked 报错:SyntaxError /[\p{L}\p{N}]/u 问题分析与解决
前端
大前端helloworld1 小时前
前端梳理体系从常问问题去完善-框架篇(Vue2&Vue3)
前端·javascript·面试
小墨宝2 小时前
web前端学习LangGraph
前端·学习
南囝coding2 小时前
React 19.2 重磅更新!这几个新特性终于来了
前端·react.js·preact
Dajiaonew2 小时前
Vue3 + TypeScript 一篇文章 后端变全栈
前端·javascript·typescript
小小星球之旅2 小时前
SpringBoot后端实现阿里云oss上传文件
阿里云·云计算