From b81d2da5e16975674f011e4833337ac0fa24e0ea Mon Sep 17 00:00:00 2001 From: cbarratt Date: Sun, 12 Nov 2006 07:54:42 +0000 Subject: [PATCH] Updates in preparation for 3.0.0beta2: * Config Editor "Save" button is now always visible, but greyed out until there are changes to save. * Config editor allows other tabs to be selected when there is an error, which allows you to fix an error (eg: missing binary) in an exiting config file. Errors are now displayed at the top of the page in addition to next to the erroneous setting. * Fixed config.pl editor writing to solve bug with multi-line text strings ending in newline. Reported and root caused by Les Stott and Jerry Groendyke. * Fixed error recovery case in BackupPC::PoolWrite, reported by Samuel Bancal. * New directory/file/hardlink and symlink image icons from Jono Woodhouse, making directory browse more compact. * Reordered the Server navigation bar links, suggested by David Relson. * Fixed typos in init.d/src/gentoo-backuppc, configure.pl and config.pl reported by David Relson. --- ChangeLog | 27 ++++- bin/BackupPC | 2 +- bin/BackupPC_archive | 2 +- bin/BackupPC_archiveHost | 2 +- bin/BackupPC_attribPrint | 2 +- bin/BackupPC_compressPool | 2 +- bin/BackupPC_dump | 2 +- bin/BackupPC_fixupBackupSummary | 2 +- bin/BackupPC_link | 2 +- bin/BackupPC_nightly | 2 +- bin/BackupPC_restore | 2 +- bin/BackupPC_sendEmail | 2 +- bin/BackupPC_serverMesg | 2 +- bin/BackupPC_tarCreate | 2 +- bin/BackupPC_tarExtract | 2 +- bin/BackupPC_tarPCCopy | 2 +- bin/BackupPC_trashClean | 2 +- bin/BackupPC_zcat | 2 +- bin/BackupPC_zipCreate | 2 +- conf/BackupPC_stnd.css | 15 ++- conf/config.pl | 18 +-- configure.pl | 8 +- doc-src/BackupPC.pod | 9 +- images/icon-dir.gif | Bin 426 -> 0 bytes images/icon-dir.png | Bin 0 -> 420 bytes images/icon-file.gif | Bin 395 -> 0 bytes images/icon-file.png | Bin 0 -> 441 bytes images/icon-hardlink.gif | Bin 458 -> 0 bytes images/icon-hardlink.png | Bin 0 -> 710 bytes images/icon-symlink.gif | Bin 458 -> 0 bytes images/icon-symlink.png | Bin 0 -> 659 bytes init.d/src/gentoo-backuppc | 2 +- lib/BackupPC/Attrib.pm | 2 +- lib/BackupPC/CGI/AdminOptions.pm | 2 +- lib/BackupPC/CGI/Archive.pm | 2 +- lib/BackupPC/CGI/ArchiveInfo.pm | 2 +- lib/BackupPC/CGI/Browse.pm | 4 +- lib/BackupPC/CGI/DirHistory.pm | 2 +- lib/BackupPC/CGI/EditConfig.pm | 165 ++++++++++++++++++---------- lib/BackupPC/CGI/EmailSummary.pm | 2 +- lib/BackupPC/CGI/GeneralInfo.pm | 2 +- lib/BackupPC/CGI/HostInfo.pm | 2 +- lib/BackupPC/CGI/LOGlist.pm | 2 +- lib/BackupPC/CGI/Lib.pm | 8 +- lib/BackupPC/CGI/Queue.pm | 2 +- lib/BackupPC/CGI/RSS.pm | 2 +- lib/BackupPC/CGI/ReloadServer.pm | 2 +- lib/BackupPC/CGI/Restore.pm | 2 +- lib/BackupPC/CGI/RestoreFile.pm | 2 +- lib/BackupPC/CGI/RestoreInfo.pm | 2 +- lib/BackupPC/CGI/StartServer.pm | 2 +- lib/BackupPC/CGI/StartStopBackup.pm | 2 +- lib/BackupPC/CGI/StopServer.pm | 2 +- lib/BackupPC/CGI/Summary.pm | 2 +- lib/BackupPC/CGI/View.pm | 2 +- lib/BackupPC/Config/Meta.pm | 4 +- lib/BackupPC/FileZIO.pm | 2 +- lib/BackupPC/Lang/de.pm | 17 +-- lib/BackupPC/Lang/en.pm | 13 ++- lib/BackupPC/Lang/es.pm | 13 ++- lib/BackupPC/Lang/fr.pm | 13 ++- lib/BackupPC/Lang/it.pm | 13 ++- lib/BackupPC/Lang/nl.pm | 13 ++- lib/BackupPC/Lang/pt_br.pm | 15 ++- lib/BackupPC/Lib.pm | 4 +- lib/BackupPC/PoolWrite.pm | 9 +- lib/BackupPC/Storage.pm | 2 +- lib/BackupPC/Storage/Text.pm | 47 +++----- lib/BackupPC/View.pm | 2 +- lib/BackupPC/Xfer/Archive.pm | 2 +- lib/BackupPC/Xfer/BackupPCd.pm | 2 +- lib/BackupPC/Xfer/Rsync.pm | 2 +- lib/BackupPC/Xfer/RsyncDigest.pm | 2 +- lib/BackupPC/Xfer/RsyncFileIO.pm | 2 +- lib/BackupPC/Xfer/Smb.pm | 2 +- lib/BackupPC/Xfer/Tar.pm | 2 +- lib/BackupPC/Zip/FileMember.pm | 2 +- makeDist | 7 +- 78 files changed, 305 insertions(+), 217 deletions(-) delete mode 100644 images/icon-dir.gif create mode 100644 images/icon-dir.png delete mode 100644 images/icon-file.gif create mode 100644 images/icon-file.png delete mode 100644 images/icon-hardlink.gif create mode 100644 images/icon-hardlink.png delete mode 100644 images/icon-symlink.gif create mode 100644 images/icon-symlink.png diff --git a/ChangeLog b/ChangeLog index 4818cad..f6cc6e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21,21 +21,44 @@ # Version __VERSION__, __RELEASEDATE__ #------------------------------------------------------------------------ +* Config Editor "Save" button is now always visible, but greyed out + until there are changes to save. + +* Config editor allows other tabs to be selected when there is an + error, which allows you to fix an error (eg: missing binary) in + an exiting config file. Errors are now displayed at the top of + the page in addition to next to the erroneous setting. + * configure.pl checks version of Encode.pm. Reported by Chris Stone. * Several fixes to bin/BackupPC_fixupBackupSummary from Stian Jordet. +* Fixed config.pl editor writing to solve bug with multi-line text + strings ending in newline. Reported and root caused by Les Stott + and Jerry Groendyke. + +* Fixed error recovery case in BackupPC::PoolWrite, reported by + Samuel Bancal. + * Fixed table width in backup browsing to avoid Firefox layout anomoly, provided by Jono Woodhouse. -* CSS file updates from Jono Woodhouse. Priod (v2) version is included +* CSS file updates from Jono Woodhouse. Prior (v2) version is included as BackupPC_stnd_orig.css in case people prefer the old skin. * More compact host summary, including disabled host indication, from Jono Woodhouse. +* New directory/file/hardlink and symlink image icons from Jono + Woodhouse, making directory browse more compact. + * BackupPC.pid is now world readable, suggested by Casper Thomsen. +* Reordered the Server navigation bar links, suggested by David Relson. + +* Fixed typos in init.d/src/gentoo-backuppc, configure.pl and config.pl + reported by David Relson. + #------------------------------------------------------------------------ # Version 3.0.0beta1, 30 Jul 2006 #------------------------------------------------------------------------ @@ -45,6 +68,8 @@ * Added some CGI utf8 conversions from Rodrigo Real and Vincent Fleuranceau. +* Rsync transfers now correctly handle file names with \n or \r. + * Host name is forced to lower case, to match 2.x. * Fixed LOG file naming in BackupPC_restore and BackupPC_archive. diff --git a/bin/BackupPC b/bin/BackupPC index cf70977..8e718de 100755 --- a/bin/BackupPC +++ b/bin/BackupPC @@ -47,7 +47,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_archive b/bin/BackupPC_archive index ad10f1f..f1fb9bd 100644 --- a/bin/BackupPC_archive +++ b/bin/BackupPC_archive @@ -29,7 +29,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_archiveHost b/bin/BackupPC_archiveHost index 84dae6a..5740914 100755 --- a/bin/BackupPC_archiveHost +++ b/bin/BackupPC_archiveHost @@ -38,7 +38,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_attribPrint b/bin/BackupPC_attribPrint index 72ea295..08e01be 100755 --- a/bin/BackupPC_attribPrint +++ b/bin/BackupPC_attribPrint @@ -31,7 +31,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_compressPool b/bin/BackupPC_compressPool index 83867f0..4ca8048 100755 --- a/bin/BackupPC_compressPool +++ b/bin/BackupPC_compressPool @@ -49,7 +49,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_dump b/bin/BackupPC_dump index f47b6e3..ae8fab1 100755 --- a/bin/BackupPC_dump +++ b/bin/BackupPC_dump @@ -70,7 +70,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_fixupBackupSummary b/bin/BackupPC_fixupBackupSummary index 671b186..502845f 100755 --- a/bin/BackupPC_fixupBackupSummary +++ b/bin/BackupPC_fixupBackupSummary @@ -30,7 +30,7 @@ # #======================================================================== # -# Version 3.0.0beta0, released 11 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_link b/bin/BackupPC_link index be888d3..03c740e 100755 --- a/bin/BackupPC_link +++ b/bin/BackupPC_link @@ -39,7 +39,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_nightly b/bin/BackupPC_nightly index 2639b41..366345f 100755 --- a/bin/BackupPC_nightly +++ b/bin/BackupPC_nightly @@ -55,7 +55,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_restore b/bin/BackupPC_restore index 8af7550..773322e 100755 --- a/bin/BackupPC_restore +++ b/bin/BackupPC_restore @@ -29,7 +29,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_sendEmail b/bin/BackupPC_sendEmail index 4b8d652..5c33fae 100755 --- a/bin/BackupPC_sendEmail +++ b/bin/BackupPC_sendEmail @@ -31,7 +31,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_serverMesg b/bin/BackupPC_serverMesg index 332afc8..48f7c42 100755 --- a/bin/BackupPC_serverMesg +++ b/bin/BackupPC_serverMesg @@ -43,7 +43,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_tarCreate b/bin/BackupPC_tarCreate index 4eeabfa..e0fd0fb 100755 --- a/bin/BackupPC_tarCreate +++ b/bin/BackupPC_tarCreate @@ -53,7 +53,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_tarExtract b/bin/BackupPC_tarExtract index 2f57fe6..7988a14 100755 --- a/bin/BackupPC_tarExtract +++ b/bin/BackupPC_tarExtract @@ -27,7 +27,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_tarPCCopy b/bin/BackupPC_tarPCCopy index e9477a8..c703528 100755 --- a/bin/BackupPC_tarPCCopy +++ b/bin/BackupPC_tarPCCopy @@ -36,7 +36,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_trashClean b/bin/BackupPC_trashClean index d5a58d4..3f7637e 100755 --- a/bin/BackupPC_trashClean +++ b/bin/BackupPC_trashClean @@ -29,7 +29,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_zcat b/bin/BackupPC_zcat index 59dff2a..f3f99b8 100755 --- a/bin/BackupPC_zcat +++ b/bin/BackupPC_zcat @@ -32,7 +32,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/bin/BackupPC_zipCreate b/bin/BackupPC_zipCreate index 46731d8..93bf95b 100755 --- a/bin/BackupPC_zipCreate +++ b/bin/BackupPC_zipCreate @@ -52,7 +52,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/conf/BackupPC_stnd.css b/conf/BackupPC_stnd.css index 0d0e681..a50bcab 100644 --- a/conf/BackupPC_stnd.css +++ b/conf/BackupPC_stnd.css @@ -1,7 +1,7 @@ /* * BackupPC standard CSS definitions * - * Version 3.0.0beta1, released 30 Jul 2006. + * Version 3.0.0beta2, released 31 Oct 2006. * * See http://backuppc.sourceforge.net. * @@ -24,7 +24,7 @@ body { table { border-collapse: collapse; color: #000000; - padding:0px; + padding: 2px; } h1 { @@ -129,7 +129,7 @@ a.navbar { } .editSaveButton { - color:#ff0000; + color:#c0c0c0; font-size:14pt; font-weight:bold; } @@ -156,8 +156,9 @@ a.navbar { } .fviewborder { + border-left:1px solid #666666; border-bottom:1px solid #000000; - border-left:1px dotted #666666; + border-right:1px solid #666666; background-color:#eeeeee; font-size:9pt; } @@ -187,13 +188,14 @@ a.navbar { .histView { border-bottom:1px solid #000000; - border-left:2px solid #ffffff; + border-left:1px solid #000000; background-color:#eeeeee; font-size:10pt; } .histViewMis { border-bottom:1px solid #000000; + border-left:1px solid #000000; background-color:#ffdddd; } @@ -224,8 +226,9 @@ div.NavTitle { #Content { float:right; - width:80%; + width:79%; left:20%; top:10px; + right:10px; position:absolute; } diff --git a/conf/config.pl b/conf/config.pl index af66a76..069dd66 100644 --- a/conf/config.pl +++ b/conf/config.pl @@ -1181,7 +1181,7 @@ $Conf{RsyncdAuthRequired} = 1; # # When rsync checksum caching is enabled (by adding the # --checksum-seed=32761 option to $Conf{RsyncArgs}), the cached -# checksums can be occaisonally verified to make sure the file +# checksums can be occasionally verified to make sure the file # contents matches the cached checksums. This is to avoid the # risk that disk problems might cause the pool file contents to # get corrupted, but the cached checksums would make BackupPC @@ -1231,9 +1231,11 @@ $Conf{RsyncArgs} = [ '--recursive', # - # If you are using a patched client rsync that supports the - # --checksum-seed option (see http://backuppc.sourceforge.net), - # then uncomment this to enabled rsync checksum cachcing + # Rsync >= 2.6.3 supports the --checksum-seed option + # which allows rsync checksum caching on the server. + # Uncomment this to enable rsync checksum caching if + # you have a recent client rsync version and you want + # to enable checksum caching. # #'--checksum-seed=32761', @@ -1268,9 +1270,11 @@ $Conf{RsyncRestoreArgs} = [ '--recursive', # - # If you are using a patched client rsync that supports the - # --checksum-seed option (see http://backuppc.sourceforge.net), - # then uncomment this to enabled rsync checksum cachcing + # Rsync >= 2.6.3 supports the --checksum-seed option + # which allows rsync checksum caching on the server. + # Uncomment this to enable rsync checksum caching if + # you have a recent client rsync version and you want + # to enable checksum caching. # #'--checksum-seed=32761', diff --git a/configure.pl b/configure.pl index 74a221c..7cf5149 100755 --- a/configure.pl +++ b/configure.pl @@ -356,10 +356,10 @@ while ( 1 ) { print <64I< zz#yx}pk{pj{CNg0UWWL32It84@893Qf4`uhARr*1zrUX$vxh-ga{c=C3{6o0ZXGB7AG=zweh`H6w;xWj}34;`ug6HAIt=2*?Ypb_{; zLd>SE%Qaz-oKEPHgO4qBc*I#;4t`M4n8}&JutP(RjcdEdyK1|J1{nqx-irE04nYZK zMi=(Fj>gIISyLJ~~Y~sS^h+d)jegy l6P_deayy<}bh|A0gkiC}5R*i=%Z3HknjFGfQ-oL;tO1|La&G_t diff --git a/images/icon-dir.png b/images/icon-dir.png new file mode 100644 index 0000000000000000000000000000000000000000..1aedb7710626aae598a0e576cbc95a988b870396 GIT binary patch literal 420 zcmV;V0bBlwP)Y5Qd*~4-U1lQUZb)u&@y!AZlr0Cs>%jAP8Dm*a?1>76A((Vri)ef)*AQ7J`sU zOTlz%`XqPBWp*s?@?jDZ#erdWVdt55h8O-BPM^2_8j#DTR8_IoVy$Ii^CbxsfO20M zaq*9M%uFjV4-CbP+A~s+%ceB7o&(O>u zSloK;yDvTuAhE~A_AthnwFpow;(1<|J#7lrI@DBhVD0~C5A?F8M88>?X O0000M+2PHQ5x0v^=u`u9ai&`7k(JR-RXurJP){~o|xw$U0!GpQ2 zt;4;xJ6^1}VnP-ZyJv04Y&j-*Cf1o#GZ%Prh%b&?>cKj1WsIbt=h~P#A@dkmHm_U1 zbF;|$n0+2B3^Bps-h?gwAPH(G!4t;@;QX? zy4h@A_WS+s{QUhJBZUx{&1S4ttLN=@`@OE~r~KRkhzKDBlu{_A1^}fLZQBw;U_PHO zj4_Axdi@pnlN^W$-g`m_gZ=;}lL^!56z3eyITnk>=kxjeW#FLeI;^z-7-N!?+?m#z zuIs3(3ZNVSZns%K%GL{9f z)>4)wMNwdkL2I2xsG+KUBTaR4*( literal 0 HcmV?d00001 diff --git a/images/icon-hardlink.gif b/images/icon-hardlink.gif deleted file mode 100644 index 02562c42d71d267ff335d717980c2c7229bdaedd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 458 zcmZ?wbhEHblxL7;xT?jlfB%g7`uc{3wEqPK|KGnqfByV`0f8AaiVQ$N?Z1M;|Mlzt z-@kwQ^o;-e_y6zjPe@1*5a9hk9|-Eh!kl}0a{BxG|2sI;)WrV}2vAUvJa=yP`}g|- z0s`K@e_v1#DIg%w-(RGwtGs{zeg_aR{?EYh|38oblBXdIAe(HU_>+Z^fkBHw2V?@s zPYi6&9i|p|=t%XSP-HopV>SOwV9-;?4xyE6%1-NgPGl8GZGJRs`z)qQO{+|#o_>~` z>XOL!W5*nCcQ>zwhU&Chch%vvJYlMVi90 zo+=EpqnH?1u3n?LZbNlIK)ma!g-cX5)DIlwKd7?PML==e!Gml(2adWkGMzfDt|or| znDeD82U*nAxYaMX-PyPOpb*ysH8z$fu8i_mnBP3$dVkAFxxHvV-vgBzZgao+Ty>{j s@iL?-Id4-|-tfaZ@I2#&H2z)@g@YRxACJG7C=MMe zO;c1Tbt)nWl@3B?7r~*sI5;{K!O1Q{M50YpaELB~MWTWrMFmBqgG2wN8Iru0#N6xf ze6MMXc;Fi@hx489JLg<-x!lU`?ymh8wzjrxu~=M9r_;mMT0(@Owbn8okK;HFQc4a+ zySi=JkP`TeFg>wSk9#2+ec`5;J6Tr2XNd# zf!3N>EQaGaD5a26Mk|$4GMSo$wFdN`2s#S^Qh{3w2$WK|u8ZS1Xsr)z;>^+u7(Wkg z{IA>^NC`R?SWrssD;7dTDt2~uU}GJQ_CqWIejT3PgAXN8YL7r`9Tjz>QmH_r2JL1b z{pV+fKD}BJgz>%07*qoM6N<$f>?emS^xk5 literal 0 HcmV?d00001 diff --git a/images/icon-symlink.gif b/images/icon-symlink.gif deleted file mode 100644 index 02562c42d71d267ff335d717980c2c7229bdaedd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 458 zcmZ?wbhEHblxL7;xT?jlfB%g7`uc{3wEqPK|KGnqfByV`0f8AaiVQ$N?Z1M;|Mlzt z-@kwQ^o;-e_y6zjPe@1*5a9hk9|-Eh!kl}0a{BxG|2sI;)WrV}2vAUvJa=yP`}g|- z0s`K@e_v1#DIg%w-(RGwtGs{zeg_aR{?EYh|38oblBXdIAe(HU_>+Z^fkBHw2V?@s zPYi6&9i|p|=t%XSP-HopV>SOwV9-;?4xyE6%1-NgPGl8GZGJRs`z)qQO{+|#o_>~` z>XOL!W5*nCcQ>zwhU&Chch%vvJYlMVi90 zo+=EpqnH?1u3n?LZbNlIK)ma!g-cX5)DIlwKd7?PML==e!Gml(2adWkGMzfDt|or| znDeD82U*nAxYaMX-PyPOpb*ysH8z$fu8i_mnBP3$dVkAFxxHvV-vgBzZgao+Ty>{j s@iL?-Id4-|-tfaZ@I2#&H2z)@g@YRxACJGP)@jIn;97y8Je1! zdY4QlyBp^kz&VGt79j*eh!X@t2#Uob)>``e`{PQfxv{aad%$+xfpd;pt%kMs#C`z2 z?-K+8#u$t-#N+X+*=+Vkn1u$YR4Qn#0Z>ZSojB*%-`{6?;W3fULkg8L$~L!x}0_Txx6W-Y=E9xAXGY0YI@>q*|?F zj6rK%&!VHFgWHKw-Yn%fx|XN4$xyQv0hCPjI0LOUkw}C{B!W^3DJ4oNlu~$}$3S9$ zw(E|ru5$#&5DNl2nwn_$qsI=EQW#_KJnw{hSgD2A#BMsG(I@~12W5PzX^EI)2cc33 z7D6DUL`uod&JN!;S80s}_`XlEAeeu;wz-no%K6Is>mUS$1fh%F-Cc?YWo+3;2u)$N z4fCaC{`;qFXQgIuN#G1HRF_iH*Vo6xyHl*q?s9loW#Ie>y%&2|ChpvSUS15I$ndo_ zzP!^!lM|D)|GLcQ_gOZNHULPc(_hoC(o6MQXbdp~h9pWUW~OHt)ejhsjn>5m2M0@f tad9!dyu9q3bN~HV0P8>2EwCA${{YYX{Tcn){&oNW002ovPDHLkV1g{+J2U_Q literal 0 HcmV?d00001 diff --git a/init.d/src/gentoo-backuppc b/init.d/src/gentoo-backuppc index 98d3cf6..4de84ba 100755 --- a/init.d/src/gentoo-backuppc +++ b/init.d/src/gentoo-backuppc @@ -14,7 +14,7 @@ source /etc/conf.d/backuppc checkconfig() { if [ ! -f ${CONF_FILE} ] ; then - eeror "No ${CONF_FILE} exists!" + eerror "No ${CONF_FILE} exists!" fi } diff --git a/lib/BackupPC/Attrib.pm b/lib/BackupPC/Attrib.pm index fb904b5..d7b621f 100644 --- a/lib/BackupPC/Attrib.pm +++ b/lib/BackupPC/Attrib.pm @@ -30,7 +30,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/lib/BackupPC/CGI/AdminOptions.pm b/lib/BackupPC/CGI/AdminOptions.pm index b7da86a..c2d80a1 100644 --- a/lib/BackupPC/CGI/AdminOptions.pm +++ b/lib/BackupPC/CGI/AdminOptions.pm @@ -28,7 +28,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/lib/BackupPC/CGI/Archive.pm b/lib/BackupPC/CGI/Archive.pm index d11b3f3..e89b4f6 100644 --- a/lib/BackupPC/CGI/Archive.pm +++ b/lib/BackupPC/CGI/Archive.pm @@ -28,7 +28,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/lib/BackupPC/CGI/ArchiveInfo.pm b/lib/BackupPC/CGI/ArchiveInfo.pm index dc0675a..2e94e01 100644 --- a/lib/BackupPC/CGI/ArchiveInfo.pm +++ b/lib/BackupPC/CGI/ArchiveInfo.pm @@ -28,7 +28,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/lib/BackupPC/CGI/Browse.pm b/lib/BackupPC/CGI/Browse.pm index e327b05..d9f4b8a 100644 --- a/lib/BackupPC/CGI/Browse.pm +++ b/lib/BackupPC/CGI/Browse.pm @@ -28,7 +28,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # @@ -204,7 +204,7 @@ EOF $a->{type}); my $modeStr = sprintf("0%o", $a->{mode} & 07777); $iconStr = < + EOF $attrStr .= <$typeStr diff --git a/lib/BackupPC/CGI/DirHistory.pm b/lib/BackupPC/CGI/DirHistory.pm index 6fb0366..acbe73a 100644 --- a/lib/BackupPC/CGI/DirHistory.pm +++ b/lib/BackupPC/CGI/DirHistory.pm @@ -28,7 +28,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # diff --git a/lib/BackupPC/CGI/EditConfig.pm b/lib/BackupPC/CGI/EditConfig.pm index 68c77a8..df38ebd 100644 --- a/lib/BackupPC/CGI/EditConfig.pm +++ b/lib/BackupPC/CGI/EditConfig.pm @@ -28,7 +28,7 @@ # #======================================================================== # -# Version 3.0.0beta1, released 30 Jul 2006. +# Version 3.0.0beta2, released 11 Nov 2006. # # See http://backuppc.sourceforge.net. # @@ -357,14 +357,14 @@ sub action ErrorExit(eval("qq{$Lang->{Only_privileged_users_can_edit_config_files}}")); } - if ( defined($In{menu}) || $In{editAction} eq $Lang->{CfgEdit_Button_Save} ) { + if ( defined($In{menu}) || $In{saveAction} eq "Save" ) { $errors = errorCheck(); if ( %$errors ) { # # If there are errors, then go back to the same menu # - $In{editAction} = ""; - $In{newMenu} = ""; + $In{saveAction} = ""; + #$In{newMenu} = ""; } if ( (my $var = $In{overrideUncheck}) ne "" ) { # @@ -401,7 +401,7 @@ sub action $newConf = { %$mainConf, %$hostConf }; } - if ( $In{editAction} ne $Lang->{CfgEdit_Button_Save} && $In{newMenu} ne "" + if ( $In{saveAction} ne "Save" && $In{newMenu} ne "" && defined($ConfigMenu{$In{newMenu}}) ) { $menu = $In{newMenu}; } @@ -475,9 +475,15 @@ EOF $content .= eval("qq($Lang->{CfgEdit_Header_Host})"); } - my $saveDisplay = "block"; - $saveDisplay = "none" if ( !$In{modified} - || $In{editAction} eq $Lang->{CfgEdit_Button_Save} ); + my $saveStyle = ""; + my $saveColor = "#ff0000"; + + if ( $In{modified} && $In{saveAction} ne "Save" && !%$errors ) { + $saveStyle = "style=\"color:$saveColor\""; + } else { + $In{modified} = 0; + } + # # Add action and host to the URL so the nav bar link is # highlighted @@ -488,7 +494,7 @@ EOF $groupText - + @@ -498,65 +504,78 @@ EOF - + + +