Files
firstgarden-web-gnu/test.php
2013-02-13 18:33:28 +09:00

25 lines
481 B
PHP

<!doctype html>
<html lang="ko">
<head>
<meta charset="utf-8">
<title>1</title>
</head>
<?php
$str = "내용물";
if (isset($_GET['width'])) {
echo $str;
echo "<noscript>".$str."</noscript>";
} else {
echo "<script>\n";
echo "location.href=\"${_SERVER['SCRIPT_NAME']}?${_SERVER['QUERY_STRING']}"
. "width=\" + screen.width;\n";
echo "</script>\n";
echo "<noscript>";
echo $str;
echo "</noscript>";
exit();
}
?>