# HG changeset patch # User Franck Deroche # Date 1192882510 -7200 # Node ID 629389204276ecbc17727347d5d3ed30538311b3 Import initial diff -r 000000000000 -r 629389204276 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,2 @@ +^.htpass$ +^includes/config.php$ diff -r 000000000000 -r 629389204276 .htaccess --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.htaccess Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,22 @@ +Options +FollowSymlinks +RewriteEngine on +RewriteRule ^dualblog.atom$ atom.php +RewriteRule ^dualblog.rss$ rss.php +RewriteRule ^posts/$ index.php [L] +RewriteRule ^posts/([0-9]+)/([0-9]{1,2})$ index.php?type=cal&year=$1&month=$2 [L] +RewriteRule ^posts/([0-9]+)-(.*)$ comment.php?id=$1 [L] +RewriteRule ^posts/(.*)$ comment.php?id=$1 [L] +RewriteRule ^tags/(.*)$ tag.php?tag=$1 [L] + + + # AuthUserFile "w:\www\blog\.htpass" + AuthUserFile "/home/defrnet/defr.net/blog/.htpass" + AuthGroupFile /dev/null + AuthName "Dual Blog - Administration" + AuthType Basic + require valid-user + # Order Deny,Allow + # Deny from all + # Allow from 127.0.0.1 + + diff -r 000000000000 -r 629389204276 DualBlog.gif Binary file DualBlog.gif has changed diff -r 000000000000 -r 629389204276 DualBlog_static.gif Binary file DualBlog_static.gif has changed diff -r 000000000000 -r 629389204276 RollUp.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RollUp.js Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,121 @@ + var styleSwitch = { + set:function(title) { + var i, a, main; + for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { + if(a.getAttribute("rel").indexOf("Style") != -1 && a.getAttribute("title")) { + a.disabled = true; + if(a.getAttribute("title") == title) a.disabled = false; + } + } + document._currentStyleSheet = title; + }, + + get:function() { + return document._currentStyleSheet; + }, + + getPref:function() { + var a = document.getElementsByTagName("link"); + for(var i=0; a[i]; i++) { + if(a[i].getAttribute("rel").indexOf("Style") != -1 && a[i].getAttribute("rel").indexOf("Alt") == -1 && a[i].getAttribute("title")) + return a[i].getAttribute("title"); + } + return null; + }, + + unload:function() { + var date = new Date(); + date.setTime(date.getTime() + 365 * 24 * 3600 * 1000); + document.cookie="style=" + document._currentStyleSheet +";expires=" + date.toGMTString() + ";path=/"; + } + } + + var arContent = new Array(); + var arTitle = new Array(); + + window.onload = function() { + var shownSection = 'About', i, x; + x=document.getElementsByTagName('dt'); + for(i=0;i" + data.getElementsByTagName("contenu")[0].firstChild.data + "", "text/xml"); + var parserErrors = doc.getElementsByTagName('parsererror'); + if(parserErrors.length > 0) { + pubComment.textContent = ""; + pubComment.appendChild(doc.firstChild); + } + else { + pubComment.textContent = "Le post est fait de XML valide, bon pour être poster"; + whichVersion.pubButton.disabled = false; + } + } else { + curBPShown = 0; + el.parentNode.parentNode.className = ''; + hideForms(); + el.pubIsShown = false; + } + return false; +} + +function editBrouillon(e) { + edit(e, "brouillon"); +} + +function editPubl(e) { + edit(e, "post"); +} + +function edit(e, type) { + var editPost = document.getElementById("editPost"); + editPost.type = type; + var el = bpEvt(e).rTarget; + if(el.editPostIsShown !=1) { + var id = el.href.substring(el.href.indexOf("#") + 4, el.href.length); + var data = xmlRequest.get("admin_xml.php?type=" + type + "&id=" + id); + el.parentNode.appendChild(editPost); + el.editPostIsShown = 1; + editPost.style.display = 'block'; + editPost.Titre.value = data.getElementsByTagName('titre')[0].textContent; + editPost.Contenu.value = data.getElementsByTagName('contenu')[0].firstChild.data; + if(type == 'post') { + editPost.mood.style.display = ''; + editPost.mood.value = data.getElementsByTagName('mood')[0].textContent; + editPost.Tags.style.display = ''; + editPost.Tags.value = ''; + var tags = data.getElementsByTagName('tag'); + for(var i = 0; i < tags.length; i++) + { + if(tags[i].textContent.indexOf(' ') > -1) + { + editPost.Tags.value += '"' + tags[i].textContent + '"'; + } else { + editPost.Tags.value += tags[i].textContent; + } + editPost.Tags.value += ' '; + } + } else { + editPost.mood.style.display = 'none'; + editPost.Tags.style.display = 'none'; + } + + } else { + hideForms(); + el.editPostIsShown = 0; + } +} + +function showAddForm(e) { + var targetAc = bpEvt(e, "a").rTarget; + while(targetAc.nodeName.toLowerCase()!='form') targetAc=targetAc.nextSibling; // Permet d'avoir eventuellement des espaces + targetAc.style.display = (targetAc.style.display=='block')?'none':'block'; +} + +function saveFormContent(e) { + var el = e.target.form; // Should be the form... + var toggleLink = el.parentNode.firstChild; + var id=toggleLink.href.substring(toggleLink.href.indexOf("#") + 4, toggleLink.href.length); + if(xmlRequest.send('admin_xml.php?id=' + id + '&mode=edit&type=' + el.type, + 'title=' + postValue(el.Titre.value) + + '&content=' + postValue(el.Contenu.value) + + '&mood=' + postValue(el.mood.value) + + '&tags=' + postValue(el.Tags.value))) + { + toggleLink.editPostIsShown = 0; + hideForms(); + } else { + el.submit(); + } + return true; +} + +function hideForms() { + document.getElementById('whichVersion').style.display='none'; + document.getElementById('editPost').style.display='none'; +} + +/* Bullet-Proofing of the event variable... Needed because of the huge mess out there */ +function bpEvt(eIni, tag) { + var e = (eIni)?eIni:window.event; + e.rTarget = (e.target)?e.target:e.srcElement; + if(tag != undefined) + while(e.rTarget.parentNode && e.rTarget.nodeName.toLowerCase() != tag) e.rTarget = e.rTarget.parentNode; + return e; +} + +function postValue(str) +{ + str = str.replace(/&/g, "%26"); + str = str.replace(/\+/g, "%2B"); + return str; +} \ No newline at end of file diff -r 000000000000 -r 629389204276 admin.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/admin.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,283 @@ +get('mode'); + switch($mode) { + case 'nvBrouillon': + $nvTitre = $Req->get('Titre', 'POST'); + $nvContenu = $Req->get('Contenu', 'POST'); + $Data->debugQuery("INSERT INTO Brouillons SET Titre='{$nvTitre}', Contenu='{$nvContenu}'"); + break; + + case 'nvTache': + $nvThing = $Req->get('Tache'); + $Data->Query("INSERT INTO ToDo SET Thing='{$nvThing}'"); + break; + + case 'nvPost': + $id = $Req->get('id', 'POST'); + $versionAc = $Req->get('versionAc', 'POST'); + $newVersion = $Req->get('newVersion', 'POST'); + $mood = $Req->get('mood', 'POST'); + $tbAddress = $Req->get('tb', 'POST'); + if($versionAc == 'Version 10' && $newVersion != 'Nouvelle version ?' && !empty($newVersion)) + $version = $newVersion; + else + $version = $versionAc; + $Data->Query("SELECT * FROM Brouillons WHERE id_brouillon={$id}"); + $row = $Data->GetRow(); + $row['Titre'] = addslashes($row['Titre']); + $row['Contenu'] = addslashes($row['Contenu']); + $datePost = gmdate("Y-m-d H:i:s", time() + 3600); + $Data->Query(" + INSERT INTO Mess(Titre, DatePost, num_version, Message, Emot) + VALUES('{$row['Titre']}', '{$datePost}', '{$version}', '{$row['Contenu']}', '{$mood}')"); + $Data->Query("DELETE FROM Brouillons WHERE id_brouillon={$id}"); + $Data->Query("SELECT num_mess, Message FROM Mess ORDER BY num_mess DESC LIMIT 0, 1"); + $id_row = $Data->GetRow(); + // Gestion des tags + $arTags = TextUtils::SplitTags($Req->get('Tags')); + foreach($arTags as $tagAj) + { + $n = $Data->Query("SELECT idTag FROM Tags WHERE Tag='{$tagAj}'"); + if($n == 0) + { + // Si le tag n'existe pas, on le crée + $Data->Query("INSERT INTO Tags SET Tag='{$tagAj}'"); + $Data->Query("SELECT idTag FROM Tags WHERE Tag='{$tagAj}'"); + } + $row_tag = $Data->GetRow(); + $Data->Query + (" + INSERT INTO Lien_Tags_Posts + SET idMess={$id_row['num_mess']}, idTag={$row_tag['idTag']} + "); + } + // Génération de trackbacks + if(!empty($tbAddress) && substr($tbAddress, 0, 4)=='http') { + $ar_tbAddress = parse_url($tbAddress); + if(!array_key_exists('port', $ar_tbAddress)) $ar_tbAddress['port'] = 80; + if(!array_key_exists('path', $ar_tbAddress)) $ar_tbAddress['path'] = '/'; + if(array_key_exists('query', $ar_tbAddress)) $ar_tbAddress['query'] = '?' . $ar_tbAddress['query']; + $fp = fsockopen($ar_tbAddress['host'], $ar_tbAddress['port'], $errno, $errstr, 15); + if($fp) { + $genToSend = "POST {$ar_tbAddress['path']}{$ar_tbAddress['query']} HTTP/1.0\r\n"; + $genToSend .= "Host: {$ar_tbAddress['host']}\r\n"; + $genToSend .= "Content-Type: application/x-www-form-urlencoded \n"; + + // Essai de récuperation de l'encodage...Envoie en iso si pas d'indication d'UTF... + $argToSend = "__info=1"; + $toSend = $genToSend . "Content-Length: " . strlen($argToSend) . "\n\n"; + $toSend .= $argToSend; + echo("
$toSend
"); + fwrite($fp, $toSend); + while(!feof($fp)) + $result .= fgets($fp, 128); + fclose($fp); + if(!preg_match('/(UTF-8|utf-8)<\/encoding>/msU',$result)) { + $row['Titre'] = utf8_decode($row['Titre']); + $row['Message'] = utf8_decode($row['Message']); + } + + $fp = fsockopen($ar_tbAddress['host'], 80, $errno, $errstr, 15); + $argToSend = "title=" . htmlentities(urlencode($row['Titre'])) . "&blog_name=Dual+Blog"; + $argToSend .= "&url=http://defr.org/blog/posts/{$row['num_mess']}&excerpt=" + . htmlentities(urlencode(substr(strip_tags($row['Message']), 0, 255) . "...")); + + $toSend = $genToSend . "Content-Length: " . strlen($argToSend) . "\n\n"; + $toSend .= $argToSend; + echo("
"); + echo(""); + fclose($fp); + } + } + break; + } +?> + + + + Administration : Conception & Design + + + + + +

Administration de Dual Blog

