tickets has been moved to a new plugin 'ticket'

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@657 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-09-29 21:24:34 +00:00
parent a589e5a090
commit a8b8c1feec
55 changed files with 2765 additions and 2523 deletions

48
plugins/ticket/createticket.h Executable file
View File

@@ -0,0 +1,48 @@
/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2010, Tomasz Sowa
* All rights reserved.
*
*/
#ifndef headerfilecmslucontentcreateticket
#define headerfilecmslucontentcreateticket
#include "tdb.h"
#include "ticketinfo.h"
#include "functions/functionbase.h"
namespace Ticket
{
class CreateTicket : public FunctionBase
{
public:
CreateTicket();
void SetTDb(TDb * ptdb);
void SetTicketInfo(TicketInfo * pinfo);
void Clear();
bool HasAccess(bool check_root);
bool HasAccess();
void MakePost();
private:
bool FunCreateTicketCheckAbuse();
void AddTicket();
void PostFunCreateTicketLogAndRedirect();
TDb * tdb;
TicketInfo * ticket_info;
};
} // namespace
#endif