Session class update, cli check add, tests updates, edit table update

Update edit_access_data table and set unique check for edit_access_id +
name so we do not have two identical keys for one edit access set

Update config host and add more test domains for various access tests

Update Session and move cli check to Get\System class. Some other minor
session info updates

New method \Get\System::checkCLI() returns true if the sapi name has
cli inside, else false
This commit is contained in:
Clemens Schwaighofer
2022-05-24 11:36:03 +09:00
parent aecdda3557
commit 1e734581d7
6 changed files with 92 additions and 19 deletions

View File

@@ -94,6 +94,16 @@ class System
{
return pathinfo($_SERVER['PHP_SELF']);
}
/**
* Check if the php sapi interface has cli inside
*
* @return bool True for CLI type PHP, else false
*/
public static function checkCLI(): bool
{
return substr(php_sapi_name(), 0, 3) === 'cli' ? true : false;
}
}
// __END__