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
bd224b4a
Commit
bd224b4a
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) remove parse_config in auth.inc and fix load order
parent
9fd5d603
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
5 additions
and
16 deletions
+5
-16
index.php
src/captiveportal/index.php
+1
-1
auth.inc
src/etc/inc/auth.inc
+0
-3
squid.auth-user.php
src/etc/inc/squid.auth-user.php
+1
-1
legacy.inc
src/etc/inc/xmlrpc/legacy.inc
+0
-8
captiveportal_gather_stats.php
src/sbin/captiveportal_gather_stats.php
+1
-0
diag_confbak.php
src/www/diag_confbak.php
+0
-1
xmlrpc.php
src/www/xmlrpc.php
+2
-2
No files found.
src/captiveportal/index.php
View file @
bd224b4a
...
...
@@ -27,8 +27,8 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"config.inc"
);
require_once
(
"auth.inc"
);
require_once
(
"config.lib.inc"
);
require_once
(
"functions.inc"
);
require_once
(
"captiveportal.inc"
);
...
...
src/etc/inc/auth.inc
View file @
bd224b4a
...
...
@@ -45,9 +45,6 @@ require_once("certs.inc");
require_once
(
"radius.inc"
);
$config
=
parse_config
();
//
// Will be changed to false if security checks fail
$security_passed
=
true
;
...
...
src/etc/inc/squid.auth-user.php
View file @
bd224b4a
...
...
@@ -28,7 +28,7 @@
*
*/
require_once
(
"config.
lib.
inc"
);
require_once
(
"config.inc"
);
require_once
(
"auth.inc"
);
openlog
(
"squid"
,
LOG_ODELAY
,
LOG_AUTH
);
...
...
src/etc/inc/xmlrpc/legacy.inc
View file @
bd224b4a
...
...
@@ -141,8 +141,6 @@ function array_merge_recursive_unique($array0, $array1) {
*/
function
get_notices_xmlrpc
(
$category
=
null
)
{
require_once
(
"notices.inc"
);
if
(
$category
==
null
)
{
return
get_notices
();
}
else
{
...
...
@@ -192,14 +190,12 @@ function interfaces_carp_configure_xmlrpc()
function
filter_configure_xmlrpc
()
{
global
$config
;
require_once
(
"config.inc"
);
require_once
(
"filter.inc"
);
require_once
(
"system.inc"
);
require_once
(
"gwlb.inc"
);
require_once
(
"vslb.inc"
);
require_once
(
"openvpn.inc"
);
require_once
(
"services.inc"
);
require_once
(
"auth.inc"
);
filter_configure
();
system_routing_configure
();
...
...
@@ -229,8 +225,6 @@ function filter_configure_xmlrpc()
function
merge_config_section_xmlrpc
(
$confData
)
{
global
$config
;
require_once
(
"config.inc"
);
$config_new
=
array_merge_recursive
(
$config
,
$confData
);
$config
=
$config_new
;
$mergedkeys
=
implode
(
","
,
array_keys
(
$confData
));
...
...
@@ -246,7 +240,6 @@ function merge_config_section_xmlrpc($confData)
function
restore_config_section_xmlrpc
(
$new_config
)
{
global
$config
;
require_once
(
"config.inc"
);
require_once
(
"interfaces.inc"
);
// TODO: initial cleanup operation performed, but a full rewrite is probably a better plan.
...
...
@@ -369,7 +362,6 @@ function restore_config_section_xmlrpc($new_config)
function
backup_config_section_xmlrpc
(
$sectionKeys
)
{
global
$config
;
require_once
(
"config.inc"
);
if
(
!
is_array
(
$sectionKeys
))
{
// single item
return
array_intersect_key
(
$config
,
array
(
$sectionKeys
=>
0
));
...
...
src/sbin/captiveportal_gather_stats.php
View file @
bd224b4a
...
...
@@ -28,6 +28,7 @@
*/
require_once
(
"functions.inc"
);
require_once
(
"config.inc"
);
require_once
(
"captiveportal.inc"
);
require_once
(
"util.inc"
);
...
...
src/www/diag_confbak.php
View file @
bd224b4a
...
...
@@ -28,7 +28,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
require_once
(
"config.lib.inc"
);
require_once
(
"guiconfig.inc"
);
// list backups
...
...
src/www/xmlrpc.php
View file @
bd224b4a
...
...
@@ -26,9 +26,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*
*/
require_once
(
"xmlrpc.inc"
);
require_once
(
"config.lib.inc"
);
require_once
(
"config.inc"
);
require_once
(
"auth.inc"
);
require_once
(
"xmlrpc.inc"
);
/**
* do a basic authentication, uses $_SERVER['HTTP_AUTHORIZATION'] to validate user.
...
...
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