Subversion-Projekte lars-tiefland.ci

Revision

Revision 2133 | Revision 2135 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2133 Revision 2134
Zeile 1077... Zeile 1077...
1077
				"docx",
1077
				"docx",
1078
				"xls",
1078
				"xls",
1079
				"xlsx",
1079
				"xlsx",
1080
				);
1080
				);
1081
			if ($file_size === $file->size) {
1081
			if ($file_size === $file->size) {
1082
				$file->url = $this->get_download_url($file->name);
-
 
1083
				if ($this->is_valid_image_file($file_path)) {
-
 
1084
					$this->handle_image_file($file_path, $file);
-
 
1085
				}
-
 
1086
				$mt = mime_content_type($file_path);
1082
				$mt = mime_content_type($file_path);
1087
				$info = pathinfo($file_path);
1083
				$info = pathinfo($file_path);
1088
				$ext = strtolower($info["extension"]);
1084
				$ext = strtolower($info["extension"]);
-
 
1085
				$file->url = $this->get_download_url($file->name);
1089
				$typ = 4;
1086
				$typ = 4;
1090
				if (substr($mt, 0, 5) == "image") {
1087
				if ($this->is_valid_image_file($file_path)) {
1091
					$typ = 1;
1088
					$typ = 1;
1092
					foreach ($this->options['image_versions'] as $version => $options) {
-
 
1093
						if ($this->create_scaled_image($fName, $options)) {
1089
					$this->handle_image_file($file_path, $file);
1094
							$file->{$version . '_url'} = $options['upload_url'] . $fName;
-
 
1095
						}
-
 
1096
					}
-
 
1097
				} elseif (in_array($ext, $docs)) {
1090
				} elseif (in_array($ext, $docs)) {
1098
					$typ = 2;
1091
					$typ = 2;
1099
				} elseif (in_array($ext, $videos)) {
1092
				} elseif (in_array($ext, $videos)) {
1100
					$typ = 3;
1093
					$typ = 3;
1101
				}
1094
				}