refactor: update PHP to 8.2
fix: possible division by 0 on statistics page fix: duplicated messages on discord notifications docs: update readme
This commit is contained in:
parent
b519376a27
commit
d44b40b0ce
@ -1,5 +1,5 @@
|
|||||||
# Use the php:8.0.5-fpm-alpine base image
|
# Use the php:8.0.5-fpm-alpine base image
|
||||||
FROM php:8.0.5-fpm-alpine
|
FROM php:8.2-fpm-alpine
|
||||||
|
|
||||||
# Set working directory to /var/www/html
|
# Set working directory to /var/www/html
|
||||||
WORKDIR /var/www/html
|
WORKDIR /var/www/html
|
||||||
|
|||||||
@ -55,7 +55,7 @@ See instructions to run Wallos below.
|
|||||||
#### Baremetal
|
#### Baremetal
|
||||||
|
|
||||||
- NGINX or APACHE websever running
|
- NGINX or APACHE websever running
|
||||||
- PHP 7.4 or 8.0 with the following modules enabled:
|
- PHP 8.2 with the following modules enabled:
|
||||||
- curl
|
- curl
|
||||||
- gd
|
- gd
|
||||||
- imagick
|
- imagick
|
||||||
@ -149,7 +149,7 @@ I welcome contributions from the community and look forward to working with you
|
|||||||
### Contributors
|
### Contributors
|
||||||
|
|
||||||
<a href="https://github.com/ellite/wallos/graphs/contributors">
|
<a href="https://github.com/ellite/wallos/graphs/contributors">
|
||||||
<img src="https://contri-graphy.yourselfhosted.com/graph?repo=ellite/wallos&format=svg" />
|
<img src="https://contrib.rocks/image?repo=ellite/wallos" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
### Translations
|
### Translations
|
||||||
|
|||||||
@ -226,14 +226,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$postfields = [
|
$postfields = [
|
||||||
'content' => $message,
|
'content' => $message
|
||||||
'embeds' => [
|
|
||||||
[
|
|
||||||
'title' => $title,
|
|
||||||
'description' => $message,
|
|
||||||
'color' => hexdec("FF0000")
|
|
||||||
]
|
|
||||||
]
|
|
||||||
];
|
];
|
||||||
|
|
||||||
if (!empty($discord['bot_username'])) {
|
if (!empty($discord['bot_username'])) {
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
$version = "v1.27.1";
|
$version = "v1.28.0";
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -187,11 +187,16 @@ if ($result) {
|
|||||||
$totalCostPerYear = $totalCostPerMonth * 12;
|
$totalCostPerYear = $totalCostPerMonth * 12;
|
||||||
|
|
||||||
// Calculate average subscription monthly cost
|
// Calculate average subscription monthly cost
|
||||||
|
if ($activeSubscriptions > 0) {
|
||||||
$averageSubscriptionCost = $totalCostPerMonth / $activeSubscriptions;
|
$averageSubscriptionCost = $totalCostPerMonth / $activeSubscriptions;
|
||||||
} else {
|
} else {
|
||||||
$totalCostPerYear = 0;
|
$totalCostPerYear = 0;
|
||||||
$averageSubscriptionCost = 0;
|
$averageSubscriptionCost = 0;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$totalCostPerYear = 0;
|
||||||
|
$averageSubscriptionCost = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$numberOfElements = 6;
|
$numberOfElements = 6;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user