Update of /cvsroot/phpslash/phpslash-ft/class
In directory usw-pr-cvs1:/tmp/cvs-serv16069/phpslash-ft/class
Modified Files:
slashAuthCR.class
Log Message:
reg or log authmode
Index: slashAuthCR.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/slashAuthCR.class,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** slashAuthCR.class 20 May 2002 21:59:56 -0000 1.9
--- slashAuthCR.class 21 May 2002 15:02:04 -0000 1.10
***************
*** 29,37 ****
$this->psl = $_PSL;
- // if( !empty($_PSL['authmode'])) {
- // $mode = $_PSL['authmode'];
- // }
if ($mode=='reg') {
! $this->mode='reg';
} else {
$this->mode='log';
--- 29,38 ----
$this->psl = $_PSL;
if ($mode=='reg') {
! if( !empty($_PSL['authmode'])) {
! $this->mode = $_PSL['authmode'];
! } else {
! $this->mode='reg';
! }
} else {
$this->mode='log';
***************
*** 70,79 ****
$templ->set_var('ERROR', "");
}
!
slashhead("Login", "Login");
$templ->pparse('OUT',"form");
slashfoot();
}
! /*
function auth_preauth() {
--- 71,84 ----
$templ->set_var('ERROR', "");
}
!
! $templ->set_block("form","reg_block","regblock");
! if( $_PSL['authmode'] == "reg") {
! $templ->parse("regblock", "reg_block", true);
! }
slashhead("Login", "Login");
$templ->pparse('OUT',"form");
slashfoot();
}
!
function auth_preauth() {
***************
*** 119,123 ****
}
! */
function auth_validatelogin() {
--- 124,128 ----
}
!
function auth_validatelogin() {
|