Skip to content

Commit

Permalink
update dependencies (fat free framework 3.9), PHP 8.4 compatibility
Browse files Browse the repository at this point in the history
PHP 8.4 : WHOIS library sends deprec warnings (io-developer/php-whois#225)
  • Loading branch information
olaulau committed Jan 10, 2025
1 parent 917c52c commit 2e029cc
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 39 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ IspConfig additionnal admin features
## requirements
- PHP 8.x (8.3 compatible)
- php-intl
- create an IspConfig remote user in the panel : "System > Remote users"

## installation
- create an IspConfig remote user in the panel : "System > Remote users"
```
git clone https://github.com/olaulau/IspAdmin
cd IspAdmin
Expand Down
78 changes: 44 additions & 34 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions php/model/DnsInfos.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function extractInfos ($ispconfigInfos) {
$this->labelType = 'success';
$this->labelString = 'OK';

if ($this->server["server"]["ip_address"] !== $rawInfos) {
if ($this->server ["server"] ["ip_address"] !== $rawInfos) {
// if resolved ip address isn't the IP of the server hosting the website
$this->labelType = 'danger';

Expand All @@ -57,7 +57,7 @@ public function extractInfos ($ispconfigInfos) {
}
else {
$this->labelString = "resolv";
$this->labelTitle = "DNS doesn't resolve to server IP : <br/> " . $this->server["server"]["ip_address"] . " !== " . $rawInfos;
$this->labelTitle = "DNS doesn't resolve to server IP : <br/> " . $this->server ["server"] ["ip_address"] . " !== " . $rawInfos;
}
}
}
Expand Down
1 change: 1 addition & 0 deletions php/model/WhoisInfos.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use Iodev\Whois\Factory;


class WhoisInfos extends Task {

public function getCmd () {
Expand Down
4 changes: 2 additions & 2 deletions php/service/IspConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ abstract class IspConfig
{

private static string $session_id;
private static mixed $last_query_response;
// private static mixed $last_query_response;


private static function rest ($method, $data) : mixed
Expand Down Expand Up @@ -39,7 +39,7 @@ private static function rest ($method, $data) : mixed
die("json decode error " . $ex->getCode() . " : " . $ex->getMessage() . PHP_EOL . $ex->getTraceAsString());
}

static::$last_query_response = $res;
// self::$last_query_response = $res;
return $res;
}

Expand Down

0 comments on commit 2e029cc

Please sign in to comment.