Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Php 8 2 #327

Merged
merged 4 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# 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
WORKDIR /var/www/html
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ See instructions to run Wallos below.
#### Baremetal

- 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
- gd
- imagick
Expand Down Expand Up @@ -149,7 +149,7 @@ I welcome contributions from the community and look forward to working with you
### 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>

### Translations
Expand Down
9 changes: 1 addition & 8 deletions endpoints/cronjobs/sendnotifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,7 @@
}

$postfields = [
'content' => $message,
'embeds' => [
[
'title' => $title,
'description' => $message,
'color' => hexdec("FF0000")
]
]
'content' => $message
];

if (!empty($discord['bot_username'])) {
Expand Down
2 changes: 1 addition & 1 deletion includes/version.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php
$version = "v1.27.1";
$version = "v1.28.0";
?>
7 changes: 6 additions & 1 deletion stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,12 @@ function getPriceConverted($price, $currency, $database) {
$totalCostPerYear = $totalCostPerMonth * 12;

// Calculate average subscription monthly cost
$averageSubscriptionCost = $totalCostPerMonth / $activeSubscriptions;
if ($activeSubscriptions > 0) {
$averageSubscriptionCost = $totalCostPerMonth / $activeSubscriptions;
} else {
$totalCostPerYear = 0;
$averageSubscriptionCost = 0;
}
} else {
$totalCostPerYear = 0;
$averageSubscriptionCost = 0;
Expand Down