@@ 100-108 (lines=9) @@ | ||
97 | if ($prefixed_query !== false) { |
|
98 | $table = $this->db->prefix($prefixed_query[4]); |
|
99 | if ($prefixed_query[1] === 'CREATE TABLE') { |
|
100 | if ($this->db->query($prefixed_query[0]) !== false) { |
|
101 | if (!isset($this->s_tables['create'][$table])) { |
|
102 | $this->s_tables['create'][$table] = 1; |
|
103 | } |
|
104 | } else { |
|
105 | if (!isset($this->f_tables['create'][$table])) { |
|
106 | $this->f_tables['create'][$table] = 1; |
|
107 | } |
|
108 | } |
|
109 | } elseif ($prefixed_query[1] === 'INSERT INTO') { |
|
110 | if ($this->db->query($prefixed_query[0]) !== false) { |
|
111 | if (!isset($this->s_tables['insert'][$table])) { |
|
@@ 123-133 (lines=11) @@ | ||
120 | $this->f_tables['insert'][$table]++; |
|
121 | } |
|
122 | } |
|
123 | } elseif ($prefixed_query[1] === 'ALTER TABLE') { |
|
124 | if ($this->db->query($prefixed_query[0]) !== false) { |
|
125 | if (!isset($this->s_tables['alter'][$table])) { |
|
126 | $this->s_tables['alter'][$table] = 1; |
|
127 | } |
|
128 | } else { |
|
129 | if (!isset($this->s_tables['alter'][$table])) { |
|
130 | $this->f_tables['alter'][$table] = 1; |
|
131 | } |
|
132 | } |
|
133 | } elseif ($prefixed_query[1] === 'DROP TABLE') { |
|
134 | if ($this->db->query('DROP TABLE ' . $table) !== false) { |
|
135 | if (!isset($this->s_tables['drop'][$table])) { |
|
136 | $this->s_tables['drop'][$table] = 1; |