changed: rename cmslu to winix
changed: html templates are a part of winix now
and the user can provide special html templates for its site
added: locales
added: html templates are using HtmlFilter now (locales)
changed: now we have html templates for each language
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@560 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include "misc.h"
|
||||
#include "log.h"
|
||||
#include "data.h"
|
||||
@@ -538,3 +540,17 @@ bool ValidateEmail(const std::string & email)
|
||||
|
||||
return correct;
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool IsFile(const char * file)
|
||||
{
|
||||
struct stat sb;
|
||||
|
||||
return (stat(file, &sb) == 0);
|
||||
}
|
||||
|
||||
bool IsFile(const std::string & file)
|
||||
{
|
||||
return IsFile(file.c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user