$obj =&newAttachFile($page, $file['name']);if($obj->exist) {returnarray('result'=>FALSE,'msg'=> $_attach_messages['err_exists']); }if(move_uploaded_file($file['tmp_name'], $obj->filename)) { chmod($obj->filename, PLUGIN_ATTACH_FILE_MODE); }if(is_page($page)) { touch...
*/publicfunctionmove($path, $dest, $width =0, $height =0){ $file = Hash::get($this->controller->request->data, $path);if(empty($file['tmp_name'])) {returnfalse; } $tmp = TMP . $file['name']; move_uploaded_file($file['tmp_name'], $tmp); $info = pathinfo($file['name...