diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-02-07 09:04:34 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-02-07 11:15:10 -0200 |
commit | a0629b6947ac82d045faa45a07f5c8d101c28ca8 (patch) | |
tree | 6238d22dc24ffd19364e9cf2cc30cf604c419fa8 | |
parent | f5cdf0569270efb32841fd02e5a939cc2a7a782e (diff) | |
download | pfsense-a0629b6947ac82d045faa45a07f5c8d101c28ca8.zip pfsense-a0629b6947ac82d045faa45a07f5c8d101c28ca8.tar.gz |
Indent and whitespaces changes
-rw-r--r-- | usr/local/www/services_captiveportal_zones_edit.php | 76 |
1 files changed, 39 insertions, 37 deletions
diff --git a/usr/local/www/services_captiveportal_zones_edit.php b/usr/local/www/services_captiveportal_zones_edit.php index c3356e3..4353d7e 100644 --- a/usr/local/www/services_captiveportal_zones_edit.php +++ b/usr/local/www/services_captiveportal_zones_edit.php @@ -1,19 +1,19 @@ -<?php +<?php /* services_captiveportal_mac_edit.php Copyright (C) 2011 Ermal Luci All rights reserved. - + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE @@ -46,7 +46,7 @@ $pgtitle = array(gettext("Services"),gettext("Captive portal"),gettext("Edit Zon $shortcut_section = "captiveportal"; if (!is_array($config['captiveportal'])) - $config['captiveportal'] = array(); + $config['captiveportal'] = array(); $a_cp =& $config['captiveportal']; if ($_POST) { @@ -57,18 +57,18 @@ if ($_POST) { /* input validation */ $reqdfields = explode(" ", "zone"); $reqdfieldsn = array(gettext("Zone name")); - + do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); if (preg_match('/[^A-Za-z0-9_]/', $_POST['zone'])) { $input_errors[] = gettext("The zone name can only contain letters, digits, and underscores (_)."); } - + foreach ($a_cp as $cpkey => $cpent) { - if ($cpent['zone'] == $_POST['zone']){ + if ($cpent['zone'] == $_POST['zone']) { $input_errors[] = sprintf("[%s] %s.", $_POST['zone'], gettext("already exists")); break; - } + } } if (!$input_errors) { @@ -87,33 +87,35 @@ include("head.inc"); <?php include("fbegin.inc"); ?> <body link="#0000CC" vlink="#0000CC" alink="#0000CC"> <?php if ($input_errors) print_input_errors($input_errors); ?> - <form action="services_captiveportal_zones_edit.php" method="post" name="iform" id="iform"> - <table width="100%" border="0" cellpadding="6" cellspacing="0"> - <tr> - <td colspan="2" valign="top" class="listtopic"><?=gettext("Edit Captiveportal Zones");?></td> - </tr> - <tr> - <td width="22%" valign="top" class="vncellreq"><?=gettext("Zone name"); ?></td> - <td width="78%" class="vtable"> - <input name="zone" type="text" class="formfld unknown" id="zone" size="64"> - <br> - <span class="vexpl"><?=gettext("Zone name. Can only contain letters, digits, and underscores (_)."); ?></span></td> - </tr> - <tr> - <td width="22%" valign="top" class="vncell"><?=gettext("Description"); ?></td> - <td width="78%" class="vtable"> - <input name="descr" type="text" class="formfld unknown" id="descr" size="40" > - <br> <span class="vexpl"><?=gettext("You may enter a description here " . - "for your reference (not parsed)"); ?>.</span></td> - </tr> - <tr> - <td width="22%" valign="top"> </td> - <td width="78%"> - <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Continue"); ?>"> - </td> - </tr> - </table> -</form> + <form action="services_captiveportal_zones_edit.php" method="post" name="iform" id="iform"> + <table width="100%" border="0" cellpadding="6" cellspacing="0"> + <tr> + <td colspan="2" valign="top" class="listtopic"><?=gettext("Edit Captiveportal Zones");?></td> + </tr> + <tr> + <td width="22%" valign="top" class="vncellreq"><?=gettext("Zone name"); ?></td> + <td width="78%" class="vtable"> + <input name="zone" type="text" class="formfld unknown" id="zone" size="64"> + <br> + <span class="vexpl"><?=gettext("Zone name. Can only contain letters, digits, and underscores (_)."); ?></span> + </td> + </tr> + <tr> + <td width="22%" valign="top" class="vncell"><?=gettext("Description"); ?></td> + <td width="78%" class="vtable"> + <input name="descr" type="text" class="formfld unknown" id="descr" size="40" > + <br> + <span class="vexpl"><?=gettext("You may enter a description here for your reference (not parsed)"); ?>.</span> + </td> + </tr> + <tr> + <td width="22%" valign="top"> </td> + <td width="78%"> + <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Continue"); ?>"> + </td> + </tr> + </table> + </form> <?php include("fend.inc"); ?> </body> </html> |