select($query); if ($type == 'viewcount') { return($res->arry_data[0]['sum(nb_view)']); } else { return($res->arry_data[0]['info']); } } } ?>'; if ($img) $s.='Digg it!'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST') . $GLOBALS['news']->getPermURL(); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); } echo sprintf ( $s, 'http://digg.com/submit?phase=3&'. 'url=' . urlencode($url) .'&'. ';title=' . urlencode($title) ); } } } function dcSubmitToDelicious ($img=1,$txt=' del.icio.us it! ') { if (isset($GLOBALS['news'])) { $s=''; if ($img) $s.='del.icio.us it!'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST') . $GLOBALS['news']->getPermURL(); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); } echo sprintf ( $s, 'http://del.icio.us/post?v=2&'. 'url=' . urlencode($url) . ';title=' . urlencode($title) ); } } } // fonction par NiKo http://www.prendreuncafe.com // modifier par Tibo function dcSubmitToBlogmarks($img=1,$txt=' Blogmark it! ') { if (isset($GLOBALS['news'])) { $s=''; if ($img) $s.='Blogmark it!'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST') . $GLOBALS['news']->getPermURL(); $summary = $GLOBALS['news']->getChapo() != "" ? strip_tags($GLOBALS['news']->getChapo()) : strip_tags($GLOBALS['news']->getContent()); $tN = array("\r", "\n", "\t"); $tR = array("", " ", ""); $summary = str_replace($tN, $tR, $summary); while (ereg(" ", $summary)) $summary = str_replace(" ", " ", $summary); $summary = substr(chop($summary), 0, 255) . '...'; $tags = $GLOBALS['news']->f('cat_libelle'); $via = getenv('HTTP_REFERER'); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); $summary = utf8_encode($summary); $tags = utf8_encode($tags); $via = utf8_encode($via); } echo sprintf ( $s, 'http://www.blogmarks.net/my/new.php?'. 'title=' . urlencode($title) . '&'. 'summary=' . urlencode($summary) .'&'. 'url=' . urlencode($url) . '&'. 'via=' . urlencode($via) . '&'. 'tags=' . urlencode($tags) ); } } } function dcSubmitToBookeet($img=1,$txt=' Bookeet it! ') { if (isset($GLOBALS['news'])) { $s=''; if ($img) $s.='Blogmark it!'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST') . $GLOBALS['news']->getPermURL(); $summary = $GLOBALS['news']->getChapo() != "" ? strip_tags($GLOBALS['news']->getChapo()) : strip_tags($GLOBALS['news']->getContent()); $tN = array("\r", "\n", "\t"); $tR = array("", " ", ""); $summary = str_replace($tN, $tR, $summary); while (ereg(" ", $summary)) $summary = str_replace(" ", " ", $summary); $summary = substr(chop($summary), 0, 255) . '...'; $tags = $GLOBALS['news']->f('cat_libelle'); $via = getenv('HTTP_REFERER'); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); $summary = utf8_encode($summary); $tags = utf8_encode($tags); $via = utf8_encode($via); } echo sprintf ( $s, 'http://www.bookeet.com/post.php?'. 'title=' . urlencode($title) . '&'. 'url=' . urlencode($url) . '&'. 'root=Dotclear' ); } } } function dcSubmitToTechnorati($img=1,$txt='Ajouter à mes favoris Technorati') { if (isset($GLOBALS['news'])) { $s=''; if ($img) $s.='Ajouter à mes favoris Technorati'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST'); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); } echo sprintf ( $s, 'http://technorati.com/faves?'. 'add=' . urlencode($url) ); } } } function dcSubmitToScoopeo($img=1,$txt=' Scoop it! ') { if (isset($GLOBALS['news'])) { $s=''; if ($img) $s.='Scoop it!'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST') . $GLOBALS['news']->getPermURL(); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); } echo sprintf ( $s, 'http://www.scoopeo.com/scoop/new?'. 'newurl=' . urlencode($url) . '&'. 'title=' . urlencode($title) ); } } } function dcSubmitToFuzz($img=1,$txt=' Fuzz it! ') { if (isset($GLOBALS['news'])) { $s=''; if ($img) $s.='Fuzz it!'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST') . $GLOBALS['news']->getPermURL(); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); } echo sprintf ( $s, 'http://www.fuzz.fr/?nws_article?'. 'link=' . urlencode($url) . '&'. 'title=' . urlencode($title) ); } } } function dcSubmitToTapemoi($img=1,$txt=' Tape Moi! ') { if (isset($GLOBALS['news'])) { $s=''; if ($img) $s.='Tape Moi!'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST') . $GLOBALS['news']->getPermURL(); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); } echo sprintf ( $s, 'http://www.tapemoi.com/submit.php?'. 'lien=' . urlencode($url) . '&'. 'title=' . urlencode($title) ); } } } function dcSubmitToAllactu($img=1,$txt=' AllActuer Ca! ') { if (isset($GLOBALS['news'])) { $s=''; if ($img) $s.='AllActuer Ca!'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST') . $GLOBALS['news']->getPermURL(); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); } echo sprintf ( $s, 'http://www.allactu.com/submit.php?'. 'url=' . urlencode($url) . '&'. 'title=' . urlencode($title) ); } } } function dcSubmitToNuouz($img=1,$txt=' Nuouz Ca! ') { if (isset($GLOBALS['news'])) { $s=''; if ($img) $s.='Nuouz Ca!'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST') . $GLOBALS['news']->getPermURL(); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); } echo sprintf ( $s, 'http://www.nuouz.com/addNews.aspx?'. 'url=' . urlencode($url) . '&'. 'title=' . urlencode($title) ); } } } // Merci à Franck //http://www.generationmp3.com/ohmypod function dcSubmitToMemes($img=1,$txt=' Memes Ca! ') { if (isset($GLOBALS['news'])) { $s=''; if ($img) $s.='Memes Ca!'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST') . $GLOBALS['news']->getPermURL(); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); } echo sprintf ( $s, 'http://www.blogmemes.net/fr/post.php?'. 'url=' . urlencode($url) . '&'. 'title=' . urlencode($title) ); } } } function dcSubmitToPioche($img=1,$txt=' Pioche Ca! ') { if (isset($GLOBALS['news'])) { $s=''; if ($img) $s.='Pioche Ca!'; $s.=$txt; $s.=''; $title = $GLOBALS['news']->f('post_titre'); $url = 'http://' . getenv('HTTP_HOST') . $GLOBALS['news']->getPermURL(); if ($title && $url) { if (dc_encoding != 'UTF-8') { $title = utf8_encode($title); $url = utf8_encode($url); } echo sprintf ( $s, 'http://www.pioche.fr/submit_news.php?'. 'newurl=' . urlencode($url) . '&'. 'title=' . urlencode($title) ); } } } } ?>