sql_tablename_publish_de(); $shortcode_passkey = $config->shortcode_passkey(); $pdo = $conn->prepareQuery(); $design->setPath( "/home/www/wwwbuzzerstar/tpl-new/" ); $p_shortcode = $func->uniqueID($shortcode_passkey); //$deviceTypeMobile = $detect->isMobile(); //$deviceTypeTablet = $detect->isTablet(); $status = ""; /* 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_paypallink = $func->stripHtml($_REQUEST['paypallink']); $p_slidercontent = ""; $list = preg_split("/[\s,]+/", $p_articletext, -1, PREG_SPLIT_NO_EMPTY); //explode(" ", $p_articletext); $myReturnStoreText = ""; $howManyImagesFound = 0; foreach ($list as $value) { $ret_array = $func->getLinks($value); $statusCode = $ret_array[0]; $linkCode = $ret_array[1]; //echo "
$value -> statusCode:$statusCode linkCode:$linkCode"; if ($statusCode == 1){ // wir haben einen link gefunden $head = $image->checkHeader($linkCode); $ext = $image->checkExtension($linkCode); //echo "head:$head // ext:$ext -> statusCode:$statusCode linkCode:$linkCode"; if ( ($head == 1 || $ext == 1 ) && $howManyImagesFound == 0 ){ // das erste bild runterladen und $image->downloadPictureExtra($linkCode,"Funny Pics: $p_tags3 und $p_tags5","Coole Bilder: $p_tags1 und $p_tags2 als Funny Pics",$p_shortcode); $howManyImagesFound++; } elseif ( ($head == 1 || $ext == 1 ) && $howManyImagesFound > 0 ){ $p_shortcode_1 = $func->uniqueID($shortcode_passkey); $image->downloadPictureExtra($linkCode,"DE","Coole Bilder: $p_tags2 und $p_tags4 als Funny Pics",$p_shortcode_1); $p_slidercontent .= "$p_shortcode_1;"; $howManyImagesFound++; } elseif ($func->isVideoLink($linkCode) == 1 ){ $p_videolink = $linkCode; } else { $returnLink = $func->autolink($linkCode, array("target"=>"_blank", "rel"=>"nofollow")); $myReturnStoreText .= " $returnLink"; } } else { $myReturnStoreText .= " $value"; }// if ($statusCode == 1){ } $p_articletext = $myReturnStoreText; $copyYear = 2012; $curYear = date('Y'); $year = $copyYear . (($copyYear != $curYear) ? '-' . $curYear : ''); $copy = "©$year BuzzerStar.com - M.Sc. Sebastian Enger"; $p_backlink = "https://www.facebook.com/BuzzerStar"; if (stripos($p_paypallink,"@")=== false){ $p_paypallink = "LEER"; } if (!empty($p_headline) && !empty($p_articletext) && strlen($p_articletext) >= 50 ){ $p_headline_lang = $func->GetLanguageFromString($p_headline); $p_articletext_lang = $func->GetLanguageFromString($p_articletext); $p_picturedesc1_lang = "de"; $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; } $writeArticle = array(':headline' => $p_headline, ':category' => $p_category, ':tags' => "$p_tags1;$p_tags2;$p_tags3;$p_tags4;$p_tags5", ':articletext' => $p_articletext, ':sourcelink' => "LEER", ':picture1' => "LEER", ':picture2' => "LEER", ':picture3' => "LEER", ':hashtag' => "LEER", ':videolink' => $p_videolink, ':twitterlink' => "LEER", ':backlink' => "LEER", ':paypallink' => $p_paypallink, ':authorname' => "LEER", ':shortcode' => $p_shortcode, ':picture_1_description' => "Coole Bilder: $p_tags1 und $p_tags2 als Funny Pics",':language' => $p_language, ':picture1_copyrightholder' => "LEER", ':picture1_copyrightlicense' => "LEER", ':picture1_copyrightoriginal' => "LEER"); $retVal = $conn->insertAdvArticle($pdo,$table,$writeArticle); if ($retVal == 1){ $status = "Dein Artikel wurde erfolgreich eingereicht.