Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function deleteFile($info)
- {
- // code to delete file
- if(@unlink($this->dataDir.$info['uploadName']))
- {
- $query = "update emp_upload_dir set file_name = '' where id = '".$this->escapeData($info['id'])."' limit 1";
- $result = $this->Editor->doQuery($query);
- if($result)
- {
- return true;
- }
- }
- $this->Editor->warnings[] = 'There was an error deleting the file.';
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement