added: to the Item: auth_path - a path to a static file (if auth is different from auth_none)
added: function 'mv' (move) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@596 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include "../templates/templates.h"
|
||||
#include "../core/thread.h"
|
||||
#include "../core/ticket.h"
|
||||
#include "../core/db.h"
|
||||
|
||||
|
||||
|
||||
@@ -39,6 +40,34 @@ class Content
|
||||
void PostFunAddUser();
|
||||
void FunAddUser();
|
||||
|
||||
|
||||
/*
|
||||
mv
|
||||
*/
|
||||
bool MoveIsTheSameFile(const Item & item);
|
||||
void MoveAuth(Item & item);
|
||||
void MoveFile(Item & item, bool redirect = true);
|
||||
void MoveDir(Item & item, bool redirect = true);
|
||||
void MoveAuthPrepareQuery();
|
||||
void MoveAuthContentOfDir(const Item & item);
|
||||
bool MoveParseDir(long & dir_id, std::string & dir, std::string & file);
|
||||
bool MoveCheckAccessFromToDir();
|
||||
bool MoveCheckAccessFrom();
|
||||
bool MoveCheckAccessTo(long dir_id);
|
||||
bool MoveCheckMountPoints(long dir_id);
|
||||
void MoveContentOfDir();
|
||||
void PostFunMv();
|
||||
void FunMv();
|
||||
std::string mv_dir;
|
||||
std::string mv_file;
|
||||
std::string mv_new_path;
|
||||
long mv_dir_id;
|
||||
std::vector<Item> mv_auth;
|
||||
Db::ItemQuery mv_auth_iq;
|
||||
|
||||
|
||||
|
||||
|
||||
void SetDefaultFunctionForFile();
|
||||
void SetDefaultFunctionForDir();
|
||||
void SetDefaultFunction();
|
||||
@@ -143,13 +172,13 @@ class Content
|
||||
void PostFunCreateThreadLogAndRedirect();
|
||||
void PostFunCreateThread();
|
||||
|
||||
bool UploadCreatePath(std::string & path);
|
||||
bool UploadCreatePath();
|
||||
void UploadSaveFile(const std::string & tmp_filename, const std::string & destination);
|
||||
void UploadMulti();
|
||||
void UploadSingle();
|
||||
bool FunUploadCheckAbuse();
|
||||
void PostFunUpload();
|
||||
std::string tmp_path;
|
||||
|
||||
|
||||
bool FunCreateTicketCheckAccess();
|
||||
void FunCreateTicket();
|
||||
@@ -177,8 +206,8 @@ class Content
|
||||
void ReadTicketExpected(Ticket & ticket);
|
||||
void ReadTicketProgress(Ticket & ticket);
|
||||
|
||||
void RedirectTo(const Item & item);
|
||||
void RedirectTo(long item_id);
|
||||
void RedirectTo(const Item & item, const char * postfix = 0);
|
||||
void RedirectTo(long item_id, const char * postfix = 0);
|
||||
void RedirectToLastDir();
|
||||
|
||||
void CheckGetPostTimes(time_t difference = 10);
|
||||
|
Reference in New Issue
Block a user