Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public class SqlMaster { public static final String KEY_VERSION = "version"; public static final String KEY_QUERY = "query"; public static final String DATABASE_NAME = "data"; public static final String TABLE_SQL_UPDATES = "sql_updates"; private static final String TAG = "SqlMaster"; private static final int DATABASE_VERSION = 2; private DatabaseHelper mDbHelper; private SQLiteDatabase mDb; private final Context mCtx; private static class DatabaseHelper extends SQLiteOpenHelper { DatabaseHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { Log.w(TAG, "Upgrading database from version " + oldVersion + " to " + newVersion + ", which will destroy all old data"); db.execSQL("DROP TABLE IF EXISTS sql_updates"); onCreate(db); } @Override public void onCreate(SQLiteDatabase db) { } } public SqlMaster(Context ctx) { this.mCtx = ctx; } public SqlMaster open() throws SQLException { mDbHelper = new DatabaseHelper(mCtx); mDb = mDbHelper.getWritableDatabase(); return this; } public void close() { mDbHelper.close(); } public int getOldVersion() { String tableQuery = "select " + KEY_VERSION + " from " + TABLE_SQL_UPDATES; Cursor tableCursor = mDb.rawQuery(tableQuery, null); if(tableCursor.getCount() == 0) { return 0; } else { tableCursor.moveToLast(); return tableCursor.getInt(tableCursor.getColumnIndexOrThrow(KEY_VERSION)); } } public long addNewVersion(Version u) { ContentValues initialValues = u.getValues(); return mDb.insert(TABLE_SQL_UPDATES, null, initialValues); } public boolean updateToVersion(int newVersion, int oldVersion) { String query = "select * from " + TABLE_SQL_UPDATES + " where " + KEY_VERSION + " > " + oldVersion; Cursor updates = mDb.rawQuery(query, null); if(updates.getCount() <= 0) { return false; } updates.moveToFirst(); int workVer = updates.getInt(updates.getColumnIndexOrThrow(KEY_VERSION)); while(workVer <= newVersion) { String q = updates.getString(updates.getColumnIndexOrThrow(KEY_QUERY)); mDb.execSQL(q); if(workVer < newVersion) { updates.moveToNext(); } if(workVer == newVersion){ break; } } return true; } public void clearTable(String table) { mDb.execSQL("DELETE FROM " + table); } }