Page MenuHomeDevCentral

D397.diff
No OneTemporary

D397.diff

diff --git a/pages/index.dat b/pages/index.dat
--- a/pages/index.dat
+++ b/pages/index.dat
@@ -6,6 +6,7 @@
http://www.formula1.com/ Formula1
http://www.jstor.org/ JSTOR
http://www.lalibre.be/ LaLibreBelgique
+http://www.liberation.fr/ Liberation
http://www.lefigaro.fr/ LeFigaro
http://www.lemonde.fr/ LeMonde
http://www.lesoir.be/ LeSoir
diff --git a/pages/liberation.php b/pages/liberation.php
new file mode 100644
--- /dev/null
+++ b/pages/liberation.php
@@ -0,0 +1,17 @@
+<?php
+
+class LiberationPage extends Page {
+ function analyse () {
+ parent::analyse();
+
+ //Hardcoded known info
+ $this->site = "[[Libération (journal)|Libération]]";
+
+ //Gets date
+ // e.g. http://www.liberation.fr/france/2016/06/02/affiches...
+ $pos = strpos($this->url, "/20");
+ $this->yyyy = substr($this->url, $pos + 1, 4);
+ $this->mm = substr($this->url, $pos + 6, 2);
+ $this->dd = substr($this->url, $pos + 9, 2);
+ }
+}

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 13:04 (18 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2312230
Default Alt Text
D397.diff (997 B)

Event Timeline