[slbackup-commit] CVS update: slbackup-php/src functions.php
index.php
finnarne-guest at alioth.debian.org
finnarne-guest at alioth.debian.org
Wed Apr 18 06:36:44 UTC 2007
User: finnarne-guest
Date: 07/04/18 06:36:44
Modified: src functions.php index.php
Log:
Make denial the default if running without https
Revision Changes Path
1.7 +1 -1 slbackup-php/src/functions.php
Index: functions.php
===================================================================
RCS file: /cvsroot/slbackup/slbackup-php/src/functions.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- functions.php 18 Apr 2007 06:30:41 -0000 1.6
+++ functions.php 18 Apr 2007 06:36:44 -0000 1.7
@@ -41,7 +41,7 @@
case "deny":
break ;
default:
- $nonhttps = "warn"
+ $nonhttps = "deny" ;
setcookie ('nonhttps', $nonhttps) ;
break ;
}
1.30 +3 -2 slbackup-php/src/index.php
Index: index.php
===================================================================
RCS file: /cvsroot/slbackup/slbackup-php/src/index.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- index.php 18 Apr 2007 06:30:41 -0000 1.29
+++ index.php 18 Apr 2007 06:36:44 -0000 1.30
@@ -483,8 +483,9 @@
$config = readconf ($passwd) ;
if (empty ($config)) {
- if (empty ($_SERVER["HTTPS"]))
- $smarty->assign ('https', $nonhttps) ;
+ if (empty ($_SERVER["HTTPS"])) {
+ $smarty->assign ('nonhttps', $nonhttps) ;
+ }
$smarty->assign ('backupuser', $backupuser) ;
$smarty->assign ('backuphost', $backuphost) ;
$smarty->display ('login.tpl') ;
More information about the slbackup-commit
mailing list