protected utente check_remember() { try { xml_doc doc = new xml_doc(path_file_data("remember.xml"), true); DateTime from = DateTime.Parse(doc.root_value("data")); if ((DateTime.Now - from).Days > 7) { return(null); } return(utente.al.check_login(crypt.decrypt(doc.node("//root/login").data, doc.root_value("data")) , crypt.decrypt(doc.node("//root/password").data, doc.root_value("data")))); } catch { return(null); } }
public dbType db_type() { return((dbType)Enum.Parse(typeof(dbType), _doc.root_value("type"))); }