changed: added Cur structure
we have there two pointers: Request * request; Session * session; these are the current request and the current session the session GC was moved to SessionManager (was in SessionContainer) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@708 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -51,9 +51,9 @@ void TicketInfo::SetSystem(System * psystem)
|
||||
}
|
||||
|
||||
|
||||
void TicketInfo::SetRequest(Request * prequest)
|
||||
void TicketInfo::SetCur(Cur * pcur)
|
||||
{
|
||||
request = prequest;
|
||||
cur = pcur;
|
||||
}
|
||||
|
||||
|
||||
@@ -299,7 +299,7 @@ bool add = false;
|
||||
functions->SetUser(file);
|
||||
functions->fun_upload.UploadFile(file, value.tmp_filename);
|
||||
|
||||
if( request->status == WINIX_ERR_OK )
|
||||
if( cur->request->status == WINIX_ERR_OK )
|
||||
{
|
||||
add = true;
|
||||
system->MakePath(file, par.str_value);
|
||||
@@ -409,13 +409,13 @@ PostFileTab::iterator i2;
|
||||
if( clear_ticket )
|
||||
ticket.Clear();
|
||||
|
||||
for(i=request->post_tab.begin() ; i!=request->post_tab.end() ; ++i)
|
||||
for(i=cur->request->post_tab.begin() ; i!=cur->request->post_tab.end() ; ++i)
|
||||
{
|
||||
if( IsSubString(config->ticket_form_prefix, i->first) )
|
||||
ReadTicketParam(ticket, Toi(i->first.c_str() + config->ticket_form_prefix.size()), i->second);
|
||||
}
|
||||
|
||||
for(i2=request->post_file_tab.begin() ; i2!=request->post_file_tab.end() ; ++i2)
|
||||
for(i2=cur->request->post_file_tab.begin() ; i2!=cur->request->post_file_tab.end() ; ++i2)
|
||||
{
|
||||
if( IsSubString(config->ticket_form_prefix, i2->first) )
|
||||
ReadTicketParam(ticket, Toi(i2->first.c_str() + config->ticket_form_prefix.size()), i2->second, file_map);
|
||||
|
Reference in New Issue
Block a user