Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
So funktioniert es
|
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
sqlite3.php
01 <?php
02 /**
03 *
04 * This file is part of the phpBB Forum Software package.
05 *
06 * @copyright (c) phpBB Limited <https://www.phpbb.com>
07 * @license GNU General Public License, version 2 (GPL-2.0)
08 *
09 * For full copyright and license information, please see
10 * the docs/CREDITS.txt file.
11 *
12 */
13
14 namespace phpbb\db\tools;
15
16 /**
17 * Database Tools for handling cross-db actions such as altering columns, etc.
18 * Currently not supported is returning SQL for creating tables.
19 */
20 class sqlite3 extends tools
21 {
22 /**
23 * {@inheritDoc}
24 */
25 function sql_table_exists($table_name)
26 {
27 $this->db->sql_return_on_error(true);
28 $result = $this->db->sql_query("SELECT name FROM sqlite_master WHERE type='table' AND name='{$table_name}'");
29 $this->db->sql_return_on_error(false);
30
31 if (!empty($this->db->sql_fetchrowset($result)))
32 {
33 $this->db->sql_freeresult($result);
34 return true;
35 }
36
37 return false;
38 }
39 }
40