Project

General

Profile

« Previous | Next » 

Revision 1676

Added by Dietmar over 12 years ago

  1. fixed backup_droplets working with php as Apache Module (Tks to Ruebenwurzel)
    ! update function rm_full_dir in /framework/functions.php
    ! To disable Run-time notices and receive warnings

View differences:

tool.php
42 42
	echo "\n</style>\n";
43 43
}
44 44

  
45
$temp_dir = '/temp/droplets/';
45 46
// Get userid for showing admin only droplets or not
46
$loggedin_user = ($admin->ami_group_member('1') ? 1 : $admin->user_id());
47
$loggedin_user = ($admin->ami_group_member('1') ? 1 : $admin->get_user_id());
47 48
$loggedin_group = $admin->get_groups_id();
48 49
$admin_user = ( ($admin->get_home_folder() == '') && ($admin->ami_group_member('1') ) || ($loggedin_user == '1'));
49 50

  
......
61 62
if( !$database->get_one($sql) ) {
62 63
	include('install.php');
63 64
}
65
// delete backup folder if possible
66
if(is_writeable(dirname(WB_PATH.$temp_dir))) {
67
 	rm_full_dir ( WB_PATH.$temp_dir );
68
}
64 69
?><br />
65 70
<table summary="" cellpadding="0" cellspacing="0" border="0" width="100%">
66 71
<tr>

Also available in: Unified diff