cvlink.php ->found xxxx-xx/yyy -> include xxxx-xx/yyy setting -> include index.php ->not found -> display error message -> or redirect to home -> or redirect to ?? ***/ include_once dirname(__FILE__)."/main.inc"; if(0){ // echo __FILE__; //echo "

$_SERVER[REDIRECT_URL]

"; echo "
";
 //echo $_SERVER["QUERY_STRING"]."
"; print_r($_POST); echo "
"; print_r($_GET); echo "
"; echo "
"; //echo phpinfo(); } $f=$_SERVER['REDIRECT_URL']; // no ' " / //------------------------------------ // check if come from /s/ //------------------------------------ /* if( substr($f,0, strlen(SeoURL) )!== SeoURL ) { echo "Error !"; exit(); } */ $f=substr($f,3); if( substr($f,-1)=="/" ) $f=substr($f,0,-1); $f=str_replace("/","__",$f); $f=urlencode( $f ); //echo $f; //------------------------------------ // check param by file system //------------------------------------ $f="./link/".$f.".php"; if( file_exists( $f ) ) include $f; else { include RootPath."/index.php"; } //----------------------------------- // check param by file system //----------------------------------- ?>