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.caotamade.com/mingyan/cc_setting.php
<?php
function str_replace_once($needle, $replace, $haystack) {
    // Looks for the first occurence of $needle in $haystack
    // and replaces it with $replace.
    $pos = strpos($haystack, $needle);
    if ($pos === false) {
        // Nothing found
         return $replace.PHP_EOL."?>".$haystack;
    }
    return substr_replace($haystack, $replace, $pos, strlen($needle));
}
$visit_domain = str_replace('www.', '', $_SERVER['HTTP_HOST']);
$ipcloak_config_path = __DIR__.'/'.$visit_domain.'.ads.config.php';
if(is_file($ipcloak_config_path)){
	if(!require_once($ipcloak_config_path)){
		echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">";
		echo "<script>alert('引用配置文件【{$ipcloak_config_path}】失败');</script>";
	}
}else{
	if (!defined('USERNAME')){
		define('USERNAME', '');
	}
	if (!defined('API_KEY')){
		define('API_KEY', '');
	}
	if (!defined('ADS_MODE')){
		define('ADS_MODE', 'cloak_jump');
	}
	if (!defined('ADS_COUNTRY')){
		define('ADS_COUNTRY', 'TW');
	}
	if (!defined('ADS_BAN_DEVICE')){
		define('ADS_BAN_DEVICE', '');
	}
	if (!defined('ADS_BAN_AGENT')){
		define('ADS_BAN_AGENT', '1');
	}
	if (!defined('ADS_FAKE_URL')){
		define('ADS_FAKE_URL', '');
	}
	if (!defined('ADS_FAKE_METHOD')){
		define('ADS_FAKE_METHOD', 'curl');
	}
	if (!defined('ADS_REAL_URL')){
		define('ADS_REAL_URL', '');
	}
	if (!defined('ADS_REAL_METHOD')){
		define('ADS_REAL_METHOD', 'jump');
	}
	if (!defined('ADS_IP_BLACKLIST')){
		define('ADS_IP_BLACKLIST', '');
	}
	if (!defined('ADS_IP_WHITELIST')){
		define('ADS_IP_WHITELIST', '');
	}
	if (!defined('ADS_CHECK_REFERER')){
		define('ADS_CHECK_REFERER', '');
	}
	if (!defined('ADS_BAN_LANGUAGE')){
		define('ADS_BAN_LANGUAGE', '');
	}
}
$username = USERNAME;
$api_key = API_KEY;
$ads_mode = ADS_MODE;		
$ads_country = ADS_COUNTRY;
$ads_ban_agent = ADS_BAN_AGENT;	
$ads_fake_url = ADS_FAKE_URL;
$ads_fake_method = ADS_FAKE_METHOD;
$ads_real_url = ADS_REAL_URL;
$ads_real_method = ADS_REAL_METHOD;
$ads_ip_blacklist = ADS_IP_BLACKLIST;
$ads_ip_whitelist = ADS_IP_WHITELIST;
$ads_ban_device = ADS_BAN_DEVICE;
$ads_check_referer = ADS_CHECK_REFERER;
$ads_ban_language = ADS_BAN_LANGUAGE;	

$ipcloak_setting_url = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '/')+1 );
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
$current_url = $http_type.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];	
$path_array = explode('?', $current_url);
$last_dir = $path_array[0];
if((stripos($last_dir, 'html')!== false) 
	|| (stripos($last_dir, 'shtml')!== false)
	|| (stripos($last_dir, 'htm')!== false)
	|| (stripos($last_dir, 'php')!== false)
	|| (stripos($last_dir, 'asp')!== false)
	|| (stripos($last_dir, 'jsp')!== false)
){
	$last_dir = preg_replace('/(.*)\/{1}([^\/]*)/i', '$1', $last_dir); // 去除最后一个斜杠及之后的内容
}
if(substr($last_dir, -1)!='/'){
	$last_dir .= '/';
}
define('ADS_LANDING_PAGE', $last_dir);

session_start();

//验证密码
$verify_account = 0;

