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($db->f('home_description')) ?>
Home
if ($db->f('shop_ok'))
{
?>
Shop
}
if ($db->f('about_ok'))
{
?>
Über uns
}
if ($db->f('references_ok'))
{
?>
Referenzen
}
if ($db->f('location_ok'))
{
?>
Wegweiser
}
?>
Kontakt
if ($db->f('links_ok'))
{
?>
Links
}
?>