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.14.2.8 2006/04/14 22:27:07 jervfors 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
GLOBAL $languages, $squirrelmail_language;
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 usefull when $url = $PHP_SELF */
'/.+(\\&'.
$var.
')=(.*)\\&/AU', /* in the middle */
'/.+\\?('.
$var.
')=(.*\\&).+/AU', /* at front, more follow */
'/.+(\\?'.
$var.
')=(.*)$/AU', /* at front and only var */
'/.+(\\&'.
$var.
')=(.*)$/AU' /* at the end */
/* Temporary test function to proces template vars with formatting.
* I use it for viewing the message_header (view_header.php) with
$frm_last =
count($format_ar) -
1;
if (isset
($format_ar[0])) echo
$format_ar[0];
foreach ($var as $a_el) {
if (isset
($format_ar[$i])) {
if (isset
($format_ar[$frm_last]) &&
$frm_last>
$i ) {
echo
$format_ar[$frm_last];
Documentation generated on Sat, 07 Oct 2006 16:31:30 +0300 by phpDocumentor 1.3.0RC6