viewgit/index.php:465 Only variables should be passed by reference [2048]
viewgit/index.php:466 Non-static method GeSHi::get_language_name_from_extension() should not be called statically [2048]
using System; using System.Data.SQLite; using System.Collections; namespace Dizzy { public class FileList { SQLiteConnection connection; public FileList() { string connectionString = "Data Source=" + GlobalConfig.ListFileName () + ";Version=3"; } public ArrayList Search(string keyword, string type, string user) { this.connection.Open (); // Eseguiamo la query SQLiteCommand sqlCmd = this.connection.CreateCommand (); sqlCmd.CommandText = "SELECT * from files WHERE name LIKE '%" + keyword + "%'"; SQLiteDataReader reader = sqlCmd.ExecuteReader (); File tmp; while(reader.Read()) { reader.GetString(2), // User reader.GetString(1), // Name reader.GetInt32(3)); // Size if ( (type == "Qualsiasi" || tmp.type.Name() == type) && (user == "" || user == tmp.user) ) { matches.Add (tmp); } } this.connection.Close (); return matches; } } }