-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
36 lines (26 loc) · 928 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
<title>Modified Core Files Report</title>
<link rel="stylesheet" href="styles.css" type="text/css" charset="utf-8"/>
</head>
<body>
<h1 style="text-align: center">Modified Core Files Report </h1>
<form action="index.php" enctype="multipart/form-data" method="post">
<input type="file" name="sources"/>
<br/>
<input type="submit" name="submit"/>
</form>
<?php
require_once dirname(__FILE__) . '/lib/Diff.php';
require_once dirname(__FILE__) . '/lib/Diff/Renderer/Html/SideBySide.php';
require_once dirname(__FILE__) . '/FileCompare.php';
if (isset($_POST['submit'])) {
$fc = new File_Compare(array('php'));
echo $fc->process($_FILES['sources']['tmp_name']);
}
?>
</body>
</html>