+ +
+
    +Connect(); + $Data->Query("SELECT * FROM Mess ORDER BY num_version, num_mess DESC LIMIT 0, 10"); + $versionAc=""; + $i=0; + $ar_Version = array(); + while(0!==($val=$Data->GetRow())) { + if($val['num_version']!=$versionAc) { + if($i!=0) echo("
\n"); + echo("
  • {$val['num_version']} :\n
      "); + $versionAc=$val['num_version']; + $ar_Version[] = $versionAc; + $i++; + } + $Titre=$Data->utf8_ensure($val['Titre']); + echo(" + \t
    • {$Titre}Editer -- Supprimer -- Gérer les commentaires
    • "); + } + echo("\n
    \n
  • \n"); +?> + +
    + +
    + +
    + +
    + +
    + +
    + +
    + +
    +
    + +

    +

    +

    +

    + +
    +
    + +
    +
    + + + +
    + Catégorie du post + + + + +
    +
    + Tags + + +
    +
    + Mood / Emots + + +
    +
    + Trackback + + +
    +
    + Publication +
    +
    +
    + +
    +Administration de Dual Blog - Par DeFr - Icones © David Lanham - The IconFactory - +Valide XHTML 1.1 et CSS 3 +
    + + diff -r 000000000000 -r 629389204276 admin_xml.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/admin_xml.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,128 @@ +createElementNS('http://defr.org/2005/blog-post', 'post'); + $doc->appendChild($root); + + $mode = $Req->get('mode', 'GET', 'get'); + $type = $Req->get('type', 'GET', 'post'); + $id = $Req->get('id'); + + $root->appendChild($doc->createElement('id', $id)); + $root->appendChild(DOMUtils::createCDATAWrapper($doc, 'debug', var_export($Req, true))); + switch($mode . '-' . $type) + { + case 'edit-post': + $nvTitre = $Req->get('title'); + $nvContenu = $Req->get('content'); + $nvMood = $Req->get('mood'); + $Data->Query + (" + UPDATE Mess + SET Titre='{$nvTitre}', Message='{$nvContenu}', Emot='{$nvMood}' + WHERE num_mess={$id} + "); + // Récuperation des nouveaux tags à appliquer + $arTags = TextUtils::splitTags($Req->get('tags')); + // Récuperation des anciens tags + $Data->Query + (" + SELECT T.idTag, T.Tag + FROM Lien_Tags_Posts L + LEFT JOIN Tags T ON L.idTag = T.idTag + WHERE L.idMess = {$id} + "); + + $oldTags = array(); + while(0 !== ($row = $Data->GetRow())) + { + $oldTags[] = $row['Tag']; + $mapOld[$row['Tag']] = $row['idTag']; + } + // Calcul des différences + $tagsSupprimes = array_diff($oldTags, $arTags); + $tagsAjoutes = array_diff($arTags, $oldTags); + // Suppression des tags non affectés + if(is_array($tagsSupprimes)) + { + foreach($tagsSupprimes as $tagSuppr) + { + $supprIDs .= $mapOld[$tagSuppr] . ','; + } + $Data->Query + (" + DELETE FROM Lien_Tags_Posts + WHERE idMess={$id} AND idTag IN ({$supprIDs}0) + "); + } + // Ajout des tags ajoutés + if(is_array($tagsAjoutes)) + { + foreach($tagsAjoutes as $tagAj) + { + $n = $Data->Query("SELECT idTag FROM Tags WHERE Tag='{$tagAj}'"); + if($n == 0) + { + // Si le tag n'existe pas, on le crée + $Data->Query("INSERT INTO Tags SET Tag='{$tagAj}'"); + $Data->Query("SELECT idTag FROM Tags WHERE Tag='{$tagAj}'"); + } + $row = $Data->GetRow(); + $Data->Query + (" + INSERT INTO Lien_Tags_Posts + SET idMess={$id}, idTag={$row['idTag']} + "); + } + } + case 'get-post': + $Data->Query + (" + SELECT Titre, Message, Emot + FROM Mess + WHERE num_mess={$id} + "); + $row = $Data->GetRow(); + $titre_CDATA = $doc->createCDATASection($row['Titre']); + $root->appendChild(DOMUtils::createCDATAWrapper($doc, 'titre', $row['Titre'])); + $root->appendChild(DOMUtils::createCDATAWrapper($doc, 'contenu', $row['Message'])); + $root->appendChild($doc->createElement('mood', $row['Emot'])); + // Obtention des tags + $Data->Query + (" + SELECT T.idTag, T.Tag + FROM Lien_Tags_Posts L + LEFT JOIN Tags T ON L.idTag = T.idTag + WHERE L.idMess = {$id} + "); + while(0 !== ($row = $Data->GetRow())) + $root->appendChild($doc->createElement('tag', $row['Tag'])); + break; + case 'edit-brouillon': + $nvTitre = $Req->get('title'); + $nvContenu = $Req->get('content'); + $Data->Query + (" + UPDATE Brouillons + SET Titre='{$nvTitre}', Contenu='{$nvContenu}' + WHERE id_brouillon={$id} + "); + case 'get-brouillon': + $Data->Query + (" + SELECT Titre, Contenu + FROM Brouillons + WHERE id_brouillon={$id} + "); + $row = $Data->GetRow(); + $root->appendChild(DOMUtils::createCDATAWrapper($doc, 'titre', $row['Titre'])); + $root->appendChild(DOMUtils::createCDATAWrapper($doc, 'contenu', $row['Contenu'])); + break; + } + echo $doc->saveXML(); +?> \ No newline at end of file diff -r 000000000000 -r 629389204276 atom.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/atom.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,75 @@ +\n"); + $Data = new DataAccess(); + $Data->Query("SELECT * FROM Mess ORDER BY num_mess DESC LIMIT 0, 1"); + $val=$Data->GetRow(); + $modifiedDate=gmdate("Y-m-d", strtotime($val['DatePost'])) . "T" . gmdate("H:i:s-02:00", strtotime($val['DatePost'])); +?> + + Dual Blog + Le blog de DeFr, parlant de tout et de rien ^^; + + + + + Deroche Franck + http://defr.org + + urn:uuid:cface534-634f-4ce8-a07b-3a4187982583 + Query("SELECT * FROM Mess ORDER BY num_mess DESC LIMIT 0, 20"); + while($val=$Data->GetRow()) { + $utf8_Mess=str_replace("

    ", "

    ", str_replace("

    ", "

    ", (str_replace("€", "€", utf8_ensure($val['Message']))))); + $utf8_Mess = str_replace(" ", " ", $utf8_Mess); + $utf8_Titre=utf8_ensure($val['Titre']); + $issuedDate=gmdate("Y-m-d", strtotime($val['DatePost'])) . "T" . gmdate("H:i:s-02:00", strtotime($val['DatePost'])); + echo(" + + + <div xmlns='http://www.w3.org/1999/xhtml'> + {$utf8_Titre} + </div> + + tag:defr.org,2006:{$val['num_mess']} + +

    + {$utf8_Mess} +
    + + {$issuedDate} + {$issuedDate} + + + "); + } + ?> +
    diff -r 000000000000 -r 629389204276 classes.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/classes.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,14 @@ + diff -r 000000000000 -r 629389204276 comment.20060616.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/comment.20060616.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,84 @@ +get('Auteur'); + $Adresse=$Req->get('Adresse'); + $AdresseMail = $Req->get('AdresseMail'); + $Comment=$Req->get('Comment'); + $DateComment=gmdate("Y-m-d H:i:s", time() + 3600*2); + if(!is_null($Auteur) && $Auteur!='Votre Nom' && $Auteur != $Adresse && !empty($Comment)) { + // Prévention d'un "cassage" par ajout d'un commentaire incorrectement formaté + if(!DOMDocument::loadXML('' . $Comment . '')) + $Comment = '', ']]>',$Comment) . ']]>'; + $ip = $_SERVER['REMOTE_ADDR']; + $Data->debugQuery(" + INSERT INTO Commentaires(MessId, Auteur, Adresse, AdresseMail, Comment, DateComment, ip) + VALUES({$id}, '{$Auteur}', '{$Adresse}', '{$AdresseMail}', '{$Comment}', '{$DateComment}', '{$ip}') + "); + $Data->Query("UPDATE Mess SET NbCommentaires=NbCommentaires+1 WHERE num_mess={$id}"); + } + + $Data->Query("SELECT * FROM Mess WHERE num_mess = {$id}"); + $row = $Data->GetRow(); + $mood = ''; + $Mess=$Data->utf8_ensure(str_replace("

    ","

    ",str_replace("

    ","

    ", $row['Message']))); + $dateFormatee = strftime("%A %d %B %Y, %Hh%M", strtotime($row['DatePost'])); + $Titre = $Data->utf8_ensure($row['Titre']); + $Titre_url = str_replace(" ", "_", strip_tags($Titre)); + $Titre_url = str_replace("-", "_", $Titre_url); + include("top.php"); + if(!empty($row['Emot'])) { + $mood = "Mood : {$row["; + $row['Emot'] = " " . $row['Emot']; + } + echo(" +
    +

    {$Titre} | {$dateFormatee}

    + {$mood} + {$Mess}
    +
    "); + $Data->Query("SELECT * FROM Commentaires Where MessId={$id} ORDER BY num_comm"); + $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png"); + while(0 !== ($row = $Data->GetRow())) { + $dateFormatee = strftime(" à %Hh%M le %A %d %B %Y", strtotime($row['DateComment'])); + $AdresseMail = $row['AdresseMail']; + $grav_id = md5($AdresseMail); + $Comment = nl2br($row['Comment']); + $Comment = str_replace(" & ", " & ", $Comment); + if($row['num_comm'] == 172) $Comment = str_replace("", "", $Comment); + //if(stristr($Adresse, "@")) $Adresse = "mailto:" . $Adresse; + $betterHref = (stristr($row['Adresse'], 'http://') != false)?"href='{$row['Adresse']}'":''; + echo(" +
    +
    + + {$row['Auteur']} {$dateFormatee} +
    +
    {$Comment}
    +
    +
    "); + } + echo(" +
    + Revenir au blog +
    +
    +
    +
    + Vous souhaitez ajouter un nouveau commentaire ? Faites donc, il vous suffit de remplir + le petit formulaire ci-dessous. + + + + + +
    +
    +
    + "); + include("foot.php"); +?> diff -r 000000000000 -r 629389204276 comment.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/comment.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,93 @@ +get('Auteur'); + $Adresse=$Req->get('Adresse'); + $AdresseMail = $Req->get('AdresseMail'); + $Comment=$Req->get('Comment'); + $DateComment=gmdate("Y-m-d H:i:s", time() + 3600*2); + if(!is_null($Auteur) && $Auteur!='Votre Nom' && $Auteur != $Adresse && !empty($Comment)) { + // Prévention d'un "cassage" par ajout d'un commentaire incorrectement formaté + $ip = $_SERVER['REMOTE_ADDR']; + $Auteur = str_replace(array('<', '>'), array('<', '>'), $Auteur); + /*if(!DOMDocument::loadXML('' . $Comment . '')) + $Comment = '', ']]>',$Comment) . ']]>';*/ + if(DOMDocument::loadXML('' . $Comment . '')) { + $Data->debugQuery(" + INSERT INTO Commentaires(MessId, Auteur, Adresse, AdresseMail, Comment, DateComment, ip) + VALUES({$id}, '{$Auteur}', '{$Adresse}', '{$AdresseMail}', '{$Comment}', '{$DateComment}', '{$ip}') + "); + $Data->Query("UPDATE Mess SET NbCommentaires=NbCommentaires+1 WHERE num_mess={$id}"); + mail('webmaster+blogcomment@defr.org', 'Nouveau commentaire sur de ' . $Auteur, $Auteur . " vient de mettre en ligne le commentaire suivant: \n" . wordwrap($Comment, 70)); + } + else { + $infos = 'Votre commentaire doit etre fait de XML valide pour apparaitre.'; + } + } + + $Data->Query("SELECT * FROM Mess WHERE num_mess = {$id}"); + $row = $Data->GetRow(); + $mood = ''; + $Mess=$Data->utf8_ensure(str_replace("

    ","

    ",str_replace("

    ","

    ", $row['Message']))); + $dateFormatee = strftime("%A %d %B %Y, %Hh%M", strtotime($row['DatePost'])); + $Titre = $Data->utf8_ensure($row['Titre']); + $Titre_url = str_replace(" ", "_", strip_tags($Titre)); + $Titre_url = str_replace("-", "_", $Titre_url); + include("top.php"); + if(!empty($row['Emot'])) { + $mood = "Mood : {$row["; + $row['Emot'] = " " . $row['Emot']; + } + echo(" +
    +

    {$Titre} | {$dateFormatee}

    + {$mood} + {$Mess}
    + {$infos} +
    "); + $Data->Query("SELECT * FROM Commentaires Where MessId={$id} ORDER BY num_comm"); + $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png"); + while(0 !== ($row = $Data->GetRow())) { + $dateFormatee = strftime(" à %Hh%M le %A %d %B %Y", strtotime($row['DateComment'])); + $AdresseMail = $row['AdresseMail']; + $grav_id = md5($AdresseMail); + $Comment = nl2br($row['Comment']); + $Comment = str_replace(" & ", " & ", $Comment); + if($row['num_comm'] == 172) $Comment = str_replace("", "", $Comment); + //if(stristr($Adresse, "@")) $Adresse = "mailto:" . $Adresse; + $betterHref = (stristr($row['Adresse'], 'http://') != false)?"href='{$row['Adresse']}'":''; + echo(" +
    +
    + + {$row['Auteur']} {$dateFormatee} +
    +
    {$Comment}
    +
    +
    "); + } + echo(" +
    + Revenir au blog +
    +
    +
    +
    + Vous souhaitez ajouter un nouveau commentaire ? Faites donc, il vous suffit de remplir + le petit formulaire ci-dessous. + + + + + +
    +
    +
    + "); + include("foot.php"); +?> diff -r 000000000000 -r 629389204276 comment_.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/comment_.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,79 @@ +' . $Comment . '', DOMXML_LOAD_PARSING, $err)) + $Comment = ''; + $Data->Query("INSERT INTO Commentaires(MessId, Auteur, Adresse, AdresseMail, Comment, DateComment) VALUES({$id}, '{$Auteur}', '{$Adresse}', '{$AdresseMail}', '{$Comment}', '{$DateComment}')"); + $Data->Query("UPDATE Mess SET NbCommentaires=NbCommentaires+1 WHERE num_mess={$id}"); + } + + $Data->Query("SELECT * FROM Mess WHERE num_mess = {$id}"); + $row = $Data->GetRow(); + $mood = ''; + $Mess=$Data->utf8_ensure(str_replace("

    ","

    ",str_replace("

    ","

    ", $row['Message']))); + $dateFormatee = strftime("%A %d %B %Y, %Hh%M", strtotime($row['DatePost'])); + $Titre = $Data->utf8_ensure($row['Titre']); + $Titre_url = str_replace(" ", "_", strip_tags($Titre)); + $Titre_url = str_replace("-", "_", $Titre_url); + include("top.php"); + if(!empty($row['Emot'])) { + $mood = "Mood : {$row["; + $row['Emot'] = " " . $row['Emot']; + } + echo(" +
    +

    {$Titre} | {$dateFormatee}

    + {$mood} + {$Mess}
    +
    "); + $Data->Query("SELECT * FROM Commentaires Where MessId={$id} ORDER BY num_comm"); + $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png"); + while(0 !== ($row = $Data->GetRow())) { + $dateFormatee = strftime(" à %Hh%M le %A %d %B %Y", strtotime($row['DateComment'])); + $AdresseMail = $row['AdresseMail']; + $grav_id = md5($AdresseMail); + $Comment = nl2br($row['Comment']); + $Comment = str_replace(" & ", " & ", $Comment); + if($row['num_comm'] == 172) $Comment = str_replace("", "", $Comment); + //if(stristr($Adresse, "@")) $Adresse = "mailto:" . $Adresse; + $betterHref = (stristr($row['Adresse'], 'http://') != false)?"href='{$row['Adresse']}'":''; + echo(" +
    +
    + + {$row['Auteur']} {$dateFormatee} +
    +
    {$Comment}
    +
    +
    "); + } + echo(" +
    + Revenir au blog +
    +
    +
    +
    + Vous souhaitez ajouter un nouveau commentaire ? Faites donc, il vous suffit de remplir + le petit formulaire ci-dessous. + + + + + +
    +
    +
    + "); + include("foot.php"); +?> diff -r 000000000000 -r 629389204276 comment_back.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/comment_back.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,84 @@ +get('Auteur'); + $Adresse=$Req->get('Adresse'); + $AdresseMail = $Req->get('AdresseMail'); + $Comment=$Req->get('Comment'); + $DateComment=gmdate("Y-m-d H:i:s", time() + 3600*2); + if(!is_null($Auteur) && $Auteur!='Votre Nom' && !empty($Comment)) { + // Prévention d'un "cassage" par ajout d'un commentaire incorrectement formaté + //if(!@domxml_open_mem('' . $Comment . '', DOMXML_LOAD_PARSING, $err)) + if(!DOMDocument::loadXML('' . $Comment . '')) + $Comment = ''; + $Data->debugQuery(" + INSERT INTO Commentaires(MessId, Auteur, Adresse, AdresseMail, Comment, DateComment) + VALUES({$id}, '{$Auteur}', '{$Adresse}', '{$AdresseMail}', '{$Comment}', '{$DateComment}') + "); + $Data->Query("UPDATE Mess SET NbCommentaires=NbCommentaires+1 WHERE num_mess={$id}"); + } + + $Data->Query("SELECT * FROM Mess WHERE num_mess = {$id}"); + $row = $Data->GetRow(); + $mood = ''; + $Mess=$Data->utf8_ensure(str_replace("

    ","

    ",str_replace("

    ","

    ", $row['Message']))); + $dateFormatee = strftime("%A %d %B %Y, %Hh%M", strtotime($row['DatePost'])); + $Titre = $Data->utf8_ensure($row['Titre']); + $Titre_url = str_replace(" ", "_", strip_tags($Titre)); + $Titre_url = str_replace("-", "_", $Titre_url); + include("top.php"); + if(!empty($row['Emot'])) { + $mood = "Mood : {$row["; + $row['Emot'] = " " . $row['Emot']; + } + echo(" +
    +

    {$Titre} | {$dateFormatee}

    + {$mood} + {$Mess}
    +
    "); + $Data->Query("SELECT * FROM Commentaires Where MessId={$id} ORDER BY num_comm"); + $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png"); + while(0 !== ($row = $Data->GetRow())) { + $dateFormatee = strftime(" à %Hh%M le %A %d %B %Y", strtotime($row['DateComment'])); + $AdresseMail = $row['AdresseMail']; + $grav_id = md5($AdresseMail); + $Comment = nl2br($row['Comment']); + $Comment = str_replace(" & ", " & ", $Comment); + if($row['num_comm'] == 172) $Comment = str_replace("", "", $Comment); + //if(stristr($Adresse, "@")) $Adresse = "mailto:" . $Adresse; + $betterHref = (stristr($row['Adresse'], 'http://') != false)?"href='{$row['Adresse']}'":''; + echo(" +
    +
    + + {$row['Auteur']} {$dateFormatee} +
    +
    {$Comment}
    +
    +
    "); + } + echo(" +
    + Revenir au blog +
    +
    +
    +
    + Vous souhaitez ajouter un nouveau commentaire ? Faites donc, il vous suffit de remplir + le petit formulaire ci-dessous. + + + + + +
    +
    +
    + "); + include("foot.php"); +?> diff -r 000000000000 -r 629389204276 comment_old.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/comment_old.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,85 @@ +get('Auteur'); + $Adresse=$Req->get('Adresse'); + $AdresseMail = $Req->get('AdresseMail'); + $Comment=$Req->get('Comment'); + $DateComment=gmdate("Y-m-d H:i:s", time() + 3600*2); + if(!is_null($Auteur) && $Auteur!='Votre Nom' && !empty($Comment)) { + // Prévention d'un "cassage" par ajout d'un commentaire incorrectement formaté + //if(!@domxml_open_mem('' . $Comment . '', DOMXML_LOAD_PARSING, $err)) + if(!DOMDocument::loadXML('' . $Comment . '')) + $Comment = ''; + $ip = $_SERVER['REMOTE_ADDR']; + $Data->debugQuery(" + INSERT INTO Commentaires(MessId, Auteur, Adresse, AdresseMail, Comment, DateComment, ip) + VALUES({$id}, '{$Auteur}', '{$Adresse}', '{$AdresseMail}', '{$Comment}', '{$DateComment}', '{$ip}') + "); + $Data->Query("UPDATE Mess SET NbCommentaires=NbCommentaires+1 WHERE num_mess={$id}"); + } + + $Data->Query("SELECT * FROM Mess WHERE num_mess = {$id}"); + $row = $Data->GetRow(); + $mood = ''; + $Mess=$Data->utf8_ensure(str_replace("

    ","

    ",str_replace("

    ","

    ", $row['Message']))); + $dateFormatee = strftime("%A %d %B %Y, %Hh%M", strtotime($row['DatePost'])); + $Titre = $Data->utf8_ensure($row['Titre']); + $Titre_url = str_replace(" ", "_", strip_tags($Titre)); + $Titre_url = str_replace("-", "_", $Titre_url); + include("top.php"); + if(!empty($row['Emot'])) { + $mood = "Mood : {$row["; + $row['Emot'] = " " . $row['Emot']; + } + echo(" +
    +

    {$Titre} | {$dateFormatee}

    + {$mood} + {$Mess}
    +
    "); + $Data->Query("SELECT * FROM Commentaires Where MessId={$id} ORDER BY num_comm"); + $defaultGravatar = urlencode("http://defr.org/Misc/NoGravatar.png"); + while(0 !== ($row = $Data->GetRow())) { + $dateFormatee = strftime(" à %Hh%M le %A %d %B %Y", strtotime($row['DateComment'])); + $AdresseMail = $row['AdresseMail']; + $grav_id = md5($AdresseMail); + $Comment = nl2br($row['Comment']); + $Comment = str_replace(" & ", " & ", $Comment); + if($row['num_comm'] == 172) $Comment = str_replace("", "", $Comment); + //if(stristr($Adresse, "@")) $Adresse = "mailto:" . $Adresse; + $betterHref = (stristr($row['Adresse'], 'http://') != false)?"href='{$row['Adresse']}'":''; + echo(" +
    +
    + + {$row['Auteur']} {$dateFormatee} +
    +
    {$Comment}
    +
    +
    "); + } + echo(" +
    + Revenir au blog +
    +
    +
    +
    + Vous souhaitez ajouter un nouveau commentaire ? Faites donc, il vous suffit de remplir + le petit formulaire ci-dessous. + + + + + +
    +
    +
    + "); + include("foot.php"); +?> diff -r 000000000000 -r 629389204276 css/Brushed.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/Brushed.css Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,66 @@ +/* Dual Blog v10 : OS Edition + Brushed Version */ + +#Link, #Link li, dl, dt, dd {display:block; margin:0px;list-style-type:none;} + +html {margin:0px;background:#EFEFEF; + font-family:Tahoma, Verdana, Arial, serif;font-size:11px;} + +p {margin:0px;padding:0px;} + +#Main {margin:0px;margin-left:-374px;margin-top:-286px;left:50%;top:50%; + position:absolute;width:768px;height:573px;overflow:hidden; + padding-top:85px;padding-left:4px;padding-right:9px; + background:url('./Res_Brushed/Fond_Main.jpg') no-repeat;} + +#Adresse {position:absolute;left:512px;top:57px;width:237px;} + +#Link {position:absolute;left:484px;top:70px;border:1px #B3A868 solid;width:246px;height:100px; + background:white url('./Gimp.jpg') 182px 36px no-repeat;overflow:auto;padding:2px;padding-left:6px;padding-right:6px; + z-index:100;display:none;} + +/* Style sur la colonne de gauche ^^; */ + +#SideBar {background:#CDCDCD;position:absolute;left:4px;top:83px; + width:235px;height:485px;overflow:auto;border-right:1px black dashed;} + +#SideBar dt, #SideBar dd {margin-left:auto;margin-right:auto; + padding-left:10px;padding-right:10px;padding-top:4px; + } + +#SideBar dt {background:url('./Res_Brushed/Brush_Title.png') no-repeat;height:17px;width:198px; + font-weight:bold;color:#575233;margin-top:12px;} + +#SideBar dd {background:url('./Res_Brushed/Brush_Side.png') repeat-y;color:#000000;width:198px; + text-align:left;padding-bottom:4px;border-top:none;} + +/* Style sur la partie principale du blog : les posts */ + +#Posts {top:83px;left:240px;width:524px;height:485px;overflow:auto; + position:absolute;background:url('Res_Brushed/Degrade_Post.gif') repeat-y;} + +.PostContent h2 { + margin:-19px auto 5px; + padding:0px 10px; + border:1px black dashed;background:#EFEFEF; + font-size:1.1em;} + +.PostContent {margin:10px;margin-top:12px;padding:10px;text-align:justify; + background:url('./Res_Brushed/Fond_Post.gif');border:1px black solid;} + +/* Style appliqués sur les span */ + +i, .i, em {font-style:italic;color:#333399;} + +.b {font-weight:bold;} + +/* Styles sur les liens */ +a {color:#333399;} +a:hover {color:#000000;} +#Link a {text-decoration:none;margin-left:8px;border-bottom:1px black dotted;} + +/* Style sur le tagboard ^^ */ +#TagBoard {width:175px;height:465px;border:none;margin:0px;padding:0px; + margin-left:auto;margin-right:auto;} + +p.center img {width:450px;} diff -r 000000000000 -r 629389204276 css/HoverExp.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/HoverExp.css Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,50 @@ +/* Dual Blog, :hover-ed edition ^^; */ + +#Link, #Link li, dl, dt, dd {display:block; margin:0px;list-style-type:none;} + +body {margin:20px;} + +#Main {border:1px black solid;padding:5px;padding-left:220px;} + +h1 {display:none;} + +/* SideBar */ +#SideBar {width:200px;float:left;padding:10px;padding-top:0px;position:absolute;left:20px;top:20px;} +#SideBar dt {background:#EEE;border:1px black solid;border-bottom:1px dotted;padding:0px 10px 0px 10px; + margin-top:10px;font-weight:bold;} +#SideBar dd {border:1px black solid;margin:0px;border-top:none;padding:10px;font-size:0.9em;} +#SideBar dd p {margin:0px;padding:0px;} +#SideBar dd p:first-letter {color:#06F;} +/* Hover sur la colonne de gauche, youplaboom ^^; */ +#SideBar dt:hover {background:#333;color:white;} +#SideBar dt:hover + #SideBar dd, #SideBar dd:hover {background:#333;color:white;} +#SideBar dt:hover + #SideBar dd a, #SideBar dd:hover a {color:#CCC;border-bottom:1px #CCC solid;} +#SideBar dd a:hover {color:#FFF;border-bottom:1px #CCC dashed;} +#SideBar dt:hover + #SideBar dd p:first-letter, #SideBar dd:hover p:first-letter {color:#FC0;} + +/* Posts */ +#Posts {border-left:1px black solid;padding:5px;padding-left:10px} +.PostContent {text-align:justify;margin-bottom:10px;border-bottom:1px black solid;padding:5px;} +.PostContent h2 {margin-left:auto;margin-right:auto;text-align:center;font-weight:bold;} + +/* Some :hover magic */ +.PostContent:hover {background:#333;color:#FC0;} +.PostContent:hover h2 {color:#3C9;} +.PostContent:hover span {color:#396;} +.PostContent:hover p:first-letter{color:#06F !important;} +.PostContent:hover a {color:#0CF;border-bottom:1px #FFF dashed;} +/* on cache la méchante iframe... */ +iframe {display:none;} + +#Adresse {display:none;} +#Link {display:block;width:auto;overflow:auto;height:100px;border-left:1px black solid; border-bottom:1px black dashed;padding:5px;} + /*#Link A {position:relative;left:10px;} Fait sortir bizarrement du flow sous IE... */ +#Link a {margin-left:10px;} + +#SideBar ul, #SideBar li {margin:0px;padding:0px;list-style-type:none;} + +.i {font-style:italic;} +.b {font-weight:bold;} + +a {color:#666;border-bottom:1px #333 solid;text-decoration:none;} +a:hover {border-bottom:1px #999 dashed;color:#000;} diff -r 000000000000 -r 629389204276 css/Lite.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/Lite.css Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,60 @@ +/* Dual Blog v10 : OS Edition + Lite Version */ + +#Link, #Link li, dl, dt, dd {display:block; margin:0px;list-style-type:none;} + +body {margin:0px;font-family:Tahoma, Verdana, Arial, serif;font-size:11px;} + +p {margin:0px;padding:0px;} + +#Main {margin:0px;margin-left:-374px;margin-top:-286px;left:50%;top:50%; + position:absolute;width:745px;height:486px;overflow:hidden; border:1px black solid;} + +#Adresse {display:none;} + +#Link {width:320px;height:70px;position:absolute;/*left:470px;*/top:10px;right:3px; + background:white url('./Gimp.jpg') 250px 6px no-repeat;overflow:auto;padding:2px;padding-left:6px;padding-right:6px; + z-index:100;display:block;} + +/* Style sur la colonne de gauche ^^; */ + +#SideBar {width:230px;height:480px;overflow:auto;border-right:1px black dashed;} + +#SideBar dt, #SideBar dd {margin-left:auto;margin-right:auto; + padding-left:10px;padding-right:10px;padding-top:4px; + } + +#SideBar dt {height:17px;width:180px;background:#DDDDDD;border:black 1px solid; + border-bottom:dotted 1px; font-weight:bold;color:#575233;margin-top:12px;} +#SideBar dt:hover {background:#F3F3F3;} + +#SideBar dd {background:#F3F3F3;color:#000000;width:180px;border:1px black solid; + text-align:left;padding-bottom:4px;border-top:none;} + +/* Style sur la partie principale du blog : les posts */ + +#Posts {width:516px;height:384px;overflow:auto;position:absolute;left:226px;top:100px;} + +.PostContent {margin:10px;margin-top:12px;padding:10px;text-align:justify; + border:1px black solid;background:url('./Gimp_grayscale.jpg') bottom right no-repeat;} + +.PostContent h2 { + margin:-19px auto 5px; + padding:0px 10px; + border:1px black dashed;background:#F3F3F3;} + +/* Style appliqués sur les span */ + +.i {font-style:italic;color:#333399;} + +.b {font-weight:bold;} + +/* Styles sur les liens */ +a {color:#333399;} +a:hover {color:#000000;} +#Link a {text-decoration:none;margin-left:8px;border-bottom:1px black dotted;} + +/* Style sur le tagboard ^^ */ +#TagBoard {width:180px;height:472px;border:none;margin:0px;padding:0px; + margin-left:auto;margin-right:auto;} + diff -r 000000000000 -r 629389204276 css/Lite_nv.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/Lite_nv.css Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,63 @@ +/* Dual Blog v10 : OS Edition + Lite Version */ + +#Link, #Link li, dl, dt, dd {display:block; margin:0px;list-style-type:none;} + +body {margin:20px;padding:0px;font-family:Tahoma, Verdana, Arial, serif;font-size:11px;} + +p {margin:0px;padding:0px;} + +#Main {margin:10px;border:1px black solid;direction:rtl;margin-top:0px;} + +#Adresse {display:none;} + +#Link {height:70px;position:absolute;background:white url('Res_OliveVerde/Gimp.jpg') no-repeat; + overflow:auto;margin:0px;padding:2px;padding-left:6px;padding-right:6px; + z-index:100;display:none;top:40px;left:265px;} + +/* Style sur la colonne de gauche ^^; */ + +#SideBar {width:230px;margin:3px;position:absolute;right:30px;top:70px;} + +#SideBar dt, #SideBar dd { + margin:0px auto; + padding:4px 10px; + direction:ltr; + } + +#SideBar dt {height:17px;width:180px;background:#DDDDDD;border:black 1px solid; + border-bottom:dotted 1px; font-weight:bold;color:#575233;margin-top:12px;} +#SideBar dt:hover {background:#F3F3F3;} + +#SideBar dd {background:#F3F3F3;color:#000000;width:180px;border:1px black solid; + text-align:left;padding-bottom:4px;border-top:none;} + +/* Style sur la partie principale du blog : les posts */ + +#Posts {margin-right:234px;direction:ltr;border-right:1px black dashed;padding-top:0px;} + +.PostContent {margin:10px;margin-top:25px;padding:10px;text-align:justify; + border:1px black solid;background:url('Res_OliveVerde/Gimp_grayscale.jpg') bottom right no-repeat;} + +.PostContent h2 { + margin:-19px auto 5px; + padding:0px 10px; + border:1px black dashed;background:#F3F3F3;} + +/* Style appliqués sur les span */ + +.i {font-style:italic;color:#333399;} + +.b {font-weight:bold;} + +/* Styles sur les liens */ +a {color:#333399;} +a:hover {color:#000000;} +#Link a {text-decoration:none;margin-left:8px;border-bottom:1px black dotted;} + +/* Style sur le tagboard ^^ */ +#TagBoard {width:180px;height:472px;border:none;margin:0px;padding:0px; + margin-left:auto;margin-right:auto;} + +a img {padding:10px;margin:0px 10px 10px;border:1px #999 solid;background:#EEE;} + diff -r 000000000000 -r 629389204276 css/OliveVerde.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/OliveVerde.css Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,68 @@ +/* Dual Blog v10 : OS Edition + Olive Verde Version */ + +#Link, #Link li, dl, dt, dd {display:block; margin:0px;list-style-type:none;} + +html {margin:0px;background:url('Res_OliveVerde/Fond.png') repeat-y; + font-family:Tahoma, Verdana, Arial, serif;font-size:11px;} + +p {margin:0px;padding:0px;} + +#Main {margin:0px;margin-left:-374px;margin-top:-286px;left:50%;top:50%; + position:absolute;width:745px;height:486px;overflow:hidden; + padding-top:85px;padding-left:4px;padding-right:9px; + background:url('Res_OliveVerde/FondMain.png') no-repeat;} + +#Adresse {position:absolute;left:512px;top:57px;width:237px;} + +#Link {position:absolute;left:484px;top:70px;border:1px #B3A868 solid;width:246px;height:100px; + background:white url('Res_OliveVerde/Gimp.jpg') 182px 36px no-repeat;overflow:auto;padding:2px;padding-left:6px;padding-right:6px; + z-index:100;display:none;} + +/* Style sur la colonne de gauche ^^; */ + +#SideBar {background:#DADBB5;position:absolute;left:4px;top:88px; + width:222px;height:478px;overflow:auto;border-right:1px black dashed;} + +#SideBar dt, #SideBar dd {margin-left:auto;margin-right:auto; + padding-left:10px;padding-right:10px;padding-top:4px; + } + +#SideBar dt {background:url('Res_OliveVerde/ShellBar.gif') no-repeat;height:17px;width:182px; + font-weight:bold;color:#575233;margin-top:12px;} + +#SideBar dd {background:#F0EBD7;color:#000000;width:180px;border:1px #B3A868 solid; + text-align:left;padding-bottom:4px;border-top:none;} + +/* Style sur la partie principale du blog : les posts */ + +#Posts {top:88px;left:227px;width:524px;height:478px;overflow:auto; + position:absolute;background:url('Res_OliveVerde/FondPost.png') repeat-y;} + +.PostContent {margin:10px;margin-top:12px;padding:10px;text-align:justify; + background:url('Res_OliveVerde/FondPostContent.png');border:1px #B3A868 solid;} + +.PostContent h2 { + margin:-19px auto 5px; + padding:0px 10px; + border:1px black dashed; + background:url('Res_OliveVerde/FondTitre.png'); + font-size:1.1em;} + +/* Style appliqués sur les span */ + +.i {font-style:italic;color:#333399;} + +.b {font-weight:bold;} + +/* Styles sur les liens */ +a {color:#333399;} +a:hover {color:#000000;} +#Link a {text-decoration:none;margin-left:8px;border-bottom:1px black dotted;} + +/* Style sur le tagboard ^^ */ +#TagBoard {width:175px;height:465px;border:none;margin:0px;padding:0px; + margin-left:auto;margin-right:auto;} + +p.center img {width:450px;} + diff -r 000000000000 -r 629389204276 css/Res_Brushed/Brush_Side.png Binary file css/Res_Brushed/Brush_Side.png has changed diff -r 000000000000 -r 629389204276 css/Res_Brushed/Brush_Title.png Binary file css/Res_Brushed/Brush_Title.png has changed diff -r 000000000000 -r 629389204276 css/Res_Brushed/Degrade_Post.gif Binary file css/Res_Brushed/Degrade_Post.gif has changed diff -r 000000000000 -r 629389204276 css/Res_Brushed/Fond_Main.jpg Binary file css/Res_Brushed/Fond_Main.jpg has changed diff -r 000000000000 -r 629389204276 css/Res_Brushed/Fond_Main_bk.jpg Binary file css/Res_Brushed/Fond_Main_bk.jpg has changed diff -r 000000000000 -r 629389204276 css/Res_Brushed/Fond_Post.gif Binary file css/Res_Brushed/Fond_Post.gif has changed diff -r 000000000000 -r 629389204276 css/Res_LiteReloaded/Gimp_grayscale.jpg Binary file css/Res_LiteReloaded/Gimp_grayscale.jpg has changed diff -r 000000000000 -r 629389204276 css/Res_OliveVerde/Fond.png Binary file css/Res_OliveVerde/Fond.png has changed diff -r 000000000000 -r 629389204276 css/Res_OliveVerde/FondMain.png Binary file css/Res_OliveVerde/FondMain.png has changed diff -r 000000000000 -r 629389204276 css/Res_OliveVerde/FondPost.png Binary file css/Res_OliveVerde/FondPost.png has changed diff -r 000000000000 -r 629389204276 css/Res_OliveVerde/FondPostContent.png Binary file css/Res_OliveVerde/FondPostContent.png has changed diff -r 000000000000 -r 629389204276 css/Res_OliveVerde/FondTitre.png Binary file css/Res_OliveVerde/FondTitre.png has changed diff -r 000000000000 -r 629389204276 css/Res_OliveVerde/Gimp.jpg Binary file css/Res_OliveVerde/Gimp.jpg has changed diff -r 000000000000 -r 629389204276 css/Res_OliveVerde/Gimp.png Binary file css/Res_OliveVerde/Gimp.png has changed diff -r 000000000000 -r 629389204276 css/Res_OliveVerde/Gimp_grayscale.jpg Binary file css/Res_OliveVerde/Gimp_grayscale.jpg has changed diff -r 000000000000 -r 629389204276 css/Res_OliveVerde/ShellBar.gif Binary file css/Res_OliveVerde/ShellBar.gif has changed diff -r 000000000000 -r 629389204276 css/Res_OliveVerde/ShellBar.png Binary file css/Res_OliveVerde/ShellBar.png has changed diff -r 000000000000 -r 629389204276 css/Res_OliveVerde/ShellClose.png Binary file css/Res_OliveVerde/ShellClose.png has changed diff -r 000000000000 -r 629389204276 css/Res_Somatic/bg_test.png Binary file css/Res_Somatic/bg_test.png has changed diff -r 000000000000 -r 629389204276 css/Res_Somatic/bg_titre.png Binary file css/Res_Somatic/bg_titre.png has changed diff -r 000000000000 -r 629389204276 css/Res_Somatic/puce.gif Binary file css/Res_Somatic/puce.gif has changed diff -r 000000000000 -r 629389204276 css/Somatic.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/Somatic.css Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,236 @@ +/* Dual Blog, Somatic Edition */ + +html { + margin:0; + padding:0; + background:#EEE; + font-family:"Bitstream Vera Sans", "Lucida Grande", Tahoma, Verdana, Arial, sans serif; +} + +#Link, #Link li, dl, dt, dd {display:block; margin:0;list-style-type:none;} + +#Main { + width:798px; + margin:5px auto 0; + padding:0; + background:white; + border:1px #333 solid; + border-bottom:0; +} + +h1 { + margin:0 0 150px; + padding:5px; + height:21px; + text-align:center; + border-bottom:1px #333 solid; + font-size:17px; + background-image:url('Res_Somatic/bg_test.png'); + position:relative; + z-index:3; +} + +#Adresse, #SideBar dt { + position:absolute; + top:38px; + left:50%; + display:block; + width:132px; + padding-top:135px; + background-repeat:no-repeat; + background-position:2px 5px; + background-color:#FFF; + text-align:center; + border-bottom:1px #333 solid; + border-right:1px #333 solid; + font-size:0.9em; + z-index:2; + cursor:pointer; +} + +/* Let's give some 8-bits pngs to IE... */ +* html #Adresse {background-image:url('icons/fav_8bit.png') !important;} +* html #About {background-image:url('icons/connect_8bit.png') !important;} +* html #Profile {background-image:url('icons/profile_8bit.png') !important;} +* html #Like {background-image:url('icons/like_8bit.png') !important;} +* html #Geekness {background-image:url('icons/geek_8bit.png') !important;} +* html #Archives {background-image:url('icons/Hank_8bit.png') !important;} +* html #ToDo {background-image:url('icons/todo_8bit.png') !important;} + +#Adresse { + margin-left:-398px; + background-image:url('icons/fav.png'); +} + +#About { + margin-left:-265px; + background-image:url('icons/connect.png'); +} + +#Profile { + margin-left:-132px; + background-image:url('icons/profile.png'); +} + +#Like { + margin-left:1px; + background-image:url('icons/like.png'); +} + +#Geekness { + margin-left:134px; + background-image:url('icons/geek.png'); +} + +#Archives { + margin-left:134px; + background-image:url('icons/Hank.png'); +} + +#ToDo { + margin-left:267px; + border-right:0 !important; + background-image:url('icons/todo.png'); +} + +#SideBar dt:hover, #Adresse:hover {background-color:#dec;} + +.Actif {background-color:#eee !important;} + +#SideBar p, #Posts {margin:5px 0; padding:0;text-align:justify;} + +#Link, #SideBar dd { + font-size:0.9em; + border-bottom:1px #333 solid; + padding:5px 10px; + background:url('Res_Somatic/bg_test.png') #fff; + height:150px; + overflow:auto; + position:absolute; + top:187px; + width:778px; + z-index:0; +} + +#Link {display:none;} + +.PostContent { + padding:10px; + text-align:justify; + border-bottom: 1px #333 solid; +} + +.PostContent h2 { + font-weight:bold; + text-align:center; + border:1px #666 solid; + margin:0 15px; + background:url('Res_Somatic/bg_titre.png'); + font-size:1.2em; +} + +.PostContent h2 abbr { + padding:2px 0; +} + +#SideBar a, #Link a {text-decoration:none;color:#666;font-style:italic;margin-bottom:1px;border-bottom:1px dashed;} +#SideBar li, #Link li {line-height:1.5em;} +#Link a {margin-left:10px;} +#SideBar a:hover, #Link a:hover, #Posts a:hover {border-bottom:1px solid;} +#SideBar ul, .PostContent ul {list-style:url(Res_Somatic/puce.gif) outside;} + +a:not([href]) {border-bottom:0 !important;} + +a img { + padding:10px; + margin:0 10px 10px; + border:1px solid #795; + background-image:url('Res_Somatic/bg_test.png'); +} + +code, blockquote { + border:1px #795 solid; + border-left-width:3px; + background:url('Res_Somatic/bg_test.png') #FFE; + padding:2px 6px; +} + +p.code code { + white-space:pre; + overflow:auto; + display:block; +} + +code {line-height:1.5em;} + +em, i, .i {color:#67B;} +#Posts a {color:#795;text-decoration:none;} +#Posts {padding-top:170px;} + +.mood, .gravatar, .gallerie { + float:left; + margin:1.5em 1em 0.5em 0; + padding:10px; + border:1px #795 solid; + background:url(Res_Somatic/bg_test.png); +} + +.gravatar { + margin:0 1em 0 0 ; +} + +.gallerie { + padding:1.5em; + width:300px; +} + +.Tongue { + background:url(/blog/mood/light/Tongue.png) bottom right no-repeat; +} + +.Neutral { + background:url(/blog/mood/light/Neutral.png) bottom right no-repeat; +} + +.Goggle { + background:url(/blog/mood/light/Goggle.png) bottom right no-repeat; +} + +.Clop { + background:url(/blog/mood/light/Clop.png) bottom right no-repeat; +} + +.Cry { + background:url(/blog/mood/light/Cry.png) bottom right no-repeat; +} + +.Oohh { + background:url(/blog/mood/light/Oohh.png) bottom right no-repeat; +} + +.Love { + background:url(/blog/mood/light/Love.png) bottom right no-repeat; +} + +.PostContent dd, .PostContent dt { + border:2px #795 solid; + padding-left:0.5em; +} + +.PostContent dt { + border-width:2px 2px 0; + background:url(Res_Somatic/bg_test.png); + padding:0.3em 1em; +} + +.PostContent dd { + border-top:1px dashed #795; + margin-bottom:1em; + padding:0 1em; +} + +.PostContent dd ul { + padding:0; + list-style-position:inside; +} + diff -r 000000000000 -r 629389204276 css/Somatic.css_ --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/Somatic.css_ Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,214 @@ +/* Dual Blog, Somatic Edition */ + +html, body { + margin:0; + padding:0; + background:#EEE; + font-family:"Bitstream Vera Sans", "Lucida Grande", Tahoma, Verdana, Arial, sans serif; +} + +#Link, #Link li, dl, dt, dd {display:block; margin:0;list-style-type:none;} + +#Main {width:798px; margin:5px auto 0px; background:white; border:1px #333 solid;border-bottom:0px;/*padding-top:181px;*/} + +h1 { + margin:0px; + margin-bottom:150px; + padding:5px; + width:786px; + height:21px; + text-align:center; + border-bottom:1px #333 solid; + font-size:17px; + background-image:url('Res_Somatic/bg_test.png'); +} + +#Adresse, #SideBar dt { + position:absolute; + top:38px; + left:50%; + display:block; + width:132px; + padding-top:135px; + background-repeat:no-repeat; + background-position:2px 5px; + background-color:#FFF; + text-align:center; + border-bottom:1px #333 solid; + border-right:1px #333 solid; + font-size:0.9em; + z-index:2; + cursor:pointer; +} + +/* Let's give some 8-bits pngs to IE... */ +* html #Adresse {background-image:url('icons/fav_8bit.png') !important;} +* html #About {background-image:url('icons/connect_8bit.png') !important;} +* html #Profile {background-image:url('icons/profile_8bit.png') !important;} +* html #Like {background-image:url('icons/like_8bit.png') !important;} +* html #Geekness {background-image:url('icons/geek_8bit.png') !important;} +* html #Archives {background-image:url('icons/Hank_8bit.png') !important;} +* html #ToDo {background-image:url('icons/todo_8bit.png') !important;} +#Adresse { + margin-left:-398px; + background-image:url('icons/fav.png'); +} + +#About { + margin-left:-265px; + background-image:url('icons/connect.png'); +} + +#Profile { + margin-left:-132px; + background-image:url('icons/profile.png'); +} + +#Like { + margin-left:1px; + background-image:url('icons/like.png'); +} + +#Geekness { + margin-left:134px; + background-image:url('icons/geek.png'); +} + +#Archives { + margin-left:134px; + background-image:url('icons/Hank.png'); +} + +#ToDo { + margin-left:267px; + border-right:0px; + background-image:url('icons/todo.png'); +} + +#SideBar dt:hover, #Adresse:hover {background-color:#dec;} + +.Actif {background-color:#eee !important;} + +#SideBar p, #Posts {margin:5px 0px; padding:0px;text-align:justify;} + +#Link, #SideBar dd { + font-size:0.9em; + border-bottom:1px #333 solid; + padding:5px 10px; + background-color:#FFF; + background-image:url('Res_Somatic/bg_test.png'); + height:150px; + overflow:auto; + position:absolute; + top:187px; + width:778px; + z-index:0; +} + +#Link {display:none;} + +.PostContent { + padding:10px; + text-align:justify; + border-bottom: 1px #333 solid; +} + +.PostContent h2 { + font-weight:bold; + text-align:center; + border:1px #666 solid; + margin:0px 15px; + background:url('Res_Somatic/bg_titre.png'); + font-size:1.2em; +} + +.PostContent h2 abbr { + padding:2px 0; +} + +#SideBar a, #Link a {text-decoration:none;color:#666;font-style:italic;margin-bottom:1px;border-bottom:1px dashed;} +#SideBar li, #Link li {line-height:1.5em;} +#Link a {margin-left:10px;} +#SideBar a:hover, #Link a:hover, #Posts a:hover {border-bottom:1px solid;} +#SideBar ul, .PostContent ul {list-style:url(Res_Somatic/puce.gif) outside;} + + +a img {padding:10px;margin:0px 10px 10px;border:1px solid #795;background-image:url('Res_Somatic/bg_test.png');} + +code, blockquote {border:1px #795 solid; border-left-width:3px; background:url('Res_Somatic/bg_test.png') #FFE;padding:2px 6px;} + +p.code code {white-space:pre;overflow:auto;display:block;/*width:758px;*/} + +code {line-height:1.5em;} + +em, i, .i {color:#67B;} +#Posts a {color:#795;text-decoration:none;} +#Posts {padding-top:170px;} + +.mood, .gravatar, .gallerie { + float:left; + margin:1.5em 1em 0.5em 0; + padding:10px; + border:1px #795 solid; + background:url(Res_Somatic/bg_test.png); +} + +.gravatar { + margin:0 1em 0 0 ; +} + +.gallerie { + padding:1.5em; + width:300px; +} + +.Tongue { + background:url(/blog/mood/light/Tongue.png) bottom right no-repeat; +} + +.Neutral { + background:url(/blog/mood/light/Neutral.png) bottom right no-repeat; +} + +.Goggle { + background:url(/blog/mood/light/Goggle.png) bottom right no-repeat; +} + +.Clop { + background:url(/blog/mood/light/Clop.png) bottom right no-repeat; +} + +.Cry { + background:url(/blog/mood/light/Cry.png) bottom right no-repeat; +} + +.Oohh { + background:url(/blog/mood/light/Oohh.png) bottom right no-repeat; +} + +.Love { + background:url(/blog/mood/light/Love.png) bottom right no-repeat; +} + +.PostContent dd, .PostContent dt { + border:2px #795 solid; + padding-left:0.5em; +} + +.PostContent dt { + border-width:2px 2px 0; + background:url(Res_Somatic/bg_test.png); + padding:0.3em 1em; +} + +.PostContent dd { + border-top:1px dashed #795; + margin-bottom:1em; + padding:0 1em; +} + +.PostContent dd ul { + padding:0; + list-style-position:inside; +} + diff -r 000000000000 -r 629389204276 css/Somatic_JS.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/Somatic_JS.css Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,14 @@ +/* Somatic_JS.css : Importé par JavaScript, dans le but de + donner une apparence laissant tout accessible aux navigateurs + graphiques avec le JavaScript desactivé... */ + +#SideBar dt { + left:50% !important; +} + +#SideBar dd { + position:absolute; + top:0px; +} +#Link {position:absolute; top:187px !important;} +#Posts {padding-top:170px !important;} \ No newline at end of file diff -r 000000000000 -r 629389204276 css/admin.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/admin.css Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,95 @@ +html {background:#eee;min-height:100.05%;} + +body { + margin:15px auto; + width:596px; + background:#fff; + border:1px #333 solid; + min-height:200px; +} + +h3 {width:100%;text-align:center;display:none;} + +/* Formulaire : Styles généraux */ +form {padding:1em;} + +select {background:#f9f9f9; width:100%;} + +input, textarea { + background:#f9f9f9; + border:1px #999 dashed; + margin-top:10px; + width:100%; +} + +textarea{height:120px;} + +/* Style sur les listes */ + +ul {margin:0px 15px; padding:0px; border-left:2px solid #999;} +li {padding:2px 15px;margin:2px 0px;list-style:circle inside;} + +li:hover, li.Pinned {list-style:disc inside;background:#F9F9F9;border:black dashed;border-width:1px 1px 1px 0px;padding:1px 15px;} + +/* Le menu */ +ul#Menu {margin:0px;padding:0px;border-width:0px;} +ul#Menu li:last-child {border-right-width:0px;} +ul#Menu li {display:block;float:left;padding:10px !important;margin:0px !important;border:1px #666 solid;border-left-width:0px;border-top:0px;} +ul#Menu li:hover {background:#DEC;} +ul#Menu li.Actif {background:#EEE;} +ul#Menu div {display:block;padding-top:130px;width:128px;text-align:center;text-decoration:none;color:#333;background-repeat:no-repeat;} + +div#Brouillons {background:url(icons/connect.png);} +div#Posts {background:url(icons/network.png);} +div#Designs {background:url(icons/pictures.png);} +div#ToDo {background:url(icons/todo.png);} +div#Infos {width:100%;text-align:center;font-size:small;clear:both;} + +div[id^="Gest"] {clear:both;padding:15px 3px;display:none;} + +li > .Admin {display:block;text-indent:-1000px;font-size:0.8em;} +li:hover > .Admin, li.Pinned > .Admin {display:block;width:100%;text-align:right;font-size:0.8em;text-indent:0px;} +.Admin a, div#GestPosts a {text-decoration:none;color:#666;font-style:italic;} +.Admin a:hover, div#GestPosts a:hover {border-bottom:1px black dashed;} + +div#GestPosts > ul, div#GestPosts > ul > li {margin:0px;padding:2px;list-style:none;border-width:0px;} +div#GestPosts > ul > li:hover {background:transparent;border-width:0px;padding:2px;} + + + +.Add {margin-bottom:15px;} +.Add a {color:#333;text-decoration:none;border-bottom:1px black dashed;} +.Add form {display:none;} + + +#Infos a {text-decoration:none;color:#999;} + +#pubComment {white-space:pre;text-align:left;} + +/* + Formattage des erreurs envoyés par le DOMParser +*/ +parsererror, sourcetext {font-size:1em !important;font-weight:normal;background:transparent;} + +parsererror {border:1px black dotted;overflow:auto !important;} + +/* Tests */ + +option +{ + background:white; + vertical-align:center; + border-bottom:1px black solid; + padding:2px; +} + +option img +{ + vertical-align:middle; + padding:0 2em; +} + +select +{ + height:2em; +} \ No newline at end of file diff -r 000000000000 -r 629389204276 css/comment.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/comment.css Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,33 @@ + .Infos {font-style:italic;} + #FormCommentaire {margin-top:15px;text-align:left;} + #Summary {display:none;} + + input, textarea {background:transparent;font-family:Tahoma, Lucida Sans, 'Luxi Sans', serif; + font-size:11px;margin:5px;padding:1px; + border:1px black solid;width:95%;} + + .cal {text-align:center;border-bottom:1px black solid;padding:1em 2em;} + + .calPrev {float:left;} + .calNext {float:right;} + + .Date {text-transform:capitalize;} + + .Done {text-decoration:line-through;} + + .center {text-align:center;} + + #Adresse, #SideBar dt {cursor:pointer;} + + p.code code {white-space:pre;overflow:auto;display:block;} + + .PostContent dt {font-weight:bold;} + + .endComment {clear:left;} + + .fold .comment {display:none;} + .fold:hover .comment {display:inline;} + + .postInfos {clear:both; font-size:0.9em;} + .Tags em {font-style:normal;} + .Tags a {color:inherit !important;} \ No newline at end of file diff -r 000000000000 -r 629389204276 css/comment.css_ --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/comment.css_ Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,29 @@ + .Infos {font-style:italic;} + #FormCommentaire {margin-top:15px;text-align:left;} + #Summary {display:none;} + + input, textarea {background:transparent;font-family:Tahoma, Lucida Sans, 'Luxi Sans', serif; + font-size:11px;margin:5px;padding:1px; + border:1px black solid;width:95%;} + + .cal {text-align:center;border-bottom:1px black solid;padding:1em 2em;} + + .calPrev {float:left;} + .calNext {float:right;} + + .Date {text-transform:capitalize;} + + .Done {text-decoration:line-through;} + + .center {text-align:center;} + + #Adresse, #SideBar dt {cursor:pointer;} + + p.code code {white-space:pre;overflow:auto;display:block;} + + .PostContent dt {font-weight:bold;} + + .endComment {clear:left;} + + .fold .comment {display:none;} + .fold:hover .comment {display:inline;} diff -r 000000000000 -r 629389204276 css/icons/Hank.png Binary file css/icons/Hank.png has changed diff -r 000000000000 -r 629389204276 css/icons/Hank_8bit.gif Binary file css/icons/Hank_8bit.gif has changed diff -r 000000000000 -r 629389204276 css/icons/Hank_8bit.png Binary file css/icons/Hank_8bit.png has changed diff -r 000000000000 -r 629389204276 css/icons/Somatic.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/icons/Somatic.css Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,119 @@ +/* Dual Blog, Somatic Edition */ + +html, body {margin:0px;padding:0px; background:#EEE; font-family:"Lucida Grande", Tahoma, Verdana, Arial, sans serif;font-size:12px;} + +#Link, #Link li, dl, dt, dd {display:block; margin:0px;list-style-type:none;} + +#Main {width:798px; margin:5px auto; background:white; border:1px #333 solid;/*padding-top:181px;*/} + +h1 { + margin:0px; + margin-bottom:150px; + padding:5px; + width:786px; + height:21px; + text-align:center; + border-bottom:1px #333 solid; + font-size:17px; + background-image:url('bg_test.png'); +} + +#Adresse, .SideTitle { + /*float:left;*/ + position:absolute; + top:38px; + left:50%; + display:block; + width:132px; + padding-top:135px; + background:no-repeat 2px 5px; + text-align:center; + border-bottom:1px #333 solid; + border-right:1px #333 solid; + font-size:0.9em; +} + +/* Let's give some 8-bits pngs to IE... */ +* html #Adresse {background-image:url('icons/fav_8bit.png') !important;} +* html #About {background-image:url('icons/connect_8bit.png') !important;} +* html #Profile {background-image:url('icons/profile_8bit.png') !important;} +* html #Like {background-image:url('icons/like_8bit.png') !important;} +* html #Geekness {background-image:url('icons/geek_8bit.png') !important;} +* html #Archives {background-image:url('icons/Hank_8bit.gif') !important;} +* html #ToDo {background-image:url('icons/todo_8bit.png') !important;} +#Adresse { + margin-left:-398px; + background-image:url('icons/fav.png'); +} + +#About { + margin-left:-265px; + background-image:url('icons/connect.png'); +} + +#Profile { + margin-left:-132px; + background-image:url('icons/profile.png'); +} + +#Like { + margin-left:1px; + background-image:url('icons/like.png'); +} + +#Geekness { + margin-left:134px; + background-image:url('icons/geek.png'); +} + +#Archives { + margin-left:134px; + background-image:url('icons/Hank.png'); +} + +#ToDo { + margin-left:267px; + border-right:0px; + background-image:url('icons/todo.png'); +} + +.SideTitle:hover, #Adresse:hover {background-color:#dec;} + +.Actif {background-color:#eee !important;} + +#SideBar p, #Posts {margin:5px 0px; padding:0px;text-align:justify;} + +#Link, .SideContent { + font-size:0.9em; + border-bottom:1px #333 solid; + padding:5px 10px; + background-image:url('Res_Somatic/bg_test.png'); + max-height:180px; + overflow:auto; +} + +#Link {display:none;} + +.PostContent { + padding:10px; + text-align:justify; + border-bottom: 1px #333 solid; +} + +.PostTitle { + font-weight:bold; + text-align:center; + border:1px #666 solid; + margin:0px 15px; + background:url('Res_Somatic/bg_titre.png'); +} + +#SideBar a, #Link a {text-decoration:none;color:#666;font-style:italic;} +#Link a {margin-left:10px;} +#SideBar a:hover, #Link a:hover, #Posts a:hover {border-bottom:1px black dashed;} +#SideBar ul {list-style-type:none;} + +a img {padding:10px;border:1px solid #795;background-image:url('Res_Somatic/bg_test.png');} + +i, .i {color:#67B;} +#Posts a {color:#795;text-decoration:none;} diff -r 000000000000 -r 629389204276 css/icons/apps_128X128_32bpp.png Binary file css/icons/apps_128X128_32bpp.png has changed diff -r 000000000000 -r 629389204276 css/icons/connect.gif Binary file css/icons/connect.gif has changed diff -r 000000000000 -r 629389204276 css/icons/connect.png Binary file css/icons/connect.png has changed diff -r 000000000000 -r 629389204276 css/icons/connect_8bit.png Binary file css/icons/connect_8bit.png has changed diff -r 000000000000 -r 629389204276 css/icons/connect_o.png Binary file css/icons/connect_o.png has changed diff -r 000000000000 -r 629389204276 css/icons/empty_128X128_32bpp.png Binary file css/icons/empty_128X128_32bpp.png has changed diff -r 000000000000 -r 629389204276 css/icons/fav.png Binary file css/icons/fav.png has changed diff -r 000000000000 -r 629389204276 css/icons/fav_8bit.png Binary file css/icons/fav_8bit.png has changed diff -r 000000000000 -r 629389204276 css/icons/findro_128X128_32bpp.png Binary file css/icons/findro_128X128_32bpp.png has changed diff -r 000000000000 -r 629389204276 css/icons/geek.png Binary file css/icons/geek.png has changed diff -r 000000000000 -r 629389204276 css/icons/geek_8bit.png Binary file css/icons/geek_8bit.png has changed diff -r 000000000000 -r 629389204276 css/icons/geek_b.png Binary file css/icons/geek_b.png has changed diff -r 000000000000 -r 629389204276 css/icons/geek_o.png Binary file css/icons/geek_o.png has changed diff -r 000000000000 -r 629389204276 css/icons/itunes_128X128_32bpp.png Binary file css/icons/itunes_128X128_32bpp.png has changed diff -r 000000000000 -r 629389204276 css/icons/like.png Binary file css/icons/like.png has changed diff -r 000000000000 -r 629389204276 css/icons/like_8bit.png Binary file css/icons/like_8bit.png has changed diff -r 000000000000 -r 629389204276 css/icons/network.png Binary file css/icons/network.png has changed diff -r 000000000000 -r 629389204276 css/icons/pictures.png Binary file css/icons/pictures.png has changed diff -r 000000000000 -r 629389204276 css/icons/profile.png Binary file css/icons/profile.png has changed diff -r 000000000000 -r 629389204276 css/icons/profile_8bit.png Binary file css/icons/profile_8bit.png has changed diff -r 000000000000 -r 629389204276 css/icons/safari_128X128_32bpp.png Binary file css/icons/safari_128X128_32bpp.png has changed diff -r 000000000000 -r 629389204276 css/icons/studio.xcf Binary file css/icons/studio.xcf has changed diff -r 000000000000 -r 629389204276 css/icons/todo.png Binary file css/icons/todo.png has changed diff -r 000000000000 -r 629389204276 css/icons/todo_8bit.png Binary file css/icons/todo_8bit.png has changed diff -r 000000000000 -r 629389204276 css/icons/todo_b.png Binary file css/icons/todo_b.png has changed diff -r 000000000000 -r 629389204276 css/icons/todo_o.png Binary file css/icons/todo_o.png has changed diff -r 000000000000 -r 629389204276 css/icons/top.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/css/icons/top.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,178 @@ + + + + + "OliveVerde", 1=> "OliveVerde.css"); + $StyleSheets['1']=array( 0=> "Lite", 1=> "Lite.css"); + $StyleSheets['2']=array( 0=> "Lite:Reloaded", 1=>"Lite_nv.css"); + $StyleSheets['3']=array( 0=> "Brushed", 1=> "Brushed.css"); + $StyleSheets['4']=array( 0=> ":Hover", 1=> "HoverExp.css"); + $StyleSheets['5']=array( 0=> "Somatic", 1=>"Somatic.css"); + + foreach($StyleSheets as $StyleSheet) { + if($StyleSheet[0] == $CkStyle) + echo(" \n"); + else + echo(" \n"); + } + if(!empty($Titre)) + echo(" {$Titre} - Dual Blog\n"); + else + echo(" Dual { v10 : OS Edition } Blog\n"); + + if(stristr($_SERVER['HTTP_USER_AGENT'], "MSIE") && !$CkStyle == "Somatic") + echo(""); + ?> + + + + + + + + + +
    + + {$Summary} + \n"); + } ?> +

    Dual Blog : DeFr's Weblog

    +
    + Sites visités +
    + + + +
    diff -r 000000000000 -r 629389204276 css/icons/zog_128X128_32bpp.png Binary file css/icons/zog_128X128_32bpp.png has changed diff -r 000000000000 -r 629389204276 dualblog.gif Binary file dualblog.gif has changed diff -r 000000000000 -r 629389204276 foot.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/foot.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,189 @@ +
    +
    + Sites visités +
    + + + + + \ No newline at end of file diff -r 000000000000 -r 629389204276 includes/class.dataaccess.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/includes/class.dataaccess.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,99 @@ +host=$host; + $this->user=$user; + $this->pass=$pass; + $this->_nbQueries = 0; + $this->Connect(); + } + + function Connect($db=DB_NAME) { + if($this->connOpen == 1) return; + $this->db=$db; + $this->connOpen=1; + mysql_connect($this->host, $this->user, $this->pass); + mysql_select_db($this->db); + } + + function Query($query, $id=0) { + $this->query=$query; + if($this->connOpen != 1) $this->Connect(); + $this->arResult[$id]=mysql_query($this->query); + if($this->connOpen != 1) $this->Close(); + if(@$num_rows=mysql_num_rows($this->arResult[$id])) + return $num_rows; + else + return 0; + } + + function debugQuery($query, $id=0) { + $rv = $this->Query($query, $id); + if(mysql_errno() !== 0) + echo("\n Query : {$query}
    \n MySQL Answer : " . mysql_error() . "
    "); + return $rv; + } + + function GetRow($id=0) { + if(@$row=mysql_fetch_assoc($this->arResult[$id])) { + foreach($row as $key => $value) + $row_utf[$key]=$this->utf8_ensure($value); + return $row_utf; + } + return 0; + } + + function GetRawRow($id=0) { + if(@$row=mysql_fetch_array($this->arResult[$id])) { + return $row; + } + return 0; + } + + function Close() { + $this->connOpen=0; + mysql_close(); + } + + function getNbQueries() { + return $this->_nbQueries; + } + + function formatDate($timestamp, $decallage=2, $pattern='d/m/Y H:i:s') { + return gmdate($pattern, $timestamp + $decallage * 3600); + } + + function seems_utf8($Str) { + for ($i=0; $iseems_utf8($Str)?$Str:utf8_encode($Str); + } + +} +?> diff -r 000000000000 -r 629389204276 includes/class.domutils.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/includes/class.domutils.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,12 @@ +createCDataSection($data); + $wrapper = $doc->createElement($wrapperName); + $wrapper->appendChild($CDATA); + return $wrapper; + } + } +?> \ No newline at end of file diff -r 000000000000 -r 629389204276 includes/class.requete.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/includes/class.requete.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,59 @@ +loadArray($_POST, 'POST'); + $this->loadArray($_GET, 'GET'); + $this->loadArray($_COOKIE, 'COOKIE'); + } + + // Chargement d'un tableau donné + private function loadArray($array, $name = null) + { + $magic_quotes = (ini_get('magic_quotes_gpc') == '1'); + if(!is_array($array)) return; + if(empty($name)) $name = md5(serialize(microtime())); + foreach($array as $key => $value) + { + $this->arData[$key][$name] = ($magic_quotes) ? $value : addslashes($value); + } + } + + // Récuperation d'une des variables + public function get($varName, $orig = null, $default = '') + { + if(!isset($this->arData[$varName])) return $default; + if(!empty($orig) && !isset($this->arData[$varName][$orig])) return $default; + if(!empty($orig)) return $this->arData[$varName][$orig]; + return current($this->arData[$varName]); + } + + // Récuperation d'un tableau de variables dont le nom correspond à un pattern + public function matchingPattern($preg_pattern, $orig = null) + { + $returnValue = array(); + foreach($this->arData as $key => $array) + { + if(!preg_match($preg_pattern, $key)) continue; + $returnValue[$key] = $this->get($key, $orig); + } + return $returnValue; + } + + // Equivalent de |isset| + public function varSet($varName, $orig = null) + { + if(!isset($this->arData[$varName])) return false; + if(is_null($orig)) return true; + return (isset($this->arData[$varName][$orig])); + } + } +?> \ No newline at end of file diff -r 000000000000 -r 629389204276 includes/class.textutils.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/includes/class.textutils.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,30 @@ + 0) + $tags = array_merge($tags, explode(" ", $str)); + asort($tags); + return $tags; + } + + public static function DiffTagLine($old, $new, &$ajout, &$suppr) + { + $arOld = TextUtils::SplitTags($old); + $arNew = TextUtils::SplitTags($new); + $ajout = array_diff($arNew, $arOld); + $suppr = array_diff($arOld, $arNew); + } + } +?> \ No newline at end of file diff -r 000000000000 -r 629389204276 includes/config.php.dist --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/includes/config.php.dist Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,6 @@ + diff -r 000000000000 -r 629389204276 index.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/index.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,93 @@ +Connect(); + if($type != "cal") + $Data->Query("SELECT * FROM Mess Where num_version='Version 10' ORDER BY num_mess DESC"); + else + $Data->Query("SELECT * FROM Mess WHERE YEAR(DatePost)={$year} AND MONTH(DatePost)={$month} ORDER BY num_mess DESC"); + $i=0; + if($type == "cal") { + echo("
    "); + if($prevYear > $startDate['year'] - 1 || ($prevYear > $startDate['Year'] - 2 && $prevMonth > $startDate['month'] - 1)) + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + else + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + if(($curYear == $nextYear && $nextMonth < $curMonth + 1) || ($nextYear < $curYear) ) + echo("{$arMonth[$month%12]} {$nextYear}"); + else + echo("{$arMonth[$month%12]} {$nextYear}"); + echo("{$arMonth[$month - 1]} {$year}
    "); + } + while(($row=$Data->GetRow()) && ($i++<10 || $type == "cal")) { + $mood = ''; + $Mess=$Data->utf8_ensure(str_replace("

    ","

    ",str_replace("

    ","

    ", $row['Message']))); + $dateFormatee = strftime("%A %d %B %Y, %Hh%M", strtotime($row['DatePost'])); + $Titre = $Data->utf8_ensure($row['Titre']); + $Titre_url = str_replace(" ", "_", strip_tags($Titre)); + $Titre_url = str_replace("-", "_", $Titre_url); + $Titre_url = str_replace(array("é", "è"), "e", $Titre_url); + $Titre_url = str_replace("à", "a", $Titre_url); + $Titre_url = str_replace("ù", "u", $Titre_url); + $Titre_url = str_replace(array("î", "ï"), "i", $Titre_url); + if(!empty($row['Emot'])) { + $mood = "Mood : {$row["; + $row['Emot'] = " " . $row['Emot']; + } + $nbTags = $Data->Query(" + SELECT T.Tag + FROM Tags T, Lien_Tags_Posts L + WHERE L.idMess={$row['num_mess']} AND L.idTag = T.idTag + ORDER BY T.Tag + ", 2); + $tags = ''; + if($nbTags > 0) + { + $tags = "Tags :"; + while(0 !== ($tag = $Data->GetRow(2))) + $tags .= " {$tag['Tag']} |"; + $tags = substr($tags, 0, -1) . ' ;
    '; + } + + echo(" + "); + } + if($type == "cal") { + echo("
    "); + if($prevYear > $startDate['year'] - 1 && $prevMonth > $startDate['month'] - 1) + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + else + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + if(($curYear == $nextYear && $nextMonth < $curMonth + 1) || ($nextYear < $curYear) ) + echo("{$arMonth[$month%12]} {$nextYear}"); + else + echo("{$arMonth[$month%12]} {$nextYear}"); + echo("{$arMonth[$month - 1]} {$year}
    "); + } + $Data->Close(); + include("foot.php"); +?> diff -r 000000000000 -r 629389204276 index.php_ --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/index.php_ Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,90 @@ +Connect(); + if($type != "cal") + $Data->Query("SELECT * FROM Mess Where num_version='Version 10' ORDER BY num_mess DESC"); + else + $Data->Query("SELECT * FROM Mess WHERE YEAR(DatePost)={$year} AND MONTH(DatePost)={$month} ORDER BY num_mess DESC"); + $i=0; + if($type == "cal") { + echo("
    "); + if($prevYear > $startDate['year'] - 1 || ($prevYear > $startDate['Year'] - 2 && $prevMonth > $startDate['month'] - 1)) + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + else + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + if(($curYear == $nextYear && $nextMonth < $curMonth + 1) || ($nextYear < $curYear) ) + echo("{$arMonth[$month%12]} {$nextYear}"); + else + echo("{$arMonth[$month%12]} {$nextYear}"); + echo("{$arMonth[$month - 1]} {$year}
    "); + } + while(($row=$Data->GetRow()) && ($i++<10 || $type == "cal")) { + $mood = ''; + $Mess=$Data->utf8_ensure(str_replace("

    ","

    ",str_replace("

    ","

    ", $row['Message']))); + $dateFormatee = strftime("%A %d %B %Y, %Hh%M", strtotime($row['DatePost'])); + $Titre = $Data->utf8_ensure($row['Titre']); + $Titre_url = str_replace(" ", "_", strip_tags($Titre)); + $Titre_url = str_replace("-", "_", $Titre_url); + $Titre_url = str_replace(array("é", "è"), "e", $Titre_url); + $Titre_url = str_replace("à", "a", $Titre_url); + $Titre_url = str_replace("ù", "u", $Titre_url); + $Titre_url = str_replace(array("î", "ï"), "i", $Titre_url); + if(!empty($row['Emot'])) { + $mood = "Mood : {$row["; + $row['Emot'] = " " . $row['Emot']; + } + echo(" +
    +

    {$Titre} | {$dateFormatee}

    + {$mood} + {$Mess}
    + #{$row['num_mess']} - + + "); + if(!is_null($row['NbCommentaires']) && $row['NbCommentaires']!=0) + echo("Un 'tit commentaire ( {$row['NbCommentaires']} ) ?"); + else + echo("Un 'tit commentaire ?"); + echo(" + "); + $nb = $Data->debugQuery(" + SELECT T.Tag + FROM Tags T, Lien_Tags_Posts L + WHERE L.idMess={$row['num_mess']} AND L.idTag = T.idTag + ORDER BY T.Tag + ", 2); + if($nb > 0) + { + $tags = ''; + while(0 !== ($tag = $Data->GetRow(2))) + $tags .= " {$tag['Tag']} -"; + $tags = substr($tags, 0, -1); + echo(" ; Tags : {$tags}"); + } + echo(" + +
    "); + } + if($type == "cal") { + echo("
    "); + if($prevYear > $startDate['year'] - 1 && $prevMonth > $startDate['month'] - 1) + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + else + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + if(($curYear == $nextYear && $nextMonth < $curMonth + 1) || ($nextYear < $curYear) ) + echo("{$arMonth[$month%12]} {$nextYear}"); + else + echo("{$arMonth[$month%12]} {$nextYear}"); + echo("{$arMonth[$month - 1]} {$year}
    "); + } + $Data->Close(); + include("foot.php"); +?> diff -r 000000000000 -r 629389204276 mood.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mood.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,65 @@ +Connect(); + if($type != "cal") + $Data->Query("SELECT * FROM Mess Where num_version='Version 10' ORDER BY num_mess DESC"); + else + $Data->Query("SELECT * FROM Mess WHERE YEAR(DatePost)={$year} AND MONTH(DatePost)={$month} ORDER BY num_mess DESC"); + $i=0; + if($type == "cal") { + echo("
    "); + if($prevYear > $startDate['year'] - 1 && $prevMonth > $startDate['month'] - 1) + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + else + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + if(($curYear == $nextYear && $nextMonth < $curMonth + 1) || ($nextYear < $curYear) ) + echo("{$arMonth[$month%12]} {$nextYear}"); + else + echo("{$arMonth[$month%12]} {$nextYear}"); + echo("{$arMonth[$month - 1]} {$year}
    "); + } + while(($row=$Data->GetRow()) && ($i++<10 || $type == "cal")) { + $Mess=$Data->utf8_ensure(str_replace("

    ","

    ",str_replace("

    ","

    ", $row['Message']))); + $dateFormatee = strftime("%A %d %B %Y, %Hh%M", strtotime($row['DatePost'])); + $Titre = $Data->utf8_ensure($row['Titre']); + $Titre_url = str_replace(" ", "_", strip_tags($Titre)); + $Titre_url = str_replace("-", "_", $Titre_url); + echo(" +
    +

    {$Titre} | {$dateFormatee}

    + + {$Mess}
    + #{$row['num_mess']} - + + "); + if(!is_null($row['NbCommentaires']) && $row['NbCommentaires']!=0) + echo("Un 'tit commentaire ( {$row['NbCommentaires']} ) ?"); + else + echo("Un 'tit commentaire ?"); + echo(" + +
    "); + } + if($type == "cal") { + echo("
    "); + if($prevYear > $startDate['year'] - 1 && $prevMonth > $startDate['month'] - 1) + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + else + echo("{$arMonth[$prevMonth - 1]} {$prevYear}"); + if(($curYear == $nextYear && $nextMonth < $curMonth + 1) || ($nextYear < $curYear) ) + echo("{$arMonth[$month%12]} {$nextYear}"); + else + echo("{$arMonth[$month%12]} {$nextYear}"); + echo("{$arMonth[$month - 1]} {$year}
    "); + } + $Data->Close(); + include("foot.php"); +?> diff -r 000000000000 -r 629389204276 mood/25/Angry.png Binary file mood/25/Angry.png has changed diff -r 000000000000 -r 629389204276 mood/25/Clop.png Binary file mood/25/Clop.png has changed diff -r 000000000000 -r 629389204276 mood/25/Cry.png Binary file mood/25/Cry.png has changed diff -r 000000000000 -r 629389204276 mood/25/Goggle.png Binary file mood/25/Goggle.png has changed diff -r 000000000000 -r 629389204276 mood/25/Loud.png Binary file mood/25/Loud.png has changed diff -r 000000000000 -r 629389204276 mood/25/Love.png Binary file mood/25/Love.png has changed diff -r 000000000000 -r 629389204276 mood/25/Neutral.png Binary file mood/25/Neutral.png has changed diff -r 000000000000 -r 629389204276 mood/25/Oohh.png Binary file mood/25/Oohh.png has changed diff -r 000000000000 -r 629389204276 mood/25/Oups.png Binary file mood/25/Oups.png has changed diff -r 000000000000 -r 629389204276 mood/25/Sleep.png Binary file mood/25/Sleep.png has changed diff -r 000000000000 -r 629389204276 mood/25/Thumbs.db Binary file mood/25/Thumbs.db has changed diff -r 000000000000 -r 629389204276 mood/25/Tongue.png Binary file mood/25/Tongue.png has changed diff -r 000000000000 -r 629389204276 mood/25/Weird.png Binary file mood/25/Weird.png has changed diff -r 000000000000 -r 629389204276 mood/25/Yes.png Binary file mood/25/Yes.png has changed diff -r 000000000000 -r 629389204276 mood/25/_.png Binary file mood/25/_.png has changed diff -r 000000000000 -r 629389204276 mood/Angry.png Binary file mood/Angry.png has changed diff -r 000000000000 -r 629389204276 mood/Clop.png Binary file mood/Clop.png has changed diff -r 000000000000 -r 629389204276 mood/Cry.png Binary file mood/Cry.png has changed diff -r 000000000000 -r 629389204276 mood/Goggle.png Binary file mood/Goggle.png has changed diff -r 000000000000 -r 629389204276 mood/Loud.png Binary file mood/Loud.png has changed diff -r 000000000000 -r 629389204276 mood/Love.png Binary file mood/Love.png has changed diff -r 000000000000 -r 629389204276 mood/Neutral.png Binary file mood/Neutral.png has changed diff -r 000000000000 -r 629389204276 mood/Oohh.png Binary file mood/Oohh.png has changed diff -r 000000000000 -r 629389204276 mood/Oups.png Binary file mood/Oups.png has changed diff -r 000000000000 -r 629389204276 mood/Sleep.png Binary file mood/Sleep.png has changed diff -r 000000000000 -r 629389204276 mood/Tongue.png Binary file mood/Tongue.png has changed diff -r 000000000000 -r 629389204276 mood/Weird.png Binary file mood/Weird.png has changed diff -r 000000000000 -r 629389204276 mood/Yes.png Binary file mood/Yes.png has changed diff -r 000000000000 -r 629389204276 mood/_.png Binary file mood/_.png has changed diff -r 000000000000 -r 629389204276 mood/light/Angry.png Binary file mood/light/Angry.png has changed diff -r 000000000000 -r 629389204276 mood/light/Clop.png Binary file mood/light/Clop.png has changed diff -r 000000000000 -r 629389204276 mood/light/Cry.png Binary file mood/light/Cry.png has changed diff -r 000000000000 -r 629389204276 mood/light/Goggle.png Binary file mood/light/Goggle.png has changed diff -r 000000000000 -r 629389204276 mood/light/LoudClair.png Binary file mood/light/LoudClair.png has changed diff -r 000000000000 -r 629389204276 mood/light/Love.png Binary file mood/light/Love.png has changed diff -r 000000000000 -r 629389204276 mood/light/Neutral.png Binary file mood/light/Neutral.png has changed diff -r 000000000000 -r 629389204276 mood/light/Oups.png Binary file mood/light/Oups.png has changed diff -r 000000000000 -r 629389204276 mood/light/Sleep.png Binary file mood/light/Sleep.png has changed diff -r 000000000000 -r 629389204276 mood/light/Tongue.png Binary file mood/light/Tongue.png has changed diff -r 000000000000 -r 629389204276 mood/light/Weird.png Binary file mood/light/Weird.png has changed diff -r 000000000000 -r 629389204276 mood/light/Yes.png Binary file mood/light/Yes.png has changed diff -r 000000000000 -r 629389204276 mood/light/_.png Binary file mood/light/_.png has changed diff -r 000000000000 -r 629389204276 rss.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rss.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,58 @@ +\n"); +?> + + + Dual Blog + http://www.defr.org/blog/ + Le blog de DeFr, parlant de tout et de rien ^^; + fr-fr + Connect(); + $Data->Query("SELECT * FROM Mess ORDER BY num_mess DESC LIMIT 0, 20"); + while($val=$Data->GetRow()) { + $utf8_Mess=utf8_ensure($val['Message']); + $utf8_Titre=utf8_ensure($val['Titre']); + $dateRFC=gmdate("r", strtotime($val['DatePost'])); + echo(" + + {$utf8_Titre} + + {$dateRFC} + http://www.defr.org/blog/posts/{$val['num_mess']} + + "); + } + $Data->Close(); + ?> + + diff -r 000000000000 -r 629389204276 tag.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tag.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,64 @@ +Query(" + SELECT * + FROM Mess M, Tags T, Lien_Tags_Posts L + WHERE M.num_version='Version 10' AND T.Tag='{$tag}' AND M.num_mess=L.idMess AND L.idTag=T.idTag + ORDER BY num_mess DESC"); + $i=0; + while(($row=$Data->GetRow()) && $i++<10) { + $mood = ''; + $Mess=$Data->utf8_ensure(str_replace("

    ","

    ",str_replace("

    ","

    ", $row['Message']))); + $dateFormatee = strftime("%A %d %B %Y, %Hh%M", strtotime($row['DatePost'])); + $Titre = $Data->utf8_ensure($row['Titre']); + $Titre_url = str_replace(" ", "_", strip_tags($Titre)); + $Titre_url = str_replace("-", "_", $Titre_url); + $Titre_url = str_replace(array("é", "è"), "e", $Titre_url); + $Titre_url = str_replace("à", "a", $Titre_url); + $Titre_url = str_replace("ù", "u", $Titre_url); + $Titre_url = str_replace(array("î", "ï"), "i", $Titre_url); + if(!empty($row['Emot'])) { + $mood = "Mood : {$row["; + $row['Emot'] = " " . $row['Emot']; + } + $nbTags = $Data->Query(" + SELECT T.Tag + FROM Tags T, Lien_Tags_Posts L + WHERE L.idMess={$row['num_mess']} AND L.idTag = T.idTag + ORDER BY T.Tag + ", 2); + $tags = ''; + if($nbTags > 0) + { + $tags = "Tags :"; + while(0 !== ($tag = $Data->GetRow(2))) + $tags .= " {$tag['Tag']} |"; + $tags = substr($tags, 0, -1) . ' ;
    '; + } + + echo(" + "); + } + $Data->Close(); + include("foot.php"); +?> diff -r 000000000000 -r 629389204276 tb.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tb.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,42 @@ +"); + include("classes.php"); + $id = $_GET['id']; + $Data->Query("SELECT * FROM Messages WHERE num_mess=$id"); + $post_infos = $Data->GetRow(); + $titre = array_key_exists("title", $_POST)?$_POST['title']:"Undefined"; + $url = array_key_exists("url", $_POST)?$_POST['url']:"#"; + $info = array_key_exists("__info", $_POST)?$_POST['__info']:-1; + if($info == 1) { + $error = 0; + $message = "Some informations"; + } else if($url == "#") { + $error = 1; + $message = "The url field is needed for trackback to do something usefull !"; + } else if($post_infos === 0) { + $error = 1; + $message = "There's no post with this id"; + } else { + $excerpt = $_POST['excerpt']; + $DateComment = gmdate("Y-m-d H:i:s"); + if(strlen($excerpt) > 255) $excerpt = substr($excerpt, 0, 255) . "..."; + $Data = new DataAccess(); + $Data->Query("INSERT INTO Commentaires(MessId, Auteur, Adresse, Comment, DateComment, isTrackback) + VALUES({$id}, '{$titre}', '{$url}', '{$excerpt}', '{$DateComment}', 1)"); + $Data->Query("UPDATE Mess SET NbCommentaires=NbCommentaires+1 WHERE num_mess={$id}"); + $error = 0; + $excerpt = htmlentities(urlencode(substr(strip_tags($post_infos['Message']), 0, 252) . "...") + } + + echo " + $error + $message + Dual Blog custom made PHP script + UTF-8 + Dual Blog + {$post_infos['Titre']} + http://defr.org/post/{$post_infos['num_mess']} + $excerpt +"; +?> diff -r 000000000000 -r 629389204276 tb_send.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tb_send.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,48 @@ +Query("SELECT * FROM Mess WHERE num_mess=255"); + $row = $Data->GetRow(); + $tbAddress = "http://www.defr.org/blog/tb.php?id=255"; + $ar_tbAddress = parse_url($tbAddress); + if(!array_key_exists('port', $ar_tbAddress)) $ar_tbAddress['port'] = 80; + if(!array_key_exists('path', $ar_tbAddress)) $ar_tbAddress['path'] = '/'; + if(array_key_exists('query', $ar_tbAddress)) $ar_tbAddress['query'] = '?' . $ar_tbAddress['query']; + var_export($ar_tbAddress); + $fp = fsockopen($ar_tbAddress['host'], 80, $errno, $errstr, 15); + if($fp) { + $genToSend = "POST {$ar_tbAddress['path']}{$ar_tbAddress['query']} HTTP/1.0\r\n"; + $genToSend .= "Host: {$ar_tbAddress['host']}\r\n"; + $genToSend .= "Content-Type: application/x-www-form-urlencoded \n"; + + // Essai de récuperation de l'encodage...Envoie en iso si pas d'indication d'UTF... + $argToSend = "__info=1"; + $toSend = $genToSend . "Content-Length: " . strlen($argToSend) . "\n\n"; + $toSend .= $argToSend; + echo("
    $toSend
    "); + fwrite($fp, $toSend); + while(!feof($fp)) + $result .= fgets($fp, 128); + fclose($fp); + if(!preg_match('/(UTF-8|utf-8)<\/encoding>/msU',$result)) { + $row['Titre'] = utf8_decode($row['Titre']); + $row['Message'] = utf8_decode($row['Message']); + echo("Snif, utilisation d'ISO..."); + } + + $fp = fsockopen($ar_tbAddress['host'], 80, $errno, $errstr, 15); + $argToSend = "title=" . htmlentities(urlencode($row['Titre'])) . "&blog_name=Dual+Blog"; + $argToSend .= "&url=http://defr.org/blog/posts/{$row['num_mess']}&excerpt=" . htmlentities(urlencode(substr(strip_tags($row['Message']), 0, 255) . "...")); + + $toSend = $genToSend . "Content-Length: " . strlen($argToSend) . "\n\n"; + $toSend .= $argToSend; + echo("
    $toSend
    "); + fwrite($fp, $toSend); + while (!feof($fp)) { + echo fgets($fp, 128); + } + fclose($fp); + } else { + echo("Pb de connexion : $errno - $errstr"); + } +?> \ No newline at end of file diff -r 000000000000 -r 629389204276 test.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,16 @@ +"); + var_export($a); + echo(""); + echo("
    ");
    +    var_export($b);
    +    echo("
    ");*/ + var_export(ini_get("magic_quotes_gpc")); + phpinfo(); +?> \ No newline at end of file diff -r 000000000000 -r 629389204276 testcase.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testcase.html Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,30 @@ + + + + Test + + + +
    + +
    + + \ No newline at end of file diff -r 000000000000 -r 629389204276 testcase.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testcase.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,32 @@ + + + + Test + + + +
    + +
    + + \ No newline at end of file diff -r 000000000000 -r 629389204276 top.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/top.php Sat Oct 20 14:15:10 2007 +0200 @@ -0,0 +1,50 @@ + + + + + "2004", "month" => 6); + $tmpYear = $startDate['year']; $tmpMonth = $startDate['month']; + $curYear = (int)gmdate("Y"); $curMonth = (int)gmdate("m"); + $arMonth = array("Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Aout", "Septembre", "Octobre", "Novembre", "Décembre"); + $StyleSheets = array( + "Somatic" => "Somatic.css", + "OliveVerde" => "OliveVerde.css", + "Lite:Reloaded" => "Lite_nv.css", + "Brushed" => "Brushed.css", + ":Hover" => "HoverExp.css"); + $CkStyle = (array_key_exists("style", $_COOKIE) && array_key_exists($_COOKIE['style'], $StyleSheets))?$_COOKIE['style']:"Somatic"; + foreach($StyleSheets as $CSSName => $CSSHref) { + $t = ($CSSName == $CkStyle)?"StyleSheet":"Alternate StyleSheet"; + echo(" \n"); + } + if(!empty($Titre)) + echo(" {$Titre} - Dual Blog\n"); + else + echo(" Dual { v10 : OS Edition } Blog\n"); + + if(stristr($_SERVER['HTTP_USER_AGENT'], "MSIE") && !$CkStyle == "Somatic") + echo(""); + ?> + + + + + + + + + + + {$Summary} + \n"); + }*/ ?> +

    Dual Blog : DeFr's Weblog

    +