hvis du får lidt mere kode kunne du måske give et eksempel i denne stump af siden:
/************************************************************/
/* Function themeheader() */
/************************************************************/
//function lavstreng() {
// if (@include(getenv('DOCUMENT_ROOT').'/ads/phpadsnew.inc.php')) {
// if (!isset($phpAds_context)) $phpAds_context = array();
// $phpAds_raw = view_raw ('zone:1', 0, 'blank', '', '0', $phpAds_context);
// return $phpAds_raw['html']; // rettet: return streng istedet for at skrive
// }
// return ""; // tilføjet. der skal altid returneres en streng, denne er tom
//}
function themeheader() {
global $banners;
if($_GET['action'] == 'OpretTekst' or $_GET['action'] == 'RedigereTekst') {
$init_e = 'onload="initEditor()"';
}
echo "<body bgcolor=\"#0E3259\" text=\"#000000\" link=\"0000ff\"".
$init_e."><br>";
if ($banners) {
include("banners.php");
echo "<br>";
}
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\" align=\"center\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n"
."<tr><td width=\"100%\" height=\"88\" bgcolor=\"#d3e2ea\">\n"
//."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/logo.gif\" alt=\"Welcome to $sitename!\" hspace=\"20\"></a></td><td align=\"right\"><img border=\"0\" src=\"themes/DeepBlue/images/logo-graphic.gif\"></td></tr></table></td></tr>\n"
//."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/logo.gif\" alt=\"Velkommen til $sitename!\" hspace=\"20\"></a></td><td align=\"left\"></td></tr></table></td></tr>\n"
//."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/logo.gif\" alt=\"Velkommen til $sitename!\" hspace=\"20\"></a></td><td align=\"left\">"
//.lavstreng()
//."</td></tr></table></td></tr>\n"
."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/logo.gif\" alt=\"Velkommen til $sitename!\" hspace=\"20\"></a></td><td align=\"left\"><a href='
http://counselor.dk/ads/adclick.php?n=a5925fdd' target='blank'><img src='
http://counselor.dk/ads/adview.php?what=zone:1&n=a5925fdd' border='0' alt=''></a></td></tr></table></td></tr>\n"
//."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/logo.gif\" alt=\"Velkommen til $sitename!\" hspace=\"20\"></a></td><td align=\"left\"><a href='
http://www.counselor.dk/ads/adclick.php?n=ac8db8f1' target='blank'><img src='
http://www.counselor.dk/ads/adview.php?what=zone:1&source=cleanbanner.gif&n=ac8db8f1' border='0' alt=''></a></td></tr></table></td></tr>\n"
."<tr><td width=\"100%\" bgcolor=\"#000000\" height=\"19\" valign=\"bottom\">\n"
."<a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/home.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"modules.php?name=Your_Account\"><img border=\"0\" src=\"themes/DeepBlue/images/account.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"modules.php?name=Downloads\"><img border=\"0\" src=\"themes/DeepBlue/images/downloads.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"modules.php?name=Submit_News\"><img border=\"0\" src=\"themes/DeepBlue/images/submit.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"modules.php?name=Topics\"><img border=\"0\" src=\"themes/DeepBlue/images/topics.gif\" width=\"140\" height=\"18\"></a>"
."<a href=\"modules.php?name=Top\"><img border=\"0\" src=\"themes/DeepBlue/images/top10.gif\" width=\"140\" height=\"18\"></a>"
."</td></tr><tr><td width=\"100%\" height=\"10\" bgcolor=\"#d3e2ea\">\n"
."</td></tr></table>\n"
."</td></tr><tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#d3e2ea'>\n"
;
$public_msg = public_message();
echo "$public_msg<br>";
echo "</td></tr></table><table width=\"840\" cellpadding=\"0\" bgcolor=\"d3e2ea\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
."<td width=\"138\" bgcolor=\"d3e2ea\" valign=\"top\">\n";
blocks(left);
echo "</td><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}