Project

General

Profile

« Previous | Next » 

Revision 1427

Added by Dietmar almost 14 years ago

validation fixes in wb_theme

View differences:

browse.php
94 94
// Check to see if the user wanted to go up a directory into the parent folder
95 95
if($admin->get_get('up') == 1) {
96 96
	$parent_directory = dirname($directory);
97
	header("Location: browse.php?dir=$parent_directory");	
97
	header("Location: browse.php?dir=$parent_directory");
98 98
	exit(0);
99 99
}
100 100

  
......
103 103
}
104 104

  
105 105
// Workout the parent dir link
106
$parent_dir_link = ADMIN_URL.'/media/browse.php?dir='.$directory.'&up=1';
106
$parent_dir_link = ADMIN_URL.'/media/browse.php?dir='.$directory.'&up=1';
107 107
// Workout if the up arrow should be shown
108 108
if(($directory == '') or ($directory==$currentHome)) {
109 109
	$display_up_arrow = 'hide';
......
152 152
											'NAME_SLASHED' => addslashes($name),
153 153
											'TEMP_ID' => $admin->getIDKEY($temp_id),
154 154
											'LINK' => "browse.php?dir=$directory/$link_name",
155
											'LINK_TARGET' => '',
155
											'LINK_TARGET' => '_SELF',
156 156
											'ROW_BG_COLOR' => $row_bg_color,
157 157
											'FT_ICON' => THEME_URL.'/images/folder_16.png',
158 158
											'FILETYPE_ICON' => THEME_URL.'/images/folder_16.png',
......
182 182
			$date = gmdate(DATE_FORMAT.' '.TIME_FORMAT, $fdate);
183 183
			$filetypeicon = get_filetype_icon(WB_URL.MEDIA_DIRECTORY.$directory.'/'.$name);
184 184
			$filetype = get_filetype(WB_URL.MEDIA_DIRECTORY.$directory.'/'.$name);
185
				
185

  
186 186
			if (in_array($filetype, $filepreview)) {
187 187
				$preview = 'preview';
188 188
			} else {
......
198 198
				$info = getimagesize(WB_PATH.MEDIA_DIRECTORY.$directory.'/'.$name);
199 199
				if ($info[0]) {
200 200
					$imgdetail = fsize(filesize(WB_PATH.MEDIA_DIRECTORY.$directory.'/'.$name)).'<br /> '.$info[0].' x '.$info[1].' px';
201
					$icon = 'thumb.php?t=1&img='.$directory.'/'.$name;
202
					$tooltip = ShowTip('thumb.php?t=2&img='.$directory.'/'.$name);
201
					$icon = 'thumb.php?t=1&amp;img='.$directory.'/'.$name;
202
					$tooltip = ShowTip('thumb.php?t=2&amp;img='.$directory.'/'.$name);
203 203
				}
204 204
			}
205 205
			$template->set_var(array(

Also available in: Unified diff