From deaefa37f867c76487dccdbb9b93144ce6b993c7 Mon Sep 17 00:00:00 2001 From: csikosjanos Date: Tue, 16 May 2006 13:31:56 +0000 Subject: [PATCH] writeable backup file for everybody --- livesupport/src/modules/htmlUI/var/ui_exchange.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/livesupport/src/modules/htmlUI/var/ui_exchange.class.php b/livesupport/src/modules/htmlUI/var/ui_exchange.class.php index 41c7cb917..73b015372 100644 --- a/livesupport/src/modules/htmlUI/var/ui_exchange.class.php +++ b/livesupport/src/modules/htmlUI/var/ui_exchange.class.php @@ -133,6 +133,7 @@ class uiExchange if ($check['status'] === 'success') { if (@copy($check['tmpfile'], $target)) { + @chmod($target,0666); $this->Base->_retMsg('Copy backup to $1 successfull', $target); return true; } @@ -247,5 +248,11 @@ class uiExchange ); } + + // restore methods + function restore($filename) { + $filename='/tmp/backup_20060508.tar'; + $this->Base->gb->doRestore($this->Base->sessid,$filename); + } } ?> \ No newline at end of file