public object GetData(string Key, string row) { if (Key == "" && PhysicalPath == "root") { using (SQLiteCommand cmd = new SQLiteCommand("SELECT " + row + " FROM " + Bot.GetTable(Bot.GETMD5("root@")) + " WHERE path='" + Bot.GETMD5("root@") + "';", Bot.SDB)) { object r = cmd.ExecuteScalar(); return(r); } } else if (Key == "") { using (SQLiteCommand cmd = new SQLiteCommand("SELECT " + row + " FROM " + Bot.GetTable(Bot.GETMD5(PhysicalPath)) + " WHERE path = '" + Bot.GETMD5(PhysicalPath) + "';", Bot.SDB)) { object r = cmd.ExecuteScalar(); return(r); } } else { using (SQLiteCommand cmd = new SQLiteCommand("SELECT " + row + " FROM " + Bot.GetTable(Bot.GETMD5(PhysicalPath + "@" + Key)) + " WHERE path = '" + Bot.GETMD5(PhysicalPath + "@" + Key) + "';", Bot.SDB)) { object r = cmd.ExecuteScalar(); return(r); } } }
object GetKey(string Key) { using (SQLiteCommand cmd = new SQLiteCommand("SELECT word FROM " + Bot.GetTable(Bot.GETMD5(PhysicalPath + "@" + Key)) + " WHERE path='" + Bot.GETMD5(PhysicalPath + "@" + Key) + "';", Bot.SDB)) { return(cmd.ExecuteScalar()); } }