get('tsviewer'); // $cache->clean(); if (is_null($tsviewer)) { $tsviewer = array(getViewer(), date('d-m-Y H:i:s')); $cache->set('tsviewer', $tsviewer, 300); } // print_r ($tsviewer); function getViewer() { global $lang; try { $tsAdmin = TeamSpeak3::factory(getTeamspeakURI() . "#no_query_clients"); return $tsAdmin->getViewer(new TeamSpeak3_Viewer_Html("lib/ts3phpframework/images/viewer/", "lib/ts3phpframework/images/flags/", "data:image")); } catch (TeamSpeak3_Exception $e) { return '
' . translate($lang["general"]["scripterror"], [$e->getCode(), $e->getMessage()]) . '