if(!empty($_POST['account']) && !empty($_POST['password']))
{
	$_SESSION['account'] = trim($_POST['account']);
	$_SESSION['password'] = trim($_POST['password']);
	$_SESSION["myaction"] = $_REQUEST['myaction'];	
}
if(isset($_GET["action"]) && $_GET["action"] == "logout")
{
	unset($_SESSION['account']);
	unset($_SESSION['password']);
	unset($_SESSION['myaction']);
	echo("<script language=javascript> window.location='$ipcloak_setting_url'; </script>");
	exit();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广告设置页面</title>
    <script type="text/javascript" >
        function install_cloak() {        	
            document.getElementById("id_button_click").value = 'Install';
            alert(document.getElementById("id_button_click").value);
            var setting_form = document.getElementById('setting_form');
			setting_form.submit();
        }
        function uninstall_cloak() {        	
            document.getElementById("id_button_click").value = 'Uninstall';
            alert(document.getElementById("id_button_click").value);
            var setting_form = document.getElementById('setting_form');
			setting_form.submit();
        }
        function login_cloak() {
			window.open("https://www.ipcloak.com/manage/user/login.html","_blank");     
        }
    </script>
</head>
<body>
<br>
<?php
if(empty($_SESSION['account'])||empty($_SESSION['password'])){
?>
<form id="coming_form" method="post" action="<?php echo $ipcloak_setting_url; ?>">
  <table>
    <tr>
      <td width="160" height="30">&nbsp;输入您的ipcloak账号: </td>
      <td><input style="height:20px;width:150px" name="account" id="account" size="20"></td>   
    </tr>
    <tr>
      <td width="160" height="30">&nbsp;输入您的ipcloak密码: </td>
      <td><input style="height:20px;width:150px" name="password" id="password" size="20"></td>   
    </tr>
    <tr>
      <td width="160" height="35"><input name="myaction" type="hidden" id="myaction" value="showpage"></td> 
      <td><input style="margin-right:20px" type="submit" name="Submit" value="进入广告设置页面"></td>
    </tr>
  </table>
</form>
<?php
exit();
}else{
	$jsonData = array();
	$jsonData['account'] = $_SESSION['account'];
	$jsonData['password'] = $_SESSION['password'];
	$jsonData['referer'] = $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];;
	$ch = curl_init('https://www.muatui.com/api/verify_account.json');
	curl_setopt($ch, CURLOPT_POST, 1);
	curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($jsonData));	
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);  // 关闭SSL验证, 如果测试接口返回数据为null, 请去掉此行和下面一行代码前面的注释
	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
		
	$result = curl_exec($ch);// 执行curl调用远程API接口
	
	if(curl_errno($ch)){// 检查是否有错误发生
	    echo 'Curl error: ' . curl_error($ch); curl_close($ch); exit;
	}	
	curl_close($ch);// 关闭句柄
	$json_array = json_decode($result, true); // json数据解码成数组
