Project

General

Profile

« Previous | Next » 

Revision 114

Added by stefan about 19 years ago

Module table entries now get deleted upon module installation. Removed 1 second delay in admin success messages.

View differences:

trunk/wb/admin/interface/success.html
4 4
	{MESSAGE}
5 5
	
6 6
	<script language="javascript" type="text/javascript">
7
		setTimeout("location.href='{REDIRECT}'", 1000);
7
		setTimeout("location.href='{REDIRECT}'", 0);
8 8
	</script>
9 9
	
10 10
	<noscript>
trunk/wb/admin/modules/uninstall.php
54 54
	$admin->print_error($MESSAGE['GENERIC']['CANNOT_UNINSTALL']);
55 55
}
56 56

  
57
$database->query("DELETE FROM ".TABLE_PREFIX."modules WHERE directory =
58
'$file'"); 
59

  
57 60
// Run the modules uninstall script if there is one
58 61
if(file_exists(WB_PATH.'/modules/'.$file.'/uninstall.php')) {
59 62
	require(WB_PATH.'/modules/'.$file.'/uninstall.php');
trunk/wb/admin/modules/install.php
123 123

  
124 124
// Print success message
125 125
if ($action=="install") {
126
	$admin->print_success($MESSAGE['GENERIC']['INSTALLED']);
127 126
	$settings_rows=	"INSERT INTO `".TABLE_PREFIX."modules` VALUES "
128
	." ('', '".$module_name."', '".$module_type."', '".$module_directory."');";
127
	." ('', '$module_name', '$module_type', '$module_directory' );";
129 128
	$database->query($settings_rows);
129
	$admin->print_success($MESSAGE['GENERIC']['INSTALLED']);
130 130
} else if ($action=="upgrade") {
131 131
	$admin->print_success($MESSAGE['GENERIC']['UPGRADED']);
132 132
}	
trunk/wb/modules/htmlarea/install.php
8 8
	// Setup the PclZip object
9 9
	$editor_archive = new PclZip($editor_file);
10 10

  
11
	// Unzip FCKeditor to the module dir
11
	// Unzip to module dir
12 12
	$list = $editor_archive->extract(PCLZIP_OPT_PATH, $module_dir);
13 13
	if(!$list) {
14 14
		$admin->print_error($MESSAGE['GENERIC']['CANNOT_UNZIP']);

Also available in: Unified diff