Revision 2098
Added by darkviper over 11 years ago
| index.php | ||
|---|---|---|
| 24 | 24 |
require($config_file); |
| 25 | 25 |
} |
| 26 | 26 |
} |
| 27 |
if(!class_exists('admin', false)){ include(WB_PATH.'/framework/class.admin.php'); }
|
|
| 27 |
$oTrans = Translate::getInstance(); |
|
| 28 |
$oTrans->enableAddon('admin\\media');
|
|
| 28 | 29 |
|
| 30 |
//if(!class_exists('admin', false)){ include(WB_PATH.'/framework/class.admin.php'); }
|
|
| 31 |
|
|
| 29 | 32 |
$admin = new admin('Media', 'media');
|
| 30 | 33 |
|
| 31 | 34 |
$starttime = explode(" ", microtime());
|
| ... | ... | |
| 37 | 40 |
$template = new Template(dirname($admin->correct_theme_source('media.htt')));
|
| 38 | 41 |
$template->set_file('page', 'media.htt');
|
| 39 | 42 |
$template->set_block('page', 'main_block', 'main');
|
| 40 |
|
|
| 43 |
$template->set_var($oTrans->getLangArray()); |
|
| 41 | 44 |
// Include the WB functions file |
| 42 | 45 |
if(!function_exists('directory_list')) { require(WB_PATH.'/framework/functions.php'); }
|
| 43 | 46 |
|
| ... | ... | |
| 95 | 98 |
|
| 96 | 99 |
// Insert language headings |
| 97 | 100 |
$template->set_var(array( |
| 98 |
'HEADING_BROWSE_MEDIA' => $HEADING['BROWSE_MEDIA'], |
|
| 99 | 101 |
'HOME_DIRECTORY' => $currentHome, |
| 100 | 102 |
// 'HOME_DIRECTORY' => ( $currentHome!='') ? $currentHome : $directory, |
| 101 |
'DISPLAY_UP_ARROW' => $display_up_arrow, // **! |
|
| 102 |
'HEADING_CREATE_FOLDER' => $HEADING['CREATE_FOLDER'], |
|
| 103 |
'HEADING_UPLOAD_FILES' => $HEADING['UPLOAD_FILES'] |
|
| 103 |
'DISPLAY_UP_ARROW' => $display_up_arrow // **! |
|
| 104 | 104 |
) |
| 105 | 105 |
); |
| 106 | 106 |
// insert urls |
| ... | ... | |
| 115 | 115 |
$template->set_var(array( |
| 116 | 116 |
'MEDIA_DIRECTORY' => MEDIA_DIRECTORY, |
| 117 | 117 |
// 'MEDIA_DIRECTORY' => ($currentHome!='') ? MEDIA_DIRECTORY : $currentHome, |
| 118 |
'TEXT_NAME' => $TEXT['TITLE'], |
|
| 119 |
'TEXT_RELOAD' => $TEXT['RELOAD'], |
|
| 120 |
'TEXT_TARGET_FOLDER' => $TEXT['TARGET_FOLDER'], |
|
| 121 |
'TEXT_OVERWRITE_EXISTING' => $TEXT['OVERWRITE_EXISTING'], |
|
| 122 |
'TEXT_FILES' => $TEXT['FILES'], |
|
| 123 |
'TEXT_CREATE_FOLDER' => $TEXT['CREATE_FOLDER'], |
|
| 124 |
'TEXT_UPLOAD_FILES' => $TEXT['UPLOAD_FILES'], |
|
| 125 |
'CHANGE_SETTINGS' => $TEXT['MODIFY_SETTINGS'], |
|
| 126 |
'OPTIONS' => $TEXT['OPTION'], |
|
| 127 |
'TEXT_UNZIP_FILE' => $TEXT['UNZIP_FILE'], |
|
| 128 |
'TEXT_DELETE_ZIP' => $TEXT['DELETE_ZIP'], |
|
| 118 |
'TEXT_NAME' => $oTrans->TEXT_TITLE, |
|
| 119 |
'CHANGE_SETTINGS' => $oTrans->TEXT_MODIFY_SETTINGS, |
|
| 120 |
'OPTIONS' => $oTrans->TEXT_OPTION, |
|
| 129 | 121 |
'FTAN' => $admin->getFTAN() |
| 130 | 122 |
) |
| 131 | 123 |
); |
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