include "prepend_db.inc"; $g_WEBNAME = ereg_replace("/.*","",substr($SCRIPT_NAME,1)); $db = new DB_GAP; $query = "SELECT uid,firma,feedback_email,app_layout,home_headline,home_description,about_ok,references_ok,links_ok,location_ok,shop_ok FROM gap_hp_publish WHERE pfad='" . addslashes($g_WEBNAME) . "'"; $db->query($query); $db->next_record(); $g_DEALER_UID = $db->f('uid'); $g_FIRMA = $db->f('firma'); $g_APP_LAYOUT = $db->f('app_layout'); if (!isset($HTTP_USER_AGENT)) $HTTP_USER_AGENT=""; if ( ereg("^Mozilla/([0-9].[0-9][0-9]?)", $HTTP_USER_AGENT, $regs ) ) $Mozillaversion = DoubleVal( $regs[1] ); else $Mozillaversion = 0; $I = ereg("^Mozilla[^(]+\\([^;]+; I.+", $HTTP_USER_AGENT ); $U = ereg("^Mozilla[^(]+\\([^;]+; U.+", $HTTP_USER_AGENT ); if ( ($I||$U) && (int)$Mozillaversion==4) $navHeight=32; else $navHeight=29; if (!isset($modus)) $modus=""; ?>
echo nl2br(htmlspecialchars($db->f('home_description'))) ?>
/cont_home.html">Home
if ($db->f('shop_ok'))
{
?>
/shop/index.phtml">Shop
}
if ($db->f('about_ok'))
{
?>
/cont_about.html">Über uns
}
if ($db->f('references_ok'))
{
?>
/cont_references.html">Referenzen
}
if ($db->f('location_ok'))
{
?>
/cont_location.html">Wegweiser
}
?>
/cont_feedback.html">Kontakt
if ($db->f('links_ok'))
{
?>
/cont_links.html">Links
}
?>