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
e6ed2ac2
Commit
e6ed2ac2
authored
Jul 20, 2015
by
Ad Schellevis
Committed by
Franco Fichtner
Jul 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) restructure requires/includes, move globals.inc
parent
36437459
Changes
32
Hide whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
10 additions
and
50 deletions
+10
-50
auth.inc
src/etc/inc/auth.inc
+0
-3
authgui.inc
src/etc/inc/authgui.inc
+0
-1
config.inc
src/etc/inc/config.inc
+0
-1
interfaces.inc
src/etc/inc/interfaces.inc
+4
-10
ipsec.auth-user.php
src/etc/inc/ipsec.auth-user.php
+0
-1
notices.inc
src/etc/inc/notices.inc
+2
-5
openvpn-client-export.inc
src/etc/inc/openvpn-client-export.inc
+0
-1
openvpn.auth-user.php
src/etc/inc/openvpn.auth-user.php
+0
-1
openvpn.tls-verify.php
src/etc/inc/openvpn.tls-verify.php
+0
-1
rc.bootup
src/etc/rc.bootup
+0
-2
rc.filter_configure_xmlrpc
src/etc/rc.filter_configure_xmlrpc
+0
-1
rc.filter_synchronize
src/etc/rc.filter_synchronize
+0
-1
rc.kill_states
src/etc/rc.kill_states
+0
-1
rc.linkup
src/etc/rc.linkup
+0
-1
rc.newwanip
src/etc/rc.newwanip
+0
-1
rc.newwanipv6
src/etc/rc.newwanipv6
+0
-1
rc.php_test_run
src/etc/rc.php_test_run
+0
-1
rc.resolv_conf_generate
src/etc/rc.resolv_conf_generate
+0
-1
rc.sshd
src/etc/rc.sshd
+0
-1
gmirror_status_check.php
src/sbin/gmirror_status_check.php
+0
-1
carp_status.php
src/www/carp_status.php
+0
-1
fbegin.inc
src/www/fbegin.inc
+0
-1
graph.php
src/www/graph.php
+0
-1
services_dhcp_edit.php
src/www/services_dhcp_edit.php
+2
-3
services_dhcpv6_edit.php
src/www/services_dhcpv6_edit.php
+1
-2
status_filter_reload.php
src/www/status_filter_reload.php
+0
-1
status_rrd_graph_img.php
src/www/status_rrd_graph_img.php
+0
-1
system_gateways_edit.php
src/www/system_gateways_edit.php
+1
-0
vpn_openvpn_export.php
src/www/vpn_openvpn_export.php
+0
-1
vpn_openvpn_export_shared.php
src/www/vpn_openvpn_export_shared.php
+0
-1
captive_portal_status.widget.php
src/www/widgets/widgets/captive_portal_status.widget.php
+0
-1
wizard.php
src/www/wizard.php
+0
-1
No files found.
src/etc/inc/auth.inc
View file @
e6ed2ac2
...
...
@@ -36,9 +36,6 @@
* file courtesy of Michael Retterklieber.
*/
// previous in config.gui.inc
require_once
(
"globals.inc"
);
/* include globals from notices.inc /utility/XML parser files */
require_once
(
'config.lib.inc'
);
require_once
(
"util.inc"
);
...
...
src/etc/inc/authgui.inc
View file @
e6ed2ac2
...
...
@@ -33,7 +33,6 @@
require_once
(
"auth.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"globals.inc"
);
// provided via legacy_bindings.inc
global
$priv_list
;
...
...
src/etc/inc/config.inc
View file @
e6ed2ac2
...
...
@@ -44,7 +44,6 @@ require_once("util.inc");
require_once
(
"IPv6.inc"
);
require_once
(
"xmlparse.inc"
);
require_once
(
"crypt.inc"
);
require_once
(
"globals.inc"
);
$config
=
parse_config
();
...
...
src/etc/inc/interfaces.inc
View file @
e6ed2ac2
...
...
@@ -30,9 +30,12 @@
*/
require_once
(
"interfaces.lib.inc"
);
require_once
(
"globals.inc"
);
require_once
(
"util.inc"
);
require_once
(
"gwlb.inc"
);
require_once
(
'services.inc'
);
require_once
(
'openvpn.inc'
);
require_once
(
"services.inc"
);
/*
* converts a string like "a,b,c,d"
...
...
@@ -1346,8 +1349,6 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg =
}
if
(
!
empty
(
$track6
)
&&
is_array
(
$track6
))
{
if
(
!
function_exists
(
'services_dhcp_configure'
))
require_once
(
'services.inc'
);
/* Bring down radvd and dhcp6 on these interfaces */
services_dhcpd_configure
(
'inet6'
,
$track6
);
}
...
...
@@ -2839,8 +2840,6 @@ function interface_virtual_create($interface) {
if
(
is_array
(
$config
[
'openvpn'
])
&&
is_array
(
$config
[
'openvpn'
][
'openvpn-server'
]))
{
foreach
(
$config
[
'openvpn'
][
'openvpn-server'
]
as
$server
)
{
if
(
$interface
==
"ovpns
{
$server
[
'vpnid'
]
}
"
)
{
if
(
!
function_exists
(
'openvpn_resync'
))
require_once
(
'openvpn.inc'
);
log_error
(
"OpenVPN: Resync server
{
$server
[
'description'
]
}
"
);
openvpn_resync
(
'server'
,
$server
);
}
...
...
@@ -2851,8 +2850,6 @@ function interface_virtual_create($interface) {
if
(
is_array
(
$config
[
'openvpn'
])
&&
is_array
(
$config
[
'openvpn'
][
'openvpn-client'
]))
{
foreach
(
$config
[
'openvpn'
][
'openvpn-client'
]
as
$client
)
{
if
(
$interface
==
"ovpnc
{
$client
[
'vpnid'
]
}
"
)
{
if
(
!
function_exists
(
'openvpn_resync'
))
require_once
(
'openvpn.inc'
);
log_error
(
"OpenVPN: Resync server
{
$client
[
'description'
]
}
"
);
openvpn_resync
(
'client'
,
$client
);
}
...
...
@@ -3219,9 +3216,6 @@ function interface_track6_configure($interface = 'lan', $wancfg, $linkupevent =
}
if
(
!
file_exists
(
"/var/run/booting"
)
&&
$linkupevent
==
false
)
{
if
(
!
function_exists
(
'services_dhcpd_configure'
))
require_once
(
"services.inc"
);
services_dhcpd_configure
(
"inet6"
);
}
...
...
src/etc/inc/ipsec.auth-user.php
View file @
e6ed2ac2
...
...
@@ -34,7 +34,6 @@
* in our config.xml file and check the credentials.
*/
require_once
(
"globals.inc"
);
require_once
(
"config.inc"
);
require_once
(
"radius.inc"
);
require_once
(
"auth.inc"
);
...
...
src/etc/inc/notices.inc
View file @
e6ed2ac2
...
...
@@ -28,7 +28,6 @@
*
*/
require_once
(
"globals.inc"
);
require_once
(
"led.inc"
);
require_once
(
"util.inc"
);
require_once
(
"notices.growl.class"
);
...
...
@@ -90,8 +89,6 @@ function file_notice($id, $notice, $category = "General", $url = "", $priority =
******/
function
get_notices
(
$category
=
'all'
)
{
global
$g
;
if
(
file_exists
(
'/tmp/notices'
))
{
$queue
=
unserialize
(
file_get_contents
(
'/tmp/notices'
));
if
(
!
$queue
)
return
false
;
...
...
@@ -218,7 +215,7 @@ function are_notices_pending($category = 'all')
* returns true if message was sent
******/
function
notify_via_smtp
(
$message
,
$force
=
false
)
{
global
$config
,
$g
;
global
$config
;
if
(
file_exists
(
"/var/run/booting"
))
return
;
...
...
@@ -242,7 +239,7 @@ function notify_via_smtp($message, $force = false) {
}
function
send_smtp_message
(
$message
,
$subject
=
"(no subject)"
)
{
global
$config
,
$g
;
global
$config
;
if
(
!
$config
[
'notifications'
][
'smtp'
][
'ipaddress'
])
return
;
...
...
src/etc/inc/openvpn-client-export.inc
View file @
e6ed2ac2
...
...
@@ -29,7 +29,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"globals.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"util.inc"
);
...
...
src/etc/inc/openvpn.auth-user.php
View file @
e6ed2ac2
...
...
@@ -34,7 +34,6 @@
* in our config.xml file and check the credentials.
*/
require_once
(
"globals.inc"
);
require_once
(
"config.inc"
);
require_once
(
"radius.inc"
);
require_once
(
"auth.inc"
);
...
...
src/etc/inc/openvpn.tls-verify.php
View file @
e6ed2ac2
...
...
@@ -35,7 +35,6 @@
* intermediates.
*/
require_once
(
"globals.inc"
);
require_once
(
"config.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/etc/rc.bootup
View file @
e6ed2ac2
...
...
@@ -103,8 +103,6 @@ echo " done.\n";
echo
"Initializing..."
;
echo
"."
;
require_once
(
"globals.inc"
);
echo
"."
;
require_once
(
"led.inc"
);
led_normalize
();
echo
"."
;
...
...
src/etc/rc.filter_configure_xmlrpc
View file @
e6ed2ac2
...
...
@@ -32,7 +32,6 @@
*/
require_once
(
"globals.inc"
);
require_once
(
"config.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"filter.inc"
);
...
...
src/etc/rc.filter_synchronize
View file @
e6ed2ac2
...
...
@@ -31,7 +31,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"globals.inc"
);
require_once
(
"config.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"filter.inc"
);
...
...
src/etc/rc.kill_states
View file @
e6ed2ac2
...
...
@@ -27,7 +27,6 @@
*/
/* parse the configuration and include all functions used below */
require_once
(
"globals.inc"
);
require_once
(
"config.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"util.inc"
);
...
...
src/etc/rc.linkup
View file @
e6ed2ac2
...
...
@@ -28,7 +28,6 @@
*/
/* parse the configuration and include all functions used below */
require_once
(
"globals.inc"
);
require_once
(
"config.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"interfaces.inc"
);
...
...
src/etc/rc.newwanip
View file @
e6ed2ac2
...
...
@@ -29,7 +29,6 @@
*/
/* parse the configuration and include all functions used below */
require_once
(
"globals.inc"
);
require_once
(
"config.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"filter.inc"
);
...
...
src/etc/rc.newwanipv6
View file @
e6ed2ac2
...
...
@@ -29,7 +29,6 @@
*/
/* parse the configuration and include all functions used below */
require_once
(
"globals.inc"
);
require_once
(
"config.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"filter.inc"
);
...
...
src/etc/rc.php_test_run
View file @
e6ed2ac2
...
...
@@ -7,7 +7,6 @@
small tests to ensure the php environment is sane.
*/
require_once
(
'globals.inc'
);
require_once
(
'util.inc'
);
require_once
(
'xmlparse.inc'
);
require_once
(
'config.lib.inc'
);
...
...
src/etc/rc.resolv_conf_generate
View file @
e6ed2ac2
...
...
@@ -27,7 +27,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"globals.inc"
);
require_once
(
"config.inc"
);
require_once
(
"functions.inc"
);
...
...
src/etc/rc.sshd
View file @
e6ed2ac2
...
...
@@ -29,7 +29,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
'globals.inc'
);
require_once
(
'config.inc'
);
require_once
(
'functions.inc'
);
...
...
src/sbin/gmirror_status_check.php
View file @
e6ed2ac2
...
...
@@ -27,7 +27,6 @@
*/
require_once
(
"config.inc"
);
require_once
(
"globals.inc"
);
require_once
(
"gmirror.inc"
);
global
$g
;
...
...
src/www/carp_status.php
View file @
e6ed2ac2
...
...
@@ -28,7 +28,6 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"globals.inc"
);
function
interfaces_carp_set_maintenancemode
(
$carp_maintenancemode
){
global
$config
;
...
...
src/www/fbegin.inc
View file @
e6ed2ac2
...
...
@@ -28,7 +28,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"globals.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"shortcuts.inc"
);
require_once
(
"services.inc"
);
...
...
src/www/graph.php
View file @
e6ed2ac2
...
...
@@ -28,7 +28,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"globals.inc"
);
require_once
(
"guiconfig.inc"
);
header
(
"Last-Modified: "
.
gmdate
(
"D, j M Y H:i:s"
)
.
" GMT"
);
...
...
src/www/services_dhcp_edit.php
View file @
e6ed2ac2
...
...
@@ -27,6 +27,8 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"guiconfig.inc"
);
function
staticmapcmp
(
$a
,
$b
)
{
return
ipcmp
(
$a
[
'ipaddr'
],
$b
[
'ipaddr'
]);
}
...
...
@@ -37,9 +39,6 @@ function staticmaps_sort($ifgui) {
usort
(
$config
[
'dhcpd'
][
$ifgui
][
'staticmap'
],
"staticmapcmp"
);
}
require_once
(
'globals.inc'
);
require_once
(
"guiconfig.inc"
);
$referer
=
(
isset
(
$_SERVER
[
'HTTP_REFERER'
])
?
$_SERVER
[
'HTTP_REFERER'
]
:
'/services_dhcp.php'
);
$if
=
$_GET
[
'if'
];
...
...
src/www/services_dhcpv6_edit.php
View file @
e6ed2ac2
...
...
@@ -27,6 +27,7 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"guiconfig.inc"
);
function
staticmapcmp
(
$a
,
$b
)
{
return
ipcmp
(
$a
[
'ipaddrv6'
],
$b
[
'ipaddrv6'
]);
...
...
@@ -38,8 +39,6 @@ function staticmaps_sort($ifgui) {
usort
(
$config
[
'dhcpdv6'
][
$ifgui
][
'staticmap'
],
"staticmapcmp"
);
}
require_once
(
'globals.inc'
);
require_once
(
"guiconfig.inc"
);
$referer
=
(
isset
(
$_SERVER
[
'HTTP_REFERER'
])
?
$_SERVER
[
'HTTP_REFERER'
]
:
'/services_dhcpv6.php'
);
...
...
src/www/status_filter_reload.php
View file @
e6ed2ac2
...
...
@@ -26,7 +26,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"globals.inc"
);
require_once
(
"guiconfig.inc"
);
require_once
(
"functions.inc"
);
...
...
src/www/status_rrd_graph_img.php
View file @
e6ed2ac2
...
...
@@ -27,7 +27,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"globals.inc"
);
require_once
(
"guiconfig.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"rrd.inc"
);
...
...
src/www/system_gateways_edit.php
View file @
e6ed2ac2
...
...
@@ -27,6 +27,7 @@
*/
require_once
(
"guiconfig.inc"
);
require_once
(
"gwlb.inc"
);
$referer
=
(
isset
(
$_SERVER
[
'HTTP_REFERER'
])
?
$_SERVER
[
'HTTP_REFERER'
]
:
'/system_gateways.php'
);
...
...
src/www/vpn_openvpn_export.php
View file @
e6ed2ac2
...
...
@@ -30,7 +30,6 @@
DISABLE_PHP_LINT_CHECKING
*/
require_once
(
"globals.inc"
);
require_once
(
"guiconfig.inc"
);
require
(
"openvpn-client-export.inc"
);
...
...
src/www/vpn_openvpn_export_shared.php
View file @
e6ed2ac2
...
...
@@ -27,7 +27,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"globals.inc"
);
require_once
(
"guiconfig.inc"
);
require_once
(
"openvpn-client-export.inc"
);
...
...
src/www/widgets/widgets/captive_portal_status.widget.php
View file @
e6ed2ac2
...
...
@@ -30,7 +30,6 @@
$nocsrf
=
true
;
require_once
(
"globals.inc"
);
require_once
(
"guiconfig.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"functions.inc"
);
...
...
src/www/wizard.php
View file @
e6ed2ac2
...
...
@@ -28,7 +28,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"globals.inc"
);
require_once
(
"guiconfig.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"filter.inc"
);
...
...
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