Revision 1799
Added by Dietmar about 12 years ago
browse.php | ||
---|---|---|
76 | 76 |
{ |
77 | 77 |
$retVal = 'onmouseover="return overlib('. |
78 | 78 |
'\'<img src=\\\''.($name).'\\\''. |
79 |
'alt=\\\'\\\' '. |
|
79 | 80 |
'maxwidth=\\\'300\\\' '. |
80 |
'maxheight=\\\'300\\\'>\','. |
|
81 |
'maxheight=\\\'300\\\' />\','.
|
|
81 | 82 |
// '>\','. |
82 | 83 |
// 'CAPTION,\''.basename($name).'\','. |
83 | 84 |
'FGCOLOR,\'#ffffff\','. |
... | ... | |
136 | 137 |
// Check to see if it contains ../ |
137 | 138 |
if (!check_media_path($directory)) { |
138 | 139 |
// $admin->print_header(); |
139 |
$admin->print_error($MESSAGE['MEDIA']['DIR_DOT_DOT_SLASH']);
|
|
140 |
$admin->print_error($MESSAGE['MEDIA_DIR_DOT_DOT_SLASH']);
|
|
140 | 141 |
} |
141 | 142 |
|
142 | 143 |
if(!file_exists(WB_PATH.MEDIA_DIRECTORY.$directory)) { |
143 | 144 |
// $admin->print_header(); |
144 |
$admin->print_error($MESSAGE['MEDIA']['DIR_DOES_NOT_EXIST']);
|
|
145 |
$admin->print_error($MESSAGE['MEDIA_DIR_DOES_NOT_EXIST']);
|
|
145 | 146 |
} |
146 | 147 |
|
147 | 148 |
// Check to see if the user wanted to go up a directory into the parent folder |
... | ... | |
151 | 152 |
exit(0); |
152 | 153 |
} |
153 | 154 |
|
154 |
if ($_SESSION['GROUP_ID'] != 1 && $pathsettings['global']['admin_only']) { // Only show admin the settings link
|
|
155 |
if ($_SESSION['GROUP_ID'] != 1 && $pathsettings['global_admin_only']) { // Only show admin the settings link
|
|
155 | 156 |
$template->set_var('DISPLAY_SETTINGS', 'hide'); |
156 | 157 |
} |
157 | 158 |
|
... | ... | |
267 | 268 |
$tooltip = ''; |
268 | 269 |
|
269 | 270 |
|
270 |
if (!$pathsettings['global']['show_thumbs']) {
|
|
271 |
if (!$pathsettings['global_show_thumbs']) {
|
|
271 | 272 |
$info = getimagesize(WB_PATH.MEDIA_DIRECTORY.$directory.'/'.$name); |
272 | 273 |
if ($info[0]) { |
273 | 274 |
$imgdetail = fsize(filesize(WB_PATH.MEDIA_DIRECTORY.$directory.'/'.$name)).'<br /> '.$info[0].' x '.$info[1].' px'; |
274 |
$icon = 'thumbs.php?t=1&img='.$directory.'/'.$name; |
|
275 |
$tooltip = ToolTip('thumbs.php?t=2&img='.$directory.'/'.$name); |
|
275 |
$icon = 'thumbs.php?t=1&img='.$directory.'/'.$name;
|
|
276 |
$tooltip = ToolTip('thumbs.php?t=2&img='.$directory.'/'.$name);
|
|
276 | 277 |
} |
277 | 278 |
} |
278 | 279 |
|
... | ... | |
334 | 335 |
'TEXT_NAME' => $TEXT['NAME'], |
335 | 336 |
'TEXT_TYPE' => $TEXT['TYPE'], |
336 | 337 |
'TEXT_UP' => $TEXT['UP'], |
337 |
'NONE_FOUND' => $MESSAGE['MEDIA']['NONE_FOUND'],
|
|
338 |
'NONE_FOUND' => $MESSAGE['MEDIA_NONE_FOUND'],
|
|
338 | 339 |
'CHANGE_SETTINGS' => $TEXT['MODIFY_SETTINGS'], |
339 |
'CONFIRM_DELETE' => $MESSAGE['MEDIA']['CONFIRM_DELETE']
|
|
340 |
'CONFIRM_DELETE' => $MESSAGE['MEDIA_CONFIRM_DELETE']
|
|
340 | 341 |
) |
341 | 342 |
); |
342 | 343 |
|
Also available in: Unified diff
! media iframe browser now is html XHTML 1.0 Transitional valide