added: function adduser
changed: errors (removed enum, there are macros now) added: error messages to locales (winix_err_NN) removed: templates: err_abuse.html err_others.html git-svn-id: svn://ttmath.org/publicrep/winix/trunk@593 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* This file is a part of CMSLU -- Content Management System like Unix
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
@@ -21,7 +21,7 @@ bool Content::FunCreateThreadCheckAccess()
|
||||
{
|
||||
if( !request.CanCreateThread() )
|
||||
{
|
||||
request.status = Error::permission_denied;
|
||||
request.status = WINIX_ERR_PERMISSION_DENIED;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -35,9 +35,9 @@ bool Content::FunCreateThreadCheckAbuse()
|
||||
{
|
||||
if( !CheckRebus() )
|
||||
{
|
||||
request.status = Error::incorrect_rebus;
|
||||
request.status = WINIX_ERR_INCORRECT_REBUS;
|
||||
request.session->done = Done::added_thread;
|
||||
request.session->done_status = Error::incorrect_rebus;
|
||||
request.session->done_status = WINIX_ERR_INCORRECT_REBUS;
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -46,9 +46,9 @@ bool Content::FunCreateThreadCheckAbuse()
|
||||
|
||||
if( request.session->spam_score > 0 )
|
||||
{
|
||||
request.status = Error::spam;
|
||||
request.status = WINIX_ERR_SPAM;
|
||||
request.session->done = Done::added_thread;
|
||||
request.session->done_status = Error::spam;
|
||||
request.session->done_status = WINIX_ERR_SPAM;
|
||||
|
||||
log << log1 << "Content: ignoring due to suspected spamming" << logend;
|
||||
return false;
|
||||
@@ -80,7 +80,7 @@ void Content::AddThread()
|
||||
|
||||
void Content::PostFunCreateThreadLogAndRedirect()
|
||||
{
|
||||
if( request.session->done_status == Error::ok )
|
||||
if( request.session->done_status == WINIX_ERR_OK )
|
||||
{
|
||||
request.session->done = Done::added_thread;
|
||||
|
||||
@@ -113,7 +113,7 @@ void Content::PostFunCreateThread()
|
||||
|
||||
Mkdir(request.item, true);
|
||||
|
||||
if( request.session->done_status == Error::ok )
|
||||
if( request.session->done_status == WINIX_ERR_OK )
|
||||
{
|
||||
ReadItemContentWithType(request.item);
|
||||
request.item.type = Item::file;
|
||||
@@ -121,7 +121,7 @@ void Content::PostFunCreateThread()
|
||||
request.item.parent_id = request.dir_table.back()->id;
|
||||
PostFunEmacsAdd();
|
||||
|
||||
if( request.session->done_status == Error::ok )
|
||||
if( request.session->done_status == WINIX_ERR_OK )
|
||||
AddThread();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user