| @@ 17-26 (lines=10) @@ | ||
| 14 | ||
| 15 | setcookie("JodelId", "", time()-3600); | |
| 16 | ||
| 17 | if(!isset($_COOKIE["JodelDeviceId"])) | |
| 18 | { | |
| 19 | $deviceUid = createAccount(); | |
| 20 | 	setcookie("JodelDeviceId", $deviceUid, time()+60*60*24*365*10); | |
| 21 | ||
| 22 | } | |
| 23 | else | |
| 24 | { | |
| 25 | $deviceUid = $db->real_escape_string($_COOKIE["JodelDeviceId"]); | |
| 26 | } | |
| 27 | ||
| 28 | $location = getLocationByDeviceUid($deviceUid); | |
| 29 | $newPositionStatus = $location->getCityName(); | |
| @@ 16-25 (lines=10) @@ | ||
| 13 | ||
| 14 | 	setcookie("JodelId", "", time()-3600); | |
| 15 | ||
| 16 | if(!isset($_COOKIE["JodelDeviceId"])) | |
| 17 | 	{ | |
| 18 | $deviceUid = createAccount(); | |
| 19 | 		setcookie("JodelDeviceId", $deviceUid, time()+60*60*24*365*10); | |
| 20 | ||
| 21 | } | |
| 22 | else | |
| 23 | 	{ | |
| 24 | $deviceUid = $db->real_escape_string($_COOKIE["JodelDeviceId"]); | |
| 25 | } | |
| 26 | ||
| 27 | $location = getLocationByDeviceUid($deviceUid); | |
| 28 | $newPositionStatus = $location->getCityName(); | |