Fatal error: Cannot redeclare head() (previously declared in C:\Program Files\VertrigoServ\www\function\sources.php:9) in C:\Program Files\VertrigoServ\www\header.php on line 77
<?php
if (eregi("header.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
$header = 1;
function head() {
global $slogan, $keywords, $bodytext, $hometext, $sitename, $homeurl, $topic, $user, $cookie, $pagetitle, $defis, $keywords_status, $textcolor1, $textcolor2, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $redaktor;
unset($ThemeSel);
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/index.php")) {
require_once("themes/$ThemeSel/index.php");
} else {
require_once("themes/$ThemeSel/theme.php");
}
$defis_dec = urldecode($defis);
$pagetitle_dec = trim(ereg_replace("$defis", "$defis_dec", $pagetitle));
echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
echo "<html>\n";
echo "<head>\n";
echo "<meta http-equiv=\"content-type\" content=\"text/html; charset="._CHARSET."\">\n";
echo "<title>$sitename $pagetitle_dec</title>\n";
//add for KentAVr_StaticPages ...
$urllen=strlen($homeurl);
if ($homeurl[$urllen-1]=='/' || $homeurl[$urllen-1]=='\\'){$homeurl=substr($homeurl, 0, $urllen-1);}
echo "<base href=\"$homeurl/\">\n";
// ... add for KentAVr_StaticPages
echo "<meta http-equiv=\"expires\" content=\"0\">\n";
if (!defined("ADMIN_FILE")) {
echo "<meta name=\"resource-type\" content=\"document\">\n";
echo "<meta name=\"distribution\" content=\"global\">\n";
echo "<meta name=\"author\" content=\"$sitename\">\n";
echo "<meta name=\"copyright\" content=\"Copyright (c) SLAED CMS\">\n";
$pagetitle = trim(ereg_replace(" $defis ", ", ", $pagetitle));
$pagetitle = trim(ereg_replace("$defis ", "", $pagetitle));
if ((($hometext == "") AND ($bodytext == "")) OR ($keywords_status == "0")) {
echo "<meta name=\"keywords\" content=\"$pagetitle, $keywords\">\n";
echo "<meta name=\"description\" content=\"$slogan, $pagetitle.\">\n";
} else {
$key_words = "$pagetitle";
$keywords_gen = "$hometext $bodytext";
$keywords_gen = strip_tags($keywords_gen);
$keywords_gen = check_html($keywords_gen, $strip = nohtml);
$keywords_gen = trim(ereg_replace('("|\?|!|:|\.|\(|\)|;|\\\\)+', ' ', $keywords_gen));
$keywords_gen = ereg_replace('( |'.CHR(10).'|'.CHR(13).')+', ',', $keywords_gen);
$keywords_gen = substr($keywords_gen,0,1600);
$keywords_gen = array_unique(explode(",", $keywords_gen));
for ($a=0, $b=7; $a < sizeof($keywords_gen) && $b < 800; $a++) {
if (($c = strlen($keywords_gen[$a])) > 3) {
$key_words = "".$key_words.", ".$keywords_gen[$a].""; $b += $c+2;
}
}
echo "<meta name=\"keywords\" content=\"$key_words\">\n";
echo "<meta name=\"description\" content=\"$slogan, $pagetitle.\">\n";
}
echo "<meta name=\"robots\" content=\"index, follow\">\n";
echo "<meta name=\"revisit-after\" content=\"1 days\">\n";
echo "<meta name=\"rating\" content=\"general\">\n";
echo "<meta name=\"generator\" content=\"SLAED CMS\">\n";
echo "<link rel=\"shortcut icon\" href=\"favicon.ico\" type=\"image/x-icon\">\n";
echo "<link rel=\"alternate\" href=\"rss.php\" title=\"rss\" type=\"application/rss+xml\">\n";
}
echo "<link rel=\"stylesheet\" href=\"themes/$ThemeSel/style/style.css\" type=\"text/css\">\n";
if ($redaktor == "1") {
include("config/redaktor.php");
}
include("config/javascript.php");
if (file_exists("config/header.php")) {
require_once("config/header.php");
}
echo "</head>\n\n";
if (!defined("ADMIN_FILE")) {
blocks('banner');
}
themeheader();
}
online();
head();
if (!defined("ADMIN_FILE")) {
update_points(13);
global $home, $prefix, $db, $blocks_c;
if ($home == 1) {
message_box();
if ($blocks_c == "" OR $blocks_c == "0" OR $blocks_c == "1") {
blocks('center');
}
} elseif (($module_name != "") AND ($blocks_c == "" OR $blocks_c == "0" OR $blocks_c == "1")) {
blocks('center');
}
}
?>