Showing with 8 additions and 13 deletions.
  1. +1 −0 forge/events/2012.txt
  2. +7 −13 visualizza-regione.php
1 change: 1 addition & 0 deletions forge/events/2012.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
31/01||Trento|Inizio corso SysAdmin|http://www.linuxtrent.it/corsi-ed-incontri/corso-sysadmin-2012
27/01|28/01|Firenze|Qt Day 2012|http://iglu.cc.uniud.it/?p=560
23/01||Perugia|Perugia|"Open Source per i Professionisti"|http://www.perugiagnulug.org/open-source-i-professionisti-ed-i-tecnici-del-territorio-23-gennaio-2012-foligno
21/01||Pescara|Inizio Corso di Linux|http://www.pescaralug.org/2011/12/22/corsi-linux-2012/
20/01||Como|Cena Linuxiana Paninsubrica|http://www.gl-como.it/2012/01/08/cena-linuxiana-paninsubrica/
18/01||Monte Sant'Angelo|Laboratorio di Grafica|http://msack.org/2012/01/12/ms4ck-gimplab/
Expand Down
20 changes: 7 additions & 13 deletions visualizza-regione.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,17 @@
$db_file = 'Italia.txt';
$db_regione = file ("./db/$db_file");
$title = 'Tutti i LUG di livello nazionale';
} elseif (array_key_exists ($regione_richiesta, $elenco_regioni)) {
}
elseif (array_key_exists ($regione_richiesta, $elenco_regioni)) {
$regione = $elenco_regioni[$regione_richiesta];
$db_file = "$regione_richiesta.txt";
$db_regione = file ("./db/$db_file");
$title = 'Tutti i LUG presenti nella regione ' . $regione;
} elseif ($regione_richiesta == "elenco") {
$db_regione = array ();

foreach (glob ('./db/*.txt') as $db_file)
$db_regione = array_merge ($db_regione, file ($db_file));

sort ($db_regione);

$db_file = null;
$regione = 'Italia';
$title = 'Tutti i LUG presenti in Italia';
} else {
}
elseif ($regione_richiesta == "elenco") {
header("location: " . $main_url . "/lista.php");
}
else {
header("location: " . $main_url);
}

Expand Down