[slbackup-commit] CVS update: slbackup-php/src index.php
finnarne-guest at alioth.debian.org
finnarne-guest at alioth.debian.org
Fri Apr 13 06:33:19 UTC 2007
User: finnarne-guest
Date: 07/04/13 06:33:19
Modified: src index.php
Log:
Display the name of the backup-clients, instead of complete arrays
Revision Changes Path
1.7 +6 -2 slbackup-php/src/index.php
Index: index.php
===================================================================
RCS file: /cvsroot/slbackup/slbackup-php/src/index.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- index.php 13 Apr 2007 06:07:38 -0000 1.6
+++ index.php 13 Apr 2007 06:33:19 -0000 1.7
@@ -84,7 +84,7 @@
$out .= sprintf (" user %s\n", $value["user"]) ;
$out .= sprintf (" </%s>\n", $key) ;
}
- $out .= sprintf ("<client>\n") ;
+ $out .= sprintf ("</client>\n") ;
$out .= sprintf ("server_address %s\n", $config["server_address"]) ;
$out .= sprintf ("server_destdir %s\n", $config["server_destdir"]) ;
$out .= sprintf ("server_type %s\n", $config["server_type"]) ;
@@ -363,12 +363,16 @@
$smarty->assign ('server_type', $config["server_type"]) ;
$smarty->assign ('server_user', $config["server_user"]) ;
$smarty->assign ('types', array ('local', 'remote')) ;
- $smarty->assign ('clients', $config["clients"]) ;
+ $smarty->assign ('clients', array_keys($config["clients"])) ;
$smarty->assign ('client', $client) ;
$smarty->assign ('clientaddress', $config["clients"][$client]["address"]) ;
$smarty->assign ('clientkeep', $config["clients"][$client]["keep"]) ;
$smarty->assign ('client_type', $config["clients"][$client]["type"]) ;
$smarty->assign ('clientuser', $config["clients"][$client]["user"]) ;
+ if ($submit == "addclient")
+ $smarty->assign ('clientsubmit', "Add") ;
+ else
+ $smarty->assign ('clientsubmit', "Update") ;
$smarty->assign ('locations', $config["clients"][$client]["location"]) ;
$smarty->display ('config.tpl') ;
?>
More information about the slbackup-commit
mailing list