4 Commits
7.0.4 ... 7.0.6

Author SHA1 Message Date
Leo Khoa
6959b13189 Fix css issue
https://github.com/leokhoa/laragon/issues/339
2025-02-03 22:33:56 +01:00
Leo Khoa
2631fda37b Fix bug #689
https://github.com/leokhoa/laragon/issues/689
2025-02-03 22:32:38 +01:00
Leo Khoa
3fcd32d767 Merge pull request #1007 from leokhoa/leokhoa-patch-2
Update SECURITY.md
2025-02-02 13:01:08 +01:00
Leo Khoa
b371252f27 Update SECURITY.md 2025-02-02 13:00:25 +01:00
3 changed files with 92 additions and 154 deletions

View File

@@ -2,13 +2,12 @@
## Supported Versions ## Supported Versions
| Version | Supported | | Version | Supported |Reason |
| ------- | ------------------ | | ------- | ------------------ | ---------- |
| 7.x.x | :white_check_mark: | | >=7.0 | :white_check_mark: | |
| < 6.x | :x: | | <=6.0 | :x: | EOL |
## Reporting a Vulnerability ## Reporting a Vulnerability
For the moment, you can reach out @leokhoa via Slack: <https://laragon.slack.com/> - send a direct message. If you find a security vulnerability in Laragon, please report it via email to Leo Khoa at leo@laragon.org
We take security seriously, and all reports will be promptly addressed.
More options will be evaluated in the near future.

Binary file not shown.

View File

@@ -1,167 +1,106 @@
<?php <?php
if (!empty($_GET['q'])) { if (!empty($_GET['q'])) {
switch ($_GET['q']) { $query = htmlspecialchars($_GET['q'], ENT_QUOTES, 'UTF-8');
case 'info':
phpinfo(); switch ($query) {
exit; case 'info':
break; phpinfo();
} exit;
default:
header("HTTP/1.0 404 Not Found");
echo "Invalid query parameter.";
exit;
}
} }
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Laragon</title> <title>Laragon</title>
<link href="https://fonts.googleapis.com/css?family=Karla:400" rel="stylesheet" type="text/css"> <link href="https://fonts.googleapis.com/css?family=Karla:400" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="https://i.imgur.com/ky9oqct.png" type="image/png"> <style>
<style> html, body {
*, height: 100%;
:before *, margin: 0;
:after * { padding: 0;
box-sizing: border-box; font-family: 'Karla', sans-serif;
} font-weight: 100;
background-color: #f9f9f9;
color: #333;
}
body { .container {
margin: 0; display: flex;
min-height: 100vh; justify-content: center;
font-weight: 100; align-items: center;
font-family: 'Karla', sans-serif; height: 100%;
font-size: 18px; text-align: center;
} }
header, .content {
main, max-width: 800px;
nav, padding: 100px;
aside { background: #fff;
padding: 1rem; border-radius: 8px;
margin: auto; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
max-width: 1200px; }
text-align: center;
}
header { .title {
display: flex; font-size: 60px;
flex-wrap: wrap; margin: 0;
justify-content: center;
align-items: center; }
}
.header__item { .info {
margin: 0; margin-top: 20px;
padding: 1rem; font-size: 18px;
} line-height: 1.6;
}
.header--logo { .info a {
height: 8rem; color: #007bff;
} text-decoration: none;
}
h1 { .info a:hover {
font-size: 5rem; color: #0056b3;
} text-decoration: underline;
}
main { .opt {
background-color: #f5f5f5; margin-top: 30px;
} }
nav { .opt a {
width: 100%; font-size: 18px;
} color: #007bff;
text-decoration: none;
}
ul { .opt a:hover {
list-style: none; color: #0056b3;
padding: 0; text-decoration: underline;
margin: auto; }
} </style>
a {
color: #37ADFF;
font-weight: 900;
text-decoration: none;
}
a:hover {
color: red;
font-weight: 900;
transition: 300ms;
}
main a {
color: grey;
}
nav a {
display: block;
margin: 1rem 0;
}
nav a:after {
content: '→';
margin-left: 0.5rem;
}
.alert {
color: red;
font-weight: 900;
}
@media (min-width: 650px) {
h1 {
font-size: 10rem;
}
}
</style>
</head> </head>
<body> <body>
<header> <div class="container">
<img class="header__item header--logo" src="https://i.imgur.com/ky9oqct.png" alt="Offline"> <div class="content">
<h1 class="header__item header--title" title="Laragon">Laragon</h1> <h1 class="title" title="Laragon">Laragon</h1>
</header> <div class="info">
<main> <p><?php echo htmlspecialchars($_SERVER['SERVER_SOFTWARE'], ENT_QUOTES, 'UTF-8'); ?></p>
<p> <p>PHP version: <?php echo htmlspecialchars(phpversion(), ENT_QUOTES, 'UTF-8'); ?>
<?php print($_SERVER['SERVER_SOFTWARE']); ?> <a title="phpinfo()" href="/?q=info">info</a>
</p> </p>
<p> <p>Document Root: <?php echo htmlspecialchars($_SERVER['DOCUMENT_ROOT'], ENT_QUOTES, 'UTF-8'); ?></p>
PHP version: <?php print PHP_VERSION; ?> <span><a title="phpinfo()" href="/?q=info">info</a></span> </div>
</p> <div class="opt">
<p> <p><a title="Getting Started" href="https://laragon.org/docs">Getting Started</a></p>
Document Root: <?php print($_SERVER['DOCUMENT_ROOT']); ?> </div>
</p> </div>
<p> </div>
<a title="Getting Started" href="https://laragon.org/docs">Getting Started</a>
</p>
</main>
<?php
$dirList = glob('*', GLOB_ONLYDIR);
if (!empty($dirList)) :
?>
<nav>
<ul>
<?php
foreach ($dirList as $key => $value) :
$link = 'https://' . $value . '.test';
?>
<a href="<?php echo $link; ?>" target="_blank"><?php echo $link; ?></a>
<?php
endforeach;
?>
</ul>
</nav>
<?php
else :
?>
<aside>
<p class="alert">There are no directories, create your first project now</p>
<div>
<img src="https://i.imgur.com/3Sgu8XI.png" alt="Offline">
</div>
</aside>
<?php
endif;
?>
</body> </body>
</html> </html>