

Le Streaming, encore un concept Web 2.0
Mais comment ça marche?
Fatal error: Class 'dcDiggLike' not found in /home/wwwroot/blog2-enki/wwwroot/themes/enki/list.php on line 54
class dcDiggLike
{
function dcSubmitToDigg ($img=1,$txt='') {
if (isset($GLOBALS['news']))
{
$s='';
if ($img)
$s.='
';
$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='') {
if (isset($GLOBALS['news']))
{
$s='';
if ($img)
$s.='
';
$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.='
';
$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.='
';
$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='') {
if (isset($GLOBALS['news']))
{
$s='';
if ($img)
$s.='
';
$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.='
';
$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='') {
if (isset($GLOBALS['news']))
{
$s='';
if ($img)
$s.='
';
$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.='
';
$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.='
';
$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.='
';
$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.='
';
$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.='
';
$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)
);
}
}
}
}
?>
Warning: Cannot modify header information - headers already sent by (output started at /home/wwwroot/blog2-enki/wwwroot/ecrire/tools/dcdiggLikeIt/functions.php:1) in /home/wwwroot/blog2-enki/wwwroot/index.php on line 47


Fatal error: Class 'dcDiggLike' not found in /home/wwwroot/blog2-enki/wwwroot/themes/enki/list.php on line 54