- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathruncode.php
More file actions
Latest commit
24 lines (23 loc) · 493 Bytes
/
Copy pathruncode.php
File metadata and controls
24 lines (23 loc) · 493 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
require_once'src/Autoloader.php';
$src = $_GET['src'];
if (strpos($src, '..') !== false) {
die('Cannot run that');
}
?>
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>PHP Example</title>
<link href="/css/bootstrap.min.css" rel="stylesheet">
<script src="/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<blockquote>
<?php$class = new$src; ?>
</blockquote>
</div>
</body>
</html>