Commit graph

2027 commits

Author SHA1 Message Date
Visman
f278136617 Update Admin\Install page 2021-12-16 22:21:51 +07:00
Visman
8c1f4a9503 Update DB\AbstractStatement #9
Add fetchAll() method.
2021-12-16 19:00:35 +07:00
Visman
9c813d46cb Update DB\AbstractStatement 2021-12-16 16:51:23 +07:00
Visman
0b5e9b77f0 Add setFetchMode() to DB\AbstractStatement #9 2021-12-16 15:43:31 +07:00
Visman
2073aceed7 Update DB\AbstractStatement #9
In the case of -> fetch (PDO :: FETCH_COLUMN), the method should return the value from the first column of the row, not an array with the data of all columns of the row.
2021-12-16 13:09:23 +07:00
Visman
0d443ff683 Update DBStatement for SQLite #9
I had to split DBStatement for SQLite into two branches: for PHP 7 and for PHP 8, otherwise it does not allow inheriting the PDOStatement class.
2021-12-16 11:03:43 +07:00
Visman
481489f505 Remove debug output 2021-12-15 23:22:07 +07:00
Visman
3bd0a4aa3b Fix DB\SqliteStatement for #9
For tables with no integer/boolean fields.
2021-12-15 19:31:11 +07:00
Visman
b12b96ccd5 Fix DB\AbstractStatement
#9
2021-12-15 18:05:53 +07:00
Visman
1077d2c6b6 Type conversion for #9
Added BOOLEAN to SQLite types.
Expanded DBStatement (started).
The fecth() method for INTEGER and BOOLEAN fields returns integer/float(?) and bool data.
2021-12-15 17:16:54 +07:00
Visman
59dfe8004c Add getType() method 2021-12-15 12:46:09 +07:00
Visman
295c426df0 Update DB
Add 'f' type for float fields.
2021-12-15 12:45:36 +07:00
Visman
1800381095 A little loop optimization 2021-12-15 09:48:01 +07:00
Visman
d7a6670e1e Converting to integer for #9 2021-12-14 07:56:11 +07:00
Visman
474dd4d439 Fix DB\Sqlite 2021-12-13 23:14:52 +07:00
Visman
04f5906281 Update DB\Mysql 2021-12-13 20:09:20 +07:00
Visman
2839c21416 Update DB\Pgsql 2021-12-13 20:09:02 +07:00
Visman
c0994b1e1d Update Admin\Install page 2021-12-13 20:08:39 +07:00
Visman
067d88751f Update Core\DB for SQLite 2021-12-13 20:08:04 +07:00
Visman
456751fa61 Add DB\Sqlite 2021-12-13 20:07:20 +07:00
Visman
696fb9643e Update DB\Pgsql 2021-12-12 21:40:07 +07:00
Visman
e45cc5ffc3 Fix DB\Pgsql for TRUNCATE TABLE
For https://github.com/forkbb/forkbb/pull/7
2021-12-12 12:50:57 +07:00
Visman
b829c816fd Fix Admin\Install page
For https://github.com/forkbb/forkbb/pull/7
2021-12-12 12:34:47 +07:00
Visman
2338592f55 Fix Group\Save
INSERT query contained g_id = NULL.
2021-12-12 12:03:23 +07:00
Visman
87ce20a3af Fix Categories manager
For PHP 7.3 O_o
2021-12-11 21:47:02 +07:00
Visman
bb966ebd9e Update Admin\Install page
Add check Encoding, Collation and Character Type for PostgreSQL.
2021-12-11 17:59:11 +07:00
Visman
ef101cc85a Update DB\Pgsql 2021-12-11 17:55:50 +07:00
Visman
d2ec24e6b9 Update DB\Pgsql 2021-12-11 13:47:50 +07:00
Visman
fac9ef1c8d Update DB\Pgsql 2021-12-11 13:17:52 +07:00
Visman
4b469dbf05 Update Admin\Statistics page 2021-12-11 13:15:28 +07:00
Visman
47a6627593 Update DB\Mysql 2021-12-10 22:25:13 +07:00
Visman
38063fe1d3 Update DB\Pgsql 2021-12-10 22:18:37 +07:00
Visman
40feec6fcb Fix Admin\Install page
Explicit id breaks auto-numbering.
2021-12-10 22:11:25 +07:00
Visman
e435297865 Update Core\DB
Track time for PDO::__construct().
2021-12-10 20:49:01 +07:00
Visman
4eb2854293 Add DB\Pgsql 2021-12-10 20:33:41 +07:00
Visman
bb8ef348e7 Update DB\Mysql 2021-12-10 20:12:45 +07:00
Visman
66aff84a88 Update Admin\Install page
Add dsn for PostgreSQL.
Update prefix reserved.
Change the check for the existence of the users table, because in PostgreSQL a query error aborts the execution of queries in this transaction.
2021-12-10 20:12:17 +07:00
Visman
04bdb5c23b Update DB\Mysql
Fix unset.
Remove exception catching.
2021-12-10 15:59:13 +07:00
Visman
5960dc2c06 Fixed max values
The maximum value must match the type of the field in the database.
2021-12-09 17:50:14 +07:00
Visman
6e688066be Update Page model
Fix main menu.
2021-12-08 17:11:10 +07:00
Visman
0c8ff225ae Fix Forum\LoadTree 2021-12-08 15:13:13 +07:00
Visman
abd41ee853 Fix Core\Test 2021-12-08 14:58:47 +07:00
Visman
82d07fcd73 Fix driver name 2 2021-12-08 14:44:24 +07:00
Visman
728c5c4015 Fix driver name 2021-12-08 14:44:06 +07:00
Visman
6992be0691 Fix LIMIT OFFSET in sql queries
Makes queries independent of the sql syntax.
2021-12-07 22:45:37 +07:00
Visman
fdbaf9a76b Update Admin\Install page 2021-12-07 16:36:04 +07:00
Visman
53e4290f7e Fix User\Stats
for #5
2021-12-07 16:35:31 +07:00
Visman
9cfb2f188e Update Admin\Users\Result page
A user can have posts, but user->num_posts is zero.
2021-12-07 14:41:20 +07:00
Visman
3410762705 Update Admin\Update page 2021-12-06 23:06:12 +07:00
Visman
bd5c24076b Expand settings for the Guest group
Add settings for displaying avatars, signatures, emoticons and images in messages/signatures.
2021-12-06 22:57:38 +07:00