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
This commit is contained in:
2010-01-25 04:52:17 +00:00
parent 356e93914b
commit 89daf6489d
48 changed files with 2856 additions and 874 deletions

View File

@@ -65,28 +65,25 @@ void item_content_noescape(Info & i)
void item_content_type_is(Info & i)
{
switch(request.item.content_type)
{
case Item::ct_text:
i.out_string = "text";
break;
i.result = false;
case Item::ct_formatted_text:
i.out_string = "formatted text";
break;
if( !i.is )
return;
case Item::ct_html:
i.out_string = "html";
break;
if( request.item.content_type == Item::ct_text && (*i.is) == "text" )
i.result = true;
case Item::ct_bbcode:
i.out_string = "bbcode";
break;
if( request.item.content_type == Item::ct_formatted_text && (*i.is) == "formatted text" )
i.result = true;
case Item::ct_raw:
i.out_string = "raw";
break;
}
if( request.item.content_type == Item::ct_html && (*i.is) == "html" )
i.result = true;
if( request.item.content_type == Item::ct_bbcode && (*i.is) == "bbcode" )
i.result = true;
if( request.item.content_type == Item::ct_raw && (*i.is) == "raw" )
i.result = true;
}