Rollback OS auto-switching and enforce exact service provisioning
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/3df8435d-6b14-494a-b81e-ca5ca02f3332 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
8537c4f0f7
commit
87678609ab
9 changed files with 317 additions and 165 deletions
|
|
@ -93,7 +93,16 @@ function exec_ogp_module()
|
|||
{
|
||||
// Force log file contents to be UTF-8 (fixes http://www.opengamepanel.org/forum/viewthread.php?thread_id=5379)
|
||||
if(hasValue($home_log)){
|
||||
$home_log = utf8_encode($home_log);
|
||||
if (function_exists('mb_check_encoding') && function_exists('mb_convert_encoding')) {
|
||||
if (!mb_check_encoding($home_log, 'UTF-8')) {
|
||||
$home_log = mb_convert_encoding($home_log, 'UTF-8', 'ISO-8859-1');
|
||||
}
|
||||
} elseif (function_exists('iconv')) {
|
||||
$converted = @iconv('ISO-8859-1', 'UTF-8//IGNORE', $home_log);
|
||||
if ($converted !== false) {
|
||||
$home_log = $converted;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Using the refreshed class
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue