url->parseURL(); $s24->url->setRelative('/'); //relativeslash is variable name $s24->url->setParts('action'); $action; $s24->h3smarty->assign( "JAVASCRIPT", $s24->mailriddler->init() ); $action = $s24->funktionen->replace_badcode( $action ); /** * Switch je nach status des Users wird der entsprechende Switch geladen * Sieht nicht gut aus, dient aber der Verkürzung der URL * Der Übersichtlichkeit trenne ich die Statiswitche in eigene Dateien auf **/ // globale Variablen setzen $s24->h3smarty->assign( "VERZ", $tpl_pfad ); $s24->h3smarty->assign( "ROOT_URL", $system["ROOT_URL"] ); $s24->h3smarty->assign( "CSS", $tpl_pfad ); $s24->h3smarty->assign( "DATUM", strftime ("%A, %e. %B %G" ) ); $s24->h3smarty->assign( "GELDIDEE_DATUM", date ( "d.m.Y | H:i") ) ; if( $tpl_pfad == "" || $tpl_pfad == "anwaltseiten24" ) { $s24->h3smarty->assign( "GOOGLE_ADWORDS", $s24->h3smarty->fetch("includes/google_adwords.js") ); } //ivw-Tag Channelpartner if( $tpl_pfad == "channelpartner" ) $s24->h3smarty->assign( "IVW", $s24->h3smarty->fetch("includes/ivw_channelpartner.html") ); switch( $action ) { case 'anwaltverzeichnis': case 'anwaltsverzeichnis': $template = $tpl_pfad."/main.tpl.html"; include_once '../files/pages/suche/verzeichnis.inc.php'; break; //anzeige des screenshots premiumeintrag case 'screen': $template = $tpl_pfad."/blank.tpl.html"; include_once '../files/pages/anzeige/screen.inc.php'; break; case 'legende': $template = $tpl_pfad."/blank.tpl.html"; include_once '../files/pages/anzeige/legende.inc.php'; break; case 'kontakt': $template = $tpl_pfad."/main.tpl.html"; include_once '../files/pages/kontakt/kontakt.inc.php'; break; case 'kontaktmail': $template = $tpl_pfad."/main.tpl.html"; include_once '../files/pages/kontakt/kontakt_success.inc.php'; break; case 'empfehlen': $template = $tpl_pfad."/main.tpl.html"; include_once '../files/pages/kontakt/empfehlen.inc.php'; break; case 'empfehlenmail': $template = $tpl_pfad."/main.tpl.html"; include_once '../files/pages/kontakt/empfehlen_success.inc.php'; break; case 'unregistriert': $template = $tpl_pfad."/main.tpl.html"; include_once '../files/pages/anzeige/unregistriert.inc.php'; break; case 'anwalt': $template = $tpl_pfad."/main.tpl.html"; include_once '../files/pages/anzeige/anwalt.inc.php'; break; case 'anwalt_drucken': $template = $tpl_pfad."/drucken.tpl.html"; include_once '../files/pages/anzeige/anwalt.inc.php'; break; case 'checkliste': $template = $tpl_pfad."/blank.tpl.html"; include_once '../files/pages/anzeige/checkliste.inc.php'; break; case 'detailsuche': case 'suche': $template = $tpl_pfad."/main.tpl.html"; include_once '../files/pages/suche/suche.inc.php'; break; case '': case 'index': case 'detail': $template = $tpl_pfad."/main.tpl.html"; include_once '../files/pages/index.inc.php'; break; default: header("HTTP/1.0 404 Not Found"); $template = $tpl_pfad."/main.tpl.html"; include_once '../files/pages/404.inc.php'; break; } if( file_exists( $include ) ) include_once( $include ); $s24->h3smarty->display($template); ?>