-
Notifications
You must be signed in to change notification settings - Fork 0
/
DataUpload.php
97 lines (75 loc) · 3.22 KB
/
DataUpload.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<?php
session_start();
if(!isset($_SESSION['username']))
{
header('location:Welcome.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Drag and Drop Har File</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<link rel="shortcut icun" href="">
<link rel="stylesheet" href="DataUpload_style.css">
<link rel="stylesheet" href="welcomeuser_style.css">
</head>
<body class="Starters">
<div class="caption">
<h1>Upload HAR</h1>
</div>
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a href="WelcomeUser.php">Home</a>
<a href="DataUpload.php">Upload Har</a>
<a href="heatmap.php">My statistics</a>
<a href="myprofile.php">My account</a>
<a href="logout.php">Logout</a>
</div>
<div id="main">
<div class="container">
<div class="nav-wrapper">
<div class="left-side">
<div class="nav-link-wrapper">
<a><span onclick="openNav()">Menu</span></a>
</div>
</div>
</div>
<!--<h2> Below you can place your Har File</h2>-->
<h2>Μπορείς να κάνεις drag and drop ή να επιλέξεις το αρχείο από το φάκελο σου πατώντας στο παρακάτω εικονίδιο.</h2>
<div class="drop-zone">
<span class="drop-zone__prompt">Please Drop the file here</span>
<form class="form" action="./upload" method="POST" enctype="multipart/form-data">
<input type="file" id="HarFile" name="MyFile" class="drop-zone__input">
</form>
</div>
</div>
<!-- Add icon library -->
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- Auto width -->
<button class="locallyDownload" onclick="download(inputFileName, JSON.stringify(MainObject))"><i
class="fa fa-download"></i>
Download</button>
<form action="savetodb_test3.php" method="POST">
<input type="hidden" name="Filtrarismeno" id="myField1" value="" />
<input type="hidden" name="Ips" id="myField2" value="" />
<input type="hidden" name="serverIp_visited" id="myField3" value="" />
<input type="hidden" name="serverLat_visited" id="myField4" value="" />
<input type="hidden" name="serverLon_visited" id="myField5" value="" />
<button class="uploadToSystem">Database</button>
</form>
</div>
<!-- footer -->
<div class="footer1">
<p> All copyrigths reserved. ©</p>
</div>
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="psl.min.js"></script>
<script src="DataUpload_fuction.js"></script>
<script src="index_js.js"></script>
<script src="harProcess.js"></script>
</body>
</html>