<?php

include("includes/config.php");

SetCookie("LOOK", "ok"); 

if(isset($URLNAME) && isset($EXPTIME) && isset($AUTOUSERID) && isset($MOD)){

$urlname=$URLNAME;

$url=$baseurl."com/".$urlname;

$fd=fopen("make.htm","r");

$con = fread($fd,10000);

fclose($fd);

$con=str_replace("&&&userid&&&",$AUTOUSERID,$con);

$con=str_replace("&&&ver_id&&&",time(),$con);

$con=str_replace("&&&mod&&&",$MOD,$con);

$con=str_replace("&&&exptime&&&",$EXPTIME,$con);

$fd=fopen("com/$urlname/index.php3","w");

fwrite($fd,$con,10000);

fclose($fd);

  @chmod("com/$urlname/index.php3",0755);

Header("location:$url");


}else{

echo "請開啟電腦的cookie功能,然後重新登錄";

echo "$URLNAME $EXPTIME $AUTOUSERID $MOD";

}

?>



