set('create_file', array('file'=>$file, 'user'=>$user)); } /* * function to set the cration of a file */ function create_dir($dir,$user="root") { return $this->set('create_dir', array('dir'=>$dir,'user'=>$user)); } /* * function to delete file / folder */ function del($dir) { return $this->set('delete', array('dir'=>$dir,'user'=>$user)); } /* * function returning the first not locked line of the action table */ function move($src,$dest) { return $this->set('move', array('src'=>$src, 'dst'=>$dst,'user'=>$user)); } /* * function archiving a directory ( upon account deletion ) */ function archive($dir) { return $this->set('archive', array('dir'=>$dir,'user'=>$user)); } /* *function inserting the action in the sql table */ function set($type,$parameters) { global $db; } /* * function returning the first not locked line of the action table */ function get_action() { global $db; return true; } /* * function locking an entry while it is being executed by the action script */ function begin($id) { global $db; return true; } /* * function locking an entry while it is being executed by the action script */ function finish($id) { global $db; return true; } /* * function locking an entry while it is being executed by the action script */ function cancel($id) { global $db; return true; } } /* Class action */ ?>