Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 2134 Revision 2135
Zeile 21... Zeile 21...
21
$real_folder = $GLOBALS["webs"]["verzeichnis"] . "/images/upload/";
21
$real_folder = $GLOBALS["webs"]["verzeichnis"] . "/images/upload/";
Zeile 22... Zeile 22...
22
 
22
 
23
$folder = "";
23
$folder = "";
24
$GLOBALS["folder"] = "";
24
$GLOBALS["folder"] = "";
25
if (isset($_POST["folder"]) && $_POST["folder"]) {
25
if (isset($_POST["folder"]) && $_POST["folder"]) {
26
	$folder = Weban_Utils::clean_global_input("folder");
26
	$folder = $_POST["folder"];
27
} elseif (isset($_GET["folder"]) && $_GET["folder"]) {
27
} elseif (isset($_GET["folder"]) && $_GET["folder"]) {
28
	$folder = Weban_Utils::clean_global_input("folder", "get");
28
	$folder = $_GET["folder"];
Zeile 29... Zeile 29...
29
}
29
}
30
 
30
 
31
$bvKonf = "";
31
$bvKonf = "";
Zeile 88... Zeile 88...
88
 
88
 
89
	public function __construct($options = null, $initialize = true, $error_messages = null)
89
	public function __construct($options = null, $initialize = true, $error_messages = null)
90
	{
90
	{
91
		$GLOBALS["ci"] = &get_instance();
91
		$GLOBALS["ci"] = &get_instance();
92
		$real_url = getDokDomain();
92
		$real_url = getDokDomain();
93
		$real_url .= "/images/upload/";
93
		$real_url .= "/images/upload/" . $GLOBALS["folder"] . "/";
-
 
94
		$real_folder = $GLOBALS["webs"]["verzeichnis"] . '/images/upload/' . $GLOBALS["folder"] .
94
		$real_folder = $GLOBALS["webs"]["verzeichnis"] . '/images/upload/';
95
			"/";
95
		$this->response = array();
96
		$this->response = array();
96
		$this->options = array(
97
		$this->options = array(
97
			'script_url' => $this->get_full_url() . '/' . $this->basename($this->
98
			'script_url' => $this->get_full_url() . '/' . $this->basename($this->
98
				get_server_var('SCRIPT_NAME')),
99
				get_server_var('SCRIPT_NAME')),
Zeile 178... Zeile 179...
178
			/*
179
			/*
179
			'convert_params' => '-limit memory 32MiB -limit map 32MiB',
180
			'convert_params' => '-limit memory 32MiB -limit map 32MiB',
180
			*/
181
			*/
181
			// Command or path for to the ImageMagick identify binary:
182
			// Command or path for to the ImageMagick identify binary:
182
			'identify_bin' => 'identify',
183
			'identify_bin' => 'identify',
183
			'print_response' => true);
184
			'print_response' => true,
-
 
185
			);
184
		foreach ($GLOBALS["Imagedaten"] as $set) {
186
		foreach ($GLOBALS["Imagedaten"] as $set) {
185
			$this->options["image_versions"][$set[0]] = array(
187
			$this->options["image_versions"][$set[0]] = array(
186
				"upload_dir" => $real_folder . $set[1] . "/",
188
				"upload_dir" => $real_folder . $set[1] . "/",
187
				"upload_url" => $real_url . $set[1] . "/",
189
				"upload_url" => $real_url . $set[1] . "/",
188
				"max_width" => $set[2],
190
				"max_width" => $set[2],