removed some thread and ticket information from request
they are in FunThread and FunTicket classes now added funtion FunUptime (I forgot about it) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@631 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -24,13 +24,13 @@ CreateThread::CreateThread()
|
||||
// returning true if we can create a thread in the current directory
|
||||
bool CreateThread::HasAccess()
|
||||
{
|
||||
if( request->dir_table.empty() )
|
||||
if( request->dir_tab.empty() )
|
||||
return false;
|
||||
|
||||
if( request->is_item )
|
||||
return false;
|
||||
|
||||
if( !system->HasWriteAccess(*request->dir_table.back()) )
|
||||
if( !system->HasWriteAccess(*request->dir_tab.back()) )
|
||||
return false;
|
||||
|
||||
if( !system->mounts.pmount || system->mounts.pmount->type != Mount::thread )
|
||||
@@ -43,7 +43,7 @@ bool CreateThread::HasAccess()
|
||||
if( !system->mounts.pmount->IsPar(Mount::par_createthread_on) )
|
||||
return true;
|
||||
|
||||
if( system->mounts.pmount->IsArg(Mount::par_createthread_on, request->dir_table.size()) )
|
||||
if( system->mounts.pmount->IsArg(Mount::par_createthread_on, request->dir_tab.size()) )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
@@ -73,21 +73,21 @@ return true;
|
||||
|
||||
|
||||
|
||||
void CreateThread::ReadThread(Thread & thread)
|
||||
void CreateThread::ReadThread()
|
||||
{
|
||||
thread.parent_id = request->dir_table.back()->id;
|
||||
thread.parent_id = request->dir_tab.back()->id;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void CreateThread::AddThread()
|
||||
{
|
||||
request->thread.dir_id = request->dir_table.back()->id;
|
||||
request->thread.closed = false;
|
||||
request->thread.items = 1;
|
||||
request->thread.last_item = request->item; // set by PostFunEmacsAdd()
|
||||
thread.dir_id = request->dir_tab.back()->id;
|
||||
thread.closed = false;
|
||||
thread.items = 1;
|
||||
thread.last_item = request->item; // set by PostFunEmacsAdd()
|
||||
|
||||
request->status = db->AddThread(request->thread);
|
||||
request->status = db->AddThread(thread);
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ void CreateThread::MakePost()
|
||||
{
|
||||
functions->ReadItem(request->item, Item::dir);
|
||||
functions->SetUser(request->item);
|
||||
ReadThread(request->thread);
|
||||
ReadThread();
|
||||
request->item.privileges = 0777; // !! tymczasowo 777 aby wszyscy mogli wysylac posty
|
||||
|
||||
if( !FunCreateThreadCheckAbuse() )
|
||||
@@ -128,7 +128,7 @@ void CreateThread::MakePost()
|
||||
functions->ReadItemContentWithType(request->item);
|
||||
request->item.type = Item::file;
|
||||
request->item.privileges = 0644; // !! tymczasowo
|
||||
request->item.parent_id = request->dir_table.back()->id;
|
||||
request->item.parent_id = request->dir_tab.back()->id;
|
||||
request->status = system->AddFile(request->item);
|
||||
|
||||
if( request->status == WINIX_ERR_OK )
|
||||
|
Reference in New Issue
Block a user