Functions Summary | |
---|---|
int | cot_pfs_createfolder(int ownerid, string title, string desc, int parentid, boolean ispublic, boolean isgallery) Create a new PFS folder, return new folder ID |
int | cot_pfs_deleteall(int userid) Delete all PFS files for a specific user. |
boolean | cot_pfs_deletefile(int userid, int id) Delete a PFS file |
boolean | cot_pfs_deletefolder(int userid, int folderid) Delete a PFS folder |
string | cot_pfs_filepath(string id) Returns path to file relative from user's/system directory |
mixed | cot_pfs_folderpath(int id, boolean fullpath, mixed folderid) Returns path to folder relative from user's/system directory |
array | cot_pfs_limits(int userid) Get filesize limits |
boolean | cot_pfs_mkdir(string path, bool feedback) Create a new directory |
string | cot_pfs_path(int userid) Returns PFS path for a user, relative from site root |
string | cot_pfs_relpath(int userid) Returns PFS path for a user, relative from PFS root |
unknown | cot_pfs_thumbpath(unknown_type userid) Returns absolute path |
int | cot_pfs_upload(int userid, int folderid) Upload one or more files, return parent folder ID |
string | cot_selectbox_folders(int user, int skip, int check, string name) Renders PFS folder selection dropdown |
array | cot_userinfo(int id) Fetches user entry from DB |
public int cot_pfs_createfolder(int ownerid, string title, string desc, int parentid, boolean ispublic, boolean isgallery)
public int cot_pfs_deleteall(int userid)
public boolean cot_pfs_deletefile(int userid, int id)
public boolean cot_pfs_deletefolder(int userid, int folderid)
public string cot_pfs_filepath(string id)
public mixed cot_pfs_folderpath(int id, boolean fullpath, mixed folderid)
public array cot_pfs_limits(int userid)
public boolean cot_pfs_mkdir(string path, bool feedback)
public string cot_pfs_path(int userid)
public string cot_pfs_relpath(int userid)
public unknown cot_pfs_thumbpath(unknown_type userid)
public int cot_pfs_upload(int userid, int folderid)
public string cot_selectbox_folders(int user, int skip, int check, string name)
public array cot_userinfo(int id)