forked from pnavarrc's block: Earthquake Map
forked from jonpage's block: Earthquake Map
forked from jgondin's block: Earthquake Map
id | name | |
---|---|---|
AFG | Afghanistan | |
AGO | Angola | |
ALB | Albania | |
ARE | United Arab Emirates | |
ARG | Argentina | |
ARM | Armenia | |
ATF | French Southern and Antarctic Lands | |
AUS | Australia | |
AUT | Austria |
#! /usr/bin/php -q | |
<?php | |
define ('MYSQL_ROOT', 'root'); | |
define ('MYSQL_PASS', 'passwd'); | |
# connexion a la base | |
$conn = mysql_connect('localhost', 'root', 'tapioca'); | |
if (!$conn) die ('erreur connexion DB '.mysql_error()); |
<?php | |
## Service Web de conversion d'un SVG (passéen URL) en png | |
## ?url=http://......./svg2png.php?url=(adresse du svg) | |
## renvoie le png converti | |
## TODO : gestion d'entete en cas d'erreur quelconque | |
## utilise : SPIP | |
## utilise : rsvg ou ImageMagick http://seenthis.net/messages/86415 |
<?php | |
# seenthis sync: | |
# export | |
define('_DIR_EXPORT', 'export/'); | |
# import |
<?php | |
/* | |
pour l'installer, assurez-vous d'avoir un executable jpeg-recompress a l'emplacement indiqué, | |
et copier dans .htaccess les lignes suivantes | |
RewriteCond %{REQUEST_FILENAME} \.jpg | |
RewriteCond %{DOCUMENT_ROOT}/jpeg-recompress.php -f | |
RewriteRule \.jpg$ ./jpeg-recompress.php [QSA,L] |
forked from pnavarrc's block: Earthquake Map
forked from jonpage's block: Earthquake Map
forked from jgondin's block: Earthquake Map
This map shows the number of commuters to Dutch municipalities in 2012. Click on a municipality to see were the commuters working there are living.