Update of /cvsroot/openfirst/base/config
In directory sc8-pr-cvs1:/tmp/cvs-serv28059/config
Modified Files:
first.php
Log Message:
New option to disable cookie-based authentication as a system policy. Required for new version of auth.php.
Index: first.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/first.php,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** first.php 1 Oct 2003 00:03:14 -0000 1.24
--- first.php 16 Nov 2003 23:09:39 -0000 1.25
***************
*** 42,45 ****
--- 42,50 ----
if(is_writable("./globals.php")) {
$of = fopen("./globals.php", "w");
+ if(isset($_POST["cookielogins"])&&$_POST["cookielogins"]="yes"){
+ $cookielogins="";
+ }else{
+ $cookielogins='$pass_save_disabled=true;';
+ }
fputs($of, "<?php
/*
***************
*** 72,75 ****
--- 77,81 ----
ofirst_select_db(\$sqldatabase);
+ $cookielogins
\$home = '" . $_POST["home"] . "';
\$header = '" . $_POST["header"] . "';
***************
*** 236,239 ****
--- 242,248 ----
this should not have a trailing slash.</td>
<td><input type="text" name="fbasepath" value="<?php chdir(".."); echo getcwd(); ?>"></td></tr>
+ <tr>
+ <td>Allow openFIRST users to save their passwords?</td>
+ <td><input type="checkbox" name="cookielogins" id="cookielogins" value="yes" checked><label for="cookielogins">Allowed</label></td></tr>
<tr><td></td><td><input type="submit" value="Set up OpenFIRST"></td></tr>
</table>
|