// is set after calling session_manager.SetSession()
Session*session;
// 'done_status' is set if 'done' is different than 'nothing'
Errordone_status;
// what to do
enumResult{err_internal,err404,show_dir,show_item,show_item_by_id,add_item,edit_item,del_item,del_item_confirm,confirm,redirect,logout}result;// zamienic na to_do
//Item item; // bedziemy uzywac tego, item_id i item_url_subject wywalic
// current directory e.g. /foo/bar
std::vector<Item>cur_dir_table;
// id of the last directory (bar) or -1
longdir;
// items in the current directory
// maybe without contents?
std::vector<Item>item_table;
// directories in the current directory
std::vector<Item>dir_table;
// this item is used for many purposes such as editing, adding an item etc.
Itemitem;
// this string is used for many purposes such as redirecting
std::stringstr;
// for debugging
voidPrintGetTable();
voidPrintEnv();
voidPrintIn();
Request();
voidClear();
voidSetCookie(constchar*name,constchar*value);
voidSetCookie(constchar*name,longvalue);
boolIsPostVar(constchar*var);
std::string&PostVar(constchar*var);// with a throw