mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 01:54:49 +00:00
src: apply whitespace cleanups
This commit is contained in:
parent
6b1ca069c0
commit
5e9ab6d856
@ -3527,7 +3527,7 @@ function interface_6to4_configure($interface = "wan", $wancfg){
|
||||
mwexec("/sbin/route delete -host 192.88.99.1");
|
||||
mwexec("/sbin/route add -host 192.88.99.1 {$ip4gateway}");
|
||||
}
|
||||
|
||||
|
||||
if (!$g['booting'])
|
||||
link_interface_to_track6($interface, "update");
|
||||
|
||||
|
||||
@ -333,7 +333,7 @@ class Rules
|
||||
$this->rules[] = "add 65534 deny all from any to any";
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* load ruleset
|
||||
* @param string $filename target filename
|
||||
|
||||
@ -66,6 +66,3 @@ try:
|
||||
print ('response:%s'% sock.recv(4096))
|
||||
finally:
|
||||
sock.close()
|
||||
|
||||
|
||||
|
||||
|
||||
@ -30,4 +30,4 @@
|
||||
|
||||
|
||||
|
||||
"""
|
||||
"""
|
||||
|
||||
@ -119,4 +119,4 @@ class Config(object):
|
||||
# refresh config if source xml is changed
|
||||
self._load()
|
||||
|
||||
return self._config_data
|
||||
return self._config_data
|
||||
|
||||
@ -61,4 +61,4 @@ def execute(action,parameters):
|
||||
|
||||
return 'OK'
|
||||
|
||||
return 'ERR'
|
||||
return 'ERR'
|
||||
|
||||
@ -241,6 +241,3 @@ class Template(object):
|
||||
|
||||
|
||||
return result
|
||||
|
||||
|
||||
|
||||
|
||||
@ -1,2 +1,2 @@
|
||||
example_config.txt:/tmp/template_sample/test_[interfaces.%.if]_[version].conf
|
||||
example_simple_page.txt:/tmp/template_sample/simple_page.txt
|
||||
example_simple_page.txt:/tmp/template_sample/simple_page.txt
|
||||
|
||||
@ -16,4 +16,3 @@ For example, only use this interfaces data:
|
||||
{% endfor %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
@ -30,5 +30,3 @@ and a short list of firewall rules created (multiple rule items in filter sectio
|
||||
The full documentation for the template engine can be found at : http://jinja.pocoo.org/docs/dev/templates/
|
||||
|
||||
A sample with multiple output files ( for example based on interface ) can be found in the example_config.txt template
|
||||
|
||||
|
||||
|
||||
@ -218,22 +218,22 @@ jQuery(function ($) {
|
||||
|
||||
<div class="content-box">
|
||||
<header class="content-box-head container-fluid">
|
||||
<h3><?=gettext("Edit gateway group entry");?></h3>
|
||||
</header>
|
||||
<div class="content-box-main col-xs-12">
|
||||
<h3><?=gettext("Edit gateway group entry");?></h3>
|
||||
</header>
|
||||
<div class="content-box-main col-xs-12">
|
||||
|
||||
<form action="system_gateway_groups_edit.php" method="post" name="iform" id="iform">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped" summary="system groups edit">
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Group Name"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="name" type="text" class="formfld unknown" id="name" size="20" value="<?=htmlspecialchars($pconfig['name']);?>" />
|
||||
<br /> <span class="vexpl"><?=gettext("Group Name"); ?></span></td>
|
||||
</tr>
|
||||
<form action="system_gateway_groups_edit.php" method="post" name="iform" id="iform">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped" summary="system groups edit">
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Group Name"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<input name="name" type="text" class="formfld unknown" id="name" size="20" value="<?=htmlspecialchars($pconfig['name']);?>" />
|
||||
<br /> <span class="vexpl"><?=gettext("Group Name"); ?></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Gateway Priority"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<td width="22%" valign="top" class="vncellreq"><?=gettext("Gateway Priority"); ?></td>
|
||||
<td width="78%" class="vtable">
|
||||
<table border="0" cellpadding="6" cellspacing="0" summary="gateway priority">
|
||||
<tr>
|
||||
<td class="listhdrr">Gateway</td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user