public function __construct($get, $post, $files) { $this->rel_path = Filemanager::cleanPath($get['path']); if ($this->rel_path != "/") { $this->rel_path .= "/"; } if (!empty($get['query'])) { $this->query = $get['query']; } if (!empty($get['options'])) { $this->foptions = $get['options']; } $this->root = $get['root']; if ($this->isAbsPath($get['path'])) { $this->path = Filemanager::cleanPath($get['path']); } else { $this->root .= '/'; $this->path = $this->root . Filemanager::cleanPath($get['path']); } // Search if (!empty($post['search_string'])) { $this->search_string = $post['search_string']; } if (!empty($post['search_file_type'])) { $this->search_file_type = $post['search_file_type']; } // Create if (!empty($get['type'])) { $this->type = $get['type']; } // Modify\Create if (!empty($get['new_name'])) { $this->new_name = $get['new_name']; } foreach (array('content', 'mtime', 'patch') as $key) { if (!empty($post[$key])) { if (get_magic_quotes_gpc()) { $this->{$key} = stripslashes($post[$key]); } else { $this->{$key} = $post[$key]; } } } // Duplicate if (!empty($get['destination'])) { $get['destination'] = Filemanager::cleanPath($get['destination']); if ($this->isAbsPath($get['path'])) { $this->destination = $get['destination']; } else { $this->destination = $this->root . $get['destination']; } } }