Skip to content

Commit 967f8f6

Browse files
author
Bugfish
committed
4.11
1 parent 0306c6d commit 967f8f6

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

_changelogs/4.11.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<b>Release 4.11</b>
2+
<br />
3+
<br /><b>General Information</b>
4+
<br />- Hotfix for x_class_user extrafield table creation error.
5+
<br />- Added user_status field to user table, unrelated to functionalitites.
6+
<br />

_framework/classes/x_class_user.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private function ext_createtable() {
173173
`fk_user` int(10) NOT NULL COMMENT 'User Relation',
174174
`creation` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Creation Date',
175175
`modification` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Modification Date',
176-
PRIMARY KEY (`id`), CONSTRAINT ".$this->table_ext."_unique UNIQUE (`fk_user`,`fk_group`));"); }}
176+
PRIMARY KEY (`id`), CONSTRAINT ".$this->table_ext."_unique UNIQUE (`fk_user`));"); }}
177177
public function extrafield_add_field($string) { $x = $this->mysql->log_status(); $this->mysql->log_disable(); $y = $this->mysql->query("ALTER TABLE `".$this->table_ext."` ADD COLUMN ".$string." ;"); if($x) {$this->mysql->log_enable();}return $y; }
178178
public function extrafield_del_field($fieldname) { $x = $this->mysql->log_status(); $this->mysql->log_disable(); $y = $this->mysql->query("ALTER TABLE `".$this->table_ext."` DROP COLUMN ".$fieldname." ;"); if($x) {$this->mysql->log_enable();} return $y; }
179179
public function extrafield_get($id) {
@@ -470,6 +470,7 @@ private function create_table($initial = false, $initialpass = "changeme", $init
470470
`user_2fa` text DEFAULT NULL COMMENT 'Users 2FA key',
471471
`user_initial` int(1) DEFAULT 0 COMMENT '1 if this user is initial created user',
472472
`user_rank` int(9) NULL DEFAULT NULL COMMENT 'Users Rank',
473+
`user_status` int(9) NULL DEFAULT NULL COMMENT 'User Status',
473474
`user_confirmed` tinyint(1) DEFAULT '0' COMMENT 'User Activation Status',
474475
`user_disabled` int(1) DEFAULT 0 COMMENT '1 - User is Disabled',
475476
`user_blocked` tinyint(1) DEFAULT '0' COMMENT 'User Blocked/Disabled Status',

_framework/classes/x_class_version.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct() {
4040
$this->website = "https://www.bugfish.eu";
4141
$this->github = "https://github.com/bugfishtm/bugfish-framework";
4242
$this->documentation = "https://bugfishtm.github.io/Bugfish-framework";
43-
$this->version = "4.10";
43+
$this->version = "4.11";
4444
}
4545

4646
// Optional: Prevent modifications after instantiation (using a private setter)

_releases/4.11.zip

2.34 MB
Binary file not shown.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ <h3 id="php-functions">PHP: Functions</h3>
18901890
<td>LGPL-2.1</td>
18911891
</tr>
18921892
<tr>
1893-
<td><a href="./_functions/x_cookiebanner.html">x_cookiebanner.php</a></td>
1893+
<td><a href="./functions/x_cookiebanner.html">x_cookiebanner.php</a></td>
18941894
<td>PHP code to display and manage cookie consent banners.</td>
18951895
<td>LGPL-2.1</td>
18961896
</tr>

docs/mkdocs/docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Discover a collection of indispensable PHP functions crafted for seamless integr
5252
|------------------|-----------------------------------------------------------|----------|
5353
| [x_button.php](./functions/x_button.html) | PHP script providing button UI components or helpers. | LGPL-2.1 |
5454
| [x_captcha.php](./functions/x_captcha.html) | PHP implementation of CAPTCHA for spam prevention. | LGPL-2.1 |
55-
| [x_cookiebanner.php](./_functions/x_cookiebanner.html) | PHP code to display and manage cookie consent banners. | LGPL-2.1 |
55+
| [x_cookiebanner.php](./functions/x_cookiebanner.html) | PHP code to display and manage cookie consent banners. | LGPL-2.1 |
5656
| [x_curl.php](./functions/x_curl.html) | PHP wrapper or helper functions for cURL HTTP requests. | LGPL-2.1 |
5757
| [x_eventbox.php](./functions/x_eventbox.html) | PHP component for displaying or managing event boxes/messages. | LGPL-2.1 |
5858
| [x_folder.php](./functions/x_folder.html) | Collection of utility functions for folder operations in PHP. | LGPL-2.1 |

0 commit comments

Comments
 (0)