logo

blog

My little blog can’t be this cute! git clone https://hacktivis.me/git/blog.git
commit: 8f1269e4798bd0ea21492350ab51830305fd90ca
parent b56765d1596c5d6b5e2a5d5bcae8067ec34497f8
Author: lanodan <lanodan.delta@free.fr>
Date:   Wed, 12 Mar 2014 21:21:27 +0100

Add 404, RSS, About, Page; CSS; new languages values, some images

Diffstat:

A.gitignore2++
A.htaccess1+
A404.php24++++++++++++++++++++++++
Aabout.php49+++++++++++++++++++++++++++++++++++++++++++++++++
Acss/basic.css21+++++++++++++++++++++
Acss/errorDocument.css3+++
Acss/footer.css9+++++++++
Acss/live.css3+++
Mcss/navbar.css8++++----
Afooter.php7+++++++
Aimages/anybrowser.png0
Aimages/deadlink.png0
Aimages/deadlink.svg183+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aimages/twitter.svg4++++
Mlang/en.php3+++
Mlang/fr.php3+++
Mlang/index.php2+-
Dlinks.php35-----------------------------------
Alive.php16++++++++++++++++
Mnavbar.php2+-
Arss.php54++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 files changed, 388 insertions(+), 41 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,2 @@ +*.swp +*.swo diff --git a/.htaccess b/.htaccess @@ -0,0 +1 @@ +ErrorDocument 404 /404.php diff --git a/404.php b/404.php @@ -0,0 +1,24 @@ +<?php + include 'lang/lang.php'; +?> +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>404 not found<?=baseTitle?></title> + <link rel="stylesheet" type="text/css" href="css/basic.css"> + <link rel="stylesheet" type="text/css" href="css/errorDocument.css"> + <link rel="stylesheet" type="text/css" href="css/navbar.css"> + <link rel="stylesheet" type="text/css" href="css/footer.css"> + </head> + <body> + <?php include 'navbar.php'; ?> + <section id="content"> + <strong class="bold">Oops</strong> + you found a + <strong class="bold">Dead Link !</strong> + <?php include 'images/deadlink.svg';?> + </section> + <?php include 'footer.php';?> + </body> +</html> diff --git a/about.php b/about.php @@ -0,0 +1,49 @@ +<?php + include 'lang/lang.php'; +?> +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title><?=links.baseTitle?></title> + <link rel="stylesheet" type="text/css" href="css/basic.css"> + <?php //<link rel="stylesheet" type="text/css" href="css/links.css"> ?> + <link rel="stylesheet" type="text/css" href="css/navbar.css"> + <link rel="stylesheet" type="text/css" href="css/footer.css"> + </head> + <body> + <?php include 'navbar.php'; ?> + <div id="content"> + <h1><?=about?></h1> + <p>Haelwenn MONNIER, <?=date_diff(date_create('1998-04-02'), date_create('today'))->y?> + <?php if ($lang == 'fr'){ ?> + ans. J'utilise UNIX/Linux depuis que je suis petit. J'apprend le web depuis 2012. + <?php } else { ?> + years. I've alway use UNIX/Linux. I learn the web since 2012. I talk French(native), English and a bit of Spannish and Japnannese. + <?php } ?> + <h1><?=links?></h1> + <ul> + <li><a href="//github.com/lanodan"><img src="//github.com/favicon.ico"> Github</a></li> + </ul> + <ul> + <li><h2><img src="images/twitter.svg" width="20px" alt="twitter-bird"/> Twitter</h2> + <ul> + <li><a href="//twitter.com/lanodan">@lanodan</a></li> + <li><a href="//twitter.com/lanobottl">@lanobottl</a></li> + <li><a href="//twitter.com/lanodanNSFW">@lanodanNSFW</a> <strong class="warn"><?=NSFW?></strong></li> + <li><a href="//twitter.com/derpi_">@derpi_</a></li> + <li><a href="//twitter.com/TheDeltaNet">@TheDeltaNet</a></li> + </ul> + </li> + <li><h2><img src="//tumblr.com/favicon.ico"> Tumblr</h2> + <ul> + <li><a href="//lanodan.tumblr.com">lanodan.tumblr.com</a></li> + <li><a href="//lanodan-nsfw.tumblr.com">lanodan-nsfw.tumblr.com</a> <strong class="warn"><?=NSFW?></strong></li> + <li><a href="//the-delta.tumblr.com">the-delta.tumblr.com</a></li> + </ul> + </li> + </ul> + </div> + <?php include 'footer.php';?> + </body> +</html> diff --git a/css/basic.css b/css/basic.css @@ -0,0 +1,21 @@ +* { + margin: 0px; + padding: 0px; +} +html, body { + background-color: #E3E3E3; + color: #000000; + height: 100%; +} +#content { + margin: 20px; + text-align: center; + min-height: calc(100% - 70px); +} +.warn { + background-color: rgba(255, 60, 0, 0.2); + border-left: 2px solid #FF3C00; +} +.bold {font-weight: bold;} +strong.bold {display: block;} +ol, ul, li {list-style: none;} diff --git a/css/errorDocument.css b/css/errorDocument.css @@ -0,0 +1,3 @@ +#content { + font-size: 22px; +} diff --git a/css/footer.css b/css/footer.css @@ -0,0 +1,9 @@ +footer { + background-color: #efefef; + background-image: linear-gradient(0deg, #900, #D00); + display: block; + box-shadow: 0px 0px 5px; + text-align: center; + padding: 5px 0px; + width: 100%; +} diff --git a/css/live.css b/css/live.css @@ -0,0 +1,3 @@ +html, body { + height: 100%; +} diff --git a/css/navbar.css b/css/navbar.css @@ -1,10 +1,8 @@ a {text-decoration: none;} a:hover {text-decoration: underline;} nav { - background-color: #efefef; - background-image: linear-gradient(0deg, #900, #D00); + background: #B80000 linear-gradient(0deg, #900, #D00); font-size: 21px; - transition: .5s; display: block; box-shadow: 0px 0px 5px; } @@ -14,10 +12,12 @@ nav ul { display: inline-block; } nav ul li { + transition: 0.5s; padding: 5px; display: inline-table; } -nav ul li:hover {background: #900;} +nav ul li:hover {background: #AB0000 linear-gradient(0deg, #800000, #C40000);} +nav ul li:active {background: #910000 linear-gradient(0deg, #660000, #AB0000);} nav ul li:hover > ul {display: block;} nav ul ul { display: none; diff --git a/footer.php b/footer.php @@ -0,0 +1,7 @@ +<footer> + <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/"> + <img alt="CC-BY-SA" src="http://i.creativecommons.org/l/by-sa/4.0/88x31.png" /> + </a> + <?=license?> + <strong class="warn"><a href="http://www.anybrowser.org/campaign/"><?=anybrowser?></a></strong> +</footer> diff --git a/images/anybrowser.png b/images/anybrowser.png Binary files differ. diff --git a/images/deadlink.png b/images/deadlink.png Binary files differ. diff --git a/images/deadlink.svg b/images/deadlink.svg @@ -0,0 +1,183 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + version="1.2" + viewBox="0 0 271.99121 127.44645" + width="69%"> + <g + transform="translate(-356.4255,-497.48875)" + id="Colors"> + <path + d="m 521.71875,549.59375 -90.3125,24.28125 -20.96875,10.84375 c 30.49309,2.80395 15.40767,14.78042 15.84375,24.625 5.52432,0.5379 14.7315,-1.2287 20.71875,-1.3125 5.98725,-0.0838 7.0691,7.42645 12.5,6.875 5.4309,-0.55145 12.16111,-4.47035 19.21875,-3.4375 7.05763,1.03286 16.74645,4.21521 21.375,0.96875 3.23645,-3.76905 6.29586,-15.47523 21.34375,-16.71875 6.06092,-5.95569 1.40995,-17.35334 15.34375,-21.28125 8.90338,0.73055 7.36897,11.35205 14.1875,11.5625 0.14721,-2.21759 -3.20887,-4.903 -1.8125,-6.375 12.42926,-0.4773 23.45265,12.31758 24.25,10.375 0.79735,-1.94258 -5.02389,-5.43478 -4.8125,-8.375 9.03,-1.24403 14.52732,3.68032 24.15625,1.625 -4.63879,-4.29477 -26.75035,-4.25217 -31.09375,-6.21875 4.9114,-2.13573 20.39676,-0.44857 20.5,-1.6875 -11.84568,-3.95182 -32.17334,0.0261 -36.90625,-4.84375 -4.10399,-3.91454 10.75659,-8.30891 9.875,-11.3125 -0.88159,-3.0036 -22.39493,-5.28421 -33.40625,-9.59375 z m 58.9375,38.21875 c 0,0 9.97462,9.30912 11.875,5.5625 1.90038,-3.74663 -11.875,-5.5625 -11.875,-5.5625 z m 19.875,1.09375 c 0,0 17.36355,7.55661 17.875,4.09375 0.51144,-3.46287 -17.875,-4.09375 -17.875,-4.09375 z m 2.90625,7.5625 c 0,0 5.69845,8.86564 7.71875,6.6875 2.02031,-2.17814 -7.71875,-6.6875 -7.71875,-6.6875 z" + id="blood" + style="fill:#790000;fill-opacity:1;stroke:none" /> + <path + d="m 506.36829,516.36848 c 9.53481,1.83056 18.00343,2.3231 26.66229,9.86575 l -33.41104,20.61136 -11.27392,-13.51241 z" + id="path6" + style="fill:#75af74;fill-opacity:1;stroke:none" /> + <path + d="m 533.03058,526.23423 -33.41104,20.61136 c 5.28977,2.18185 10.50726,4.94191 15.90337,6.27301 7.50155,-4.99474 13.69388,-6.80994 19.54227,-7.78986 3.5597,-7.28612 2.61825,-13.59372 -2.0346,-19.09451 z" + id="path8" + style="fill:#3d5f3b;fill-opacity:1;stroke:none" /> + <path + d="m 438.40863,551.21243 c -4.58642,8.68384 -3.55919,28.08072 -17.42649,29.72118 4.26509,4.33611 10.08562,6.40248 20.26786,-0.625 4.71458,8.18104 34.76659,14.84986 34.82143,21.60714 4.26922,-3.87428 2.84347,-9.66752 -3.83929,-17.23214 l 12.94643,12.54464 0.47891,-8.18772 25.32465,-37.0355 -10.08929,-4.73213 7.94642,-3.52679 -15.37686,-1.99085 z" + id="path10" + style="fill:#fbe48f;fill-opacity:1;stroke:none" /> + <path + d="m 438.40863,551.21243 c 4.81365,8.72875 14.9809,11.63472 25.21151,14.0016 5.58026,6.99721 12.32972,7.27155 18.80553,9.11937 l 4.19311,-3.92411 18.82076,-11.8078 -1.68956,-4.36431 -2.85714,-6.96428 c -2.99762,-0.81767 -4.66441,-2.39581 -4.3318,-5.11646 -18.5969,-2.24462 -36.27879,4.66097 -54.41818,6.99146 z" + id="path12" + style="fill:#938246;fill-opacity:1;stroke:none" /> + <path + d="m 430.52553,584.85594 9.05146,-9.1991 c 14.4461,6.49765 34.09521,10.53054 36.49444,26.25891 -2.46787,-8.36389 -28.29324,-12.40944 -34.82143,-21.60714 -3.39351,2.649 -6.99468,4.00011 -10.72447,4.54733 z" + id="path14" + style="fill:#938246;fill-opacity:1;stroke:none" /> + <path + d="m 442.21788,549.45286 c 6.94599,5.21848 14.57908,8.63331 22.87193,10.31629 l 16.34897,-38.08747 16.95598,12.05298 c -1.47302,-9.56069 -11.28754,-21.22234 -24.93117,-21.01184 -12.27533,0.1894 -31.4952,10.77794 -31.24571,36.73004 z" + id="path16" + style="fill:#74ae74;fill-opacity:1;stroke:none" /> + <path + d="m 465.08981,559.76915 9.73428,-33.89407 8.58332,-5.45103 14.98735,13.31061 0.89096,5.05609 -4.64286,10e-6 c -1.18046,2.9645 -8.45142,23.62906 -29.55305,20.97839 z" + id="path18" + style="fill:#3d5f3b;fill-opacity:1;stroke:none" /> + <path + d="m 500.23286,522.10565 c 8.6409,-2.33099 17.59741,-2.07513 24.7591,9.08763 l -4.74506,2.92724 c -3.96398,-7.12253 -10.49495,-11.28913 -20.01404,-12.01487 z" + id="path20" + style="fill:#774c34;fill-opacity:1;stroke:none" /> + <path + d="m 524.99196,531.19328 -4.74506,2.92724 c 3.76415,5.41667 3.28318,10.03114 2.98456,14.74584 l 5.98564,-2.26029 c -0.28679,-5.08041 -0.18818,-9.8371 -4.22514,-15.41279 z" + id="path22" + style="fill:#3b251a;fill-opacity:1;stroke:none" /> + <path + d="m 543.19686,525.11631 5.14163,4.72391 -6.32851,6.27088 -4.98216,-3.06299 -1.61609,-3.83424 z" + id="path24" + style="fill:#e2e2dd;fill-opacity:1;stroke:none" /> + <path + d="m 548.33849,529.84022 c -2.55881,1.75331 -5.08721,3.52944 -6.32851,6.27088 l -4.98216,-3.06299 c 1.05096,4.34664 -0.009,7.84891 -1.45464,11.19691 5.93747,0.60738 11.39994,-0.63245 15.82707,-5.8986 0.0502,-2.96138 -0.28597,-5.87729 -3.06176,-8.5062 z" + id="path26" + style="fill:#82817f;fill-opacity:1;stroke:none" /> + <path + d="m 558.29869,517.1076 c 3.88977,0.74283 5.95281,3.49505 8.22188,6.02065 l -18.18208,6.71197 -5.80626,-5.27706 z" + id="path28" + style="fill:#b14524;fill-opacity:1;stroke:none" /> + <path + d="m 548.33849,529.84022 c 2.67615,2.55895 3.04846,5.93102 2.88913,9.49073 3.71029,-2.49036 8.10192,-3.81272 9.59645,-10.10153 -2.96557,9.07247 3.15667,7.89369 3.15667,7.89369 10.69972,-0.045 2.53983,-13.99486 2.53983,-13.99486 z" + id="path30" + style="fill:#5f2210;fill-opacity:1;stroke:none" /> + <path + d="m 520.59675,514.09282 -2.45726,4.55244 2.8265,0.79588 1.09347,-2.96488 z" + id="path32" + style="fill:#82817f;fill-opacity:1;stroke:none" /> + <path + d="m 523.20891,509.56563 -2.61216,4.52719 -9.06986,1.47 -1.26338,-1.93121 c 0,0 5.88645,-9.18396 12.9454,-4.06598 z" + id="path34" + style="fill:#b14524;fill-opacity:1;stroke:none" /> + <path + d="m 512.05264,514.45595 c 4.29161,-2.63393 6.48284,-1.61165 8.54411,-0.36313 l -2.45726,4.55244 -7.29576,-1.64415 z" + id="path36" + style="fill:#e2e2dd;fill-opacity:1;stroke:none" /> + <path + d="m 523.20891,509.56563 -2.61216,4.52719 1.46271,2.38344 c 3.00413,-2.49076 4.7511,-4.89172 1.14945,-6.91063 z" + id="path38" + style="fill:#5f2210;fill-opacity:1;stroke:none" /> + <path + d="m 400.78394,567.76509 35.02291,-11.10796 -1.84555,9.61387 -29.3952,12.0771 c 0,0 3.4157,-6.87209 -3.78216,-10.58301 z" + id="path40" + style="fill:#3d5f3b;fill-opacity:1;stroke:none" /> + <path + d="m 438.40863,551.21243 c -16.07631,3.36726 -32.4813,6.2415 -45.96437,13.49861 l 8.33968,3.05405 35.02291,-11.10796 z" + id="path42" + style="fill:#74ae74;fill-opacity:1;stroke:none" /> + <path + d="m 510.98213,552.00503 c 9.11301,2.41636 17.59807,5.00594 19.91617,9.29675 -0.73152,6.42337 -13.88527,15.23563 -20.8344,22.8547 -2.23325,-15.87743 -13.41638,-15.82887 -23.71511,-16.51851 1.23867,-6.65979 19.09075,-9.03648 19.09075,-9.03648 l -1.68956,-4.36431 z" + id="path44" + style="fill:#b3c27d;fill-opacity:1;stroke:none" /> + <path + d="m 506.28522,553.74318 c 6.1359,15.34965 -12.8325,14.39174 -19.93643,13.89479 0.42984,-6.44469 19.09075,-9.03648 19.09075,-9.03648 0,0 -3.6722,-3.64364 0.84568,-4.85831 z" + id="path46" + style="fill:#667041;fill-opacity:1;stroke:none" /> + <path + d="m 529.10583,559.16387 -23.71775,14.06167 c 3.28813,4.36327 3.90331,6.89471 4.67582,10.93094 8.59282,-9.017 25.97598,-20.71993 19.04193,-24.99261 z" + id="path48" + style="fill:#667041;fill-opacity:1;stroke:none" /> + <path + d="m 495.47983,587.43947 c -0.25823,7.56061 -6.95545,-0.7377 -7.32361,-3.97747 3.20011,2.99381 -2.85564,11.6803 -4.98763,-0.37881 -0.17258,1.72576 -4.47823,4.20026 -3.34845,-2.87989 4.93571,1.89432 10.69079,4.25652 15.65969,7.23617 z" + id="path50" + style="fill:#917b62;fill-opacity:1;stroke:none" /> + <path + d="m 486.61878,570.40929 c 21.46001,3.52958 17.53262,10.00467 8.86105,17.03018 l -15.65969,-7.23617 c 0.71746,-3.60884 3.05103,-6.85854 6.79864,-9.79401 z" + id="path52" + style="fill:#f8d8b6;fill-opacity:1;stroke:none" /> + <path + d="m 486.61878,570.40929 c -0.0928,0.11044 26.85221,2.54153 8.86105,17.03018 0,0 0.64281,5.72775 4.48255,4.04061 l 9.32901,-11.35983 c -2.754,-4.60496 -2.4452,-9.74122 -16.21194,-12.4358 z" + id="path54" + style="fill:#917b62;fill-opacity:1;stroke:none" /> + <path + d="m 395.14473,565.43296 c 3.8161,2.32202 8.77756,2.02609 10.44937,9.24936 -5.59785,11.81543 -28.76105,20.65638 -13.24678,5.13249 -12.39379,-4.85617 -21.42893,9.26795 -23.48124,7.92118 -0.076,-2.33926 2.98442,-8.56031 -1.8432,-6.18423 1.01633,-6.24374 13.29669,-14.65652 28.12185,-16.1188 z" + id="path56" + style="fill:#f8d8b6;fill-opacity:1;stroke:none" /> + </g> + <g + transform="translate(-356.4255,-497.48875)" + id="lines"> + <path + d="m 442.14286,549.1479 c -0.0507,-41.86482 52.45889,-50.7065 57.14286,-10.35715 -6.25826,1.79921 -17.34681,-7.93297 -17.34681,-7.93297 l 12.70395,7.93298 c -12.16248,33.2195 -40.66132,20.0217 -52.5,10.35714 z" + id="path3202" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 442.14286,549.1479 c -12.22442,2.497 -1.73369,28.44432 -21.16072,31.78571 5.52386,6.49974 12.61222,4.48163 20.26786,-0.625 7.89411,10.79945 32.79782,12.52443 34.82143,21.60714 7.04221,-6.27063 -3.83929,-17.23214 -3.83929,-17.23214 l 12.94643,12.54464 0.47891,-8.18772 m 19.78206,-30.43904 -1.68956,-4.36431 7.23215,-2.23215 -10.08929,-4.73213 7.94642,-3.52679 -15.37686,-1.99085" + id="path3980" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 493.07945,567.68445 c -17.5312,4.38129 -14.40551,23.24104 -9.91086,15.39874 -0.0798,8.64646 8.72027,8.2399 4.98763,0.37881 2.64862,6.96947 7.93705,9.80686 7.32361,3.97747 0.005,2.99239 1.28146,4.58032 4.48255,4.04061 2.94846,-3.40569 5.21579,-8.05674 9.32901,-11.35983" + id="path3982" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 517.45064,558.9658 c -2.59636,-2.10606 -36.25561,0.46782 -30.83186,11.44349" + id="path3986" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 510.98213,552.00503 c 0,0 19.01198,4.4995 19.91617,9.29675 0.90419,4.79724 -13.97378,15.2996 -20.8344,22.8547 -1.1579,-11.64 -10.05331,-17.67005 -23.71511,-16.51851" + id="path3988" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 438.40863,551.21243 c -14.53004,2.5837 -31.23059,4.8301 -45.96437,13.49861 13.1625,3.1177 14.66421,8.73728 12.12184,13.63706 l 29.3952,-12.0771" + id="path3990" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 395.14473,565.43296 c 0,0 -21.97642,2.27839 -27.85957,14.58821 -1.58411,3.31456 2.57789,0.81827 2.57789,0.81827 m 10.09048,-5.8808 c 0,0 -6.4625,-0.75933 -8.65934,1.08505 -2.19683,1.84438 -1.27612,7.28472 -1.27612,7.28472 m 12.85952,-6.5996 c -10.8196,1.19207 -15.53856,9.16336 -14.18855,10.84328 1.35001,1.67992 6.52775,-4.2107 11.2062,-7.01017 4.67844,-2.79948 10.15224,-2.1953 12.18368,-1.18649 2.03143,1.00881 -8.02282,5.46109 -4.13121,8.66289 3.89161,3.2018 17.64639,-13.356 17.64639,-13.356" + id="path3992" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 515.52291,553.1186 c 0,0 9.19791,-6.44953 19.54227,-7.78986 7.89619,-15.98884 -4.6357,-26.1311 -28.69689,-28.96026 l -10.6698,9.9772" + id="path3994" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 500.23286,522.10565 c 18.84792,-6.03811 29.60489,11.16963 28.98424,24.50042 l -5.98564,2.26029 c 1.86903,-12.69143 -7.18826,-26.16079 -22.9986,-26.76071 z" + id="path3996" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 558.29869,517.1076 c 10.83504,2.52414 12.08101,16.63461 10.42803,18.59723 -1.65298,1.96261 -7.60025,1.82541 -8.46955,0.0153 -0.86931,-1.8101 0.5669,-6.49071 0.5669,-6.49071 -1.53067,6.62403 -5.6419,8.20982 -9.59645,10.10153 1.45033,-6.561 -3.53658,-10.46874 -8.69539,-14.76779 z" + id="path3998" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 543.19686,525.11631 -7.78513,4.09756" + id="path4000" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 535.57318,544.24502 c 9.50652,1.32104 11.00046,-1.61786 15.82707,-5.8986" + id="path4002" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 520.96599,519.44114 1.09347,-2.96488 c -1.2642,-3.24243 -4.33688,-5.73087 -10.00682,-2.02031 l -1.20891,2.54516" + id="path4004" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + <path + d="m 521.80485,517.16661 c 0,0 4.04729,-3.66086 3.47448,-5.26761 -0.57282,-1.60675 -4.13061,-4.45388 -7.51301,-3.81964 -3.3824,0.63424 -7.62382,4.88929 -7.54458,5.77681 0.0792,0.88752 1.30515,1.70665 1.30515,1.70665" + id="path4006" + style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" /> + </g> +</svg> diff --git a/images/twitter.svg b/images/twitter.svg @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" width="64" height="64"> + <path style="fill:#2aa9e0" d="m 54,18.352808 c -1.618764,0.71808 -3.358746,1.203181 -5.18453,1.421422 1.863625,-1.117165 3.295166,-2.886186 3.969027,-4.994228 -1.744382,1.03466 -3.676206,1.785741 -5.732548,2.190544 C 45.405465,15.216043 43.059382,14.12 40.462937,14.12 c -4.985207,0 -9.027274,4.041626 -9.027274,9.026835 0,0.707521 0.07986,1.396563 0.23386,2.057224 -7.502454,-0.37642 -14.153944,-3.970348 -18.606311,-9.431856 -0.777041,1.333202 -1.222323,2.883764 -1.222323,4.538169 0,3.131924 1.593684,5.894908 4.015886,7.51367 -1.479721,-0.04686 -2.871663,-0.45298 -4.088705,-1.12904 -0.001,0.03762 -0.001,0.07546 -0.001,0.113519 0,4.373608 3.111688,8.021873 7.241313,8.851715 -0.757461,0.20636 -1.554962,0.31658 -2.378206,0.31658 -0.58168,0 -1.147079,-0.05676 -1.6984,-0.16192 1.148841,3.586226 4.482507,6.19609 8.432833,6.268689 -3.089465,2.421325 -6.98171,3.864528 -11.211219,3.864528 -0.728643,0 -1.447162,-0.0429 -2.153364,-0.126282 3.994987,2.561466 8.739954,4.055928 13.837803,4.055928 16.604087,0 25.684162,-13.75508 25.684162,-25.684383 0,-0.391379 -0.0088,-0.780561 -0.02618,-1.167979 1.763521,-1.272484 3.293844,-2.862209 4.504068,-4.672589 z" /> +</svg> diff --git a/lang/en.php b/lang/en.php @@ -14,4 +14,7 @@ define('coding', 'Coding'); define('creations', 'Creations'); define('drawing', 'Drawing'); define('links', 'Links'); +define('about', 'About'); +define('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>.'); +define('anybrowser', 'Viewable on Any Browser') ?> diff --git a/lang/fr.php b/lang/fr.php @@ -14,4 +14,7 @@ define('coding', 'Programmation'); define('creations', 'Créations'); define('drawing', 'Graphisme'); define('links', 'Liens'); +define('about', 'A Propos'); +define('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>.'); +define('anybrowser', 'Visionable sur tous les navigateurs'); ?> diff --git a/lang/index.php b/lang/index.php @@ -5,5 +5,5 @@ $lang = $_GET['lang'];//let user define his lang setting setcookie('lang', $lang, '0', '/'); - header('Location: /') + header('Location: '.$_SERVER['HTTP_REFERER']); ?> diff --git a/links.php b/links.php @@ -1,35 +0,0 @@ -<?php - include 'lang/lang.php'; -?> -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8"> - <title><?=links.baseTitle?></title> - <link rel="stylesheet" type="text/css" href="css/basic.css"> - <?php //<link rel="stylesheet" type="text/css" href="css/links.css"> ?> - <link rel="stylesheet" type="text/css" href="css/navbar.css"> - <link rel="stylesheet" type="text/css" href="css/footer.css"> - </head> - <body> - <?php include 'navbar.php'; ?> - <div id="content"> - <h1><?=links?></h1> - <h2><img src="images/twitter.svg" height="20px" alt="[twitter-bird]"/> Twitter</h2> - <ul> - <li><a href="//twitter.com/lanodan">@lanodan</a></li> - <li><a href="//twitter.com/lanobottl">@lanobottl</a></li> - <li><a href="//twitter.com/lanodanNSFW">@lanodanNSFW</a> <strong class="warn"><?=NSFW?></strong></li> - <li><a href="//twitter.com/derpi_">@derpi_</a></li> - <li><a href="//twitter.com/TheDeltaNet">@TheDeltaNet</a></li> - </ul> - <h2>Tumblr</h2> - <ul> - <li><a href="//lanodan.tumblr.com">lanodan.tumblr.com</a></li> - <li><a href="//lanodan-nsfw.tumblr.com">lanodan-nsfw.tumblr.com</a> <strong class="warn"><?=NSFW?></strong></li> - <li><a href="//the-delta.tumblr.com">the-delta.tumblr.com</a></li> - </ul> - </div> - <?php include 'footer.php';?> - </body> -</html> diff --git a/live.php b/live.php @@ -0,0 +1,16 @@ +<?php + include 'lang/lang.php'; +?> +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title><?=mainPage.baseTitle?></title> + <link rel="stylesheet" type="text/css" href="css/basic.css"> + <link rel="stylesheet" type="text/css" href="css/live.css"> + </head> + <body> + <iframe src="https://kiwiirc.com/client/the-delta.net/?theme=basic#live" style="border:0; width:350px; height:100%;"></iframe> + </div> + </body> +</html> diff --git a/navbar.php b/navbar.php @@ -1,6 +1,7 @@ <nav> <ul class="menus"> <li><a href="/"><?=home?></a></li> + <li><a href="/about"><?=about?></a></li> <li><a class="expand_down" href="/tuto/"><?=tuto?></a> <ul> <li><a href="/tuto/coding/"><?=coding?></a></li> @@ -17,7 +18,6 @@ <li><a href="/creations/drawing/"><?=drawing?></a></li> </ul> </li> - <li><a href="/links"><?=links?></a></li> </ul> <ul class="right"> <li><a href="/lang/?lang=fr">Français</a></li> diff --git a/rss.php b/rss.php @@ -0,0 +1,54 @@ +<?xml version="1.0"?> +<rss version="2.0"> +<channel> + <title>Lanodan</title> + <description></description> + <link>http://lanodan.the-delta.net/</link> +<?php + header('Content-Type: application/xml; charset=UTF-8'); + + $link = mysqli_connect('localhost', 'www_data', 'minepqss', 'www_data'); + $query = "SELECT * FROM lanodan"; + + if (mysqli_connect_errno()) { + print 'Connect failed: '.mysqli_connect_error(); + exit(); + } + + function item() { + if ($result = mysqli_query($link, $query)) { + /* fetch associative array */ + while ($row = mysqli_fetch_assoc($result)) { + print '<item>'; + print '<description>'.$row['description'].'</description>'; + print '<link>'.$row['permalink'].'</link>'; + print '<guid>'.$row['permalink'].'</guid>'; + print '<pubDate>'.$row['pubDate'].'</pubDate'; + print '<category>'.$row['tags'].'</category>'; + print '</item>'; + } + + // free result set + mysqli_free_result($result); + } + + // close connection + mysqli_close($link); + + /* Item Example + * + * <item> + * <title>Ubuntu &amp; Canonical sucks !</title> + * <description>Ok so this is the long story of lanodan vs. ubuntu/canonical The beginning Ok so about years ago,...</description> + * <link>http://lanodan.the-delta.net/post/74193409614</link> + * <guid>http://lanodan.the-delta.net/post/74193409614</guid> + * <pubDate>Wed, 22 Jan 2014 20:20:54 +0100</pubDate> + * <category>MerciCanonical</category> + * <category>ThanksCanonical</category> + * <category>MerciUbuntu</category> + * <category>ThanksUbuntu</category> + * </item> + */ + ?> +</channel> +</rss>