- protected function getClient()
- {
- if (isset($_SERVER['HTTP_X_TOMBOY_CLIENT'])) {
- $client = $_SERVER['HTTP_X_TOMBOY_CLIENT'];
- $doublepos = strpos($client, ', org.tomdroid');
- if ($doublepos !== false) {
- //https://bugs.launchpad.net/tomdroid/+bug/1375436
- //X-Tomboy-Client header is sent twice
- $client = substr($client, 0, $doublepos);
- }
- return $client;
- }
-
- return false;
- }
-
- protected function getNiceClientName($client)
- {
- if (substr($client, 0, 12) == 'org.tomdroid') {
- //org.tomdroid v0.7.5, build 14, Android v4.4.2, innotek GmbH/VirtualBox
- return 'Tomdroid';
- }
- return $client;
- }
-