Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 2151 Revision 2152
Zeile 68... Zeile 68...
68
 
68
 
69
	public function __construct($options = null, $initialize = true, $error_messages = null)
69
	public function __construct($options = null, $initialize = true, $error_messages = null)
70
	{
70
	{
71
		$GLOBALS["ci"] = &get_instance();
71
		$GLOBALS["ci"] = &get_instance();
72
		$real_url = getDokDomain();
-
 
73
		$real_orig_url = $real_url . "/images/orig/";
72
		$real_url = getDokDomain();
74
		$real_url .= "/images/upload/" . $GLOBALS["folder"] . "/";
73
		$real_url .= "/images/upload/" . $GLOBALS["folder"] . "/";
75
		$real_folder = $GLOBALS["webs"]["verzeichnis"] . '/images/upload/' . $GLOBALS["folder"] .
74
		$real_folder = $GLOBALS["webs"]["verzeichnis"] . '/images/upload/' . $GLOBALS["folder"] .
76
			"/";
75
			"/";
77
		$this->response = array();
76
		$this->response = array();
78
		$this->options = array(
77
		$this->options = array(
79
			'script_url' => $this->get_full_url() . '/' . $this->basename($this->
78
			'script_url' => $this->get_full_url() . '/' . $this->basename($this->
80
				get_server_var('SCRIPT_NAME')),
79
				get_server_var('SCRIPT_NAME')),
81
			'upload_dir' => $GLOBALS["webs"]["verzeichnis"] . "/images/orig/",
80
			'upload_dir' => $GLOBALS["webs"]["verzeichnis"] . "/images/orig/",
82
			'upload_url' => $real_orig_url,
81
			'upload_url' => $real_url . "orig/",
83
			'input_stream' => 'php://input',
82
			'input_stream' => 'php://input',
84
			'user_dirs' => false,
83
			'user_dirs' => false,
85
			'mkdir_mode' => 0755,
84
			'mkdir_mode' => 0755,
86
			'param_name' => 'files',
85
			'param_name' => 'files',
Zeile 163... Zeile 162...
163
			// Command or path for to the ImageMagick identify binary:
162
			// Command or path for to the ImageMagick identify binary:
164
			'identify_bin' => 'identify',
163
			'identify_bin' => 'identify',
165
			'print_response' => true,
164
			'print_response' => true,
166
			);
165
			);
167
		foreach ($GLOBALS["Imagedaten"] as $nr => $set) {
166
		foreach ($GLOBALS["Imagedaten"] as $nr => $set) {
168
			/*if ($nr == 0) {
-
 
169
				$set[0] = "";
-
 
170
			}*/
-
 
171
			$this->options["image_versions"][$set[0]] = array(
167
			$this->options["image_versions"][$set[0]] = array(
172
				"upload_dir" => $real_folder . $set[1] . "/",
168
				"upload_dir" => $real_folder . $set[1] . "/",
173
				"upload_url" => $real_url . $set[1] . "/",
169
				"upload_url" => $real_url . $set[1] . "/",
174
				"max_width" => $set[2],
170
				"max_width" => $set[2],
175
				"max_height" => $set[3],
171
				"max_height" => $set[3],