Guest User

Horror Code

a guest
Sep 6th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.31 KB | None | 0 0
  1.  Db.resize(1);
  2.         vector <string> ap,G,Tmp,Ttmp,T;
  3.         Dbase->GetTagValues("Version",ap);
  4.         if(ap.size()>0)
  5.             if(ap[0] == "0.0.7 - Alpha")
  6.                 Dbase->ConvertStandard();
  7.  
  8.         Dbase -> GetTagValues("tg",G);
  9.         Db[0] = G;
  10.         int tru = false;
  11.         Dbase -> GetTagValues("entry",Tmp);
  12.         Dbase -> GetTagValues("Session",T);
  13.         Session = new SessionsStorage();
  14.         if (T.size()>0)
  15.         {
  16.             if (T[0].length()>0)
  17.             {
  18.                 SessionsStorage S;
  19.                 Session->ConvertToSession(T[0],S);
  20.                 tru =Session->CheckSession(S);
  21.             }
  22.         }
  23.         if (tru==0 or T[0].length()<0)
  24.         {
  25.             Db.resize(Tmp.size()+1);
  26.             for(int z=0; z<Db[0].size(); z++)
  27.             {
  28.                 Dbase->GetTagValues(Db[0][z],Ttmp);
  29.                 for(int i=1; i<Tmp.size()+1; i++)
  30.                 {
  31.                     Db[i].push_back(Ttmp[i-1]);
  32.                 }
  33.                 Ttmp.clear();
  34.             }
  35.             MaxX = Tmp.size();
  36.             MaxY = Db[0].size();
  37.             PathName = PathDb;
  38.             IsLoad = 1;
  39.             if(Pr->GetPrefs("Lock_Session")=="true")
  40.             {
  41.                 Session->LockSession();
  42.                 SaveDb();
  43.             }
Advertisement
Add Comment
Please, Sign In to add comment