added: mount params can have arguments (in parentheses) added: mount params: withheader, withinfo, restrictcreatethread, only_root_can_remove, can_use_emacs_on(level), can_use_mkdir_on(level), added: table Item has 'subject' column now removed: column 'subject' from table Content git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@505 e52654a7-88a9-db11-a3e9-0013d4bc506e
47 lines
1.1 KiB
C++
Executable File
47 lines
1.1 KiB
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.
|
|
*
|
|
*/
|
|
|
|
#ifndef headerfilecmslucoremisc
|
|
#define headerfilecmslucoremisc
|
|
|
|
|
|
#include <string>
|
|
#include <sstream>
|
|
#include <ctime>
|
|
#include "item.h"
|
|
|
|
#define MAJOR_VER 0
|
|
#define MINOR_VER 2
|
|
#define REVISION_VER 0
|
|
|
|
|
|
void ToString(std::string & s, int value);
|
|
void ToString(std::string & s, long value);
|
|
int ChangeLocalChar(unsigned char c);
|
|
|
|
bool CorrectUrlChar(char c);
|
|
void CorrectUrl(Item & item);
|
|
void SetUrlFromSubject(Item & item);
|
|
|
|
void HtmlEscape(std::ostringstream & out, const std::string & in);
|
|
void HtmlEscapeFormTxt(std::ostringstream & out, const std::string & in);
|
|
std::string HtmlEscape(const std::string & in);
|
|
std::string HtmlEscapeFormTxt(const std::string & in);
|
|
|
|
const char * DateToStr(int year, int month, int day, int hour, int min, int sec);
|
|
const char * DateToStr(tm * ptm);
|
|
const char * DateToStr(time_t t);
|
|
const char * IpToStr(unsigned int ip_);
|
|
|
|
bool IsWhite(int s);
|
|
void TrimWhite(std::string & s);
|
|
void ToSmall(std::string & s);
|
|
|
|
#endif
|