mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
src: small style update
This commit is contained in:
parent
622a3038ce
commit
cf609e2e6a
@ -70,7 +70,7 @@ function get_vip_config_section(): array
|
||||
* @param boolean $debug enable debug output
|
||||
* @return boolean
|
||||
*/
|
||||
function carp_check_version($url, $username, $password, $debug=false)
|
||||
function carp_check_version($url, $username, $password, $debug = false)
|
||||
{
|
||||
$client = new SimpleXMLRPC_Client($url, 240);
|
||||
$client->debug = $debug;
|
||||
|
||||
@ -39,7 +39,7 @@ require_once 'auth.inc';
|
||||
/**
|
||||
* retrieve config property by path (e.g. system.firmware), return simple type or json
|
||||
*/
|
||||
function get_config_prop($path, $cnf=null)
|
||||
function get_config_prop($path, $cnf = null)
|
||||
{
|
||||
global $config;
|
||||
$cnf = $cnf === null ? $config : $cnf;
|
||||
|
||||
@ -303,7 +303,7 @@ function get_std_save_message($plain = false)
|
||||
}
|
||||
}
|
||||
|
||||
function get_specialnets($only_enabled=false)
|
||||
function get_specialnets($only_enabled = false)
|
||||
{
|
||||
$specialnets = array();
|
||||
$specialnets["any"] = gettext("any");
|
||||
@ -411,7 +411,7 @@ function address_to_pconfig($adr, &$padr, &$pmask, &$pnot, &$pbeginport, &$pendp
|
||||
}
|
||||
}
|
||||
|
||||
function pconfig_to_address(&$adr, $padr, $pmask, $pnot=false, $pbeginport=0, $pendport=0)
|
||||
function pconfig_to_address(&$adr, $padr, $pmask, $pnot = false, $pbeginport = 0, $pendport = 0)
|
||||
{
|
||||
$adr = array();
|
||||
if ($padr == "any") {
|
||||
|
||||
@ -36,7 +36,7 @@ require_once("interfaces.inc");
|
||||
* @param null $selected_id selected item index
|
||||
* @return array
|
||||
*/
|
||||
function available_interfaces($selected_id=null)
|
||||
function available_interfaces($selected_id = null)
|
||||
{
|
||||
global $config;
|
||||
// configured interfaces
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
require_once("guiconfig.inc");
|
||||
require_once("XMLRPC_Client.inc") ;
|
||||
|
||||
function xmlrpc_exec($method, $params=array(), $debug=false)
|
||||
function xmlrpc_exec($method, $params = [], $debug = false)
|
||||
{
|
||||
global $config;
|
||||
$synchronizeto = null;
|
||||
|
||||
@ -87,7 +87,7 @@ include("head.inc");
|
||||
</th>
|
||||
<?php
|
||||
if (!isset($first_row)):
|
||||
$first_row=false; ?>
|
||||
$first_row = false; ?>
|
||||
<th id="collapse_all" style="cursor: pointer; padding-left: .5em; padding-right: .5em" data-toggle="tooltip" title="<?= gettext("collapse/expand all") ?>">
|
||||
<div class="pull-right">
|
||||
<i class="fa fa-expand"></i>
|
||||
|
||||
@ -40,7 +40,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
} elseif (isset($_GET['dup']) && isset($a_gateway_groups[$_GET['dup']])) {
|
||||
$configId = $_GET['dup'];
|
||||
}
|
||||
$pconfig=array();
|
||||
$pconfig = [];
|
||||
if (isset($configId)) {
|
||||
$pconfig['name'] = $a_gateway_groups[$configId]['name'];
|
||||
$pconfig['item'] = &$a_gateway_groups[$configId]['item'];
|
||||
|
||||
@ -486,7 +486,7 @@ $( document ).ready(function() {
|
||||
event.preventDefault();
|
||||
const url="system_usermanager_import_ldap.php";
|
||||
var oWin = window.open(url,"OPNsense","width=620,height=400,top=150,left=150,scrollbars=yes");
|
||||
if (oWin==null || typeof(oWin)=="undefined") {
|
||||
if (oWin == null || typeof(oWin) == "undefined") {
|
||||
alert("<?= html_safe(gettext('Popup blocker detected. Action aborted.')) ?>");
|
||||
}
|
||||
});
|
||||
|
||||
@ -391,7 +391,7 @@ $( document ).ready(function() {
|
||||
</td>
|
||||
<td class="hidden-xs">
|
||||
<?=empty($ph1ent['protocol']) || $ph1ent['protocol'] == "inet" ? "IPv4" : "IPv6"; ?>
|
||||
<?php $ph1ent_type=array("ikev1" => "IKE", "ikev2" => "IKEv2", "ike" => "auto"); ?>
|
||||
<?php $ph1ent_type = array('ikev1' => 'IKE', 'ikev2' => 'IKEv2', 'ike' => 'auto'); ?>
|
||||
<?=!empty($ph1ent['iketype']) && isset($ph1ent_type[$ph1ent['iketype']]) ? $ph1ent_type[$ph1ent['iketype']] :"" ;?>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@ -148,7 +148,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
|
||||
/* mobile client */
|
||||
if (isset($_GET['mobile'])) {
|
||||
$pconfig['mobile']=true;
|
||||
$pconfig['mobile'] = true;
|
||||
}
|
||||
// init empty
|
||||
foreach (explode(",", $phase1_fields) as $fieldname) {
|
||||
|
||||
@ -191,7 +191,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
|
||||
/* mobile client */
|
||||
if (isset($_GET['mobile'])) {
|
||||
$pconfig['mobile']=true;
|
||||
$pconfig['mobile'] = true;
|
||||
}
|
||||
// init empty
|
||||
foreach (explode(",", $phase2_fields) as $fieldname) {
|
||||
|
||||
@ -39,9 +39,9 @@ $all_form_fields = "custom_options,disable,common_name,block,description
|
||||
,wins_server2,ovpn_servers";
|
||||
|
||||
$a_csc = &config_read_array('openvpn', 'openvpn-csc');
|
||||
|
||||
$vpnid = 0;
|
||||
$act=null;
|
||||
$act = null;
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$pconfig = array();
|
||||
if (isset($_GET['dup']) && isset($a_csc[$_GET['dup']])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user