code formating

This commit is contained in:
Roland Gruber 2007-10-28 13:56:28 +00:00
parent a48dea080f
commit 99db4a0ecc
3 changed files with 33 additions and 33 deletions

View File

@ -94,18 +94,18 @@ class ieee802Device extends baseModule {
// list current MACs // list current MACs
for ($i = 0; $i < sizeof($this->attributes['macAddress']); $i++) { for ($i = 0; $i < sizeof($this->attributes['macAddress']); $i++) {
$return[] = array( $return[] = array(
0 => array('kind' => 'text', 'text' => _('MAC address')), array('kind' => 'text', 'text' => _('MAC address')),
1 => array('kind' => 'input', 'name' => 'macAddress' . $i, 'type' => 'text', 'size' => '17', 'maxlength' => '17', 'value' => $this->attributes['macAddress'][$i]), array('kind' => 'input', 'name' => 'macAddress' . $i, 'type' => 'text', 'size' => '17', 'maxlength' => '17', 'value' => $this->attributes['macAddress'][$i]),
2 => array('kind' => 'input', 'type' => 'submit', 'name' => 'delMAC' . $i, 'value' => _("Remove")), array('kind' => 'input', 'type' => 'submit', 'name' => 'delMAC' . $i, 'value' => _("Remove")),
3 => array('kind' => 'help', 'value' => 'mac')); array('kind' => 'help', 'value' => 'mac'));
} }
// input box for new MAC // input box for new MAC
$return[] = array( $return[] = array(
0 => array('kind' => 'text', 'text' => _('New MAC address')), array('kind' => 'text', 'text' => _('New MAC address')),
1 => array('kind' => 'input', 'name' => 'macAddress', 'type' => 'text', 'size' => '17', 'maxlength' => '17', 'value' => ''), array('kind' => 'input', 'name' => 'macAddress', 'type' => 'text', 'size' => '17', 'maxlength' => '17', 'value' => ''),
2 => array('kind' => 'input', 'type' => 'submit', 'name' => 'addMAC', 'value' => _("Add")), array('kind' => 'input', 'type' => 'submit', 'name' => 'addMAC', 'value' => _("Add")),
3 => array('kind' => 'help', 'value' => 'mac'), array('kind' => 'help', 'value' => 'mac'),
4 => array('kind' => 'input', 'type' => 'hidden', 'value' => sizeof($this->attributes['macAddress']), 'name' => 'mac_number')); array('kind' => 'input', 'type' => 'hidden', 'value' => sizeof($this->attributes['macAddress']), 'name' => 'mac_number'));
return $return; return $return;
} }

View File

