Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Db.resize(1);
- vector <string> ap,G,Tmp,Ttmp,T;
- Dbase->GetTagValues("Version",ap);
- if(ap.size()>0)
- if(ap[0] == "0.0.7 - Alpha")
- Dbase->ConvertStandard();
- Dbase -> GetTagValues("tg",G);
- Db[0] = G;
- int tru = false;
- Dbase -> GetTagValues("entry",Tmp);
- Dbase -> GetTagValues("Session",T);
- Session = new SessionsStorage();
- if (T.size()>0)
- {
- if (T[0].length()>0)
- {
- SessionsStorage S;
- Session->ConvertToSession(T[0],S);
- tru =Session->CheckSession(S);
- }
- }
- if (tru==0 or T[0].length()<0)
- {
- Db.resize(Tmp.size()+1);
- for(int z=0; z<Db[0].size(); z++)
- {
- Dbase->GetTagValues(Db[0][z],Ttmp);
- for(int i=1; i<Tmp.size()+1; i++)
- {
- Db[i].push_back(Ttmp[i-1]);
- }
- Ttmp.clear();
- }
- MaxX = Tmp.size();
- MaxY = Db[0].size();
- PathName = PathDb;
- IsLoad = 1;
- if(Pr->GetPrefs("Lock_Session")=="true")
- {
- Session->LockSession();
- SaveDb();
- }
Advertisement
Add Comment
Please, Sign In to add comment