Commit 146783b0 authored by Marius Cramer's avatar Marius Cramer

Changed all windows line breaks to unix line breaks (coding guidelines!)

parent 33bcd006
...@@ -5,12 +5,12 @@ dnsserver=mydns ...@@ -5,12 +5,12 @@ dnsserver=mydns
[server] [server]
auto_network_configuration=n auto_network_configuration=n
ip_address=0.0.0.0 ip_address=0.0.0.0
netmask=255.255.255.0 netmask=255.255.255.0
gateway=0.0.0.0 gateway=0.0.0.0
hostname=server1.domain.tld hostname=server1.domain.tld
nameservers=8.8.8.8,8.8.4.4 nameservers=8.8.8.8,8.8.4.4
firewall=bastille firewall=bastille
loglevel=2 loglevel=2
admin_notify_events=1 admin_notify_events=1
...@@ -51,12 +51,12 @@ getmail_config_dir=/etc/getmail ...@@ -51,12 +51,12 @@ getmail_config_dir=/etc/getmail
[web] [web]
server_type=apache server_type=apache
website_basedir=/var/www website_basedir=/var/www
website_path=/var/www/clients/client[client_id]/web[website_id] website_path=/var/www/clients/client[client_id]/web[website_id]
website_symlinks=/var/www/[website_domain]/:/var/www/clients/client[client_id]/[website_domain]/ website_symlinks=/var/www/[website_domain]/:/var/www/clients/client[client_id]/[website_domain]/
website_symlinks_rel=n website_symlinks_rel=n
vhost_conf_dir=/etc/apache2/sites-available vhost_conf_dir=/etc/apache2/sites-available
vhost_conf_enabled_dir=/etc/apache2/sites-enabled vhost_conf_enabled_dir=/etc/apache2/sites-enabled
nginx_vhost_conf_dir=/etc/nginx/sites-available nginx_vhost_conf_dir=/etc/nginx/sites-available
nginx_vhost_conf_enabled_dir=/etc/nginx/sites-enabled nginx_vhost_conf_enabled_dir=/etc/nginx/sites-enabled
security_level=20 security_level=20
user=www-data user=www-data
......
<?php <?php
/* /*
Copyright (c) 2012, ISPConfig UG Copyright (c) 2012, ISPConfig UG
Contributors: web wack creations, http://www.web-wack.at Contributors: web wack creations, http://www.web-wack.at
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met: are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, * Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer. this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, * Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution. and/or other materials provided with the distribution.
* Neither the name of ISPConfig nor the names of its contributors * Neither the name of ISPConfig nor the names of its contributors
may be used to endorse or promote products derived from this software without may be used to endorse or promote products derived from this software without
specific prior written permission. specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
// Constants describing instances // Constants describing instances
define('INSTANCE_PENDING', 0); define('INSTANCE_PENDING', 0);
define('INSTANCE_INSTALL', 1); define('INSTANCE_INSTALL', 1);
define('INSTANCE_ERROR', 2); define('INSTANCE_ERROR', 2);
define('INSTANCE_SUCCESS', 3); define('INSTANCE_SUCCESS', 3);
define('INSTANCE_REMOVE', 4); define('INSTANCE_REMOVE', 4);
// Constants describing packages // Constants describing packages
define('PACKAGE_LOCKED', 1); define('PACKAGE_LOCKED', 1);
define('PACKAGE_ENABLED', 2); define('PACKAGE_ENABLED', 2);
define('PACKAGE_OUTDATED', 3); define('PACKAGE_OUTDATED', 3);
define('PACKAGE_ERROR_NOMETA', 4); define('PACKAGE_ERROR_NOMETA', 4);
class ApsBase class ApsBase
{ {
protected $log_prefix = ''; protected $log_prefix = '';
protected $fetch_url = ''; protected $fetch_url = '';
protected $aps_version = ''; protected $aps_version = '';
protected $packages_dir = ''; protected $packages_dir = '';
protected $temp_pkg_dir = ''; protected $temp_pkg_dir = '';
protected $interface_pkg_dir = ''; protected $interface_pkg_dir = '';
protected $interface_mode = false; // server mode by default protected $interface_mode = false; // server mode by default
/** /**
* Constructor * Constructor
* *
* @param $app the application instance (db handle + log method) * @param $app the application instance (db handle + log method)
* @param $interface_mode act in interface (true) or server mode (false) * @param $interface_mode act in interface (true) or server mode (false)
* @param $log_prefix a prefix to set before all log entries * @param $log_prefix a prefix to set before all log entries
*/ */
public function __construct($app, $log_prefix = 'APS: ', $interface_mode = false) public function __construct($app, $log_prefix = 'APS: ', $interface_mode = false)
{ {
$this->log_prefix = $log_prefix; $this->log_prefix = $log_prefix;
$this->interface_mode = $interface_mode; $this->interface_mode = $interface_mode;
$this->fetch_url = 'apscatalog.com'; $this->fetch_url = 'apscatalog.com';
$this->aps_version = '1'; $this->aps_version = '1';
$this->packages_dir = ISPC_ROOT_PATH.'/aps_packages'; $this->packages_dir = ISPC_ROOT_PATH.'/aps_packages';
$this->interface_pkg_dir = ISPC_ROOT_PATH.'/web/sites/aps_meta_packages'; $this->interface_pkg_dir = ISPC_ROOT_PATH.'/web/sites/aps_meta_packages';
} }
/** /**
* Converts a given value to it's native representation in 1024 units * Converts a given value to it's native representation in 1024 units
* *
* @param $value the size to convert * @param $value the size to convert
* @return integer and string * @return integer and string
*/ */
public function convertSize($value) public function convertSize($value)
{ {
$unit = array('Bytes', 'KB', 'MB', 'GB', 'TB'); $unit = array('Bytes', 'KB', 'MB', 'GB', 'TB');
return @round($value/pow(1024, ($i = floor(log($value, 1024)))), 2).' '.$unit[$i]; return @round($value/pow(1024, ($i = floor(log($value, 1024)))), 2).' '.$unit[$i];
} }
/** /**
* Determine a specific xpath from a given SimpleXMLElement handle. If the * Determine a specific xpath from a given SimpleXMLElement handle. If the
* element is found, it's string representation is returned. If not, * element is found, it's string representation is returned. If not,
* the return value will stay empty * the return value will stay empty
* *
* @param $xml_handle the SimpleXMLElement handle * @param $xml_handle the SimpleXMLElement handle
* @param $query the XPath query * @param $query the XPath query
* @param $array define whether to return an array or a string * @param $array define whether to return an array or a string
* @return $ret the return string * @return $ret the return string
*/ */
protected function getXPathValue($xml_handle, $query, $array = false) protected function getXPathValue($xml_handle, $query, $array = false)
{ {
$ret = ''; $ret = '';
$xp_result = @($xml_handle->xpath($query)) ? $xml_handle->xpath($query) : false; $xp_result = @($xml_handle->xpath($query)) ? $xml_handle->xpath($query) : false;
if($xp_result !== false) $ret = (($array === false) ? (string)$xp_result[0] : $xp_result); if($xp_result !== false) $ret = (($array === false) ? (string)$xp_result[0] : $xp_result);
return $ret; return $ret;
} }
} }
?> ?>
\ No newline at end of file
This diff is collapsed.
...@@ -885,45 +885,45 @@ class tform { ...@@ -885,45 +885,45 @@ class tform {
$this->errorMessage .= $this->wordbook[$errmsg]."<br />\r\n"; $this->errorMessage .= $this->wordbook[$errmsg]."<br />\r\n";
} else { } else {
$this->errorMessage .= $errmsg."<br />\r\n"; $this->errorMessage .= $errmsg."<br />\r\n";
} }
} }
break; break;
/* /*
case 'ISV6PREFIX': case 'ISV6PREFIX':
$v6_prefix_ok = 0; $v6_prefix_ok = 0;
$explode_field_value = explode(':',$field_value); $explode_field_value = explode(':',$field_value);
if ($explode_field_value[count($explode_field_value)-1]=='' && $explode_field_value[count($explode_field_value)-2]=='' ){ if ($explode_field_value[count($explode_field_value)-1]=='' && $explode_field_value[count($explode_field_value)-2]=='' ){
if ( count($explode_field_value) <= 9 ) { if ( count($explode_field_value) <= 9 ) {
if(filter_var(substr($field_value,0,strlen($field_value)-2),FILTER_VALIDATE_IP,FILTER_FLAG_IPV6) or filter_var(substr($field_value,0,strlen($field_value)-2).'::0',FILTER_VALIDATE_IP,FILTER_FLAG_IPV6) or filter_var(substr($field_value,0,strlen($field_value)-2).':0',FILTER_VALIDATE_IP,FILTER_FLAG_IPV6) ) { if(filter_var(substr($field_value,0,strlen($field_value)-2),FILTER_VALIDATE_IP,FILTER_FLAG_IPV6) or filter_var(substr($field_value,0,strlen($field_value)-2).'::0',FILTER_VALIDATE_IP,FILTER_FLAG_IPV6) or filter_var(substr($field_value,0,strlen($field_value)-2).':0',FILTER_VALIDATE_IP,FILTER_FLAG_IPV6) ) {
$v6_prefix_ok = 1; $v6_prefix_ok = 1;
} }
} }
} else { } else {
$v6_prefix_ok = 2; $v6_prefix_ok = 2;
} }
// check subnet against defined server-ipv6 // check subnet against defined server-ipv6
$sql_v6 = $app->db->queryOneRecord("SELECT ip_address FROM server_ip WHERE ip_type = 'IPv6' AND virtualhost = 'y' LIMIT 0,1"); $sql_v6 = $app->db->queryOneRecord("SELECT ip_address FROM server_ip WHERE ip_type = 'IPv6' AND virtualhost = 'y' LIMIT 0,1");
$sql_v6_explode=explode(':',$sql_v6['ip_address']); $sql_v6_explode=explode(':',$sql_v6['ip_address']);
if ( count($sql_v6_explode) < count($explode_field_value) && isset($sql_v6['ip_address']) ) { if ( count($sql_v6_explode) < count($explode_field_value) && isset($sql_v6['ip_address']) ) {
$v6_prefix_ok = 3; $v6_prefix_ok = 3;
} }
if($v6_prefix_ok == 0) { if($v6_prefix_ok == 0) {
$errmsg = $validator['errmsg']; $errmsg = $validator['errmsg'];
} }
if($v6_prefix_ok == 2) { if($v6_prefix_ok == 2) {
$errmsg = 'IPv6 Prefix must end with ::'; $errmsg = 'IPv6 Prefix must end with ::';
} }
if($v6_prefix_ok == 3) { if($v6_prefix_ok == 3) {
$errmsg = 'IPv6 Prefix too long (according to Server IP Addresses)'; $errmsg = 'IPv6 Prefix too long (according to Server IP Addresses)';
} }
if($v6_prefix_ok <> 1){ if($v6_prefix_ok <> 1){
$this->errorMessage .= $errmsg."<br />\r\n"; $this->errorMessage .= $errmsg."<br />\r\n";
} }
break; break;
*/ */
case 'ISIPV4': case 'ISIPV4':
$vip=1; $vip=1;
if(preg_match("/^[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}$/", $field_value)){ if(preg_match("/^[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}(\.)[0-9]{1,3}$/", $field_value)){
$groups=explode(".",$field_value); $groups=explode(".",$field_value);
foreach($groups as $group){ foreach($groups as $group){
if($group<0 OR $group>255) if($group<0 OR $group>255)
......
...@@ -83,22 +83,22 @@ $form["tabs"]['server'] = array( ...@@ -83,22 +83,22 @@ $form["tabs"]['server'] = array(
'errmsg' => 'netmask_error_wrong'), 'errmsg' => 'netmask_error_wrong'),
), ),
'value' => '', 'value' => '',
'width' => '15', 'width' => '15',
'maxlength' => '255' 'maxlength' => '255'
), ),
/* /*
'v6_prefix' => array( 'v6_prefix' => array(
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'validators' => array(0 => array('type' => 'ISV6PREFIX', 'validators' => array(0 => array('type' => 'ISV6PREFIX',
'errmsg' => 'v6_prefix_wrong'), 'errmsg' => 'v6_prefix_wrong'),
), ),
'default' => '' 'default' => ''
), ),
*/ */
'gateway' => array( 'gateway' => array(
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'default' => '192.168.0.1', 'default' => '192.168.0.1',
'validators' => array(0 => array('type' => 'ISIPV4', 'validators' => array(0 => array('type' => 'ISIPV4',
'errmsg' => 'gateway_error_wrong'), 'errmsg' => 'gateway_error_wrong'),
...@@ -506,20 +506,20 @@ $form["tabs"]['web'] = array( ...@@ -506,20 +506,20 @@ $form["tabs"]['web'] = array(
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '40', 'width' => '40',
'maxlength' => '255' 'maxlength' => '255'
), ),
/* /*
'vhost_rewrite_v6' => array ( 'vhost_rewrite_v6' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX', 'formtype' => 'CHECKBOX',
'default' => 'n', 'default' => 'n',
'value' => array(0 => 'n',1 => 'y') 'value' => array(0 => 'n',1 => 'y')
), ),
*/ */
'vhost_conf_dir' => array( 'vhost_conf_dir' => array(
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'default' => '', 'default' => '',
'validators' => array(0 => array('type' => 'NOTEMPTY', 'validators' => array(0 => array('type' => 'NOTEMPTY',
'errmsg' => 'vhost_conf_dir_error_empty'), 'errmsg' => 'vhost_conf_dir_error_empty'),
......
...@@ -167,8 +167,8 @@ $wb["awstats_settings_txt"] = 'AWStats Settings'; ...@@ -167,8 +167,8 @@ $wb["awstats_settings_txt"] = 'AWStats Settings';
$wb["firewall_txt"] = 'Firewall'; $wb["firewall_txt"] = 'Firewall';
$wb["mailbox_quota_stats_txt"] = 'Mailbox quota statistics'; $wb["mailbox_quota_stats_txt"] = 'Mailbox quota statistics';
$wb["enable_ip_wildcard_txt"] = 'Enable IP wildcard (*)'; $wb["enable_ip_wildcard_txt"] = 'Enable IP wildcard (*)';
$wb["web_folder_protection_txt"] = 'Make web folders immutable (extended attributes)'; $wb["web_folder_protection_txt"] = 'Make web folders immutable (extended attributes)';
$wb["overtraffic_notify_admin_txt"] = 'Send overtraffic notification to admin'; $wb["overtraffic_notify_admin_txt"] = 'Send overtraffic notification to admin';
$wb["overtraffic_notify_client_txt"] = 'Send overtraffic notification to client'; $wb["overtraffic_notify_client_txt"] = 'Send overtraffic notification to client';
$wb["rbl_error_regex"] = 'Please specify valid RBL hostnames.'; $wb["rbl_error_regex"] = 'Please specify valid RBL hostnames.';
$wb["overquota_notify_admin_txt"] = 'Send quota warnings to admin'; $wb["overquota_notify_admin_txt"] = 'Send quota warnings to admin';
...@@ -188,4 +188,4 @@ $wb['munin_user_txt'] = 'Munin User'; ...@@ -188,4 +188,4 @@ $wb['munin_user_txt'] = 'Munin User';
$wb['munin_password_txt'] = 'Munin Password'; $wb['munin_password_txt'] = 'Munin Password';
$wb['munin_url_error_regex'] = 'Invalid Munin URL'; $wb['munin_url_error_regex'] = 'Invalid Munin URL';
$wb['munin_url_note_txt'] = 'Placeholder:'; $wb['munin_url_note_txt'] = 'Placeholder:';
?> ?>
<?php <?php
/* Removed because tpl_default.php does not work /* Removed because tpl_default.php does not work
for($m = 0; $m < count($module['nav']); $m++) { for($m = 0; $m < count($module['nav']); $m++) {
if($module['nav'][$m]['title'] == 'Interface') { if($module['nav'][$m]['title'] == 'Interface') {
$module['nav'][$m]['items'][] = array( 'title' => 'Default Theme', $module['nav'][$m]['items'][] = array( 'title' => 'Default Theme',
'target' => 'content', 'target' => 'content',
'link' => 'admin/tpl_default.php', 'link' => 'admin/tpl_default.php',
'html_id' => 'tpl_default'); 'html_id' => 'tpl_default');
break; break;
} }
} }
*/ */
?> ?>
<h2><tmpl_var name="list_head_txt"></h2> <h2><tmpl_var name="list_head_txt"></h2>
<p><tmpl_var name="list_desc_txt"></p> <p><tmpl_var name="list_desc_txt"></p>
<div class="panel panel_iptables"> <div class="panel panel_iptables">
<div class="pnl_formsarea"> <div class="pnl_formsarea">
<fieldset class="inlineLabels"> <fieldset class="inlineLabels">
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="server_id">{tmpl_var name='server_id_txt'}</label> <label for="server_id">{tmpl_var name='server_id_txt'}</label>
<select name="server_id" id="server_id" class="selectInput"> <select name="server_id" id="server_id" class="selectInput">
{tmpl_var name='server_id'} {tmpl_var name='server_id'}
</select> </select>
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="table">{tmpl_var name='table_txt'}</label> <label for="table">{tmpl_var name='table_txt'}</label>
<select name="table" id="table" class="selectInput formLengthLimit"> <select name="table" id="table" class="selectInput formLengthLimit">
{tmpl_var name='table'} {tmpl_var name='table'}
</select> </select>
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="protocol">{tmpl_var name='protocol_txt'}</label> <label for="protocol">{tmpl_var name='protocol_txt'}</label>
<select name="protocol" id="protocol" class="selectInput formLengthLimit"> <select name="protocol" id="protocol" class="selectInput formLengthLimit">
{tmpl_var name='protocol'} {tmpl_var name='protocol'}
</select> </select>
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="singleport">{tmpl_var name='singleport_txt'}</label> <label for="singleport">{tmpl_var name='singleport_txt'}</label>
<input name="singleport" id="singleport" value="{tmpl_var name='singleport'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" /> <input name="singleport" id="singleport" value="{tmpl_var name='singleport'}" size="10" maxlength="10" type="text" class="textInput formLengthLimit" />
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="multiport">{tmpl_var name='multiport_txt'}</label> <label for="multiport">{tmpl_var name='multiport_txt'}</label>
<input name="multiport" id="multiport" value="{tmpl_var name='multiport'}" size="20" maxlength="40" type="text" class="textInput" /> <input name="multiport" id="multiport" value="{tmpl_var name='multiport'}" size="20" maxlength="40" type="text" class="textInput" />
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="destination_ip">{tmpl_var name='destination_ip_txt'}</label> <label for="destination_ip">{tmpl_var name='destination_ip_txt'}</label>
<input name="destination_ip" id="destination_ip" value="{tmpl_var name='destination_ip'}" size="16" maxlength="20" type="text" class="textInput formLengthIPv4" /> <input name="destination_ip" id="destination_ip" value="{tmpl_var name='destination_ip'}" size="16" maxlength="20" type="text" class="textInput formLengthIPv4" />
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="source_ip">{tmpl_var name='source_ip_txt'}</label> <label for="source_ip">{tmpl_var name='source_ip_txt'}</label>
<input name="source_ip" id="source_ip" value="{tmpl_var name='source_ip'}" size="16" maxlength="20" type="text" class="textInput formLengthIPv4" /> <input name="source_ip" id="source_ip" value="{tmpl_var name='source_ip'}" size="16" maxlength="20" type="text" class="textInput formLengthIPv4" />
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="state">{tmpl_var name='state_txt'}</label> <label for="state">{tmpl_var name='state_txt'}</label>
<input name="state" id="state" value="{tmpl_var name='state'}" size="16" maxlength="20" type="text" class="textInput" /> <input name="state" id="state" value="{tmpl_var name='state'}" size="16" maxlength="20" type="text" class="textInput" />
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<label for="target">{tmpl_var name='target_txt'}</label> <label for="target">{tmpl_var name='target_txt'}</label>
<select name="target" id="target" class="selectInput formLengthLimit"> <select name="target" id="target" class="selectInput formLengthLimit">
{tmpl_var name='target'} {tmpl_var name='target'}
</select> </select>
</div> </div>
<div class="ctrlHolder"> <div class="ctrlHolder">
<p class="label">{tmpl_var name='active_txt'}</p> <p class="label">{tmpl_var name='active_txt'}</p>
<div class="multiField"> <div class="multiField">
{tmpl_var name='active'} {tmpl_var name='active'}
</div> </div>
</div> </div>
</fieldset> </fieldset>
<input type="hidden" name="id" value="{tmpl_var name='id'}"> <input type="hidden" name="id" value="{tmpl_var name='id'}">
<div class="buttonHolder buttons"> <div class="buttonHolder buttons">
<button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onclick="submitForm('pageForm','admin/iptables_edit.php');"> <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" onclick="submitForm('pageForm','admin/iptables_edit.php');">
<span>{tmpl_var name='btn_save_txt'}</span></button> <span>{tmpl_var name='btn_save_txt'}</span></button>
<button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onclick="loadContent('admin/iptables_list.php');"> <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onclick="loadContent('admin/iptables_list.php');">
<span>{tmpl_var name='btn_cancel_txt'}</span></button> <span>{tmpl_var name='btn_cancel_txt'}</span></button>
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file
<h2><tmpl_var name="list_head_txt"></h2> <h2><tmpl_var name="list_head_txt"></h2>
<div class="panel panel_list_iptables"> <div class=</