function SecureSql Input return str_ireplace array ALTER TABLE ANALYZE

1
2
3
4
function SecureSql($Input)
{
return str_ireplace(array('ALTER TABLE', 'ANALYZE', 'ATTACH DATABASE', 'BEGIN TRANSACTION', 'COMMIT TRANSACTION', 'CREATE INDEX', 'CREATE TABLE', 'CREATE TRIGGER', 'CREATE VIEW', 'CREATE VIRTUAL TABLE', 'DELETE', 'DETACH DATABASE', 'DROP INDEX', 'DROP TABLE', 'DROP TRIGGER', 'DROP VIEW', 'END TRANSACTION', 'EXPLAIN', 'INSERT', 'ON CONFLICT', 'PRAGMA', 'REINDEX', 'REPLACE', 'ROLLBACK TRANSACTION', 'SELECT', 'UPDATE', 'VACUUM'), '', $Input);
}