VPN-Management-GUI 2.0.3 porting start
This commit is contained in:
31
Admin/Modules/VPNconfig/include/sys.php
Normal file
31
Admin/Modules/VPNconfig/include/sys.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
include ($_SERVER["DOCUMENT_ROOT"]."/Site/checkadmin.php");
|
||||
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/config.inc");
|
||||
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/include/functions.inc");
|
||||
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/include/openvpn-functions.inc");
|
||||
include ($_SERVER["DOCUMENT_ROOT"]."/Admin/Modules/VPNconfig/include/openssl-functions.inc");
|
||||
openvpn_load_server_conf ();
|
||||
if (!isset ($openvpn['Server'])) html_error ("The OpenVPN server has no configuration file");
|
||||
openvpn_load_status ();
|
||||
if (!isset ($openvpn['Server']['Title'])) html_error ("The OpenVPN server has no status file");
|
||||
openssl_load_database ();
|
||||
openvpn_find_connected ();
|
||||
?>
|
||||
|
||||
<table border="0" width="100%" cellspacing="0" cellpadding="4">
|
||||
|
||||
<tr valign="top">
|
||||
<td colspan="2" style="border-top:1px groove black; border-bottom:1px groove black"><b>PHP Libraries</b></td></tr>
|
||||
|
||||
<tr valign="top">
|
||||
<td nowrap width="1%" align="right" bgcolor="#DDFFCC" style="border-bottom:1px groove black">PHP5 OpenSSL Functions</td>
|
||||
<td style="border-bottom:1px groove black"><font color="darkgreen"><?php echo openssl_check_functions (); ?>
|
||||
</font></td>
|
||||
</tr>
|
||||
|
||||
<tr valign="top">
|
||||
<td nowrap width="1%" align="right" bgcolor="#DDFFCC" style="border-bottom:1px groove black">PHP5 ZLib Functions</td>
|
||||
<td style="border-bottom:1px groove black"><font color="darkgreen"><?php echo zlib_check_functions ();?>
|
||||
</font></td>
|
||||
</tr>
|
||||
</table>
|
Reference in New Issue
Block a user