commit: d761273a718ad36e2fa90971b0a3f10a94e32b5a
parent 8bdeac7a0d9a55391f3930c0887a0cca5347085c
Author: lanodan <lanodan.delta@free.fr>
Date:   Tue, 22 Jul 2014 01:32:12 +0200
Another random update
Diffstat:
6 files changed, 52 insertions(+), 19 deletions(-)
diff --git a/about.php b/about.php
@@ -75,25 +75,25 @@
       <h1>Boycott:</h1>
       <ul>
         <?php if ($lang == 'fr'){ ?>
-        <li><strong>Adobe:</strong> Prix élevé et utilise des formats propriétaires</li>
-        <li><strong>Apple:</strong> Le matériel coute trop cher et n'est ni Ouvert ni Libre (par contre le prix du système d'exploitation me semble correct).</li>
-        <li><strong>Facebook:</strong> Trop social pour moi :D Nan, je rigole, les gens sont des moutons et ils se font de l'argent dessus et ils ne respectent pas la vie privée.</li>
-        <li><strong>Google:</strong> Parcequ'ils veulent tracer tout le monde et conquérir internet.</li>
-        <li><strong>Micromou(aka micro$oft):</strong> Prix trop élevé, aucune qualitée, non Libre et Ouvert</li>
+        <li><strong>Adobe:</strong> Prix élevé et utilise des formats propriétaires;</li>
+        <li><strong>Apple:</strong> Le matériel coute trop cher et n'est ni Ouvert ni Libre (par contre le prix du système d'exploitation me semble correct mais il se base sur des logiciels libres);</li>
+        <li><strong>Facebook:</strong> Trop social pour moi :D Nan, je rigole, les gens sont des moutons et ils se font de l'argent dessus et ils ne respectent pas la vie privée;</li>
+        <li><strong>Google:</strong> Parcequ'ils veulent conquérir & tracer tout le monde;</li>
+        <li><strong>Micromou(aka micro$oft):</strong> Prix trop élevé, aucune qualitée, non Libre et non ouvert;</li>
         <li><strong>Netflix:</strong> (je ne l'ai jamais utilisé) → DRM.</li>
-        <li><strong>OpenClassroom anciennement Site Du 0:</strong> Le 0 du site originel représente la note que je mettrais au site.</li>
-        <li><strong>w3schools,</strong> ou le site d'apprentissage du web n'est pas a la norme W3C.</li>
-        <li>Et tout ce que l'on achete(pas louer) mais qui ne nous appartient pas(ex: DVD).</li>
+        <li><strong>OpenClassroom anciennement Site Du 0:</strong> Le 0 du site originel représente la note que je mettrais au site;</li>
+        <li><strong>w3schools,</strong> ou le site d'apprentissage du web n'est pas a la norme W3C;</li>
+        <li>Et tout ce que l'on paye mais qui ne nous appartient pas(ex: DVD, Tv, Sacem, …).</li>
         <?php } else { ?>
-        <li><strong>Adobe:</strong> Costy and proprietary formats.</li>
-        <li><strong>Apple:</strong> Hardware cost too much and is not Open (The Operating System price is okay for me)</li>
+        <li><strong>Adobe:</strong> Expensive and proprietary formats.</li>
+        <li><strong>Apple:</strong> not Free and hardware cost too much (The Operating System price is okay for me but is based on free software)</li>
         <li><strong>Facebook:</strong> Too social for me :D Nope, just kidding, People are sheep and they are making money on it.</li>
-        <li><strong>Google:</strong> Because they want to trace everyone and conquer the internet.</li>
-        <li><strong>Micro$oft:</strong> Cost too much, no quality, not Open</li>
+        <li><strong>Google:</strong> Because they want to conquer and trace everyone.</li>
+        <li><strong>Micro$oft:</strong> Expensive, no quality, not Open, no support, …</li>
         <li><strong>Netflix:</strong> (never ever used before) → DRM.</li>
         <li><strong>OpenClassroom aka Site du 0:</strong> The 0 is the mark I'd give to this website.</li>
         <li><strong>w3schools</strong> or the web learn website without W3C norm.</li>
-        <li>And everything we bought(not rent) and don't own(ex: DVD).</li>
+        <li>And everything we pay and don't own(ex: DVD, Tv, Music, …).</li>
         <?php } ?>
       </ul>
     </section>
