⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 display_ads.php

📁 广告交换系统,详细的内容,请参见代码,没有加密的!
💻 PHP
📖 第 1 页 / 共 2 页
字号:
		$usernow=mysql_result($result,$get_no,'user');
		$gg_user[]=$usernow;
		$gg_about[]=mysql_result($result,$get_no,'about');
		$gg_webbt[]=mysql_result($result,$get_no,'ggbt');
		$gg_link[]=mysql_result($result,$get_no,'web');
		if($ipok==1)	mysql_query("UPDATE ggdat SET disped=disped+1 WHERE user='$usernow'",$id);
	}
}
else{
		$gg_about[]=$NOGG_ABOUT;
		$gg_webbt[]=$NOGG_BT;
		$gg_link[]=$SYSTEM_HTTP;
		$gg_about[]=$NOGG_ABOUT;
		$gg_webbt[]=$NOGG_BT;
		$gg_link[]=$SYSTEM_HTTP;
		$gg_about[]=$NOGG_ABOUT;
		$gg_webbt[]=$NOGG_BT;
		$gg_link[]=$SYSTEM_HTTP;
		$gg_about[]=$NOGG_ABOUT;
		$gg_webbt[]=$NOGG_BT;
		$gg_link[]=$SYSTEM_HTTP;
}
//-------图片广告

$result = mysql_query("SELECT * FROM picdat WHERE disped<odisped AND userok=1",$id);
$pic_dat=mysql_fetch_array($result);
if($pic_dat){
		
		$pic_user=$pic_dat[user];
		$pic_about=$pic_dat[about];
		$pic_webbt=$pic_dat[ggbt];
		$pic_link=$pic_dat[link];

	//-------检查ip
	$nowtime=time();
	$re = mysql_fetch_array(mysql_query("SELECT * FROM dispipdat WHERE ip='$theip'",$id));
	$oldtime=$re[time];
	
	if(!$re)	$lll=mysql_query("INSERT INTO dispipdat (ip,time) VALUES ('$theip','$nowtime')",$id);
	
	if(($re && ($nowtime-$oldtime)>$MINTIME) || !$re)
					{
					mysql_query("UPDATE picdat SET disped=disped+1 WHERE user='$pic_user'",$id);
					mysql_query("UPDATE userdat SET adsdisped=adsdisped+1 WHERE user='$user'",$id);
					}
	
}
else{
		$pic_about=$NOPIC_ABOUT;
		$pic_webbt=$NOPIC_BT;
		$pic_link=$SYSTEM_HTTP;
		
		
}

//==============================================================================
mysql_close($id);



