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
d1233455
Commit
d1233455
authored
Jul 21, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) work in progress require/include cleanup
parent
6c3bf3bb
Changes
25
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
25 additions
and
12 deletions
+25
-12
index.php
src/captiveportal/index.php
+1
-0
certs.inc
src/etc/inc/certs.inc
+0
-2
interfaces.inc
src/etc/inc/interfaces.inc
+0
-1
ipsec.attributes.php
src/etc/inc/ipsec.attributes.php
+1
-0
miniupnpd.inc
src/etc/inc/miniupnpd.inc
+0
-1
openvpn.inc
src/etc/inc/openvpn.inc
+0
-1
unbound.inc
src/etc/inc/unbound.inc
+0
-1
util.inc
src/etc/inc/util.inc
+0
-1
rc.bootup
src/etc/rc.bootup
+1
-0
rc.carpbackup
src/etc/rc.carpbackup
+1
-0
rc.carpmaster
src/etc/rc.carpmaster
+1
-0
rc.filter_synchronize
src/etc/rc.filter_synchronize
+1
-0
rc.initial.banner
src/etc/rc.initial.banner
+1
-0
rc.initial.ping
src/etc/rc.initial.ping
+1
-0
rc.initial.setlanip
src/etc/rc.initial.setlanip
+7
-5
rc.linkup
src/etc/rc.linkup
+1
-0
rc.newwanip
src/etc/rc.newwanip
+1
-0
rc.newwanipv6
src/etc/rc.newwanipv6
+1
-0
rc.prunecaptiveportal
src/etc/rc.prunecaptiveportal
+1
-0
rc.reload_all
src/etc/rc.reload_all
+1
-0
rc.restart_webgui
src/etc/rc.restart_webgui
+1
-0
rc.sshd
src/etc/rc.sshd
+1
-0
rc.update_alias_url_data
src/etc/rc.update_alias_url_data
+1
-0
getstats.php
src/www/getstats.php
+1
-0
guiconfig.inc
src/www/guiconfig.inc
+1
-0
No files found.
src/captiveportal/index.php
View file @
d1233455
...
...
@@ -31,6 +31,7 @@ require_once("config.inc");
require_once
(
"auth.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"captiveportal.inc"
);
require_once
(
"util.inc"
);
$errormsg
=
"Invalid credentials specified."
;
...
...
src/etc/inc/certs.inc
View file @
d1233455
...
...
@@ -29,8 +29,6 @@
define
(
"OPEN_SSL_CONF_PATH"
,
"/etc/ssl/openssl.cnf"
);
require_once
(
"functions.inc"
);
global
$openssl_digest_algs
;
$openssl_digest_algs
=
array
(
"sha1"
,
"sha224"
,
"sha256"
,
"sha384"
,
"sha512"
);
...
...
src/etc/inc/interfaces.inc
View file @
d1233455
...
...
@@ -30,7 +30,6 @@
*/
require_once
(
"interfaces.lib.inc"
);
require_once
(
"util.inc"
);
require_once
(
"gwlb.inc"
);
require_once
(
'services.inc'
);
require_once
(
'openvpn.inc'
);
...
...
src/etc/inc/ipsec.attributes.php
View file @
d1233455
...
...
@@ -25,6 +25,7 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"util.inc"
);
if
(
empty
(
$common_name
))
{
$common_name
=
getenv
(
"common_name"
);
...
...
src/etc/inc/miniupnpd.inc
View file @
d1233455
<?php
require_once
(
"util.inc"
);
require_once
(
"functions.inc"
);
/* MiniUPnPd */
...
...
src/etc/inc/openvpn.inc
View file @
d1233455
...
...
@@ -30,7 +30,6 @@
*/
require_once
(
'pfsense-utils.inc'
);
require_once
(
'util.inc'
);
global
$openvpn_prots
;
$openvpn_prots
=
array
(
"UDP"
,
"UDP6"
,
"TCP"
,
"TCP6"
);
...
...
src/etc/inc/unbound.inc
View file @
d1233455
...
...
@@ -28,7 +28,6 @@
/* include all configuration functions */
require_once
(
"functions.inc"
);
require_once
(
"util.inc"
);
/* Optimize Unbound for environment */
function
unbound_optimization
()
{
...
...
src/etc/inc/util.inc
View file @
d1233455
...
...
@@ -25,7 +25,6 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"interfaces.inc"
);
require_once
(
"IPv6.inc"
);
function
killbyname
(
$procname
,
$sig
=
'TERM'
)
...
...
src/etc/rc.bootup
View file @
d1233455
...
...
@@ -120,6 +120,7 @@ require_once("config.console.inc");
echo
"."
;
require_once
(
"auth.inc"
);
echo
"."
;
require_once
(
"util.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"services.inc"
);
require_once
(
"pfsense-utils.inc"
);
...
...
src/etc/rc.carpbackup
View file @
d1233455
...
...
@@ -31,6 +31,7 @@ require_once("functions.inc");
require_once
(
"config.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"util.inc"
);
$argument
=
str_replace
(
"
\n
"
,
""
,
$argv
[
1
]);
if
(
!
strstr
(
$argument
,
"@"
))
...
...
src/etc/rc.carpmaster
View file @
d1233455
...
...
@@ -31,6 +31,7 @@ require_once("functions.inc");
require_once
(
"config.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"util.inc"
);
$argument
=
str_replace
(
"
\n
"
,
""
,
$argv
[
1
]);
if
(
!
strstr
(
$argument
,
"@"
))
...
...
src/etc/rc.filter_synchronize
View file @
d1233455
...
...
@@ -36,6 +36,7 @@ require_once("functions.inc");
require_once
(
"filter.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"XMLRPC_Client.inc"
)
;
require_once
(
"util.inc"
);
/*
* backup_vip_config_section($section): returns as an xml file string of
...
...
src/etc/rc.initial.banner
View file @
d1233455
...
...
@@ -32,6 +32,7 @@
require_once
(
"config.inc"
);
require_once
(
"gwlb.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"util.inc"
);
$version
=
strtok
(
file_get_contents
(
'/usr/local/opnsense/version/opnsense'
),
'-'
);
$hostname
=
$config
[
'system'
][
'hostname'
];
...
...
src/etc/rc.initial.ping
View file @
d1233455
...
...
@@ -30,6 +30,7 @@
/* parse the configuration and include all functions used below */
require_once
(
"config.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"util.inc"
);
$fp
=
fopen
(
'php://stdin'
,
'r'
);
...
...
src/etc/rc.initial.setlanip
View file @
d1233455
...
...
@@ -27,6 +27,13 @@
POSSIBILITY OF SUCH DAMAGE.
*/
/* parse the configuration and include all functions used below */
require_once
(
"config.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"rrd.inc"
);
require_once
(
"util.inc"
);
$options
=
getopt
(
"hn"
,
array
(
"dry-run"
,
"help"
));
if
(
isset
(
$options
[
"h"
])
||
isset
(
$options
[
"help"
]))
{
...
...
@@ -41,11 +48,6 @@ if ($dry_run) {
echo
"DRY RUN MODE IS ON
\n
"
;
}
/* parse the configuration and include all functions used below */
require_once
(
"config.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"rrd.inc"
);
function
console_prompt_for_yn
(
$prompt_text
)
{
global
$fp
;
...
...
src/etc/rc.linkup
View file @
d1233455
...
...
@@ -31,6 +31,7 @@
require_once
(
"config.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"util.inc"
);
function
handle_argument_group
(
$iface
,
$argument2
)
{
global
$config
;
...
...
src/etc/rc.newwanip
View file @
d1233455
...
...
@@ -36,6 +36,7 @@ require_once("ipsec.inc");
require_once
(
"vpn.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"rrd.inc"
);
require_once
(
"util.inc"
);
// Do not process while booting
if
(
file_exists
(
'/var/run/booting'
))
{
...
...
src/etc/rc.newwanipv6
View file @
d1233455
...
...
@@ -37,6 +37,7 @@ require_once("vpn.inc");
require_once
(
"openvpn.inc"
);
require_once
(
"services.inc"
);
require_once
(
"rrd.inc"
);
require_once
(
"util.inc"
);
/* Interface IP address has changed */
$argument
=
trim
(
$argv
[
1
],
"
\n\t
"
);
...
...
src/etc/rc.prunecaptiveportal
View file @
d1233455
...
...
@@ -31,6 +31,7 @@ require_once("config.inc");
require_once
(
"functions.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"captiveportal.inc"
);
require_once
(
"util.inc"
);
global
$g
;
global
$cpzone
;
...
...
src/etc/rc.reload_all
View file @
d1233455
...
...
@@ -33,6 +33,7 @@ require_once("filter.inc");
require_once
(
"ipsec.inc"
);
require_once
(
"vpn.inc"
);
require_once
(
"captiveportal.inc"
);
require_once
(
"util.inc"
);
log_error
(
"rc.reload_all: Reloading all configuration settings."
);
reload_all_sync
();
...
...
src/etc/rc.restart_webgui
View file @
d1233455
...
...
@@ -5,6 +5,7 @@ require_once('config.inc');
require_once
(
'functions.inc'
);
require_once
(
'captiveportal.inc'
);
require_once
(
'rrd.inc'
);
require_once
(
"util.inc"
);
if
(
count
(
$argv
)
>
1
&&
is_numeric
(
$argv
[
1
]))
{
// starting delayed.
...
...
src/etc/rc.sshd
View file @
d1233455
...
...
@@ -31,6 +31,7 @@
require_once
(
'config.inc'
);
require_once
(
'functions.inc'
);
require_once
(
"util.inc"
);
$bin_ssh_keygen
=
'/usr/local/bin/ssh-keygen'
;
$sbin_sshd
=
'/usr/local/sbin/sshd'
;
...
...
src/etc/rc.update_alias_url_data
View file @
d1233455
...
...
@@ -29,6 +29,7 @@
require_once
(
"config.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"util.inc"
);
function
update_alias_url_data
()
{
...
...
src/www/getstats.php
View file @
d1233455
...
...
@@ -33,6 +33,7 @@ header("Cache-Control: post-check=0, pre-check=0", FALSE );
header
(
"Pragma: no-cache"
);
// HTTP/1.0
require_once
(
"guiconfig.inc"
);
require_once
(
"system.inc"
);
include_once
(
"includes/functions.inc.php"
);
echo
get_stats
();
...
...
src/www/guiconfig.inc
View file @
d1233455
...
...
@@ -29,6 +29,7 @@
*/
require_once
(
"config.inc"
);
require_once
(
"csrf/csrf-magic.php"
);
require_once
(
"util.inc"
);
/* Include authentication routines */
/* THIS MUST BE ABOVE ALL OTHER CODE */
...
...
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