Project

General

Profile

« Previous | Next » 

Revision 1684

Added by Dietmar about 12 years ago

! update upgrade-script, now don't overwrite existings values in settings
+ add field tooltip to table pages in installer
! change some module tool_icon.png (Tks to Stefek)
! add date_time string to backup_droplets.zip
- search and comment out founded require_once(WB_PATH."/framework/class.database.php");
- this will be never needed anymore and produce errors
! rename class.msg_queue.php in msgQueue.php to work with autokoader
+ add function format_message to class.wb.php

View differences:

backup_droplets.php
3 3
 *
4 4
 * @category        module
5 5
 * @package         droplet
6
 * @author          Ruud Eisinga (Ruud) John (PCWacht)
7
 * @author          WebsiteBaker Project
8
 * @copyright       2009-2012, Website Baker Org. e.V.
9
 * @link			http://www.websitebaker2.org/
6
 * @author          Ruud Eisinga (Ruud) John (PCWacht), WebsiteBaker Project
7
 * @copyright       2009-2012, WebsiteBaker Org. e.V.
8
 * @link			http://www.websitebaker.org/
10 9
 * @license         http://www.gnu.org/licenses/gpl.html
11 10
 * @platform        WebsiteBaker 2.8.x
12 11
 * @requirements    PHP 5.2.2 and higher
......
16 15
 *
17 16
 */
18 17

  
18

  
19

  
19 20
// tool_edit.php
20 21
require_once('../../config.php');
21 22
require_once(WB_PATH.'/framework/class.admin.php');
......
43 44

  
44 45
$OK  = ' <span style="color:#006400; font-weight:bold;">OK</span> ';
45 46
$FAIL = ' <span style="color:#ff0000; font-weight:bold;">FAILED</span> ';
46

  
47
$sBackupName = strftime('%Y%m%d_%H%M%S', time()+ TIMEZONE ).'_droplets.zip';
47 48
$temp_dir = '/temp/droplets/';
48
$temp_file = $temp_dir.'backup-droplets.zip';
49
$temp_file = $temp_dir.$sBackupName;
49 50

  
50 51
if(is_writeable(dirname(WB_PATH.$temp_dir))) {
51 52
 	rm_full_dir ( WB_PATH.$temp_dir );
52 53
}
53 54

  
55
/*
56
// make the temporary working directory
57
if(!make_dir(WB_PATH.$temp_dir, octdec('0777') )){
58
//  $admin->print_error($MESSAGE['MEDIA_DIR_NOT_MADE'], $module_edit_link);
59
}
60
*/
61

  
54 62
$msg = createFolderProtectFile(rtrim( WB_PATH.$temp_dir,'/') );
55 63
if(sizeof($msg)) {
56 64
	print '<h4 class="warning">';
......
80 88

  
81 89
$sFilesToZip = rtrim($sFilesToZip,',');
82 90

  
83
echo '<br />Create archive: backup-droplets.zip<br />';
91
echo '<br />Create archive: <strong>'.$sBackupName.'</strong><br />';
84 92

  
85 93
require_once(WB_PATH.'/include/pclzip/pclzip.lib.php');
86 94
$archive = new PclZip(WB_PATH.$temp_file);

Also available in: Unified diff