changed: upload function

select file type by the extension
         param: multi
fixed:   uptime function
         it showed incorrect uptime time (minuts were badly calculated)


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@575 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-02-12 23:16:13 +00:00
parent 796985472a
commit 3c5a7cd664
16 changed files with 275 additions and 81 deletions

View File

@@ -911,6 +911,7 @@ void Request::MakePath(std::string & path)
}
}
bool Request::MakeDirsOnFS()
{
size_t i;
@@ -922,11 +923,13 @@ bool Request::MakeDirsOnFS()
path += '/';
path += dir_table[i]->url;
if( mkdir(path.c_str(), 0755) < 0 )
if( !IsFile(path.c_str()) )
{
// oops
log << log1 << "Request: can't create the directory on fs: " << path << logend;
return false;
if( mkdir(path.c_str(), 0755) < 0 )
{
log << log1 << "Request: can't create the directory on fs: " << path << logend;
return false;
}
}
}