<?php
switch ($_GET['lang']) {
case 'ru':
$lang = 'en';
break;
case 'en':
$lang = 'ru';
break;
default:
$lang = 'en';
break;}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<a href="/?lang=<?=$lang?>"><?=$lang?></a>
</body>
</html>
PD9waHAKc3dpdGNoICgkX0dFVFsnbGFuZyddKSB7CgljYXNlICdydSc6CgkJJGxhbmcgPSAnZW4nOwoJCWJyZWFrOwoJY2FzZSAnZW4nOgoJCSRsYW5nID0gJ3J1JzsKCQlicmVhazsKCWRlZmF1bHQ6CgkJJGxhbmcgPSAnZW4nOwoJCWJyZWFrO30KPz4KCjwhRE9DVFlQRSBodG1sPgo8aHRtbCBsYW5nPSJlbiI+CjxoZWFkPgoJPG1ldGEgY2hhcnNldD0iVVRGLTgiPgoJPHRpdGxlPkRvY3VtZW50PC90aXRsZT4KPC9oZWFkPgo8Ym9keT4KCTxhIGhyZWY9Ii8/bGFuZz08Pz0kbGFuZz8+Ij48Pz0kbGFuZz8+PC9hPgo8L2JvZHk+CjwvaHRtbD4=