if($user_dat[linktype] && $user_dat[adstype]){
?>
document.write('<center><a href="<?php echo "$PICCLICK_PHP_FILE?user=$user&ouser=$pic_user"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><img src="<?php echo $pic_webbt; ?>" border="0" width="468" height="60"></a><table width="469" border="1" cellpadding="0" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF" bordercolor="#000000" height="40"  style="font-size: 9pt; letter-spacing: 0pt;text-decoration: none">  <tr>	<td title=<?php echo $gg_about[0]; ?> width="97" align="center"><a href=<?php echo "$GGCLICK_PHP_FILE?user=$user&ouser=$gg_user[0]&ggclick=1"; ?> target="_blank" style="font-size: 9pt; text-decoration: none"><b><?php echo $gg_webbt[0]; ?></b></a></td>	<td title=<?php echo $disp_about[0]; ?>  width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[0]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[0]; ?></a></td>		<td title=<?php echo $disp_about[1]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$gg_user[0]&ggclick=1"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[1]; ?></a></td>	<td title=<?php echo $disp_about[2]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[2]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[2]; ?></a></td>		<td title=<?php echo $disp_about[3]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[3]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[3]; ?></a></td>	<td title=<?php echo $disp_about[4]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[4]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[4]; ?></a></td>	<td title=<?php echo $disp_about[5]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[5]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[5]; ?></a></td>	  </tr>  <tr align="center">	<td title=<?php echo $gg_about[1]; ?> width="97" align="center"><a href=<?php echo "$GGCLICK_PHP_FILE?user=$user&ouser=$gg_user[1]&ggclick=1"; ?> target="_blank" style="font-size: 9pt; text-decoration: none"><b><?php echo $gg_webbt[1]; ?></b></a></td>	<td title=<?php echo $disp_about[6]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[6]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[6]; ?></a></td>	<td title=<?php echo $disp_about[7]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[7]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[7]; ?></a></td>	<td title=<?php echo $disp_about[8]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[8]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[8]; ?></a></td>	<td title=<?php echo $disp_about[9]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[9]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[9]; ?></a></td>	<td title=<?php echo $disp_about[10]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[10]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[10]; ?></a></td>	<td title=<?php echo $disp_about[11]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[11]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[11]; ?></a></td>  </tr>  <tr align="center">	<td title=<?php echo $gg_about[2]; ?> width="97" align="center"><a href=<?php echo "$GGCLICK_PHP_FILE?user=$user&ouser=$gg_user[2]&ggclick=1"; ?> target="_blank" style="font-size: 9pt; text-decoration: none"><b><?php echo $gg_webbt[2]; ?></b></a></td>	<td title=<?php echo $disp_about[12]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[12]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[12]; ?></a></td>	<td title=<?php echo $disp_about[13]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[13]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[13]; ?></a></td>	<td title=<?php echo $disp_about[14]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[14]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[14]; ?></a></td>	<td title=<?php echo $disp_about[15]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[15]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[15]; ?></a></td>	<td title=<?php echo $disp_about[16]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[16]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[16]; ?></a></td>	<td title=<?php echo $disp_about[17]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[17]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[17]; ?></a></td>  </tr>  <tr align="center">	<td title=<?php echo $gg_about[3]; ?> width="97" align="center"><a href=<?php echo "$GGCLICK_PHP_FILE?user=$user&ouser=$gg_user[3]&ggclick=1"; ?> target="_blank" style="font-size: 9pt; text-decoration: none"><b><?php echo $gg_webbt[3]; ?></b></a></td>	<td title=<?php echo $disp_about[18]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[18]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[18]; ?></a></td>	<td title=<?php echo $disp_about[19]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[19]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[19]; ?></a></td>	<td title=<?php echo $disp_about[20]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[20]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[20]; ?></a></td>	<td title=<?php echo $disp_about[21]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[21]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[21]; ?></a></td>	<td title=<?php echo $disp_about[22]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[22]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[22]; ?></a></td>	<td title=<?php echo $disp_about[23]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[23]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[23]; ?></a></td>  </tr></table></center>');

<?php
exit;
}
if($user_dat[linktype] && !$user_dat[adstype]){
?>
document.write('<center><table width="469" border="1" cellpadding="0" cellspacing="0" bordercolorlight="#000000" bordercolordark="#FFFFFF" bordercolor="#000000" height="40"  style="font-size: 9pt ;letter-spacing: 0pt;text-decoration: none">  <tr>	<td title=<?php echo $gg_about[0]; ?> width="97" align="center"><a href=<?php echo "$GGCLICK_PHP_FILE?user=$user&ouser=$gg_user[0]&ggclick=1"; ?> target="_blank" style="font-size: 9pt; text-decoration: none"><b><?php echo $gg_webbt[0]; ?></b></a></td>	<td title=<?php echo $disp_about[0]; ?>  width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[0]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[0]; ?></a></td>		<td title=<?php echo $disp_about[1]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$gg_user[0]&ggclick=1"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[1]; ?></a></td>	<td title=<?php echo $disp_about[2]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[2]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[2]; ?></a></td>		<td title=<?php echo $disp_about[3]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[3]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[3]; ?></a></td>	<td title=<?php echo $disp_about[4]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[4]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[4]; ?></a></td>	<td title=<?php echo $disp_about[5]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[5]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[5]; ?></a></td>	  </tr>  <tr align="center">	<td title=<?php echo $gg_about[1]; ?> width="97" align="center"><a href=<?php echo "$GGCLICK_PHP_FILE?user=$user&ouser=$gg_user[1]&ggclick=1"; ?> target="_blank" style="font-size: 9pt; text-decoration: none"><b><?php echo $gg_webbt[1]; ?></b></a></td>	<td title=<?php echo $disp_about[6]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[6]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[6]; ?></a></td>	<td title=<?php echo $disp_about[7]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[7]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[7]; ?></a></td>	<td title=<?php echo $disp_about[8]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[8]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[8]; ?></a></td>	<td title=<?php echo $disp_about[9]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[9]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[9]; ?></a></td>	<td title=<?php echo $disp_about[10]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[10]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[10]; ?></a></td>	<td title=<?php echo $disp_about[11]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[11]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[11]; ?></a></td>  </tr>  <tr align="center">	<td title=<?php echo $gg_about[2]; ?> width="97" align="center"><a href=<?php echo "$GGCLICK_PHP_FILE?user=$user&ouser=$gg_user[2]&ggclick=1"; ?> target="_blank" style="font-size: 9pt; text-decoration: none"><b><?php echo $gg_webbt[2]; ?></b></a></td>	<td title=<?php echo $disp_about[12]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[12]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[12]; ?></a></td>	<td title=<?php echo $disp_about[13]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[13]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[13]; ?></a></td>	<td title=<?php echo $disp_about[14]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[14]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[14]; ?></a></td>	<td title=<?php echo $disp_about[15]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[15]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[15]; ?></a></td>	<td title=<?php echo $disp_about[16]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[16]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[16]; ?></a></td>	<td title=<?php echo $disp_about[17]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[17]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[17]; ?></a></td>  </tr>  <tr align="center">	<td title=<?php echo $gg_about[3]; ?> width="97" align="center"><a href=<?php echo "$GGCLICK_PHP_FILE?user=$user&ouser=$gg_user[3]&ggclick=1"; ?> target="_blank" style="font-size: 9pt; text-decoration: none"><b><?php echo $gg_webbt[3]; ?></b></a></td>	<td title=<?php echo $disp_about[18]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[18]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[18]; ?></a></td>	<td title=<?php echo $disp_about[19]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[19]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[19]; ?></a></td>	<td title=<?php echo $disp_about[20]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[20]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[20]; ?></a></td>	<td title=<?php echo $disp_about[21]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[21]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[21]; ?></a></td>	<td title=<?php echo $disp_about[22]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[22]"; ?>"  target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[22]; ?></a></td>	<td title=<?php echo $disp_about[23]; ?> width="97" align="center"><a href="<?php echo "$CLICK_PHP_FILE?user=$user&ouser=$disp_user[23]"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><?php echo $disp_webbt[23]; ?></a></td>  </tr></table></center>');

<?php
exit;
}
if(!$user_dat[linktype] && $user_dat[adstype])
?>
document.write('<center><a href="<?php echo "$PICCLICK_PHP_FILE?user=$user&ouser=$pic_user"; ?>" target="_blank" style="font-size: 9pt; text-decoration: none"><img src="<?php echo $pic_webbt; ?>" border="0" width="468" height="60"></a></center>');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -