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
1d0ae146
Commit
1d0ae146
authored
Apr 27, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
php: scrub dependencies for #915
parent
20cd1ce9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
26 deletions
+2
-26
Makefile
Makefile
+0
-2
rc.php_ini_setup
src/etc/rc.php_ini_setup
+2
-4
config.php
src/opnsense/mvc/app/config/config.php
+0
-7
services.php
src/opnsense/mvc/app/config/services.php
+0
-13
No files found.
Makefile
View file @
1d0ae146
...
...
@@ -129,8 +129,6 @@ CORE_DEPENDS?= apinger \
php56-ldap
\
php56-mcrypt
\
php56-openssl
\
php56-pdo
\
php56-pdo_sqlite
\
php56-session
\
php56-simplexml
\
php56-sockets
\
...
...
src/etc/rc.php_ini_setup
View file @
1d0ae146
...
...
@@ -26,7 +26,7 @@
# POSSIBILITY OF SUCH DAMAGE.
if
[
-d
/usr/local/lib/php/20151012
]
;
then
# PHP 7
# PHP 7
.0
EXTENSIONSDIR
=
"/usr/local/lib/php/20151012/"
elif
[
-d
/usr/local/lib/php/20131226
]
;
then
# PHP 5.6
...
...
@@ -56,9 +56,7 @@ PHPMODULES="$PHPMODULES suhosin"
PHPMODULES
=
"
$PHPMODULES
ctype"
# Page compression
PHPMODULES
=
"
$PHPMODULES
zlib"
# SQLlite & Database
PHPMODULES
=
"
$PHPMODULES
pdo"
PHPMODULES
=
"
$PHPMODULES
pdo_sqlite"
# Databases
PHPMODULES
=
"
$PHPMODULES
sqlite3"
# RADIUS
PHPMODULES
=
"
$PHPMODULES
radius"
...
...
src/opnsense/mvc/app/config/config.php
View file @
1d0ae146
<?php
return
new
\Phalcon\Config
(
array
(
'database'
=>
array
(
'adapter'
=>
'Mysql'
,
'host'
=>
'localhost'
,
'username'
=>
'root'
,
'password'
=>
''
,
'dbname'
=>
'test'
,
),
'application'
=>
array
(
'controllersDir'
=>
__DIR__
.
'/../../app/controllers/'
,
'modelsDir'
=>
__DIR__
.
'/../../app/models/'
,
...
...
src/opnsense/mvc/app/config/services.php
View file @
1d0ae146
...
...
@@ -3,7 +3,6 @@
use
Phalcon\DI\FactoryDefault
;
use
Phalcon\Mvc\View
;
use
Phalcon\Mvc\Url
as
UrlResolver
;
use
Phalcon\Db\Adapter\Pdo\Mysql
as
DbAdapter
;
use
Phalcon\Mvc\View\Engine\Volt
as
VoltEngine
;
use
Phalcon\Mvc\Model\Metadata\Memory
as
MetaDataAdapter
;
use
Phalcon\Session\Adapter\Files
as
SessionAdapter
;
...
...
@@ -51,18 +50,6 @@ $di->set('view', function () use ($config) {
return
$view
;
},
true
);
/**
* Database connection is created based in the parameters defined in the configuration file
*/
$di
->
set
(
'db'
,
function
()
use
(
$config
)
{
return
new
DbAdapter
(
array
(
'host'
=>
$config
->
database
->
host
,
'username'
=>
$config
->
database
->
username
,
'password'
=>
$config
->
database
->
password
,
'dbname'
=>
$config
->
database
->
dbname
));
});
/**
* If the configuration specify the use of metadata adapter use it or use memory otherwise
*/
...
...
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