用户无法完成注册,因为他们获得了重定向功能。我仍然希望保留重定向,因为我只希望人们在加入后看到该网站。
有什么方法可以阻止页面重定向我使用的是php我正在使用来自http://www.janrain.com/的mod
我已经登录/注销/注册/工作而没有获得重定向我试图让他们可以在那里注册Facebook等... http://www.janrain.com/
这是我正在使用该工作的代码,但似乎无法使用janrain
if ((int)$_COOKIE['memberID'] == 0) {
if (
$_page['header'] != 'Join' &&
$_page['header'] != 'About Us' &&
$_page['header'] != 'Privacy Policy' &&
$_page['header'] != 'Terms of use' &&
$_page['header'] != 'FAQ' &&
$_page['header'] != 'Invite a friend' &&
$_page['header'] != 'Contact us' &&
$_page['header'] != 'Help' &&
$_page['header'] != 'Advice' &&
$_page['header'] != 'Forgot password?'
) {
header('Location: ' . BX_DOL_URL_ROOT . 'splash.php');
}
}
答案 0 :(得分:1)
也许$ _page ['header']不在那些中,所以它会引起轰动我会给你一个更好的方式来组织你的工作并在将来帮助你
$pages = array("Join", "About Us", "Privacy Policy", "Terms of use","FAQ","Invite a friend","Contact us","Help","Advice","Forgot password?");
if ((int)$_COOKIE['memberID'] == 0):
if (!in_array($_page['header'],$pages):
header('Location: ' . BX_DOL_URL_ROOT . 'splash.php');
endif;
endif;
完成上述操作后尝试使用$ _page ['header']来杀死页面,以便调试我们的位置
die($_page['header']); //just for debug