我的网站有2个登录分会,即Userclub和Guestclub。我已经激活了登录模块,在mod_userlogin / tmpl.php中,我编辑了代码,以便登录到userclub ..但是如何为访客登录创建另一个模块?,
我的代码:
function val()
{
if(document.userLogin.LoginName.value=='')
{
document.userLogin.LoginName.focus();
alert('Please enter username');
return false;
}
if(document.userLogin.Password.value=='')
{
document.userLogin.Password.focus();
alert('Please enter password');
return false;
}
}
<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<div id="outerdiv">
<div id="innerdiv">
<form name="userLogin" method="post" action="http://******/UserClub/jsp/checkprevilege.jsp" onSubmit="return val()">
它不是完整的代码,但重要的部分是粘贴在这里,我想通过组件进行另一次登录!是否有可能,请回复我........
非常感谢...
答案 0 :(得分:0)
尝试两个模块,其中一个模块重定向到您的访客页面,另一个重定向到您的用户俱乐部。控制授予访问/拒绝访问权限的用户的访问级别?