Skip to content

Commit

Permalink
Fixed test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tltneon authored Feb 23, 2024
1 parent d3e38f0 commit 0180ee0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file added src/icons/gtac/gtac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/lgsl_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ function lgsl_url_path()
// USE FULL DOMAIN PATH TO AVOID ALIAS PROBLEMS

$host_path = (!isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) != "on") ? "http://" : "https://";
$host_path .= $_SERVER['HTTP_HOST'];
$host_path .= $_SERVER['HTTP_HOST'] ?? "";

// GET FULL PATHS ( EXTRA CODE FOR WINDOWS AND IIS - NO DOCUMENT_ROOT - BACKSLASHES - DOUBLESLASHES - ETC )

Expand Down Expand Up @@ -1173,7 +1173,7 @@ function lgsl_url_path()
require "{$lgsl_file_path}lgsl_config.php";
require "{$lgsl_file_path}lgsl_protocol.php";

$auth = md5($_SERVER['REMOTE_ADDR'].md5($lgsl_config['admin']['user'].md5($lgsl_config['admin']['pass'])));
$auth = md5(($_SERVER['REMOTE_ADDR'] ?? "").md5($lgsl_config['admin']['user'].md5($lgsl_config['admin']['pass'])));
$cookie = $_COOKIE['lgsl_admin_auth'] ?? "";
$lgsl_url_path = lgsl_url_path();

Expand Down
4 changes: 2 additions & 2 deletions src/lgsl_protocol.php
Original file line number Diff line number Diff line change
Expand Up @@ -1626,13 +1626,13 @@ public function need($key): bool {
}
public function process() {return 0;}
public function execute(): int {
$time = microtime();
$time = microtime(true);
$status = $this->process();
if ($this->separatedPackets) {
if ($this->_need['e']) $status |= $this->process();
if ($this->_need['p']) $status |= $this->process();
}
$this->_data['o']['time_execution'] = $time - microtime();
$this->_data['o']['time_execution'] = $time - microtime(true);
if ($status !== $this::NO_RESPOND) {
if ($status === $this::SUCCESS) {
$this->_server->trimError();
Expand Down

0 comments on commit 0180ee0

Please sign in to comment.