-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathindex.php
76 lines (74 loc) · 2.54 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title> Plagiarism Checker | Main Page </title>
<link href = "assets/css/bootstrap.css" rel="stylesheet" media="screen">
<script src = "assets/js/jquery.js"></script>
<script src = "assets/js/bootstrap.min.js"></script>
<style>
input:focus
{
outline:0px !important;
-webkit-appearance:none;
}
a:focus
{
outline:0px !important;
-webkit-appearance:none;
}
button:focus
{
outline:0px !important;
-webkit-appearance:none;
}
</style>
<script>
function validateUpload()
{
if(document.getElementById('file').value == "")
{
alert("Please choose a document.");
return false;
}
return true;
}
</script>
</head>
<body>
<div class='hero-unit'>
<h1> Plagiarism Checker </h1>
<h1><small>An online utility to check if a document's contents are plagiarsed. <br></small></h1>
<p> </p>
<a class='btn btn-info btn-large' data-toggle='modal' href='#myModal'> Learn More </a>
<a class='btn btn-primary btn-large' href='scripts/scripts.zip'> Download Scripts! </a>
</div>
<div id='myModal' class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Plagiarism Checker - User Guide</h3>
</div>
<div class="modal-body">
<p> What do I do? </p>
<ul>
<li> Upload a document of supported type</li>
<li> Wait for the document to be processed </li>
<li> Once processed, the results are displayed!</li>
</ul>
<p><h4>The plagiarism checker supports: <b><i>pdf, ppt, doc and docx file formats.<i></b></h4></p>
</div>
<div class="modal-footer">
<a href="#" data-dismiss="modal" class="btn btn-primary">Close</a>
</div>
</div>
<div class='well' style='margin:40px' align='center'>
<form action="processFile.php" method= "POST" enctype="multipart/form-data" onsubmit='return validateUpload()'>
<label for="file"><h3>Upload the document<h3></label>
<input type="file" name="file" id="file" class='btn btn-large btn-inverse'>
<div class='form-actions'>
<input class='btn btn-danger btn-large span3' type="submit" name="submit" value="Upload!">
</div>
</form>
</div>
</body>
</html>