Commit ad6ff294 authored by Ad Schellevis's avatar Ad Schellevis

fix inlcude phalcon script

parent 1ed14b29
......@@ -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);
<?php
require_once("script/load_falcon.php");
require_once("script/load_phalcon.php");
$cpc = new Captiveportal\CPClient();
//$cpc->portal_allow("test","10.211.55.101","00:1C:42:49:B7:B2","Fritsx");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment