'1'); } } include get_route('/' . $tokens[1]); } elseif (!empty($tokens[1]) && '/' . $tokens[1] == get_user_route()) { if (!empty($tokens[2])) { $_REQUEST['ID'] = uid_from_username($tokens[2]); if (!$_REQUEST['ID']) { header("HTTP/1.0 404 Not Found"); include "./404.php"; return; } if (!empty($tokens[3])) { if ($tokens[3] == 'edit') { $_REQUEST['Action'] = "DisplayAccount"; } elseif ($tokens[3] == 'update') { $_REQUEST['Action'] = "UpdateAccount"; } else { header("HTTP/1.0 404 Not Found"); include "./404.php"; return; } } else { $_REQUEST['Action'] = "AccountInfo"; } } include get_route('/' . $tokens[1]); } elseif (get_route($path) !== NULL) { include get_route($path); } else { switch ($path) { case "/css/archweb.css": case "/css/aur.css": case "/css/archnavbar/archnavbar.css": header("Content-Type: text/css"); include "./$path"; break; case "/css/archnavbar/archlogo.gif": case "/images/new.png": header("Content-Type: image/png"); include "./$path"; break; case "/css/archnavbar/archlogo.png": case "/images/AUR-logo-80.png": case "/images/AUR-logo.png": case "/images/favicon.ico": case "/images/feed-icon-14x14.png": case "/images/titlelogo.png": case "/images/x.png": header("Content-Type: image/png"); include "./$path"; break; case "/js/bootstrap-typeahead.js": header("Content-Type: application/javascript"); include "./$path"; break; default: header("HTTP/1.0 404 Not Found"); include "./404.php"; break; } }