forked from FlippAcademy/StarGamesControlPanel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check_cp.php
executable file
·62 lines (62 loc) · 2.46 KB
/
check_cp.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
<!--
// =========================================================================
// ______
// / __/ /____ ________ ____ ___ _ ___ ___
// _\ \/ __/ _ `/ __/ _ `/ _ `/ ' \/ -_|_-<
// /___/\__/\_,_/_/ \_, /\_,_/_/_/_/\__/___/
// _____ /___/ __ ___ __
// / ___/__ ___ / /________ / / / _ \___ ____ ___ / /
// / /__/ _ \/ _ \/ __/ __/ _ \/ / / ___/ _ `/ _ \/ -_) /
// \___/\___/_//_/\__/_/ \___/_/ /_/ \_,_/_//_/\__/_/
// =========================================================================
// Copyright (c) Stargames Control Panel - Licensed under GNU GPL.
// See LICENSE File
// =========================================================================
// Project Lead by: Mysterious
// =========================================================================
-->
<?php
if(!$SERVER['system_safe']) exit();
if (checkprivilege_action($CP[login_id],g_view_lastestcp)) {
opmain_body("SGCP Update");
echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"5\" align=\"center\" class=\"emptytable3\">
<TBODY>
<TR height=\"27\" class=\"title_bar2\">
<TD colspan=\"2\"><span class=\"m_title\"> Automatic Update</span></TD>
</TR>
<TR class=\"topic_title8\">
<TD colspan=\"2\">
<span id=\"cp_update\">".$lang['CPUD_cp_update']."</span>
</TD>
</TR>
<form name=\"CP_Update\">
<TR class=\"topic_title8\">
<TD width=\"40%\"><span id=\"cp_update_mes\">".$lang['CPUD_check_mes']."</span></TD>
<TD width=\"60%\"><span id=\"cp_update_button\"><input name=\"Button\" value=\"".$lang['CPUD_check_button']."\" type=\"button\" onClick=\"this.disabled=true; check_cp_update();\" class=\"textinput\"></span></TD>
</TR>
</form>
<TR height=\"25\" class=\"topic_title5\">
<TD colspan=\"2\"></TD>
</TR>
</TBODY>
</TABLE>
";
echo "<TABLE width=\"100%\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\" class=\"emptytable3\">
<TBODY>
<TR height=\"27\" class=\"title_bar2\">
<TD><span class=\"m_title\"> Manual Update</span></TD>
</TR>
<TR>
<TD><iframe name=\"CP_update\" src=\"index.php?init_load=cpupdate\" width=\"100%\" height=\"200\" frameborder=\"0\" scroll=\"yes\"></iframe></TD>
</TR>
<TR height=\"25\" class=\"topic_title5\">
<TD></TD>
</TR>
</TBODY>
</TABLE>
";
clmain_body();
} else {
redir("index.php?act=idx","$lang[No_privilege]",3);
}
?>