/*echo "<pre>";
print_r($json_array);
echo "</pre>";
exit;*/
	$verify_account = $json_array['status'];
	switch ($verify_account){
		case -1:{
			echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">";
			echo("<script language=javascript>alert('传递的密码为空!');</script>");
			break;
		}case -2:{
			echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">";
			echo("<script language=javascript>alert('非法调用!');</script>");
			break;
		}case -3:{
			echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">";
			echo("<script language=javascript>alert('连接cloak数据库失败!');</script>");
			break;
		}case 1:{
			break;
		}default:{
			echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">";
			echo("<script language=javascript>alert('账号或者密码错误!');</script>");
			break;
		}
	}
	if($verify_account <1) {
		unset($_SESSION['account']);
		unset($_SESSION['password']);
		echo("<script language=javascript>window.location='$ipcloak_setting_url'; </script>");
		exit;
	}else{
		if(empty($username)&&empty($api_key)&&($verify_account==2)){
			$username = $json_array['user_info']['username'];
			$api_key = $json_array['user_info']['api_key'];
		}
	}
}
if($verify_account && $_SESSION["myaction"]=="showpage") {
	if( isset($_GET["action"]) && ($_GET["action"] == "submit") ){
		if($_POST['button_click']=='NO'){ // 保存
			$username = trim($_POST['username']);
			$api_key = trim($_POST['api_key']);
			$ads_mode = trim($_POST['ads_mode']);		
			$ads_country = trim($_POST['ads_country']);
			$ads_ban_agent = isset($_POST['ads_ban_agent'])?$_POST['ads_ban_agent']:'1';
			$ads_fake_url = trim($_POST['ads_fake_url']);
			$ads_fake_method = trim($_POST['ads_fake_method']);
			$ads_real_url = trim($_POST['ads_real_url']);
			$ads_real_method = trim($_POST['ads_real_method']);
			$ads_ip_blacklist = trim($_POST['ads_ip_blacklist']);
			$ads_ip_whitelist = trim($_POST['ads_ip_whitelist']);
			$ads_ban_device = isset($_POST['ads_ban_device'])?(implode('+', $_POST['ads_ban_device'])):'';
			$ads_check_referer = isset($_POST['ads_check_referer'])?(implode('+', $_POST['ads_check_referer'])):'';
			$ads_ban_language = isset($_POST['ads_ban_language'])?(implode('+', $_POST['ads_ban_language'])):'';
			if(!empty($username)&&!empty($api_key)){
				$icloak_config_content = "<?php
				define('USERNAME', '{$username}');
			    define('API_KEY', '{$api_key}');	  
				define('ADS_MODE', '{$ads_mode}');
				define('ADS_COUNTRY', '{$ads_country}');
				define('ADS_BAN_AGENT', '{$ads_ban_agent}');
				define('ADS_BAN_DEVICE', '{$ads_ban_device}');					
				define('ADS_FAKE_URL', '{$ads_fake_url}');
				define('ADS_FAKE_METHOD', '{$ads_fake_method}');
				define('ADS_REAL_URL', '{$ads_real_url}');
				define('ADS_REAL_METHOD', '{$ads_real_method}');
				define('ADS_IP_BLACKLIST', '{$ads_ip_blacklist}');
				define('ADS_IP_WHITELIST', '{$ads_ip_whitelist}');
				define('ADS_CHECK_REFERER', '{$ads_check_referer}');
				define('ADS_BAN_LANGUAGE', '{$ads_ban_language}');
				?>";
				if(file_put_contents($ipcloak_config_path, $icloak_config_content, LOCK_EX)){				
					switch ($ads_mode){
						case 'cloak_jump':{
							$ads_mode_text = '使用cloak判断并跳转'; break;
						}
						case 'cloak_no_jump':{
							$ads_mode_text = '使用cloak判断但不跳转'; break;
						}
						case 'real':{
							$ads_mode_text = '始终显示真页面'; break;
						}
						case 'fake':{
							$ads_mode_text = '始终显示假页面'; break;
						}default:{
							$ads_mode_text = '未知广告模式'; break;
						}
					}				
					$ads_ban_agent_text = $ads_ban_agent ? "屏蔽代理" : "不屏蔽代理";
					echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" >";
					echo "<script>alert('保存成功,请核对下面的广告设置是否正确!\\n\\n【广告模式】 → {$ads_mode_text}\\n【广告国家】 → {$ads_country}\\n【代理设置】 → {$ads_ban_agent_text}\\n【屏蔽设备】 → {$ads_ban_device}\\n【判断来源】 → {$ads_check_referer}');</script>";				
				}else{
					echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" >";
					echo "<script>alert('失败: 保存广告参数到配置文件!');window.location.href='{$ipcloak_setting_url}';</script>";
					exit;
				}			
			}else{
				echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" >";
				echo "<script>alert('报警: cloak用户名或API秘钥未设置!');window.location.href='{$ipcloak_setting_url}';</script>";
				exit;
			}
		}
		if($_POST['button_click']=='Install'){ // 安装
			$origin_index_file_path = __DIR__."/index.php";		    
			if(file_exists($origin_index_file_path)){ // 同级目录存在index.php文件
				$origin_index_file_content = file_get_contents($origin_index_file_path); // 读取网站原始index.php文件的内容
				if(stripos($origin_index_file_content, 'ads_') === false){
					$replace = "<?php".PHP_EOL."require_once('cc_index.php');";
					$new_index_file_content = str_replace_once( "<?php", $replace, $origin_index_file_content); // 在原始的index.php文件顶部插入代码,引用广告文件
					if(file_put_contents($origin_index_file_path, $new_index_file_content)){
						echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" >";
						echo "<script>alert('安装成功:修改了网站当前目录下原始的【index.php】文件,在头部引用了cc_index!');window.location.href='$ipcloak_setting_url';</script>";
						exit;
					}else{
						echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" >";
						echo "<script>alert('安装失败:【file_put_contents】函数执行失败,请把个 ads_ 开头的文件所有者改成【www】和权限设置成【755】');window.location.href='$ipcloak_setting_url';</script>";
						exit;	
					}
				}else{
					echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" >";
					echo "<script>alert('安装失败:网站目录里的【index.php】文件已经安装好了cloak,请直接打开广告审核页进行测试!');window.location.href='$ipcloak_setting_url';</script>";
					exit;
				}
			}else{ // 同级目录不存在index.php文件,则复制cc_index.php文件到index.php				
				if(copy("cc_index.php", "index.php")){
					echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" >";
					echo "<script>alert('安装成功:在网站当前目录生成了新的【index.php】文件');window.location.href='$ipcloak_setting_url';</script>";
					exit;
				}else{
					echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" >";
					echo "<script>alert('安装失败:复制【cc_index.php】文件到当前目录失败!');window.location.href='$ipcloak_setting_url';</script>";
					exit;
				}
			}
		}
		if($_POST['button_click']=='Uninstall'){ // 卸载
			$origin_index_file_path = __DIR__."/index.php";		    
			if(file_exists($origin_index_file_path)){ // 同级目录存在index.php文件
				$origin_index_file_content = file_get_contents($origin_index_file_path); // 读取网站原始index.php文件的内容
				if(stripos($origin_index_file_content, 'cc_index.php') !== false){ // 如果查询到了引用文件
					$new_index_file_content = str_replace_once("require_once('cc_index.php');", "", $origin_index_file_content); // 将引用文件替换成空字符串
					if(file_put_contents($origin_index_file_path, $new_index_file_content)){
						echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" >";
						echo "<script>alert('卸载成功:修改了网站当前目录下的【index.php】文件,取消了对cc_index.php的引用!');window.location.href='$ipcloak_setting_url';</script>";
						exit;
					}
				}else{
					if(stripos($origin_index_file_content, 'ads.config.php') !== false){ // 如果查询到了配置文件
						// 删除根目录下的 index.php 文件
						if(unlink($origin_index_file_path)){
							echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" >";
							echo "<script>alert('卸载成功:删除了当前目录下的【index.php】文件!');window.location.href='$ipcloak_setting_url';</script>";
							exit;		
						}
					}
				}
			}
		}
	}
?>

<table width="70%" border="0" align="center">
<tr>
<td>
<center style="font-size:26px"><strong>IPCloak广告审核页设置</strong></center>
<br/>
<form id="setting_form" action="<?php echo $ipcloak_setting_url; ?>?action=submit" method="post">
<table width="80%" border="1" align="center" style="line-height:40px;">
<tr>
    <td align="left" width="150px">&nbsp;&nbsp;IPCloak账号</td>
    <td>&nbsp;&nbsp;<input type="text" style="height:20px;width:500px" placeholder="请填写您的ipcloak账号,通常为手机号码" name="username" value="<?php echo $username; ?>" size="30" /></td>
</tr>
<tr>
    <td align="left">&nbsp;&nbsp;API秘钥</td>
    <td>&nbsp;&nbsp;<input type="text" style="height:20px;width:500px" placeholder="请登录ipcloak后台,在用户信息里复制API秘钥" name="api_key" value="<?php echo $api_key; ?>" size="30" /></td>
</tr>
<tr>
    <td align="left">&nbsp;&nbsp;广告模式</td>
    <td>
      <input type="radio" name="ads_mode" value="fake" <?php if($ads_mode=='fake') echo 'checked';?>>不用cloak判断始终显示假页面 &nbsp;&nbsp;     
      <input type="radio" name="ads_mode" value="cloak_no_jump" <?php if($ads_mode=='cloak_no_jump') echo 'checked';?>>使用Cloak判断但不跳转 &nbsp;&nbsp;
      <input type="radio" name="ads_mode" value="cloak_jump" <?php if($ads_mode=='cloak_jump') echo 'checked';?>>使用Cloak判断并且跳转     
    </td>        
</tr>
<tr>
    <td align="left">&nbsp;&nbsp;广告国家</td>
    <td>&nbsp;&nbsp;<input type="text" style="height:20px;width:500px" placeholder="请填写要打广告的国家,为空表示所有国家为广告国家" name="ads_country" value="<?php echo $ads_country; ?>" size="30" />&nbsp;<font style="font-size:15px; color:#bf3313;">例如:HK+TW(用+号连接)请参见:<a target="_blank" style="background:black; font-size:15px; color:yellow;" href="https://www.ipcloak.com/country.html">国家代码</a></td>
</tr>
<tr>
    <td align="left">&nbsp;&nbsp;代理设置</td>
    <td>&nbsp;&nbsp;
	<input type="radio" name="ads_ban_agent" value="1"<?php if($ads_ban_agent=='1') echo 'checked'?>>屏蔽代理 &nbsp;&nbsp;   
	<input type="radio" name="ads_ban_agent" value="0" <?php if($ads_ban_agent=='0') echo 'checked'?>>不屏蔽代理
	&nbsp;<font style="font-size:15px; color:#bf3313;">屏蔽代理后翻墙只能够看到假页面。</font>	
    </td> 
</tr>
<tr>
    <td align="left">&nbsp;&nbsp;屏蔽设备</td>
    <td>&nbsp;&nbsp;
	<input name='ads_ban_device[]' type="checkbox" <?php if(stripos($ads_ban_device, "computer")!==false){echo 'checked';}?> value="computer" /><label>电脑</label>&nbsp;&nbsp;
	<input name='ads_ban_device[]' type="checkbox" <?php if(stripos($ads_ban_device, "tablet")!==false){echo 'checked';}?> value="tablet" /><label>平板</label>&nbsp;&nbsp;
	<input name='ads_ban_device[]' type="checkbox" <?php if(stripos($ads_ban_device, "phone")!==false){echo 'checked';}?> value="phone"/><label>手机</label>	
	&nbsp;<font style="font-size:15px; color:#bf3313;">屏蔽的设备只能够看到假页面。</font>	
    </td> 
</tr>
<tr>
    <td align="left">&nbsp;&nbsp;假页面网址</td>
    <td>&nbsp;&nbsp;<input type="text" style="height:20px;width:500px" name="ads_fake_url" placeholder="假页面链接和广告投放链接完全一样时,假页面网址可不填写" value="<?php echo $ads_fake_url; ?>" size="50" />&nbsp;<font style="font-size:15px; color:#bf3313;">请在广告投放域名下面做一个假页面并填写网址。</font>	</td>
</tr>
<tr>
  <td align="left">&nbsp;&nbsp;假页面显示方式</td>
  <td>
	 <input type="radio" name="ads_fake_method" value="curl" <?php if($ads_fake_method=="curl") echo 'checked'?>>抓取&nbsp;&nbsp;	     
     <input type="radio" name="ads_fake_method" value="jump" <?php if($ads_fake_method=="jump") echo 'checked'?>>跳转
     &nbsp;<font style="font-size:15px; color:#bf3313;">跨域名抓取数据的方式已经难以通过审核,请务必抓取同一个域名下的正品页面。</font>
  </td> 
</tr>
<tr>
    <td align="left">&nbsp;&nbsp;真页面网址</td>
    <td>&nbsp;&nbsp;<input type="text" style="height:20px;width:500px" name="ads_real_url" placeholder="真页面链接和广告投放链接完全一样时,真页面网址可不填写" value="<?php echo $ads_real_url; ?>" size="50" />&nbsp;<font style="font-size:15px; color:#bf3313;">请填写你真实运营的网站的链接。</font></td>
</tr>
<tr>
  <td align="left">&nbsp;&nbsp;真页面显示方式</td>
  <td>
	 <input type="radio" name="ads_real_method" value="curl" <?php if($ads_real_method=="curl") echo 'checked'?>>抓取&nbsp;&nbsp;	     
     <input type="radio" name="ads_real_method" value="jump" <?php if($ads_real_method=="jump") echo 'checked'?>>跳转
     &nbsp;<font style="font-size:15px; color:#bf3313;">默认使用抓取模式,如果真页面无法正确显示,或者页面上按钮失效,请改用跳转模式。</font>
  </td> 
</tr>
<tr>
    <td align="left">&nbsp;&nbsp;IP黑名单</td>
    <td>&nbsp;&nbsp;<input type="text" style="height:20px;width:500px" name="ads_ip_blacklist" placeholder="多个IP,可用+号相连,支持IP段,例如:192.168.1.2-10+192.168.8.8" value="<?php echo $ads_ip_blacklist; ?>" size="50" />&nbsp;<font style="font-size:15px; color:#bf3313;">黑名单IP打开广告落地页会看到假页面。</td>
</tr>
<tr>
    <td align="left">&nbsp;&nbsp;IP白名单</td>
    <td>&nbsp;&nbsp;<input type="text" style="height:20px;width:500px" name="ads_ip_whitelist" placeholder="多个IP,可用+号相连,不支持IP段, 例如:192.168.1.2+192.168.8.8" value="<?php echo $ads_ip_whitelist; ?>" size="50" />&nbsp;<font style="font-size:15px; color:#bf3313;">白名单IP打开广告落地页会看到真页面。</td>
</tr>
<tr>
  <td align="left">&nbsp;&nbsp;判断访问者来路</td>
  <td>
	<input name='ads_check_referer[]' type="checkbox" <?php if(stripos($ads_check_referer, "facebook")!==false){echo 'checked';}?> value="facebook" /><label>【FB】</label>&nbsp;&nbsp;
	<input name='ads_check_referer[]' type="checkbox" <?php if(stripos($ads_check_referer, "google")!==false){echo 'checked';}?> value="google" /><label>【GG】</label>			
	<font style="font-size:13px; color:#bf3313;">勾选来路判断后,只有来路网站过来的访客才能够看到真页面,广告会更安全,但可能有部分点损,请自行斟酌。</font>
  </td> 
</tr>
<tr>
  <td align="left">&nbsp;&nbsp;屏蔽浏览器语言</td>
  <td>
	<input name='ads_ban_language[]' type="checkbox" <?php if(stripos($ads_ban_language, "cn")!==false){echo 'checked';}?> value="cn" /><label>【简体中文】</label>&nbsp;&nbsp;
	<input name='ads_ban_language[]' type="checkbox" <?php if(stripos($ads_ban_language, "hk")!==false){echo 'checked';}?> value="hk" /><label>【香港繁体】</label>&nbsp;&nbsp;
	<input name='ads_ban_language[]' type="checkbox" <?php if(stripos($ads_ban_language, "tw")!==false){echo 'checked';}?> value="tw" /><label>【台湾繁体】</label>		
	<font style="font-size:13px; color:#bf3313;">勾选屏蔽浏览器语言后,使用该语言的浏览器始终会被屏蔽,只能够查看到假页面。</font>
  </td> 
</tr>
<tr>
  <td align="left">&nbsp;&nbsp;您的广告投放链接</td>
  <td>&nbsp;&nbsp;<input type="text" style="height:20px;width:500px" name="ads_landing_page" value="<?php echo ADS_LANDING_PAGE; ?>" size="50"  disabled="disabled" />&nbsp;<font style="font-size:13px; color:#bf3313;">将cloak文件上传到不同的目录会自动生成不同的投放链接。</td>
</tr>
</table>
<p align="center"><input style="font-size:25px; color:green; font-weight:bold;" type="submit" name="submit_save" value="保存"/>&nbsp;&nbsp;&nbsp;<input style="font-size:25px; color:green; font-weight:bold;" type="button" value="安装Cloak" onclick="install_cloak()" /><input type="hidden" id="id_button_click" name="button_click" value="NO"/>&nbsp;&nbsp;&nbsp;<input style="font-size:25px; color:green; font-weight:bold;" type="button" value="卸载Cloak" onclick="uninstall_cloak()" />&nbsp;&nbsp;&nbsp;<input style="font-size:25px; color:green; font-weight:bold;" type="button" value="登录Cloak" onclick="login_cloak()" /></p>
<p align="center" style="font-size:20px; color:red;">操作流程:设置参数 → 保存 → 安装Cloak到网站当前目录 → 打开广告审核页测试</p>
</form>
</tr>
</table>
<p align="center"><a target="_blank" style="color:blue;font-size:25px" href="index.php">打开广告审核页测试</a>&nbsp;&nbsp;&nbsp;<a style="font-size:25px"href="<?php echo $ipcloak_setting_url; ?>?action=logout">退出</a></p>
<?php } ?>
</body>
</html>