diff --git a/css/basic.css b/css/basic.css
@@ -27,8 +27,6 @@ strong.bold {display: block;}
 ul,ol {margin-left: 2em;}
 #content {
   margin: 20px;
-  text-align: center;
-  min-height: calc(100% - 70px);
 }
 .warn {
   background-color: rgba(255, 60, 0, 0.2);
diff --git a/footer.php b/footer.php
@@ -4,4 +4,5 @@
       </a>
       <?=$locale['license']?>
       <strong><a href="http://www.anybrowser.org/campaign/"><?=$locale['anybrowser']?></a></strong>
+      <a href="https://flattr.com/submit/auto?user_id=lanodan&url=<?=(isset($_SERVER['HTTPS']) ? "https" : "http") . "://{$_SERVER[HTTP_HOST]}{$_SERVER[REQUEST_URI]}"?>" target="_blank"><img src="//api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0"></a>
     </footer>
diff --git a/lang/en.php b/lang/en.php
@@ -17,4 +17,8 @@ $locale['links']='Links';
 $locale['about']='About';
 $locale['license']='This work is licensed under a <a rel="license" href="//creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.';
 $locale['anybrowser']='Viewable on Any Browser';
+$locale['list']='Anime & Movies list';
+$locale['name']='name';
+$locale['startWatching']='Start Watching';
+$locale['finnishWatching']='Finnish Watching';
 ?>
diff --git a/lang/fr.php b/lang/fr.php
@@ -14,7 +14,11 @@ $locale['coding']='Programmation';
 $locale['creations']='Créations';
 $locale['drawing']='Graphisme';
 $locale['links']='Liens';
-$locale['about']='A Propos';
+$locale['about']='À Propos';
 $locale['license']='Ce(tte) œuvre est mise à disposition selon les termes de la <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Licence Creative Commons Attribution -  Partage dans les Mêmes Conditions 4.0 International</a>.';
 $locale['anybrowser']='Visionable sur tous les navigateurs';
+$locale['list']='Liste Anime & Films';
+$locale['name']='Nom';
+$locale['startWatching']='Début du visionage';
+$locale['finnishWatching']='Fin du visionage';
 ?>
diff --git a/post.php b/post.php
@@ -19,6 +19,9 @@
   $query = 'SELECT * FROM '.$mysql['table'].' WHERE id = '.$_id;
   $result = $mysqli->query($query);
 
+  $query_comments = 'SELECT * FROM '.$mysql['table'].'_comments WHERE post_id = '.$_id;
+  $result_comments = $mysqli->query($query_comments);
+
 ?>
 <!DOCTYPE html>
 <html>
@@ -35,10 +38,33 @@
     <?php
       /* fetch associative array */
       $row = $result->fetch_array();
-      print '  <article>
+      print '  <section class="article">
+      <h1><a href="post?id='.$row['id'].'">'.$row['title'].'</a></h1>
+      <article>
         '.$row['content'].'
-        <div class="tags">'.$row['tags'].'</div>
-      </article>'."\n";
+      </article>
+      <div class="info"><span class="tags>"'.$row['tags'].'</span><date>'.date("c", strtotime($row['pubDate']) ).'</date></div>
+    </section> 
+';
+      $result->close();
+      $mysqli->close();
+    ?>
+    <form action="comment.php">
+      <label>User(optionnal): </label><input type="text" name="username" value="Anonymous"></input><br />
+      <label>Comment: </label><textarea name="comment"></textarea>
+    </form>
+    <?php
+      while($row = $result_comments->fetch_array()) {
+        $rows[] = $row;
+      }
+
+      foreach($rows as $row) {
+        print '  <section class="comment" id="'.$row['id'].'">
+        <h1>'.$row['username'].'</h1>
+        '.$row['comment'].'
+      </section> 
+';
+      }
 
       $result->close();
       $mysqli->close();