Update of /cvsroot/phpslash/phpslash-ft/class
In directory sc8-pr-cvs1:/tmp/cvs-serv30993/phpslash-ft/class
Modified Files:
functions.inc slashAuthCR.class
Log Message:
emailNotify template fix
Index: functions.inc
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/functions.inc,v
retrieving revision 1.133
retrieving revision 1.134
diff -C2 -d -r1.133 -r1.134
*** functions.inc 20 Feb 2003 21:55:38 -0000 1.133
--- functions.inc 21 Feb 2003 21:47:04 -0000 1.134
***************
*** 1464,1479 ****
}
! if( file_exists($_PSL['templatedir'] . "/" . basename($ary['tpl']) . ".tpl") ) {
! $tpl = basename($ary['tpl']) . ".tpl";
! } else {
! debug ( "emailNotify: Template file doesn't exist", $_PSL['templatedir'] . "/" . basename($ary['tpl']) . ".tpl");
return false;
}
- $template = pslNew("slashTemplate",$_PSL['templatedir'], "remove");;
- $template->set_file("emailnotify",$tpl);
-
$template->set_var(array(
! 'REMOTE_ADDR' => $REMOTE_ADDR,
'ROOTURL' => $_PSL['rooturl'],
'MAILTONAME' => $ary['mail_to'],
--- 1464,1474 ----
}
! $template = pslNew("slashTemplate",$_PSL['templatedir'], "remove");;
! if ( !$template->set_file('emailnotify' , basename($ary['tpl']) . ".tpl" )) {
return false;
}
$template->set_var(array(
! 'REMOTE_ADDR' => $_SERVER['REMOTE_ADDR'],
'ROOTURL' => $_PSL['rooturl'],
'MAILTONAME' => $ary['mail_to'],
Index: slashAuthCR.class
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/class/slashAuthCR.class,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** slashAuthCR.class 21 Feb 2003 19:33:09 -0000 1.40
--- slashAuthCR.class 21 Feb 2003 21:47:04 -0000 1.41
***************
*** 246,249 ****
--- 246,253 ----
}
+ if(empty($HTTP_POST_VARS['challenge'])) {
+ return false;
+ }
+
if($challenge != $HTTP_POST_VARS['challenge']) {
return false;
|