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
ad6ff294
Commit
ad6ff294
authored
Dec 09, 2014
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix inlcude phalcon script
parent
1ed14b29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
load_falcon.php
src/opnsense/mvc/script/load_falcon.php
+5
-5
test.php
src/opnsense/mvc/script/test.php
+1
-1
No files found.
src/opnsense/mvc/script/load_falcon.php
View file @
ad6ff294
...
...
@@ -8,16 +8,16 @@ use Phalcon\DI\FactoryDefault;
use
Phalcon\Loader
;
$di
=
new
FactoryDefault
();
$config
=
include_once
(
__DIR__
.
"/../app/config/config.php"
);
$
phalcon_
config
=
include_once
(
__DIR__
.
"/../app/config/config.php"
);
$loader
=
new
Loader
();
$loader
->
registerDirs
(
array
(
$config
->
application
->
controllersDir
,
$config
->
application
->
modelsDir
$
phalcon_
config
->
application
->
controllersDir
,
$
phalcon_
config
->
application
->
modelsDir
)
)
->
register
();
$di
->
set
(
'config'
,
$config
);
$di
->
set
(
'config'
,
$
phalcon_
config
);
unset
(
$config
);
unset
(
$
phalcon_
config
);
src/opnsense/mvc/script/test.php
View file @
ad6ff294
<?php
require_once
(
"script/load_
f
alcon.php"
);
require_once
(
"script/load_
ph
alcon.php"
);
$cpc
=
new
Captiveportal\CPClient
();
//$cpc->portal_allow("test","10.211.55.101","00:1C:42:49:B7:B2","Fritsx");
...
...
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