Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
e17d4515
Commit
e17d4515
authored
May 31, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: more style fixes
parent
fff73b51
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
8 deletions
+49
-8
InterfaceField.php
...vc/app/models/OPNsense/Base/FieldTypes/InterfaceField.php
+2
-1
NetworkField.php
.../mvc/app/models/OPNsense/Base/FieldTypes/NetworkField.php
+0
-1
PortField.php
...nse/mvc/app/models/OPNsense/Base/FieldTypes/PortField.php
+47
-6
No files found.
src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/InterfaceField.php
View file @
e17d4515
...
...
@@ -101,7 +101,8 @@ class InterfaceField extends BaseField
}
/**
* set filters to use (in regex) per field, all tags are combined and cached for the next object using the same filters
* set filters to use (in regex) per field, all tags are combined
* and cached for the next object using the same filters
* @param $filters filters to use
*/
public
function
setFilters
(
$filters
)
...
...
src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/NetworkField.php
View file @
e17d4515
...
...
@@ -29,7 +29,6 @@
*/
namespace
OPNsense\Base\FieldTypes
;
use
OPNsense\Base\Validators\NetworkValidator
;
/**
...
...
src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/PortField.php
View file @
e17d4515
...
...
@@ -29,7 +29,6 @@
*/
namespace
OPNsense\Base\FieldTypes
;
use
Phalcon\Validation\Validator\InclusionIn
;
/**
...
...
@@ -43,11 +42,53 @@ class PortField extends BaseField
*/
protected
$internalIsContainer
=
false
;
private
static
$wellknownservices
=
array
(
'cvsup'
,
'domain'
,
'ftp'
,
'hbci'
,
'http'
,
'https'
,
'aol'
,
'auth'
,
'imap'
,
'imaps'
,
'ipsec-msft'
,
'isakmp'
,
'l2f'
,
'ldap'
,
'ms-streaming'
,
'afs3-fileserver'
,
'microsoft-ds'
,
'ms-wbt-server'
,
'wins'
,
'msnp'
,
'nntp'
,
'ntp'
,
'netbios-dgm'
,
'netbios-ns'
,
'netbios-ssn'
,
'openvpn'
,
'pop3'
,
'pop3s'
,
'pptp'
,
'radius'
,
'radius-acct'
,
'avt-profile-1'
,
'sip'
,
'smtp'
,
'igmpv3lite'
,
'urd'
,
'snmp'
,
'snmptrap'
,
'ssh'
,
'nat-stun-port'
,
'submission'
,
'teredo'
,
'telnet'
,
'tftp'
,
'rfb'
);
private
static
$wellknownservices
=
array
(
'cvsup'
,
'domain'
,
'ftp'
,
'hbci'
,
'http'
,
'https'
,
'aol'
,
'auth'
,
'imap'
,
'imaps'
,
'ipsec-msft'
,
'isakmp'
,
'l2f'
,
'ldap'
,
'ms-streaming'
,
'afs3-fileserver'
,
'microsoft-ds'
,
'ms-wbt-server'
,
'wins'
,
'msnp'
,
'nntp'
,
'ntp'
,
'netbios-dgm'
,
'netbios-ns'
,
'netbios-ssn'
,
'openvpn'
,
'pop3'
,
'pop3s'
,
'pptp'
,
'radius'
,
'radius-acct'
,
'avt-profile-1'
,
'sip'
,
'smtp'
,
'igmpv3lite'
,
'urd'
,
'snmp'
,
'snmptrap'
,
'ssh'
,
'nat-stun-port'
,
'submission'
,
'teredo'
,
'telnet'
,
'tftp'
,
'rfb'
);
/**
* @var array collected options
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment