Files
winix/templates/mount.cpp
Tomasz Sowa 89daf6489d added: issues ticket system
added functions: ticket, createticket, editticket
         (there is no 'rm' function working for tickets yet)
changed: mount parser and mount points
         now we have more parameters (arguments in parameters)
some refactoring in functions 'emacs' and 'mkdir'



git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@554 e52654a7-88a9-db11-a3e9-0013d4bc506e
2010-01-25 04:52:17 +00:00

62 lines
846 B
C++
Executable File

/*
* This file is a part of CMSLU -- Content Management System like Unix
* and is not publicly distributed
*
* Copyright (c) 2008-2009, Tomasz Sowa
* All rights reserved.
*
*/
#include "templates.h"
#include "../core/data.h"
namespace TemplatesFunctions
{
void mount_page_is(Info & i)
{
if( !i.is )
return;
i.result = data.mounts.pmount->IsArg(Mount::par_page, *i.is);
}
void mount_thread_is(Info & i)
{
if( !i.is )
return;
i.result = data.mounts.pmount->IsArg(Mount::par_thread, *i.is);
}
void mount_type_is_thread(Info & i)
{
i.result = data.mounts.pmount->type == Mount::thread;
}
void mount_type_is_ticket(Info & i)
{
i.result = data.mounts.pmount->type == Mount::ticket;
}
void mount_type_is_cms(Info & i)
{
i.result = data.mounts.pmount->type == Mount::cms;
}
} // namespace TemplatesFunctions