diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-30 02:25:00 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-30 02:25:00 +0000 |
commit | 4f8e387ddd4cb91d86fdf6f32558d66527338f2a (patch) | |
tree | 64ab88429aa0bc8c05885a11de2452d7f16ec2d9 /usr/local/www/vpn_openvpn_ccd.php | |
parent | 989c7b5715e51ea5398181bff765c7e21bad6e03 (diff) | |
download | pfsense-4f8e387ddd4cb91d86fdf6f32558d66527338f2a.zip pfsense-4f8e387ddd4cb91d86fdf6f32558d66527338f2a.tar.gz |
OpenVPN cleanups by mposch@gmail.com
Diffstat (limited to 'usr/local/www/vpn_openvpn_ccd.php')
-rwxr-xr-x | usr/local/www/vpn_openvpn_ccd.php | 94 |
1 files changed, 57 insertions, 37 deletions
diff --git a/usr/local/www/vpn_openvpn_ccd.php b/usr/local/www/vpn_openvpn_ccd.php index c09d1f4..c20c580 100755 --- a/usr/local/www/vpn_openvpn_ccd.php +++ b/usr/local/www/vpn_openvpn_ccd.php @@ -97,32 +97,43 @@ $pgtitle = "VPN: OpenVPN"; include("head.inc"); ?> - <?php include("fbegin.inc"); ?> +<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> +<p class="pgtitle"><?=$pgtitle?></p> <?php if ($input_errors) print_input_errors($input_errors); ?> <?php if (file_exists($d_sysrebootreqd_path) && !file_exists($d_ovpnccddirty_path)) print_info_box(get_std_save_message(0)); ?> + <form action="vpn_openvpn_ccd.php" method="post" enctype="multipart/form-data" name="iform" id="iform"> <?php if (file_exists($d_ovpnccddirty_path)): ?><p> -<?php print_info_box_np("OpenVPN client-specific configuration options have been changed.<br>You must apply the changes in order for them to take effect.");?><br> -<input name="apply" type="submit" class="formbtn" id="apply" value="Apply changes"></p> +<?php print_info_box_np("OpenVPN client-specific configuration options have been changed.<br>You must apply the changes in order for them to take effect.");?> <?php endif; ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><td> - <ul id="tabnav"> - <li class="tabinact"><a href="vpn_openvpn_srv.php">Server</a></li> - <li class="tabinact"><a href="vpn_openvpn_cli.php">Client</a></li> - <li class="tabact">Client-specific Configuration</li> - <li class="tabinact"><a href="vpn_openvpn_crl.php">CRL</a></li> - </ul> +<?php + $tab_array = array(); + $tab_array[] = array("Server", false, "vpn_openvpn_srv.php"); + $tab_array[] = array("Client", false, "vpn_openvpn_cli.php"); + $tab_array[] = array("Client-specific Configuration", true, "vpn_openvpn_ccd.php"); + $tab_array[] = array("CRL", false, "vpn_openvpn_crl.php"); + display_top_tabs($tab_array); +?> </td></tr> - <tr> - <td class="tabcont"> - <strong><span class="red">WARNING: This feature is experimental and modifies your optional interface configuration. - Backup your configuration before using OpenVPN, and restore it before upgrading.<br> - <br> - </span></strong> - <table width="100%" border="0" cellpadding="0" cellspacing="0"> + + <tr> + <td> + <div id="mainarea"> + <table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0"> + <tr> + <td class="vtable"> + <strong><span class="red">WARNING: This feature is experimental and modifies your optional interface configuration. + Backup your configuration before using OpenVPN, and restore it before upgrading. + </span></strong> + </td> + </tr> + </table> + + <table class="tabcont" width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="5%" class="list"> </td> <td width="38%" class="listhdrr">Common Name</td> @@ -156,33 +167,42 @@ include("head.inc"); <td class="listbg"><?=$spans;?> <?= htmlspecialchars($ccd['descr']);?> <?=$spane;?></td> - <td valign="middle" nowrap class="list"><a href="vpn_openvpn_ccd_edit.php?id=<?=$i;?>"><img src="e.gif" title="edit client-specific configuration" width="17" height="17" border="0"></a> - <a href="vpn_openvpn_ccd.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this client-specific configuration?')"><img src="x.gif" title="delete client-specific configuration" width="17" height="17" border="0"></a></td> + <td valign="middle" nowrap class="list"><a href="vpn_openvpn_ccd_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="edit client-specific configuration" width="17" height="17" border="0"></a> + <a href="vpn_openvpn_ccd.php?act=del&id=<?=$i;?>" onclick="return confirm('Do you really want to delete this client-specific configuration?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="delete client-specific configuration" width="17" height="17" border="0"></a></td> </tr> <?php $i++; endforeach; ?> <tr> <td class="list" colspan="3"> </td> - <td class="list"><a href="vpn_openvpn_ccd_edit.php"><img src="plus.gif" title="add client-specific configuration" width="17" height="17" border="0"></a></td> + <td class="list"><a href="vpn_openvpn_ccd_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="add client-specific configuration" width="17" height="17" border="0"></a></td> </tr> </table> - <table border="0" cellspacing="0" cellpadding="0"> - <tr> - <td width="16"><img src="pass.gif" width="11" height="11"></td> - <td>pass</td> - <td width="14"></td> - <td width="16"><img src="block.gif" width="11" height="11"></td> - <td>block</td> - </tr> - <tr> - <td colspan="5" height="4"></td> - </tr> - <tr> - <td><img src="pass_d.gif" width="11" height="11"></td> - <td>pass (disabled)</td> - <td></td> - <td><img src="block_d.gif" width="11" height="11"></td> - <td>block (disabled)</td> - </tr> + <table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0"> + <tr> + <td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_pass.gif" width="11" height="11"></td> + <td>pass</td> + <td width="14"></td> + <td width="16"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block.gif" width="11" height="11"></td> + <td>block</td> + <td width="14"></td> + <td width="16"> </td> + <td> </td> + <td width="14"></td> + <td width="16"> </td> + <td> </td> + </tr> + <tr> + <td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_pass_d.gif" width="11" height="11"></td> + <td nowrap>pass (disabled)</td> + <td> </td> + <td><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_block_d.gif" width="11" height="11"></td> + <td nowrap>block (disabled)</td> + <td> </td> + <td> </td> + <td nowrap> </td> + <td> </td> + <td width="16"> </td> + <td nowrap> </td> + </tr> </table> </td> </tr> |