-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.php
53 lines (52 loc) · 2.38 KB
/
main.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
<!DOCTYPE html>
<html>
<head>
<title><!--[site_name]--></title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
<?=injectionJS();?>
</head>
<body>
<form role="form" action="includes/process.php?action=update" method="post" onsubmit="return updateLocation(this);">
<div class="modal fade" id="proxyoptions" tabindex="-1" role="dialog" aria-labelledby="proxyoptionsLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="proxyoptionsLabel">Options</h4>
</div>
<div class="modal-body">
<?php foreach ($toShow as $option) echo '<div class="checkbox"><label data-toggle="tooltip" data-placement="right" title="'.$option['escaped_desc'].'"><input type="checkbox" name="'.$option['name'].'" id="'.$option['name'].'"'.$option['checked'].'> '.$option['title'].'</label></div>'; ?>
</div>
</div>
</div>
</div>
<div class="jumbotron">
<div class="container">
<div class="text-danger"><!--[error]--></div>
<button type="button" class="btn btn-default pull-right" data-toggle="modal" data-target="#proxyoptions"><span class="glyphicon glyphicon-wrench"></span></button>
<h1><!--[site_name]--></h1>
<div class="form-group">
<label for="input">Enter URL</label>
<input type="url" name="u" id="input" class="form-control" placeholder="http(s)://" required autofocus>
</div>
</div>
</div>
<div class="container">
<p class="text-center"><!--[ad]--></p>
<p class="text-center">Powered by <a href="http://www.glype.com/">Glype</a>® <!--[version]--> - Theme: glypestrap via <a href="http://pattyland.de" target="_blank">pattyland</a></p>
</div>
</form>
<script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
<script>
$('#proxyoptions label').tooltip();
</script>
</body>
</html>