Source for file html.php
Documentation is available at html.php
* The idea is to inlcude here some functions to make easier
* the right to left implementation by "functionize" some
* @copyright © 1999-2006 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: html.php,v 1.30 2006/10/05 15:24:20 stevetruckstuff Exp $
* @param string $tag Tag to output
* @param string $val Value between tags
* @param string $align Alignment (left, center, etc)
* @param string $bgcolor Back color in hexadecimal
* @param string $xtra Extra options
* @return string HTML ready for output
function html_tag( $tag, // Tag to output
$val =
'', // Value between tags
$align =
'', // Alignment
$bgcolor =
'', // Back color
$xtra =
'' ) { // Extra options
if ( isset
( $languages[$squirrelmail_language]['DIR']) ) {
$dir =
$languages[$squirrelmail_language]['DIR'];
$bgc =
" bgcolor=\"$bgcolor\"";
$alg =
" align=\"$rgt\"";
$alg =
" align=\"$lft\"";
$alg =
" align=\"$align\"";
$ret .=
">$val</$tag>\n";
* handy function to set url vars
* especially useful when $url = $PHP_SELF
* @param string $url url that must be modified
* @param string $var variable name
* @param string $val variable value
* @param boolean $link controls sanitizing of ampersand in urls (since 1.3.2)
* @return string $url modified url
'/.+(\\&'.
$var.
')=(.*)\\&/AU', /* in the middle */
'/.+\\?('.
$var.
')=(.*\\&).+/AU', /* at front, more follow */
'/.+(\\?'.
$var.
')=(.*)$/AU', /* at front and only var */
'/.+(\\&'.
$var.
')=(.*)$/AU' /* at the end */
// FIXME: why switch is used instead of if () or one preg_match()
Documentation generated on Sat, 07 Oct 2006 16:11:31 +0300 by phpDocumentor 1.3.0RC6