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
Firefox - Enkilt - le blog d'entreprise de Enki Technologies
Blog, CSS, Design, Firebug, Firefox, Graphisme
On le sait tous, l'intégration html n'est pas une tache facile, et nous sommes tous infiniment reconnaissants envers ceux qui effectuent admirablement cette tache.
Dans le but de leur faciliter la vie, une nouvelle extension Firefox est apparue: Pixel Perfect.
Se basant sur la technologie Firebug, Pixel Perfect permet de comparer directement une créa au site final, tel qu'il est rendu dans Firefox.
En voici un exemple pris sur notre blog Associations 2.0 qui nous montre que, malgré un effort immense, certains pixels font encore défaut...

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