105 lines
2.6 KiB
PHP
105 lines
2.6 KiB
PHP
<?php
|
|
if (!empty($_GET['q'])) {
|
|
$query = htmlspecialchars($_GET['q'], ENT_QUOTES, 'UTF-8');
|
|
|
|
switch ($query) {
|
|
case 'info':
|
|
phpinfo();
|
|
exit;
|
|
default:
|
|
header("HTTP/1.0 404 Not Found");
|
|
echo "Invalid query parameter.";
|
|
exit;
|
|
}
|
|
}
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Laragon</title>
|
|
<link href="https://fonts.googleapis.com/css?family=Karla:400" rel="stylesheet" type="text/css">
|
|
<style>
|
|
html, body {
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: 'Karla', sans-serif;
|
|
font-weight: 100;
|
|
background-color: #f9f9f9;
|
|
color: #333;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
.content {
|
|
max-width: 800px;
|
|
padding: 100px;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.title {
|
|
font-size: 60px;
|
|
margin: 0;
|
|
}
|
|
|
|
.info {
|
|
margin-top: 20px;
|
|
font-size: 18px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.info a {
|
|
color: #007bff;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.info a:hover {
|
|
color: #0056b3;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.opt {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.opt a {
|
|
font-size: 18px;
|
|
color: #007bff;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.opt a:hover {
|
|
color: #0056b3;
|
|
text-decoration: underline;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="content">
|
|
<h1 class="title" title="Laragon">Laragon</h1>
|
|
<div class="info">
|
|
<p><?php echo htmlspecialchars($_SERVER['SERVER_SOFTWARE'], ENT_QUOTES, 'UTF-8'); ?></p>
|
|
<p>PHP version: <?php echo htmlspecialchars(phpversion(), ENT_QUOTES, 'UTF-8'); ?>
|
|
<a title="phpinfo()" href="/?q=info">info</a>
|
|
</p>
|
|
<p>Document Root: <?php echo htmlspecialchars($_SERVER['DOCUMENT_ROOT'], ENT_QUOTES, 'UTF-8'); ?></p>
|
|
</div>
|
|
<div class="opt">
|
|
<p><a title="Getting Started" href="https://laragon.org/docs">Getting Started</a></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|