-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubmit.php
More file actions
executable file
·62 lines (46 loc) · 1.72 KB
/
Copy pathsubmit.php
File metadata and controls
executable file
·62 lines (46 loc) · 1.72 KB
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
<!DOCTYPE html>
<html>
<head>
<!--Import Google Icon Font-->
<link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<link type="text/css" rel="stylesheet" href="style.css" />
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<?php
/*$myFile = "config.json";
$arr_data = array();*/
$formdata = array( 'username' => $_POST['uname'],
'password' => $_POST['upass'],
'ssid' => $_POST['id'],
'passkey' => $_POST['pass']);
$fp = fopen("config.json", "w");
fwrite($fp, json_encode($formdata));
fclose($fp);
/*array_push($arr_data,$formdata);
$jsondata = json_encode($arr_data,JSON_PRETTY_PRINT);
if(file_put_contents($myFile,$jsondata))
{
echo 'Data successfully saved';
}
else
echo 'error';*/
?>
<body>
<div class="submit" align="center">
<p>Config file is generated successfully </p>
<p>System will restart soon !</p>
<p>Thank You....</p>
<div id="block_1" class="barlittle"></div>
<div id="block_2" class="barlittle"></div>
<div id="block_3" class="barlittle"></div>
<div id="block_4" class="barlittle"></div>
<div id="block_5" class="barlittle"></div>
</div>
<!--Import jQuery before materialize.js-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
</body>
</html>