-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathtools.php
160 lines (138 loc) · 4.16 KB
/
tools.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?php
/**
*
* =======================================
* ###################################
* PortabilidadeCelular
*
* @package ChipCerto ChanDongle
* @author Adilson Leffa Magnus.
* @copyright Copyright (C) 2005 - 2016 MagnusSolution. All rights reserved.
* ###################################
*
* This software is released under the terms of the GNU Lesser General Public License v2.1
* A copy of which is available from http://www.gnu.org/copyleft/lesser.html
*
* =======================================
* Magnusbilling.com <[email protected]>
* 14/07/2016
*/
?>
<html>
<head>
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>ChipCerto</title>
<link rel="stylesheet" type="text/css" href="style/default.css?0">
<style type="text/css">
.visible{
display:block;
}
</style>
<script lang="javascript" src="script/dynamic.js"></script>
<script lang="javascript">
if (document.getElementById){
document.write('<style type="text/css">\n');
document.write('.invisible{display:none;}\n');
document.write('</style>\n');
}
</script>
</head>
<?php include 'access.php';?>
<body>
<table id="mainframe" height="100%" cellSpacing="0" cellPadding="0" width="768" border="0">
<tr>
<td width="314" class="banner" height="124">
<img height="134" src="images/title.jpg" width="312" border="0">
</td>
<td class="banner" height="124" valign="bottom" width="454">
<table cellSpacing="0" cellPadding="0" width="100%" height="100%"border="0">
<tr>
<td colspan="3" height="100" valign="bottom">
<span class="subtitle">ChipCerto</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colSpan="2">
<table height="100%" cellSpacing="0" cellPadding="0" width="100%" bgColor="#ffffff" border="0">
<tr>
<td vAlign="top" width="196" class="sidebar">
<script lang="javascript">
function confirm_reset()
{
return window.confirm("Are you sure to reset to factory default?");
}
function confirm_reboot()
{
return window.confirm("Você tem certeza que quer reiniciar o servidor?");
}
</script>
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td colspan="2" align="left" height="15"></td>
</tr>
<tr>
<td width="20"></td>
<td align="left" height="40">
<a href="status.php"><div class="title5">Status</div></a></td>
</tr>
<tr>
<td width="20"></td>
<td align="left" height="40"><a href="config.php"><div class="title5">Configurations</div></a></td>
</tr>
<tr>
<td width="20"></td>
<td height="40"><div class="title4">Tools</div></td>
</tr>
<tr>
<td width="20"></td>
<td align="right" valign="top">
<table border="0" width="82%" cellspacing="0" cellpadding="0">
<tr>
<td height="30"><a href="tools.php?type=password"><div class="title3" id="password">Change Password</div></a></td>
</tr>
<tr>
<td height="30"><a href="tools.php?type=sms"><div class="title3" id="sms">Send SMS</div></a></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<form action="reboot.php" method="post" onsubmit="return confirm_reboot()">
<td height="30"><div class="title3"><input type="submit" value="Reboot Server" class="savebutton"></div></td>
</form>
</tr>
</table>
</td>
</tr>
</table>
<script lang="javascript">
document.getElementById('upgrade').className="title4";
</script>
</td>
<td width="828" vAlign="top" class="content">
<?php
if (!$_GET['type'] || $_GET['type'] == 'password') {
include 'password.php';
}else if (!$_GET['type'] || $_GET['type'] == 'ata_setting') {
include 'callOut.php';
}else if (!$_GET['type'] || $_GET['type'] == 'portabilidade') {
include 'portabilidade.php';
}else if (!$_GET['type'] || $_GET['type'] == 'dongle') {
include 'dongle.php';
}else if (!$_GET['type'] || $_GET['type'] == 'sms') {
include 'sendSms.php';
}
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>