把
代碼:
if(!ereg("$verifyPage",$_SERVER['HTTP_REFERER']))
改為
代碼:
if(isset($_SERVER['HTTP_REFERER']) && !ereg("$verifyPage",$_SERVER['HTTP_REFERER']))
而認證頁面($verifyPage)改用
代碼:
header('Location: thispage.php'); //thispage.php是你要跳轉到的php檔案的名稱
這樣就會有Referer的了。
_________________
I am the bone of my firefox.
Source is my body, and library is my blood.
I've created over a thousand of builds.
Unaware of notice.
Nor aware of warning.
With stood pain to create binaries.
Waiting for one's download.
I have no regrets. This is the only path.
My whole life was "Unlimited build works"
「只有宗教狂熱分子和極權主義國家才將道德等同於法制。」 Linus Torvalds寫道。
我的廢棄日記