@ -134,33 +134,33 @@ class inetLocalMailRecipient extends baseModule {
$routingAddress = ''; $routingAddress = '';
if (isset($this->attributes['mailRoutingAddress'][0])) $routingAddress = $this->attributes['mailRoutingAddress'][0]; if (isset($this->attributes['mailRoutingAddress'][0])) $routingAddress = $this->attributes['mailRoutingAddress'][0];
$return[] = array( $return[] = array(
0 => array('kind' => 'text', 'text' => _('Routing address')), array('kind' => 'text', 'text' => _('Routing address')),
1 => array('kind' => 'input', 'name' => 'routingAdr', 'type' => 'text', 'size' => '20', 'value' => $routingAddress), array('kind' => 'input', 'name' => 'routingAdr', 'type' => 'text', 'size' => '20', 'value' => $routingAddress),
2 => array('kind' => 'help', 'value' => 'routingAdr')); array('kind' => 'help', 'value' => 'routingAdr'));
// mail server // mail server
$mailServer = ''; $mailServer = '';
if (isset($this->attributes['mailHost'][0])) $mailServer = $this->attributes['mailHost'][0]; if (isset($this->attributes['mailHost'][0])) $mailServer = $this->attributes['mailHost'][0];
$return[] = array( $return[] = array(
0 => array('kind' => 'text', 'text' => _('Mail server')), array('kind' => 'text', 'text' => _('Mail server')),
1 => array('kind' => 'input', 'name' => 'host', 'type' => 'text', 'size' => '20', 'value' => $mailServer), array('kind' => 'input', 'name' => 'host', 'type' => 'text', 'size' => '20', 'value' => $mailServer),
2 => array('kind' => 'help', 'value' => 'host')); array('kind' => 'help', 'value' => 'host'));
// list current local addresses // list current local addresses
$localAdresses = array(); $localAdresses = array();
if (isset($this->attributes['mailLocalAddress'])) $localAdresses = $this->attributes['mailLocalAddress']; if (isset($this->attributes['mailLocalAddress'])) $localAdresses = $this->attributes['mailLocalAddress'];
for ($i = 0; $i < sizeof($localAdresses); $i++) { for ($i = 0; $i < sizeof($localAdresses); $i++) {
$return[] = array( $return[] = array(
0 => array('kind' => 'text', 'text' => _('Local address')), array('kind' => 'text', 'text' => _('Local address')),
1 => array('kind' => 'input', 'name' => 'localAdr' . $i, 'type' => 'text', 'size' => '20', 'value' => $localAdresses[$i]), array('kind' => 'input', 'name' => 'localAdr' . $i, 'type' => 'text', 'size' => '20', 'value' => $localAdresses[$i]),
2 => array('kind' => 'input', 'type' => 'submit', 'name' => 'delAdr' . $i, 'value' => _("Remove")), array('kind' => 'input', 'type' => 'submit', 'name' => 'delAdr' . $i, 'value' => _("Remove")),
3 => array('kind' => 'help', 'value' => 'localAdr')); array('kind' => 'help', 'value' => 'localAdr'));
} }
// input box for new local addresses // input box for new local addresses
$return[] = array( $return[] = array(
0 => array('kind' => 'text', 'text' => _('New local address')), array('kind' => 'text', 'text' => _('New local address')),
1 => array('kind' => 'input', 'name' => 'localAdr', 'type' => 'text', 'size' => '20', 'value' => ''), array('kind' => 'input', 'name' => 'localAdr', 'type' => 'text', 'size' => '20', 'value' => ''),
2 => array('kind' => 'input', 'type' => 'submit', 'name' => 'addAdr', 'value' => _("Add")), array('kind' => 'input', 'type' => 'submit', 'name' => 'addAdr', 'value' => _("Add")),
3 => array('kind' => 'help', 'value' => 'localAdr'), array('kind' => 'help', 'value' => 'localAdr'),
4 => array('kind' => 'input', 'type' => 'hidden', 'value' => sizeof($localAdresses), 'name' => 'adr_number')); array('kind' => 'input', 'type' => 'hidden', 'value' => sizeof($localAdresses), 'name' => 'adr_number'));
return $return; return $return;
} }

View File

@ -87,18 +87,18 @@ class ldapPublicKey extends baseModule {
// list current keys // list current keys
for ($i = 0; $i < sizeof($this->attributes['sshPublicKey']); $i++) { for ($i = 0; $i < sizeof($this->attributes['sshPublicKey']); $i++) {
$return[] = array( $return[] = array(
0 => array('kind' => 'text', 'text' => _('SSH public key')), array('kind' => 'text', 'text' => _('SSH public key')),
1 => array('kind' => 'input', 'name' => 'sshPublicKey' . $i, 'type' => 'text', 'size' => '50', 'maxlength' => '2048', 'value' => $this->attributes['sshPublicKey'][$i]), array('kind' => 'input', 'name' => 'sshPublicKey' . $i, 'type' => 'text', 'size' => '50', 'maxlength' => '2048', 'value' => $this->attributes['sshPublicKey'][$i]),
2 => array('kind' => 'input', 'type' => 'submit', 'name' => 'delKey' . $i, 'value' => _("Remove")), array('kind' => 'input', 'type' => 'submit', 'name' => 'delKey' . $i, 'value' => _("Remove")),
3 => array('kind' => 'help', 'value' => 'key')); array('kind' => 'help', 'value' => 'key'));
} }
// input box for new key // input box for new key
$return[] = array( $return[] = array(
0 => array('kind' => 'text', 'text' => _('New SSH public key')), array('kind' => 'text', 'text' => _('New SSH public key')),
1 => array('kind' => 'input', 'name' => 'sshPublicKey', 'type' => 'text', 'size' => '50', 'maxlength' => '2048', 'value' => ''), array('kind' => 'input', 'name' => 'sshPublicKey', 'type' => 'text', 'size' => '50', 'maxlength' => '2048', 'value' => ''),
2 => array('kind' => 'input', 'type' => 'submit', 'name' => 'addKey', 'value' => _("Add")), array('kind' => 'input', 'type' => 'submit', 'name' => 'addKey', 'value' => _("Add")),
3 => array('kind' => 'help', 'value' => 'key'), array('kind' => 'help', 'value' => 'key'),
4 => array('kind' => 'input', 'type' => 'hidden', 'value' => sizeof($this->attributes['sshPublicKey']), 'name' => 'key_number')); array('kind' => 'input', 'type' => 'hidden', 'value' => sizeof($this->attributes['sshPublicKey']), 'name' => 'key_number'));
return $return; return $return;
} }