0;$z--) $url_parts[$z+1] = $url_parts[$z]; $url_parts[1] = $lng; } $_SESSION['lng'] = $lng; include("sprachpaket_de.php"); # Array mit kompletten URLs für Verlinkungen # if(!isset($_SESSION['url_all'])){ $_SESSION['url_all'] = array(); $sql = "SELECT ID,url_de,url_en,ebene FROM ucms5_struktur WHERE online = '1' ORDER BY ebene ASC, ID ASC;"; $result = safe_query($sql); while($row = mysqli_fetch_assoc($result)){ if($row['ebene'] == 0){ $_SESSION['url_all'][$row['ID']] = array( "de" => "/de/".$row['url_de']."/", "en" => "/en/".$row['url_en']."/" ); } elseif(isset($_SESSION['url_all'][$row['ebene']]['de'])){ $_SESSION['url_all'][$row['ID']] = array( "de" => $_SESSION['url_all'][$row['ebene']]['de'].$row['url_de']."/", "en" => $_SESSION['url_all'][$row['ebene']]['en'].$row['url_en']."/" ); } } # } # URL-Konverter $urls_converted = array(); $sql_url = "SELECT * FROM ucms5_urlkonverter;"; $result_url = safe_query($sql_url); while($row_url = mysqli_fetch_assoc($result_url)){ $urls_converted[$row_url['url']] = $row_url['ziel']; } $url2convert = strtolower($_SERVER['REQUEST_URI']); if(substr($url2convert,0,1) == "/") $url2convert = substr($url2convert,1,strlen($url2convert)-1); if(substr($url2convert,-1,1) == "/") $url2convert = substr($url2convert,0,strlen($url2convert)-1); if($url2convert and array_key_exists($url2convert, $urls_converted)){ $suffix = substr($urls_converted[$url2convert],0,1); switch($suffix){ case "n": $urls_converted[$url2convert] = str_replace("n","",$urls_converted[$url2convert]); $new_url = ($_SESSION['url_all'][5][$lng]); $sql_n = "SELECT ID,url_".$lng." FROM ucms5_news WHERE ID = '".mysqli_real_escape_string($sql_connection,$urls_converted[$url2convert])."';"; $result_n = safe_query($sql_n); if(mysqli_num_rows($result_n)){ $row_n = mysqli_fetch_assoc($result_n); $new_url .= $row_n['url_'.$lng]."/".$row_n['ID']."/"; } break; case "t": $urls_converted[$url2convert] = str_replace("t","",$urls_converted[$url2convert]); $new_url = $_SESSION['url_all'][6][$lng]; $sql_t = "SELECT url FROM ucms5_team WHERE ID = '".mysqli_real_escape_string($sql_connection,$urls_converted[$url2convert])."';"; $result_t = safe_query($sql_t); if(mysqli_num_rows($result_t)){ $row_t = mysqli_fetch_assoc($result_t); $new_url .= $row_t['url']."/"; } break; default: $new_url = $_SESSION['url_all'][$urls_converted[$url2convert]][$lng]; break; } $new_url_parts = explode("/",$new_url); foreach($new_url_parts as $key => $part) $url_parts[$key] = $part; } # URL neu aufbauen (Sprachumschaltung) $url_renew = ""; foreach($url_parts as $u_key => $url_part){ if($u_key > 1 and !empty($url_part)){ $url_renew .= "/".$url_part; } } $further_shop_files = array( "logout" => $sprachpaket[$lng][66], "anmeldung" => $sprachpaket[$lng][1], "registrierung" => $sprachpaket[$lng][52], "ohne-registrierung" => $sprachpaket[$lng][226], "bestaetigung" => $sprachpaket[$lng][142], "bestaetigung-neu" => $sprachpaket[$lng][242], "daten" => $sprachpaket[$lng][18], "warenkorb" => $sprachpaket[$lng][95], "bestellung" => $sprachpaket[$lng][115], "bestellungen" => $sprachpaket[$lng][281], "zertifikate" => "Ihre Zertifikate", "passwort" => $sprachpaket[$lng][67], "neues-passwort" => $sprachpaket[$lng][6], "passwort-aendern" => $sprachpaket[$lng][17], "konto-entfernen" => $sprachpaket[$lng][304], "danke" => $sprachpaket[$lng][230] ); # Shop initialisieren if(!isset($_SESSION['artikel'])) $_SESSION['artikel'] = array(); $curr_pic = "/images/logo_h1.png"; $bread_crump = "Startseite"; # URL auswerten if(isset($url_parts[2]) and !empty($url_parts[2])){ $sql = "SELECT ID, html_titel_".$lng.", headline_".$lng.", menu_".$lng.", url_".$lng.", description_".$lng." FROM ucms5_struktur WHERE url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[2])."' AND ebene = '0';"; $result = safe_query($sql); if(mysqli_num_rows($result)){ $row = mysqli_fetch_assoc($result); $id = $row['ID']; $title = $row['html_titel_'.$lng]; $description = $row['description_'.$lng]; $id_main = $id; $url_main = $row['url_'.$lng]; $bread_crump .= "".$row['menu_'.$lng].""; if(isset($url_parts[3]) and !empty($url_parts[3])){ $sql = "SELECT ID, headline_".$lng.", menu_".$lng.", url_".$lng." FROM ucms5_struktur WHERE url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[3])."' AND ebene = '".$id."';"; $result = safe_query($sql); if(mysqli_num_rows($result)){ $row = mysqli_fetch_assoc($result); $id = $row['ID']; $url_sub = $row['url_'.$lng]; $bread_crump .= "".$row['menu_'.$lng].""; } } } } if(!isset($id)){ $url_parts[2] = "start"; $id = $id_main = 1; } # CMS-Daten $sql = "SELECT * FROM ucms5_struktur WHERE ID = '".mysqli_real_escape_string($sql_connection,$id)."';"; $result = safe_query($sql); $site = mysqli_fetch_assoc($result); if(!isset($description)) $description = $site['description_'.$lng]; if(!isset($title)) $title = $site['html_titel_'.$lng]; switch($site['modul']){ case "projekte": if(isset($url_parts[4])){ # Projekte -> Daten überschreiben $sql_rubr = "SELECT ID FROM ucms5_publikationen_rubriken WHERE url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[3])."';"; $result_rubr = safe_query($sql_rubr); if(mysqli_num_rows($result_rubr)){ $rubr = mysqli_fetch_assoc($result_rubr); $sql_publ = "SELECT publikation_".$lng.", description_".$lng.", menu_".$lng.", url_".$lng.", bild_pfad FROM ucms5_publikationen WHERE online = '1' AND rubrik = '".mysqli_real_escape_string($sql_connection,$rubr['ID'])."' AND url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[4])."';"; $result_publ = safe_query($sql_publ); if(mysqli_num_rows($result_publ)){ $publ = mysqli_fetch_assoc($result_publ); $site['headline_'.$lng] = $publ['publikation_'.$lng]; $site['content_'.$lng] = $publ['description_'.$lng]; $site['bild_pfad'] = $publ['bild_pfad']; $bread_crump .= "".$publ['menu_'.$lng].""; } } } break; case "fortbildung": if(isset($url_parts[4])){ # Fortbildung -> Daten überschreiben $sql_publ = "SELECT publikation_".$lng.", description_".$lng.", menu_".$lng.", url_".$lng.", bild_pfad FROM ucms5_fortbildung WHERE online = '1' AND rubrik = '1' AND url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[4])."';"; $result_publ = safe_query($sql_publ); if(mysqli_num_rows($result_publ)){ $publ = mysqli_fetch_assoc($result_publ); $site['headline_'.$lng] = $publ['publikation_'.$lng]; $site['content_'.$lng] = $publ['description_'.$lng]; $site['bild_pfad'] = $publ['bild_pfad']; $bread_crump .= "".$publ['menu_'.$lng].""; } } break; case "news-pressemitteilungen": if(isset($url_parts[6]) and !empty($url_parts[6])){ $sql = "SELECT * FROM ucms5_news WHERE online = '1' AND rubrik = '3' AND url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[4])."' AND ID = '".mysqli_real_escape_string($sql_connection,$url_parts[6])."';"; $result = safe_query($sql); if(mysqli_num_rows($result)){ $news = mysqli_fetch_assoc($result); $news_id = $news['ID']; $curr_pic = file_exists(str_replace("../medien_bilder/news/v@tn_","medien_bilder/news/v@1_",$news['bild_pfad'])) ? str_replace("../medien_bilder/news/v@tn_","/medien_bilder/news/v@1_",$news['bild_pfad']) : "/images/logo_big.png"; $site['headline_'.$lng] = $news['headline_'.$lng]; $site['bild_pfad'] = file_exists(str_replace("../medien_bilder/news/v@tn_","medien_bilder/news/v@1_",$news['bild_pfad'])) ? str_replace("../medien_bilder/news/v@tn_","medien_bilder/news/v@1_",$news['bild_pfad']) : "images/logo_big.png"; $title = $news['headline_'.$lng]; $description = strip_tags($news['content_'.$lng]); } } break; case "news-pressespiegel": if(isset($url_parts[6]) and !empty($url_parts[6])){ $sql = "SELECT * FROM ucms5_news WHERE online = '1' AND rubrik = '2' AND url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[4])."' AND ID = '".mysqli_real_escape_string($sql_connection,$url_parts[6])."';"; $result = safe_query($sql); if(mysqli_num_rows($result)){ $news = mysqli_fetch_assoc($result); $news_id = $news['ID']; $curr_pic = file_exists(str_replace("../medien_bilder/news/v@tn_","medien_bilder/news/v@1_",$news['bild_pfad'])) ? str_replace("../medien_bilder/news/v@tn_","/medien_bilder/news/v@1_",$news['bild_pfad']) : "/images/logo_big.png"; $site['headline_'.$lng] = $news['headline_'.$lng]; $site['bild_pfad'] = file_exists(str_replace("../medien_bilder/news/v@tn_","medien_bilder/news/v@1_",$news['bild_pfad'])) ? str_replace("../medien_bilder/news/v@tn_","medien_bilder/news/v@1_",$news['bild_pfad']) : "images/logo_big.png"; $title = $news['headline_'.$lng]; $description = strip_tags($news['content_'.$lng]); } } break; case "blog": # Rubriken $news_rubrik = false; if(isset($url_parts[4]) and !empty($url_parts[4])){ $sql = "SELECT * FROM ucms5_news_rubriken WHERE ID > '3' AND url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[4])."';"; $result = safe_query($sql); if(mysqli_num_rows($result)){ $news_rubrik = mysqli_fetch_assoc($result); $site['headline_'.$lng] = $news_rubrik['rubrik_'.$lng]; $title = $news_rubrik['rubrik_'.$lng]; $bread_crump .= "".$news_rubrik['rubrik_'.$lng].""; if(isset($url_parts[7]) and !empty($url_parts[7])){ $sql = "SELECT * FROM ucms5_news WHERE online = '1' AND rubrik = '".$news_rubrik['ID']."' AND url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[5])."' AND ID = '".mysqli_real_escape_string($sql_connection,$url_parts[7])."';"; $result = safe_query($sql); if(mysqli_num_rows($result)){ $news = mysqli_fetch_assoc($result); $news_id = $news['ID']; $curr_pic = file_exists(str_replace("../medien_bilder/news/v@tn_","medien_bilder/news/v@1_",$news['bild_pfad'])) ? str_replace("../medien_bilder/news/v@tn_","/medien_bilder/news/v@1_",$news['bild_pfad']) : "/images/logo_big.png"; $site['headline_'.$lng] = $news['headline_'.$lng]; $site['bild_pfad'] = file_exists(str_replace("../medien_bilder/news/v@tn_","medien_bilder/news/v@1_",$news['bild_pfad'])) ? str_replace("../medien_bilder/news/v@tn_","medien_bilder/news/v@1_",$news['bild_pfad']) : "images/logo_big.png"; $title = $news['headline_'.$lng]; $description = strip_tags($news['content_'.$lng]); } } } } break; case "events": if(isset($url_parts[5]) and !empty($url_parts[5])){ $sql = "SELECT * FROM ucms5_events WHERE online = '1' AND url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[3])."' AND ID = '".mysqli_real_escape_string($sql_connection,$url_parts[5])."';"; $result = safe_query($sql); if(mysqli_num_rows($result)){ $event = mysqli_fetch_assoc($result); $event_id = $event['ID']; $curr_pic = file_exists(str_replace("../medien_bilder/events/v@tn_","medien_bilder/events/v@1_",$event['bild_pfad'])) ? str_replace("../medien_bilder/events/v@tn_","/medien_bilder/events/v@1_",$event['bild_pfad']) : "/images/logo_big.png"; $site['headline_'.$lng] = $event['headline_'.$lng]; $site['bild_pfad'] = file_exists(str_replace("../medien_bilder/events/v@tn_","medien_bilder/events/v@1_",$event['bild_pfad'])) ? str_replace("../medien_bilder/events/v@tn_","medien_bilder/events/v@1_",$event['bild_pfad']) : "images/logo_big.png"; $title = $event['headline_'.$lng]; $description = strip_tags($event['content_'.$lng]); } } break; case "webshop": # Änderungen Menge im Warenkorb $zu_viel = false; if(isset($_POST['menge'],$_POST['art_id'],$_POST['op']) and isset($_SESSION['artikel'][$_POST['art_id']])){ switch($_POST['op']){ case "+": $_SESSION['artikel'][$_POST['art_id']]++; break; case "-": $_SESSION['artikel'][$_POST['art_id']]--; break; case "X": $_SESSION['artikel'][$_POST['art_id']] = 0; break; default: $_SESSION['artikel'][$_POST['art_id']] = (int)$_POST['menge']; } if($_SESSION['artikel'][$_POST['art_id']] < 1){ unset($_SESSION['artikel'][$_POST['art_id']]); } if(isset($_SESSION['artikel'][$_POST['art_id']]) and $_SESSION['artikel'][$_POST['art_id']] > 999){ $_SESSION['artikel'][$_POST['art_id']] = 999; } } # Mobile-Version if(isset($_POST['menge'],$_POST['art_id'],$_POST['opM']) and isset($_SESSION['artikel'][$_POST['art_id']])){ switch($_POST['opM']){ case "+": $_SESSION['artikel'][$_POST['art_id']]++; break; case "-": $_SESSION['artikel'][$_POST['art_id']]--; break; case "X": $_SESSION['artikel'][$_POST['art_id']] = 0; break; default: $_SESSION['artikel'][$_POST['art_id']] = (int)$_POST['menge']; } if($_SESSION['artikel'][$_POST['art_id']] < 1){ unset($_SESSION['artikel'][$_POST['art_id']]); } if(isset($_SESSION['artikel'][$_POST['art_id']]) and $_SESSION['artikel'][$_POST['art_id']] > 999){ $_SESSION['artikel'][$_POST['art_id']] = 999; } } if(!isset($_SESSION['zahlstatus'])) $_SESSION['zahlstatus'] = "v"; if(!isset($_SESSION['versandstatus'])) $_SESSION['versandstatus'] = "s"; # Null-Artikel entfernen foreach($_SESSION['artikel'] as $artID => $menge){ if($menge < 1) unset($_SESSION['artikel'][$artID]); } $default = false; $selected_url = "shop"; $titel = "Shop"; $wg1_id = ""; if(isset($url_parts[3]) and !empty($url_parts[3])){ # Shop weitere Module if(key_exists($url_parts[3],$further_shop_files) and file_exists("inc_shop_files/inc_shop_".$url_parts[3].".php")){ $default = false; $selected_url = "shop"; $title = "Shop • ".$further_shop_files[$url_parts[3]]; switch($url_parts[3]){ case "logout": $_SESSION['artikel'] = array(); unset($_SESSION['user']); unset($_SESSION['IP_order']); unset($_SESSION['zahlstatus']); unset($_SESSION['versandstatus']); break; case "daten": if(!isset($_SESSION['user'],$_SESSION['IP_order']) or $_SERVER['REMOTE_ADDR'] != $_SESSION['IP_order']) header("Location: /"); break; case "danke": $_SESSION['artikel'] = array(); if(isset($_SESSION['zahlstatus'])) $_SESSION['zahlstatus'] = "v"; if(isset($_SESSION['versandstatus'])) $_SESSION['versandstatus'] = "s"; break; } $bread_crump .= "".$further_shop_files[$url_parts[3]].""; } else { # Warengruppe 1 $sql = "SELECT ID, warengruppe_".$lng.", url_".$lng." FROM ucms5_shop_warengruppen WHERE ebene = 0 AND url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[3])."';"; $result = safe_query($sql); if(mysqli_num_rows($result)){ $row = mysqli_fetch_assoc($result); $title .= " • ".$row['warengruppe_'.$lng]; $bread_crump .= "".$row['warengruppe_'.$lng].""; $wg1_id = $row['ID']; if(isset($url_parts[4])){ # Warengruppe 2 $sql = "SELECT warengruppe_".$lng.", url_".$lng." FROM ucms5_shop_warengruppen WHERE ebene = '".$wg1_id."' AND url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[4])."';"; $result = safe_query($sql); if(mysqli_num_rows($result)){ $row2 = mysqli_fetch_assoc($result); $title .= " • ".$row2['warengruppe_'.$lng]; $bread_crump .= "".$row2['warengruppe_'.$lng].""; } } } # Artikel if(isset($url_parts[5])){ if(isset($url_parts[6])){ $sql = "SELECT artikelbez_".$lng.", artikelnr, details_".$lng.", bild_pfad1 FROM ucms5_shop_artikel WHERE (url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[5])."' AND ID = '".mysqli_real_escape_string($sql_connection,$url_parts[6])."') OR (url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[4])."' AND ID = '".mysqli_real_escape_string($sql_connection,$url_parts[5])."');"; $result = safe_query($sql); if(mysqli_num_rows($result)){ $art_detail = true; $row = mysqli_fetch_assoc($result); $title .= " • ".$row['artikelbez_'.$lng]; $description = $row['details_'.$lng]; $vorschaubild = file_exists(str_replace("../medien_bilder/shop/v@tn_","medien_bilder/shop/v@1_",$row['bild_pfad1'])) ? str_replace("../medien_bilder/shop/v@tn_","medien_bilder/shop/v@1_",$row['bild_pfad1']): false; if(file_exists("medien_bilder/shop/v@1_".$row['artikelnr']."-1.jpg")) $vorschaubild = "medien_bilder/shop/v@1_".$row['artikelnr']."-1.jpg"; if($vorschaubild) $curr_pic = $vorschaubild; } } else { $sql = "SELECT artikelbez_".$lng.", artikelnr, details_".$lng.", bild_pfad1 FROM ucms5_shop_artikel WHERE url_".$lng." = '".mysqli_real_escape_string($sql_connection,$url_parts[4])."' AND ID = '".mysqli_real_escape_string($sql_connection,$url_parts[5])."';"; $result = safe_query($sql); if(mysqli_num_rows($result)){ $art_detail = true; $row = mysqli_fetch_assoc($result); $title .= " • ".$row['artikelbez_'.$lng]; $description = $row['details_'.$lng]; $vorschaubild = file_exists(str_replace("../medien_bilder/shop/v@tn_","medien_bilder/shop/v@1_",$row['bild_pfad1'])) ? str_replace("../medien_bilder/shop/v@tn_","medien_bilder/shop/v@1_",$row['bild_pfad1']): false; if(file_exists("medien_bilder/shop/v@1_".$row['artikelnr']."-1.jpg")) $vorschaubild = "medien_bilder/shop/v@1_".$row['artikelnr']."-1.jpg"; if($vorschaubild) $curr_pic = $vorschaubild; } } } } } # Sale? $sql_sale = "SELECT COUNT(*) AS numSale FROM ucms5_shop_artikel WHERE sale = '1';"; $result_sale = safe_query($sql_sale); $row_sale = mysqli_fetch_assoc($result_sale); $is_sale = ($row_sale['numSale'] > 0) ? true : false; break; } $has_submenu = false; $sql_subs = "SELECT ID FROM ucms5_struktur WHERE ebene = '".$id_main."';"; $result_subs = safe_query($sql_subs); if(mysqli_num_rows($result_subs)) $has_submenu = true; $curr_url = $cms5_options['protocol']."://".$cms5_options['domain']; foreach($url_parts as $url_part){ if(!empty($url_part)){ $curr_url .= "/".$url_part; } } $kindgerecht = $url_parts[2] == "kindgerecht" ? true : false; $file_logo = $url_parts[2] == "kindgerecht" ? "logo_kindgerecht_h1.svg" : "logo_h1.svg"; $mobile = (preg_match('/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|meego.+mobile|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i',$_SERVER['HTTP_USER_AGENT']) or preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i',substr($_SERVER['HTTP_USER_AGENT'],0,4))) ? true : false; $site['content_'.$lng] = str_replace("++box_start++","
",$site['content_'.$lng]); $site['content_'.$lng] = str_replace("++box_end++","
",$site['content_'.$lng]); ?>