Esempio n. 1
0
 public Backup(WebDaD.Toolkit.Database.Database db, string dataFolder, string backupFolder, string appname)
 {
     this.db = db;
     this.dataFolder = dataFolder;
     this.backupFolder = backupFolder;
     this.appname = appname;
 }
Esempio n. 2
0
 public Update(string apppath,string appname, double version,WebDaD.Toolkit.Database.Database db, string updatePath = "http://toolkit.webdad.eu/")
 {
     this.apppath = apppath;
     this.appname = appname;
     this.webappname = appname.ToLower().Replace(" ", "_");
     this.version = version;
     this.updatePath = updatePath;
     this.db = db;
     this.checkPath = updatePath + "index.php?app="+webappname+"&cmd=update";
     this.recentVersion = getRecentVersion();
     if (this.recentVersion == 0.0) { this.serverReachable = false; }
     else this.serverReachable = true;
 }