Revision 1457
Added by Dietmar over 13 years ago
index.php | ||
---|---|---|
20 | 20 |
require('../../config.php'); |
21 | 21 |
require_once(WB_PATH.'/framework/class.admin.php'); |
22 | 22 |
$admin = new admin('Media', 'media'); |
23 |
|
|
24 |
$starttime = explode(" ", microtime()); |
|
25 |
$starttime = $starttime[0]+$starttime[1]; |
|
23 | 26 |
include ('parameters.php'); |
24 | 27 |
|
25 | 28 |
// Setup template object |
... | ... | |
73 | 76 |
|
74 | 77 |
// Insert language headings |
75 | 78 |
$template->set_var(array( |
76 |
'HEADING_BROWSE_MEDIA' => $HEADING['BROWSE_MEDIA'],
|
|
77 |
'HOME_DIRECTORY' => $currentHome,
|
|
78 |
'DISPLAY_UP_ARROW' => $display_up_arrow, // **!
|
|
79 |
'HEADING_CREATE_FOLDER' => $HEADING['CREATE_FOLDER'],
|
|
80 |
'HEADING_UPLOAD_FILES' => $HEADING['UPLOAD_FILES']
|
|
81 |
)
|
|
82 |
);
|
|
79 |
'HEADING_BROWSE_MEDIA' => $HEADING['BROWSE_MEDIA'], |
|
80 |
'HOME_DIRECTORY' => $currentHome, |
|
81 |
'DISPLAY_UP_ARROW' => $display_up_arrow, // **! |
|
82 |
'HEADING_CREATE_FOLDER' => $HEADING['CREATE_FOLDER'], |
|
83 |
'HEADING_UPLOAD_FILES' => $HEADING['UPLOAD_FILES'] |
|
84 |
) |
|
85 |
); |
|
83 | 86 |
// insert urls |
84 | 87 |
$template->set_var(array( |
85 |
'ADMIN_URL' => ADMIN_URL,
|
|
86 |
'WB_URL' => WB_URL,
|
|
87 |
'WB_PATH' => WB_PATH,
|
|
88 |
'THEME_URL' => THEME_URL
|
|
89 |
)
|
|
90 |
);
|
|
88 |
'ADMIN_URL' => ADMIN_URL, |
|
89 |
'WB_URL' => WB_URL, |
|
90 |
'WB_PATH' => WB_PATH, |
|
91 |
'THEME_URL' => THEME_URL |
|
92 |
) |
|
93 |
); |
|
91 | 94 |
// Insert language text and messages |
92 | 95 |
$template->set_var(array( |
93 |
'MEDIA_DIRECTORY' => MEDIA_DIRECTORY,
|
|
94 |
'TEXT_NAME' => $TEXT['TITLE'],
|
|
95 |
'TEXT_RELOAD' => $TEXT['RELOAD'],
|
|
96 |
'TEXT_TARGET_FOLDER' => $TEXT['TARGET_FOLDER'],
|
|
97 |
'TEXT_OVERWRITE_EXISTING' => $TEXT['OVERWRITE_EXISTING'],
|
|
98 |
'TEXT_FILES' => $TEXT['FILES'],
|
|
99 |
'TEXT_CREATE_FOLDER' => $TEXT['CREATE_FOLDER'],
|
|
100 |
'TEXT_UPLOAD_FILES' => $TEXT['UPLOAD_FILES'],
|
|
101 |
'CHANGE_SETTINGS' => $TEXT['MODIFY_SETTINGS'],
|
|
102 |
'OPTIONS' => $TEXT['OPTION'],
|
|
103 |
'TEXT_UNZIP_FILE' => $TEXT['UNZIP_FILE'],
|
|
104 |
'TEXT_DELETE_ZIP' => $TEXT['DELETE_ZIP'],
|
|
105 |
'FTAN' => $admin->getFTAN()
|
|
106 |
)
|
|
107 |
);
|
|
96 |
'MEDIA_DIRECTORY' => MEDIA_DIRECTORY, |
|
97 |
'TEXT_NAME' => $TEXT['TITLE'], |
|
98 |
'TEXT_RELOAD' => $TEXT['RELOAD'], |
|
99 |
'TEXT_TARGET_FOLDER' => $TEXT['TARGET_FOLDER'], |
|
100 |
'TEXT_OVERWRITE_EXISTING' => $TEXT['OVERWRITE_EXISTING'], |
|
101 |
'TEXT_FILES' => $TEXT['FILES'], |
|
102 |
'TEXT_CREATE_FOLDER' => $TEXT['CREATE_FOLDER'], |
|
103 |
'TEXT_UPLOAD_FILES' => $TEXT['UPLOAD_FILES'], |
|
104 |
'CHANGE_SETTINGS' => $TEXT['MODIFY_SETTINGS'], |
|
105 |
'OPTIONS' => $TEXT['OPTION'], |
|
106 |
'TEXT_UNZIP_FILE' => $TEXT['UNZIP_FILE'], |
|
107 |
'TEXT_DELETE_ZIP' => $TEXT['DELETE_ZIP'], |
|
108 |
'FTAN' => $admin->getFTAN() |
|
109 |
) |
|
110 |
); |
|
108 | 111 |
|
109 | 112 |
// Parse template object |
110 | 113 |
$template->parse('main', 'main_block', false); |
111 | 114 |
$template->pparse('output', 'page'); |
112 | 115 |
|
113 |
// Print admin |
|
116 |
$endtime=explode(" ", microtime()); |
|
117 |
$endtime=$endtime[0]+$endtime[1]; |
|
118 |
$debugVMsg = ''; |
|
119 |
if($admin->ami_group_member('1') ) { |
|
120 |
$debugVMsg = "<p>Mask loaded in ".round($endtime - $starttime,6)." Sec, "; |
|
121 |
$debugVMsg .= "Memory in use ".number_format(memory_get_usage(true), 0, ',', '.')." Byte, "; |
|
122 |
$debugVMsg .= sizeof(get_included_files())." included files</p>"; |
|
123 |
// $debugVMsg = print_message($debugVMsg,'#','debug',-1,false); |
|
124 |
print $debugVMsg.'<br />'; |
|
125 |
} |
|
126 |
|
|
127 |
// Print admin |
|
114 | 128 |
$admin->print_footer(); |
115 | 129 |
|
116 | 130 |
?> |
Also available in: Unified diff
Preparing 2.8.2 stable, last tests