<?
//show.php
$path=$_GET[path];
//$pats = explode("/",$path);
//$uid=array_shift ($pats);
//$pass=$uid=array_shift ($pats);
//$file = implode("/",$pats);
include("config.inc.php");
include "class/member.class.php";
$member=new member();
if ($PHP_AUTH_PW=="") {
  Header("WWW-Authenticate: Basic realm=\"»áÔ±µÇÂ½\"");
  Header("HTTP/1.0 401 Unauthorized");
  redirect("index.php");
  exit;
} else {
    $upass = $PHP_AUTH_PW;
    $uname = $PHP_AUTH_USER;
    $level = $member->authMemeber($uname,$upass);
    $url="http://www.xplus.cn/download/".$path;
    header("Location: $url");
}
?>