sql_tablename_publish_de(); $shortcode_passkey = $config->shortcode_passkey(); $pdo = $conn->prepareQuery(); $design->setPath( "/home/www/wwwbuzzerstar/tpl/" ); $GoogleUserID = md5($_SERVER['HTTP_USER_AGENT'] . $_SERVER['REMOTE_ADDR']); $deviceTypeMobile = $detect->isMobile(); $deviceTypeTablet = $detect->isTablet(); $countryCode = $geoip->getCountryCode(); $status = ""; /* Mobile Dection if ($deviceTypeMobile === TRUE && $deviceTypeTablet === FALSE && preg_match('/(DE|CH|AT|LI)/i',$countryCode)){ header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.youtube-mp3.mobi/m/"); // we have a mobile device exit(0); } else if ($deviceTypeMobile === TRUE && $deviceTypeTablet === FALSE){ header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.youtube-mp3.mobi/m/en/"); // we have a mobile device exit(0); } */ /* Parameter Execution */ $p_headline = $func->stripHtml($_REQUEST['headline']); $p_category = $func->stripHtml($_REQUEST['category']); $p_tags1 = $func->stripHtml($_REQUEST['tags1']); $p_tags2 = $func->stripHtml($_REQUEST['tags2']); $p_tags3 = $func->stripHtml($_REQUEST['tags3']); $p_tags4 = $func->stripHtml($_REQUEST['tags4']); $p_tags5 = $func->stripHtml($_REQUEST['tags5']); $p_articletext = $func->stripHtml($_REQUEST['articletext']); $p_sourcelink = $func->stripHtml($_REQUEST['sourcelink']); $p_picture1 = $func->stripHtml($_REQUEST['picture1']); $p_picture2 = $func->stripHtml($_REQUEST['picture2']); $p_picture3 = $func->stripHtml($_REQUEST['picture3']); $p_hashtag = $func->stripHtml($_REQUEST['hashtag']); $p_videolink = $func->stripHtml($_REQUEST['videolink']); $p_twitterlink = $func->stripHtml($_REQUEST['twitterlink']); $p_backlink = $func->stripHtml($_REQUEST['backlink']); $p_paypallink = $func->stripHtml($_REQUEST['paypallink']); $p_authorname = $func->stripHtml($_REQUEST['authorname']); $p_picturedesc1 = $func->stripHtml($_REQUEST['picture_1_description']); $request_captcha = htmlspecialchars($_REQUEST['captcha']); $p_sourcelink = str_ireplace("?rel=","?",$p_sourcelink); $p_backlink = str_ireplace("?rel=","?",$p_backlink); if(strpos($p_picture1, ' ') !== false){ $array23 = explode(' ',$p_picture1); $p_picture1 = $array23[0]; } if ( stripos($p_backlink, 'http') === false || empty($p_backlink) || strlen($p_backlink)<=7){ $p_backlink = "http://www.buzzerstar.com/"; } $copyYear = 2012; $curYear = date('Y'); $year = $copyYear . (($copyYear != $curYear) ? '-' . $curYear : ''); $copy = "©$year BuzzerStar.com - M.Sc. Sebastian Enger"; if (!empty($p_headline) && !empty($p_articletext) && !empty($p_sourcelink) && !empty($p_picturedesc1) && !empty($request_captcha) ){ $p_headline_lang = $func->GetLanguageFromString($p_headline); $p_articletext_lang = $func->GetLanguageFromString($p_articletext); $p_picturedesc1_lang = $func->GetLanguageFromString($p_picturedesc1); $array = array($p_headline_lang => 1, $p_articletext_lang => 2, $p_picturedesc1_lang => 3 ); if ( $array['de'] >= 2 ){ $p_language = "de"; } else { $p_language = $p_articletext_lang; } /* if (empty($_SESSION['captcha']) || trim(strtolower($request_captcha)) != $_SESSION['captcha']) { $captcha_message = "Ungültiger Bildcode - Artikel wurde nicht gespeichert."; $style = "