isExpired()) { $cacheutils->setValue([getViewer(), date('d-m-Y H:i:s')], 300); } $tsviewer = $cacheutils->getValue(); // print_r ($tsviewer); function getViewer() { global $lang; try { $tsAdmin = getTeamspeakConnection("#no_query_clients"); $base = "lib/ts3phpframework/images"; return $tsAdmin->getViewer(new TeamSpeak3_Viewer_Html("$base/viewer/", "$base/flags/", "data:image")); } catch (TeamSpeak3_Exception $e) { return '
' . translate($lang["general"]["scripterror"], [$e->getCode(), $e->getMessage()]) . '