Revision 1712
Added by Dietmar about 12 years ago
install.php | ||
---|---|---|
3 | 3 |
* |
4 | 4 |
* @category admin |
5 | 5 |
* @package modules |
6 |
* @author WebsiteBaker Project |
|
7 |
* @copyright 2004-2009, Ryan Djurovich |
|
8 |
* @copyright 2009-2011, Website Baker Org. e.V. |
|
6 |
* @author Ryan Djurovich,WebsiteBaker Project |
|
7 |
* @copyright 2009-2012, WebsiteBaker Org. e.V. |
|
9 | 8 |
* @link http://www.websitebaker2.org/ |
10 | 9 |
* @license http://www.gnu.org/licenses/gpl.html |
11 | 10 |
* @platform WebsiteBaker 2.8.x |
... | ... | |
75 | 74 |
$admin->print_error($MESSAGE[$key].'<br />'.$MESSAGE['GENERIC_CANNOT_UPLOAD']); |
76 | 75 |
} |
77 | 76 |
|
78 |
// Include the PclZip class file (thanks to
|
|
77 |
// Include the PclZip class file (thanks to |
|
79 | 78 |
require_once(WB_PATH.'/include/pclzip/pclzip.lib.php'); |
80 | 79 |
|
81 | 80 |
// Remove any vars with name "module_directory" |
... | ... | |
105 | 104 |
if(!isset($module_directory)) |
106 | 105 |
{ |
107 | 106 |
if(file_exists($temp_file)) { unlink($temp_file); } // Remove temp file |
108 |
$admin->print_error($MESSAGE['GENERIC']['INVALID']);
|
|
107 |
$admin->print_error($MESSAGE['GENERIC_INVALID']);
|
|
109 | 108 |
} |
110 | 109 |
|
111 | 110 |
// Check if this module is already installed |
... | ... | |
122 | 121 |
{ |
123 | 122 |
|
124 | 123 |
if(file_exists($temp_file)) { unlink($temp_file); } // Remove temp file |
125 |
$admin->print_error($MESSAGE['GENERIC']['ALREADY_INSTALLED']);
|
|
124 |
$admin->print_error($MESSAGE['GENERIC_ALREADY_INSTALLED']);
|
|
126 | 125 |
} |
127 | 126 |
|
128 | 127 |
$action="upgrade"; |
... | ... | |
134 | 133 |
if(!is_writable(WB_PATH.'/modules/')) |
135 | 134 |
{ |
136 | 135 |
if(file_exists($temp_file)) { unlink($temp_file); } // Remove temp file |
137 |
$admin->print_error($MESSAGE['GENERIC']['BAD_PERMISSIONS']);
|
|
136 |
$admin->print_error($MESSAGE['GENERIC_BAD_PERMISSIONS']);
|
|
138 | 137 |
} |
139 | 138 |
|
140 | 139 |
// Set module directory |
... | ... | |
152 | 151 |
|
153 | 152 |
if(!$list) |
154 | 153 |
{ |
155 |
$admin->print_error($MESSAGE['GENERIC']['CANNOT_UNZIP']);
|
|
154 |
$admin->print_error($MESSAGE['GENERIC_CANNOT_UNZIP']);
|
|
156 | 155 |
} |
157 | 156 |
/* |
158 | 157 |
|
... | ... | |
186 | 185 |
{ |
187 | 186 |
// Load module info into DB |
188 | 187 |
load_module(WB_PATH.'/modules/'.$module_directory, false); |
189 |
$admin->print_success($MESSAGE['GENERIC']['INSTALLED']);
|
|
188 |
$admin->print_success($MESSAGE['GENERIC_INSTALLED']);
|
|
190 | 189 |
} elseif ($action=="upgrade") |
191 | 190 |
{ |
192 | 191 |
|
193 | 192 |
upgrade_module($module_directory, false); |
194 |
$admin->print_success($MESSAGE['GENERIC']['UPGRADED']);
|
|
193 |
$admin->print_success($MESSAGE['GENERIC_UPGRADED']);
|
|
195 | 194 |
} |
196 | 195 |
|
197 | 196 |
// Print admin footer |
198 |
$admin->print_footer(); |
|
199 |
|
|
200 |
?> |
|
197 |
$admin->print_footer(); |
Also available in: Unified diff
! update folder admin/addons admin/skel/htt