namespace PT renamed to pt
This commit is contained in:
@@ -73,7 +73,7 @@ bool Env::Parse(const std::wstring & env_str)
|
||||
space.clear();
|
||||
conf_parser.SetSpace(space);
|
||||
|
||||
return (conf_parser.ParseSpace(env_str) == PT::SpaceParser::ok);
|
||||
return (conf_parser.ParseSpace(env_str) == pt::SpaceParser::ok);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -58,8 +58,8 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
PT::SpaceParser conf_parser;
|
||||
PT::Space space;
|
||||
pt::SpaceParser conf_parser;
|
||||
pt::Space space;
|
||||
User * puser;
|
||||
|
||||
bool EditAdminEnv(const std::wstring & env_str, bool use_ses_log = false);
|
||||
|
||||
@@ -296,7 +296,7 @@ void FunctionParser::ParseAnchor()
|
||||
while( *path )
|
||||
name_ascii += GetChar();
|
||||
|
||||
PT::UTF8ToWide(name_ascii, cur->request->anchor);
|
||||
pt::UTF8ToWide(name_ascii, cur->request->anchor);
|
||||
|
||||
if( !cur->request->anchor.empty() )
|
||||
log << log3 << "FP: anchor: " << cur->request->anchor << logend;
|
||||
@@ -368,7 +368,7 @@ void FunctionParser::ReadName()
|
||||
while( *path && *path!='/' && *path!='?' && *path!='#' )
|
||||
name_ascii += GetChar();
|
||||
|
||||
PT::UTF8ToWide(name_ascii, name);
|
||||
pt::UTF8ToWide(name_ascii, name);
|
||||
}
|
||||
|
||||
|
||||
@@ -379,7 +379,7 @@ void FunctionParser::ReadOrdinaryParName()
|
||||
while( *path && *path!='=' && *path!='&' && *path!='#' )
|
||||
name_ascii += GetChar();
|
||||
|
||||
PT::UTF8ToWide(name_ascii, name);
|
||||
pt::UTF8ToWide(name_ascii, name);
|
||||
}
|
||||
|
||||
|
||||
@@ -393,7 +393,7 @@ void FunctionParser::ReadOrdinaryParValue()
|
||||
while( *path && *path!='&' && *path!='#' )
|
||||
value_ascii += GetChar();
|
||||
|
||||
PT::UTF8ToWide(value_ascii, value);
|
||||
pt::UTF8ToWide(value_ascii, value);
|
||||
}
|
||||
|
||||
|
||||
@@ -404,7 +404,7 @@ void FunctionParser::ReadWinixParName()
|
||||
while( *path && *path!='/' && *path!=':' && *path!='#' )
|
||||
name_ascii += GetChar();
|
||||
|
||||
PT::UTF8ToWide(name_ascii, name);
|
||||
pt::UTF8ToWide(name_ascii, name);
|
||||
}
|
||||
|
||||
|
||||
@@ -418,7 +418,7 @@ void FunctionParser::ReadWinixParValue()
|
||||
while( *path && *path!='/' && *path!='#' )
|
||||
value_ascii += GetChar();
|
||||
|
||||
PT::UTF8ToWide(value_ascii, value);
|
||||
pt::UTF8ToWide(value_ascii, value);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ bool Login::CheckPasswords(User & user, const std::wstring & password)
|
||||
{
|
||||
if( system->crypt.RSA(false, config->pass_rsa_private_key, user.pass_encrypted, pass_decrypted) )
|
||||
{
|
||||
PT::UTF8ToWide(pass_decrypted, user.password);
|
||||
pt::UTF8ToWide(pass_decrypted, user.password);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -173,7 +173,7 @@ void Login::CheckBan()
|
||||
if( ip_ban->expires < expires )
|
||||
ip_ban->expires = expires;
|
||||
|
||||
PT::Date date(ip_ban->expires);
|
||||
pt::Date date(ip_ban->expires);
|
||||
log << log2 << "Login: logging from this IP address has been blocked until to: " << date << " UTC" << logend;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -65,7 +65,7 @@ bool Meta::Parse(const std::wstring & meta_str)
|
||||
space.clear();
|
||||
conf_parser.SetSpace(space);
|
||||
|
||||
return (conf_parser.ParseSpace(meta_str) == PT::SpaceParser::ok);
|
||||
return (conf_parser.ParseSpace(meta_str) == pt::SpaceParser::ok);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -60,8 +60,8 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
PT::SpaceParser conf_parser;
|
||||
PT::Space space;
|
||||
pt::SpaceParser conf_parser;
|
||||
pt::Space space;
|
||||
|
||||
bool Parse(const std::wstring & meta_str);
|
||||
void ChangeAdminMeta();
|
||||
|
||||
@@ -524,7 +524,7 @@ void Rm::Clear()
|
||||
void Rm::CreateJSON(bool status)
|
||||
{
|
||||
using TemplatesFunctions::R;
|
||||
PT::WTextStream buf;
|
||||
pt::WTextStream buf;
|
||||
|
||||
JSONescape(buf, cur->request->item.url);
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ SortPair sp;
|
||||
|
||||
for( ; i2 != cur->request->post_tab.end() ; ++i2 )
|
||||
{
|
||||
if( PT::is_substr_nc(L"sort", i2->first.c_str()) )
|
||||
if( pt::is_substr_nc(L"sort", i2->first.c_str()) )
|
||||
{
|
||||
sp.id = Tol(i2->first.c_str() + 4);
|
||||
sp.sort_index = Toi(i2->second);
|
||||
|
||||
@@ -306,11 +306,11 @@ void Upload::MakePost()
|
||||
void Upload::CreateAnswer()
|
||||
{
|
||||
Request & req = *cur->request;
|
||||
PT::Space & files = req.info.add_empty_space(L"files");
|
||||
pt::Space & files = req.info.add_empty_space(L"files");
|
||||
|
||||
for(size_t i=0 ; i<req.item_tab.size() ; ++i)
|
||||
{
|
||||
PT::Space & file = files.add_empty_space();
|
||||
pt::Space & file = files.add_empty_space();
|
||||
|
||||
file.add(L"name", req.item_tab[i].url);
|
||||
file.add(L"size", req.item_tab[i].item_content.file_size);
|
||||
|
||||
Reference in New Issue
Block a user