Skip to content

Commit 28730db

Browse files
v3.3.0
1 parent fbff359 commit 28730db

File tree

11 files changed

+100
-61
lines changed

11 files changed

+100
-61
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1+
# v3.3.0
2+
- Updated PDO try-catch exception for PHP 8
3+
- Created recursive PHP in_array for SQLite Pragma array seach in PHP 8
4+
- Improved handling of external port for remotes
5+
- Fixed bug with scope of curl variables
6+
17
# v3.2.0
28
- added removal confirmation of remote hosts
39
- added preference choices for logging and logs page
410
- added preferences for custom page refresh rates
511
- added preferences for custom API connection and operation timeout
6-
- improved CPU guage, changing from top to /proc/stat readings
12+
- improved CPU gauge, changing from top to /proc/stat readings
713
- improved handling connection to unresponsive remote hosts
814
- fixed bug with adding hosts due to data type
915

@@ -14,5 +20,6 @@
1420
- updated remote host table header
1521
- updated link to display all volume types on storage volumes page
1622
- reduced curl connection timeout
23+
1724
# v3.0.0
1825
- initial release of the LXDWARE LXD dashboard version 3.0.0

default

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ server {
1313
#include snippets/fastcgi-php.conf;
1414
#fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
1515
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
16+
#fastcgi_pass unix:/run/php/php8.1-fpm.sock;
1617
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
1718
include fastcgi_params;
1819
include snippets/fastcgi-php.conf;

lxd-dashboard/backend/config/about.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<body class="">
4444
<p>The open source LXD Dashboard is developed by LXDWARE and provides a web-based user interface capable of managing multiple LXD servers from a single location.</p>
4545
<p>
46-
<strong>Version</strong>: <span id="versionNumber">v3.2.0</span> <br />
46+
<strong>Version</strong>: <span id="versionNumber">v3.3.0</span> <br />
4747
<strong>License</strong>: AGPL-3.0 <br />
4848
<strong>URL</strong>: https://lxdware.com <br />
4949
</p>

lxd-dashboard/backend/config/curl.php

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,24 @@
2828
//Require code from lxd-dashboard/backend/config/db.php
2929
require_once('../config/db.php');
3030

31-
//Set required variables
32-
$get_connection_timeout = (isset($_SESSION['get_connection_timeout'])) ? $_SESSION['get_connection_timeout'] : 3;
33-
$get_operation_timeout = (isset($_SESSION['get_operation_timeout'])) ? $_SESSION['get_operation_timeout'] : 5;
34-
$post_connection_timeout = (isset($_SESSION['post_connection_timeout'])) ? $_SESSION['post_connection_timeout'] : 3;
35-
$post_operation_timeout = (isset($_SESSION['post_operation_timeout'])) ? $_SESSION['post_operation_timeout'] : 5;
36-
$patch_connection_timeout = (isset($_SESSION['patch_connection_timeout'])) ? $_SESSION['patch_connection_timeout'] : 3;
37-
$patch_operation_timeout = (isset($_SESSION['patch_operation_timeout'])) ? $_SESSION['patch_operation_timeout'] : 5;
38-
$put_connection_timeout = (isset($_SESSION['put_connection_timeout'])) ? $_SESSION['put_connection_timeout'] : 3;
39-
$put_operation_timeout = (isset($_SESSION['put_operation_timeout'])) ? $_SESSION['put_operation_timeout'] : 5;
40-
$delete_connection_timeout = (isset($_SESSION['delete_connection_timeout'])) ? $_SESSION['delete_connection_timeout'] : 3;
41-
$delete_operation_timeout = (isset($_SESSION['delete_operation_timeout'])) ? $_SESSION['delete_operation_timeout'] : 5;
31+
4232

4333
function sendCurlRequest($request_action, $request_type, $request_url, $request_data = "{}"){
4434
$cert = "/var/lxdware/data/lxd/client.crt";
4535
$key = "/var/lxdware/data/lxd/client.key";
4636

37+
//Set required variables
38+
$get_connection_timeout = (isset($_SESSION['get_connection_timeout'])) ? $_SESSION['get_connection_timeout'] : 3;
39+
$get_operation_timeout = (isset($_SESSION['get_operation_timeout'])) ? $_SESSION['get_operation_timeout'] : 5;
40+
$post_connection_timeout = (isset($_SESSION['post_connection_timeout'])) ? $_SESSION['post_connection_timeout'] : 3;
41+
$post_operation_timeout = (isset($_SESSION['post_operation_timeout'])) ? $_SESSION['post_operation_timeout'] : 5;
42+
$patch_connection_timeout = (isset($_SESSION['patch_connection_timeout'])) ? $_SESSION['patch_connection_timeout'] : 3;
43+
$patch_operation_timeout = (isset($_SESSION['patch_operation_timeout'])) ? $_SESSION['patch_operation_timeout'] : 5;
44+
$put_connection_timeout = (isset($_SESSION['put_connection_timeout'])) ? $_SESSION['put_connection_timeout'] : 3;
45+
$put_operation_timeout = (isset($_SESSION['put_operation_timeout'])) ? $_SESSION['put_operation_timeout'] : 5;
46+
$delete_connection_timeout = (isset($_SESSION['delete_connection_timeout'])) ? $_SESSION['delete_connection_timeout'] : 3;
47+
$delete_operation_timeout = (isset($_SESSION['delete_operation_timeout'])) ? $_SESSION['delete_operation_timeout'] : 5;
48+
4749
if (validateAuthorization($request_action)) {
4850
switch ($request_type) {
4951
case "GET":

0 commit comments

Comments
 (0)