/** * Helps building long attribute lists * * @author Andreas Gohr <*****@*****.**> */ function html_attbuild($attributes) { $ret = ''; foreach ($attributes as $key => $value) { $ret .= $key . '="' . formtext($value) . '" '; } return trim($ret); }
/** * output appropriate html */ function html() { global $lang; echo $this->locale_xhtml('intro'); echo '<form action="" method="post" >'; echo '<input type="hidden" name="do" value="admin" />'; echo '<input type="hidden" name="page" value="redirect" />'; echo '<textarea class="edit" rows="15" cols="80" style="height: 300px" name="redirdata">'; echo formtext(io_readFile(dirname(__FILE__) . '/redirect.conf')); echo '</textarea><br />'; echo '<input type="submit" value="' . $lang['btn_save'] . '" class="button" />'; echo '</form>'; }