Revision 110
Added by stefan about 19 years ago
install.php | ||
---|---|---|
114 | 114 |
} |
115 | 115 |
} |
116 | 116 |
|
117 |
|
|
118 |
|
|
117 | 119 |
// Run the modules install // upgrade script if there is one |
118 | 120 |
if(file_exists(WB_PATH.'/modules/'.$module_directory.'/'.$action.'.php')) { |
119 | 121 |
require(WB_PATH.'/modules/'.$module_directory.'/'.$action.'.php'); |
... | ... | |
122 | 124 |
// Print success message |
123 | 125 |
if ($action=="install") { |
124 | 126 |
$admin->print_success($MESSAGE['GENERIC']['INSTALLED']); |
127 |
$settings_rows= "INSERT INTO `".TABLE_PREFIX."modules` VALUES " |
|
128 |
." ('', '".$module_name."', '".$module_type."', '".$module_directory."');"; |
|
129 |
$database->query($settings_rows); |
|
125 | 130 |
} else if ($action=="upgrade") { |
126 | 131 |
$admin->print_success($MESSAGE['GENERIC']['UPGRADED']); |
127 | 132 |
} |
Also available in: Unified diff
Created new table "modules" to allow for faster lookup of which modules are installed. Allows for greater flexibility also.