Revision 2098
Added by darkviper over 10 years ago
manual_install.php | ||
---|---|---|
24 | 24 |
*/ |
25 | 25 |
// include WB configuration file and WB admin class |
26 | 26 |
require_once('../../config.php'); |
27 |
require_once('../../framework/class.admin.php'); |
|
28 | 27 |
|
28 |
$oTrans = Translate::getInstance(); |
|
29 |
$oTrans->enableAddon('admin\\modules'); |
|
30 |
|
|
29 | 31 |
// check user permissions for admintools (redirect users with wrong permissions) |
30 | 32 |
$admin = new admin('Admintools', 'admintools', false, false); |
31 | 33 |
|
... | ... | |
36 | 38 |
if( !$admin->checkFTAN() ) |
37 | 39 |
{ |
38 | 40 |
$admin->print_header(); |
39 |
$admin->print_error($MESSAGE['GENERIC_SECURITY_ACCESS'],$js_back);
|
|
41 |
$admin->print_error($oTrans->MESSAGE_GENERIC_SECURITY_ACCESS, $js_back);
|
|
40 | 42 |
} |
41 | 43 |
|
42 | 44 |
if ($admin->get_permission('admintools') == false) { die(header('Location: ../../index.php')); } |
... | ... | |
53 | 55 |
// include WB functions file |
54 | 56 |
require_once(WB_PATH . '/framework/functions.php'); |
55 | 57 |
|
56 |
// load WB language file |
|
57 |
require_once(WB_PATH . '/languages/' . LANGUAGE .'.php'); |
|
58 |
//// load WB language file
|
|
59 |
//require_once(WB_PATH . '/languages/' . LANGUAGE .'.php');
|
|
58 | 60 |
|
59 | 61 |
// create Admin object with admin header |
60 | 62 |
$admin = new admin('Addons', '', true, false); |
... | ... | |
70 | 72 |
if (!file_exists($mod_path . '/' . $_POST['action'] . '.php')) |
71 | 73 |
{ |
72 | 74 |
$admin->print_header(); |
73 |
$admin->print_error($TEXT['NOT_FOUND'].': <tt>"'.htmlentities(basename($mod_path)).'/'.$_POST['action'].'.php"</tt> ', $js_back);
|
|
75 |
$admin->print_error($oTrans->TEXT_NOT_FOUND.': <tt>"'.htmlentities(basename($mod_path)).'/'.$_POST['action'].'.php"</tt> ', $js_back);
|
|
74 | 76 |
} |
75 | 77 |
|
76 | 78 |
// include modules install.php script |
... | ... | |
78 | 80 |
|
79 | 81 |
// load module info into database and output status message |
80 | 82 |
load_module($mod_path, false); |
81 |
$msg = $TEXT['EXECUTE'] . ': <tt>"' . htmlentities(basename($mod_path)) . '/' . $_POST['action'] . '.php"</tt>';
|
|
83 |
$msg = $oTrans->TEXT_EXECUTE . ': <tt>"' . htmlentities(basename($mod_path)) . '/' . $_POST['action'] . '.php"</tt>';
|
|
82 | 84 |
|
83 | 85 |
switch ($_POST['action']) |
84 | 86 |
{ |
Also available in: Unified diff
! activate class Translate for all addons in admin/ (except pages/)
! class.admin >> add translation of the current theme to Translate