Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
'' ) { $bgc = " bgcolor=\"$bgcolor\""; } switch ( $align ) { case '': $alg = ''; break; case 'right': $alg = " align=\"$rgt\""; break; case 'left': $alg = " align=\"$lft\""; break; default: $alg = " align=\"$align\""; break; } $ret = "<$tag"; if ( $dir <> 'ltr' ) { $ret .= " dir=\"$dir\""; } $ret .= $bgc . $alg; if ( $xtra <> '' ) { $ret .= " $xtra"; } if ( $val <> '' ) { $ret .= ">$val\n"; } else { $ret .= '>' . "\n"; } return( $ret ); } /** * This function is used to add, modify or delete GET variables in a URL. * It is especially useful when $url = $PHP_SELF * * Set $val to NULL to remove $var from $url. * To ensure compatibility with older versions, use $val='0' to set $var to 0. * * @param string $url url that must be modified * @param string $var GET 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 * * @since 1.3.0 * */ function set_url_var($url, $var, $val=null, $link=true) { $url = str_replace('&','&',$url); if (strpos($url, '?') === false) { $url .= '?'; } list($uri, $params) = explode('?', $url, 2); $newpar = array(); $params = explode('&', $params); foreach ($params as $p) { if (trim($p)) { $p = explode('=', $p); $newpar[$p[0]] = (isset($p[1]) ? $p[1] : ''); } } if (is_null($val)) { unset($newpar[$var]); } else { $newpar[$var] = $val; } if (!count($newpar)) { return $uri; } $url = $uri . '?'; foreach ($newpar as $name => $value) { $url .= "$name=$value&"; } $url = substr($url, 0, -1); if ($link) { $url = str_replace('&','&',$url); } return $url; } /* Temporary test function to proces template vars with formatting. * I use it for viewing the message_header (view_header.php) with * a sort of template. */ function echo_template_var($var, $format_ar = array() ) { $frm_last = count($format_ar) -1; if (isset($format_ar[0])) echo $format_ar[0]; $i = 1; switch (true) { case (is_string($var)): echo $var; break; case (is_array($var)): $frm_a = array_slice($format_ar,1,$frm_last-1); foreach ($var as $a_el) { if (is_array($a_el)) { echo_template_var($a_el,$frm_a); } else { echo $a_el; if (isset($format_ar[$i])) { echo $format_ar[$i]; } $i++; } } break; default: break; } if (isset($format_ar[$frm_last]) && $frm_last>$i ) { echo $format_ar[$frm_last]; } }