diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-03-06 16:18:29 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-03-06 16:18:29 -0500 |
commit | b4c826ad15331aeb4177b0c2be532baa479b29e8 (patch) | |
tree | 6fa270511f1483070d3a1628b62fe5508c6f2ba2 /usr/local | |
parent | 283e918079536f7f5fda6cb4866fd82f4ec4421e (diff) | |
parent | fd4151a94762618d85c446f2140a06f41feef4b6 (diff) | |
download | pfsense-b4c826ad15331aeb4177b0c2be532baa479b29e8.zip pfsense-b4c826ad15331aeb4177b0c2be532baa479b29e8.tar.gz |
Resolve merge conflict
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/captiveportal/index.php | 2 | ||||
-rw-r--r-- | usr/local/pkg/carp_settings.xml | 8 | ||||
-rw-r--r-- | usr/local/www/edit.php | 7 | ||||
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 10 | ||||
-rw-r--r-- | usr/local/www/graph_cpu.php | 2 | ||||
-rw-r--r-- | usr/local/www/headjs.php | 4 | ||||
-rw-r--r-- | usr/local/www/help.php | 2 | ||||
-rw-r--r-- | usr/local/www/interfaces_lagg_edit.php | 2 | ||||
-rw-r--r-- | usr/local/www/stats.php | 12 | ||||
-rwxr-xr-x | usr/local/www/status_captiveportal.php | 7 | ||||
-rw-r--r-- | usr/local/www/widgets/widgets/captive_portal_status.widget.php | 7 | ||||
-rw-r--r-- | usr/local/www/wizards/openvpn_wizard.inc | 2 |
12 files changed, 51 insertions, 14 deletions
diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 30dec37..996cdeb 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -122,7 +122,7 @@ setTimeout('window.close();',5000) ; </HTML> EOD; - disconnect_client($_POST['logout_id']); + captiveportal_disconnect_client($_POST['logout_id']); exit; } else if ($clientmac && $radmac_enable && portal_mac_radius($clientmac,$clientip)) { /* radius functions handle everything so we exit here since we're done */ diff --git a/usr/local/pkg/carp_settings.xml b/usr/local/pkg/carp_settings.xml index 075a919..3365bba 100644 --- a/usr/local/pkg/carp_settings.xml +++ b/usr/local/pkg/carp_settings.xml @@ -99,6 +99,12 @@ <type>checkbox</type> </field> <field> + <fielddescr>Synchronize Certificates</fielddescr> + <fieldname>synchronizecerts</fieldname> + <description>When this option is enabled, this system will automatically sync the Certificate Authorities, Certificates, and Certificate Revocation Lists over to the other CARP host when changes are made.</description> + <type>checkbox</type> + </field> + <field> <fielddescr>Synchronize rules</fielddescr> <fieldname>synchronizerules</fieldname> <description>When this option is enabled, this system will automatically sync the firewall rules to the other CARP host when changes are made..</description> @@ -131,7 +137,7 @@ <field> <fielddescr>Synchronize OpenVPN</fielddescr> <fieldname>synchronizeopenvpn</fieldname> - <description>When this option is enabled, this system will automatically sync the OpenVPN configuration to the other CARP host when changes are made.</description> + <description>When this option is enabled, this system will automatically sync the OpenVPN configuration to the other CARP host when changes are made. Using this option implies "Synchronize Certificates" as they are required for OpenVPN.</description> <type>checkbox</type> </field> <field> diff --git a/usr/local/www/edit.php b/usr/local/www/edit.php index 3b94d69..942904a 100644 --- a/usr/local/www/edit.php +++ b/usr/local/www/edit.php @@ -29,6 +29,13 @@ pfSense_MODULE: shell */ +##|+PRIV +##|*IDENT=page-diagnostics-edit +##|*NAME=Diagnostics: Edit FIle +##|*DESCR=Allow access to the 'Diagnostics: Edit File' page. +##|*MATCH=edit.php* +##|-PRIV + $pgtitle = array(gettext("Diagnostics"), gettext("Edit file")); require("guiconfig.inc"); diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index e4cb57f..a8a6fe3 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -1343,7 +1343,10 @@ $i--): ?> $qselected = 1; echo " SELECTED"; } - echo ">{$q}</option>"; + if (isset($ifdisp[$q])) + echo ">{$ifdisp[$q]}</option>"; + else + echo ">{$q}</option>"; } ?> </select> / @@ -1361,7 +1364,10 @@ $i--): ?> $qselected = 1; echo " SELECTED"; } - echo ">{$q}</option>"; + if (isset($ifdisp[$q])) + echo ">{$ifdisp[$q]}</option>"; + else + echo ">{$q}</option>"; } ?> </select> diff --git a/usr/local/www/graph_cpu.php b/usr/local/www/graph_cpu.php index 3908153..9c6dbd7 100644 --- a/usr/local/www/graph_cpu.php +++ b/usr/local/www/graph_cpu.php @@ -39,6 +39,8 @@ ##|*MATCH=graph_cpu.php* ##|-PRIV +require_once("guiconfig.inc"); + header("Last-Modified: " . gmdate( "D, j M Y H:i:s" ) . " GMT" ); header("Expires: " . gmdate( "D, j M Y H:i:s", time() ) . " GMT" ); header("Cache-Control: no-store, no-cache, must-revalidate" ); // HTTP/1.1 diff --git a/usr/local/www/headjs.php b/usr/local/www/headjs.php index 063d9bc..eacaa23 100644 --- a/usr/local/www/headjs.php +++ b/usr/local/www/headjs.php @@ -34,6 +34,8 @@ ##|*MATCH=headjs.php* ##|-PRIV +require_once("guiconfig.inc"); + function getHeadJS() { global $_SERVER, $HTTP_SERVER_VARS, $g, $use_loader_tab_gif; @@ -163,4 +165,4 @@ function getHeadJS() { return $headjs; } -?>
\ No newline at end of file +?> diff --git a/usr/local/www/help.php b/usr/local/www/help.php index 59cc905..a89a551 100644 --- a/usr/local/www/help.php +++ b/usr/local/www/help.php @@ -4,6 +4,8 @@ * */ +require_once("guiconfig.inc"); + /* Define hash of jumpto url maps */ /* Links to categories could probably be more specific. */ diff --git a/usr/local/www/interfaces_lagg_edit.php b/usr/local/www/interfaces_lagg_edit.php index dc886e3..606d06b 100644 --- a/usr/local/www/interfaces_lagg_edit.php +++ b/usr/local/www/interfaces_lagg_edit.php @@ -93,6 +93,8 @@ if ($_POST) { $lagg['descr'] = $_POST['descr']; $lagg['laggif'] = $_POST['laggif']; $lagg['proto'] = $_POST['proto']; + if (isset($id) && $a_laggs[$id]) + $lagg['laggif'] = $a_laggs[$id]['laggif']; $lagg['laggif'] = interface_lagg_configure($lagg); if ($lagg['laggif'] == "" || !stristr($lagg['laggif'], "lagg")) diff --git a/usr/local/www/stats.php b/usr/local/www/stats.php index 54e5ef6..3ce8096 100644 --- a/usr/local/www/stats.php +++ b/usr/local/www/stats.php @@ -28,11 +28,19 @@ POSSIBILITY OF SUCH DAMAGE. */ -require("includes/functions.inc.php"); +##|+PRIV +##|*IDENT=page-diagnostics-cpuutilization +##|*NAME=Diagnostics: CPU Utilization page +##|*DESCR=Allow access to the 'Diagnostics: CPU Utilization' page. +##|*MATCH=stats.php* +##|-PRIV + +require_once("guiconfig.inc"); +require_once("includes/functions.inc.php"); $cpu = cpu_usage(); echo $cpu; exit; -?>
\ No newline at end of file +?> diff --git a/usr/local/www/status_captiveportal.php b/usr/local/www/status_captiveportal.php index 9560041..8913367 100755 --- a/usr/local/www/status_captiveportal.php +++ b/usr/local/www/status_captiveportal.php @@ -81,9 +81,10 @@ $concurrent = count($cpcontents); foreach ($cpcontents as $cpcontent) { $cpent = explode(",", $cpcontent); + $sessionid = $cpent[5]; if ($_GET['showact']) $cpent[5] = captiveportal_get_last_activity($cpent[2]); - $cpdb[] = $cpent; + $cpdb[$sessionid] = $cpent; } if ($_GET['order']) { if ($_GET['order'] == "ip") @@ -131,7 +132,7 @@ if ($_GET['order']) { <?php endif; ?> <td class="list sort_ignore"></td> </tr> -<?php foreach ($cpdb as $cpent): ?> +<?php foreach ($cpdb as $sid => $cpent): ?> <tr> <td class="listlr"><?=$cpent[2];?></td> <td class="listr"><?=$cpent[3];?> </td> @@ -141,7 +142,7 @@ if ($_GET['order']) { <td class="listr"><?php if ($cpent[5]) echo htmlspecialchars(date("m/d/Y H:i:s", $cpent[5]));?></td> <?php endif; ?> <td valign="middle" class="list" nowrap> - <a href="?order=<?=$_GET['order'];?>&showact=<?=htmlspecialchars($_GET['showact']);?>&act=del&id=<?=$cpent[1];?>" onclick="return confirm('<?=gettext("Do you really want to disconnect this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("Disconnect");?>"></a></td> + <a href="?order=<?=$_GET['order'];?>&showact=<?=htmlspecialchars($_GET['showact']);?>&act=del&id=<?=$sid;?>" onclick="return confirm('<?=gettext("Do you really want to disconnect this client?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" title="<?=gettext("Disconnect");?>"></a></td> </tr> <?php endforeach; ?> </table> diff --git a/usr/local/www/widgets/widgets/captive_portal_status.widget.php b/usr/local/www/widgets/widgets/captive_portal_status.widget.php index d240d69..829515f 100644 --- a/usr/local/www/widgets/widgets/captive_portal_status.widget.php +++ b/usr/local/www/widgets/widgets/captive_portal_status.widget.php @@ -68,9 +68,10 @@ $concurrent = count($cpcontents); foreach ($cpcontents as $cpcontent) { $cpent = explode(",", $cpcontent); + $sessionid = $cpent[5]; if ($_GET['showact']) $cpent[5] = captiveportal_get_last_activity($cpent[2]); - $cpdb[] = $cpent; + $cpdb[$sessionid] = $cpent; } if ($_GET['order']) { @@ -97,7 +98,7 @@ if ($_GET['order']) { <td class="listhdrr"><a href="?order=start&showact=<?=$_GET['showact'];?>"><?=gettext("Last activity");?></a></td> <?php endif; ?> </tr> -<?php foreach ($cpdb as $cpent): ?> +<?php foreach ($cpdb as $sid => $cpent): ?> <tr> <td class="listlr"><?=$cpent[2];?></td> <td class="listr"><?=$cpent[3];?> </td> @@ -107,7 +108,7 @@ if ($_GET['order']) { <td class="listr"><?php if ($cpent[5]) echo htmlspecialchars(date("m/d/Y H:i:s", $cpent[5]));?></td> <?php endif; ?> <td valign="middle" class="list" nowrap> - <a href="?order=<?=$_GET['order'];?>&showact=<?=$_GET['showact'];?>&act=del&id=<?=$cpent[1];?>" onclick="return confirm('Do you really want to disconnect this client?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> + <a href="?order=<?=$_GET['order'];?>&showact=<?=$_GET['showact'];?>&act=del&id=<?=$sid;?>" onclick="return confirm('Do you really want to disconnect this client?')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0"></a></td> </tr> <?php endforeach; ?> </table> diff --git a/usr/local/www/wizards/openvpn_wizard.inc b/usr/local/www/wizards/openvpn_wizard.inc index 5af4510..e48cfb3 100644 --- a/usr/local/www/wizards/openvpn_wizard.inc +++ b/usr/local/www/wizards/openvpn_wizard.inc @@ -603,7 +603,7 @@ function step12_submitphpaction() { $rule['destination']['network'] = $server['interface'] . "ip"; $rule['destination']['port'] = $server['local_port']; $rule['interface'] = $server['interface']; - $rule['protocol'] = $server['protocol']; + $rule['protocol'] = strtolower($server['protocol']); $rule['type'] = "pass"; $rule['enabled'] = "on"; $config['filter']['rule'][] = $rule; |