Revision 1381
Added by Luisehahne almost 15 years ago
| install.php | ||
|---|---|---|
| 113 | 113 |
make_dir($module_dir); |
| 114 | 114 |
|
| 115 | 115 |
// Unzip module to the module dir |
| 116 |
if(isset($POST['overwrite']) && intval($POST['overwrite'])==1){
|
|
| 116 |
if(isset($_POST['overwrite'])){
|
|
| 117 | 117 |
$list = $archive->extract(PCLZIP_OPT_PATH, $module_dir, PCLZIP_OPT_REPLACE_NEWER ); |
| 118 | 118 |
} else {
|
| 119 | 119 |
$list = $archive->extract(PCLZIP_OPT_PATH, $module_dir ); |
| ... | ... | |
| 158 | 158 |
$admin->print_success($MESSAGE['GENERIC']['INSTALLED']); |
| 159 | 159 |
} elseif ($action=="upgrade") |
| 160 | 160 |
{
|
| 161 |
|
|
| 161 | 162 |
upgrade_module($module_directory, false); |
| 162 | 163 |
$admin->print_success($MESSAGE['GENERIC']['UPGRADED']); |
| 163 | 164 |
} |
Also available in: Unified diff
update admin/modules unpack handling, overwrite newer files