we can create links (hard links, symbolic links) now
added winix functions: ln winix function 'default' can be used without redirecting now added new tickets types: TypeProgress, TypeString, TypeMultistring, TypeImages, TypeFiles now tickets are combined with files added winix functions: showtickets fixed mountpoints: when the default root mount was created its parameter table was empty and it caused accessing to a non-existing objects fixed logger: modifiers (log1, log2, log3) were incorrectly treated added modifier: log4 (debug info) now we are moving threads to a new plugin 'thread' created directory: plugins/thread (not finished yet) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@704 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -14,40 +14,59 @@
|
||||
|
||||
|
||||
|
||||
|
||||
namespace Fun
|
||||
{
|
||||
|
||||
|
||||
|
||||
class Mv : public FunctionBase
|
||||
{
|
||||
public:
|
||||
|
||||
Mv();
|
||||
bool HasAccess();
|
||||
void MakePost();
|
||||
void MakeGet();
|
||||
|
||||
private:
|
||||
|
||||
std::wstring mv_dir;
|
||||
std::wstring mv_file;
|
||||
std::wstring mv_new_path;
|
||||
std::wstring old_path;
|
||||
long mv_dir_id;
|
||||
std::vector<Item> mv_auth;
|
||||
DbItemQuery mv_auth_iq;
|
||||
// destination dir
|
||||
std::vector<Item*> dir_tab;
|
||||
|
||||
bool MoveCheckAccessFromToDir();
|
||||
bool MoveCheckAccessFrom();
|
||||
bool MoveCheckAccessTo(long dir_id);
|
||||
bool MoveCheckMountPoints(long dir_id);
|
||||
bool MoveParseDir(long & dir_id, std::wstring & dir, std::wstring & file);
|
||||
// destination file (if exists)
|
||||
std::wstring file;
|
||||
|
||||
// for copying static files
|
||||
std::wstring new_path, new_path_thumb;
|
||||
std::wstring old_path, old_path_thumb;
|
||||
|
||||
// for static files
|
||||
std::vector<Item> static_item_tab;
|
||||
DbItemQuery static_iq;
|
||||
|
||||
// for moving content of a directory
|
||||
DbItemQuery content_dir_iq;
|
||||
std::vector<Item> item_tab;
|
||||
|
||||
// for logging
|
||||
std::wstring old_url;
|
||||
|
||||
bool CheckAccessFromToDir();
|
||||
bool CheckAccessFrom();
|
||||
bool CheckAccessTo();
|
||||
bool ParseDir();
|
||||
bool MoveStaticFile(const std::wstring & from, const std::wstring & to);
|
||||
void MoveStaticFile(Item & item);
|
||||
bool MoveIsTheSameFile(const Item & item);
|
||||
void MoveFile(Item & item, bool redirect = true);
|
||||
void MoveContentOfDir();
|
||||
void MoveAuthPrepareQuery();
|
||||
void MoveAuthContentOfDir(const Item & item);
|
||||
void MoveDir(Item & item, bool redirect = true);
|
||||
void MoveFileOrSymlink(Item & item);
|
||||
void MoveDirContent(const Item & dir);
|
||||
void Prepare();
|
||||
void Clear();
|
||||
void MoveStaticFilesTree(const Item & dir);
|
||||
void MoveDir(Item & dir);
|
||||
bool IsTheSameFile(const Item & item);
|
||||
void PostMoveFile();
|
||||
void PostMoveDirContent();
|
||||
void PostMoveDir();
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user