mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
src: coding style and whitespace cleanups
This commit is contained in:
parent
f31a12bf6a
commit
83e26cc536
@ -86,7 +86,7 @@ $di->set('config', $config);
|
||||
/**
|
||||
* Setup router
|
||||
*/
|
||||
$di->set('router', function() {
|
||||
$di->set('router', function () {
|
||||
|
||||
$router = new \Phalcon\Mvc\Router(false);
|
||||
|
||||
@ -102,9 +102,11 @@ $di->set('router', function() {
|
||||
|
||||
// probe registered modules and create a namespace map
|
||||
// for example, OPNsense\Core will be mapped at http(s):\\host\core\..
|
||||
// module names should be unique in the application, unless you want to overwrite functionality (check glob's sorting).
|
||||
// module names should be unique in the application, unless you want to
|
||||
// overwrite functionality (check glob's sorting).
|
||||
//
|
||||
// if the glob for probing the directories turns out to be too slow, we should consider some kind of caching here
|
||||
// if the glob for probing the directories turns out to be too slow,
|
||||
// we should consider some kind of caching here
|
||||
//
|
||||
$registered_modules = array();
|
||||
$controller_dir = __DIR__."/../controllers/";
|
||||
|
||||
@ -44,5 +44,4 @@ class ControllerBase extends Controller
|
||||
{
|
||||
$this->view->setTemplateBefore('default');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -40,6 +40,4 @@ class IndexController extends \OPNsense\Base\ControllerBase
|
||||
// $this->view->title = $this->request->getURI();
|
||||
// $this->view->pick('OPNsense/Sample/index');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -37,6 +37,4 @@ class IndexController extends \OPNsense\Base\IndexController
|
||||
{
|
||||
$this->view->pick('OPNsense/Core/index');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -38,5 +38,4 @@ class IndexController extends \OPNsense\Base\IndexController
|
||||
$this->view->title = $this->request->getURI();
|
||||
$this->view->pick('OPNsense/Sample/index');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -64,5 +64,4 @@ class PageController extends ControllerBase
|
||||
// "action" => "index"
|
||||
// ));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -35,11 +35,9 @@ namespace OPNsense\Base;
|
||||
|
||||
abstract class BaseModel
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$class_info = new \ReflectionClass($this);
|
||||
$class_info->getFileName();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,5 +35,4 @@ use OPNsense\Base\BaseModel;
|
||||
class Sample extends BaseModel
|
||||
{
|
||||
public $title = "123456";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -1 +1 @@
|
||||
Core index
|
||||
Core index
|
||||
|
||||
@ -4,4 +4,3 @@
|
||||
{% for item in items %}
|
||||
{{ partial('layout_partials/std_input_field',item) }}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
@ -83,7 +83,7 @@ $pagetitle = gentitle( $pgtitle );
|
||||
|
||||
|
||||
jQuery(function () {
|
||||
jQuery('[data-toggle="tooltip"]').tooltip()
|
||||
jQuery('[data-toggle="tooltip"]').tooltip()
|
||||
})
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
@ -180,7 +180,7 @@ function update_description() {
|
||||
<br />
|
||||
<?=gettext("Hold down CTRL (pc)/COMMAND (mac) key to select multiple items");?>
|
||||
</td>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
function selectAll() {
|
||||
|
||||
@ -118,7 +118,7 @@ include("head.inc");
|
||||
<td class="vtable">
|
||||
<input id='pfsyncenabled' type='checkbox' name='pfsyncenabled' value='on' <?php if ($pconfig['pfsyncenabled'] === "on") echo "checked='checked'"; ?> />
|
||||
pfsync transfers state insertion, update, and deletion messages between firewalls.<br/>
|
||||
Each firewall sends these messages out via multicast on a specified interface, using the PFSYNC protocol <a href="http://www.openbsd.org/faq/pf/carp.html" target="_blank">(IP Protocol 240)</a>.
|
||||
Each firewall sends these messages out via multicast on a specified interface, using the PFSYNC protocol <a href="http://www.openbsd.org/faq/pf/carp.html" target="_blank">(IP Protocol 240)</a>.
|
||||
<br/>It also listens on that interface for similar messages from other firewalls, and imports them into the local state table.
|
||||
<br/>This setting should be enabled on all members of a failover group.
|
||||
<div class="well well-sm" ><b>Clicking save will force a configuration sync if it is enabled! (see Configuration Synchronization Settings below)</b></div>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Translated default messages for bootstrap-select.
|
||||
* Locale: EU (Basque)
|
||||
* Region:
|
||||
* Region:
|
||||
*/
|
||||
(function ($) {
|
||||
$.fn.selectpicker.defaults = {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Translated default messages for bootstrap-select.
|
||||
* Locale: EU (Basque)
|
||||
* Region:
|
||||
* Region:
|
||||
*/
|
||||
(function ($) {
|
||||
$.fn.selectpicker.defaults = {
|
||||
|
||||
@ -254,4 +254,4 @@
|
||||
height: 100% !important;
|
||||
opacity: 0;
|
||||
}
|
||||
/*# sourceMappingURL=bootstrap-select.css.map */
|
||||
/*# sourceMappingURL=bootstrap-select.css.map */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user