Add Alias File

This commit is contained in:
labcode-de 2017-06-18 19:50:45 +02:00
parent 9cc245c0a8
commit 15a92e2f1b
No known key found for this signature in database
GPG Key ID: 9CDB093B80490C2F
2 changed files with 36 additions and 0 deletions

View File

@ -19,12 +19,14 @@
$community = array( $community = array(
0 => array( 0 => array(
"community_id" => 0, "community_id" => 0,
"shortlinkname" => 'alfter',
"name" => "Alfter", "name" => "Alfter",
"linktoseite" => "https://images.ffkbu.de/umgebung/", "linktoseite" => "https://images.ffkbu.de/umgebung/",
"geojson" => "geojson/alfter.geojson" "geojson" => "geojson/alfter.geojson"
), ),
1 => array( 1 => array(
"community_id" => 1, "community_id" => 1,
"shortlinkname" => 'altenkirchen',
"name" => "Altenkirchen", "name" => "Altenkirchen",
"head_titel" => "Freifunk Altenkirchen Firmware", "head_titel" => "Freifunk Altenkirchen Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
@ -37,12 +39,14 @@
), ),
2 => array( 2 => array(
"community_id" => 2, "community_id" => 2,
"shortlinkname" => 'badhonnef',
"name" => "Bad Honnef", "name" => "Bad Honnef",
"linktoseite" => "https://images.ffkbu.de/umgebung/", "linktoseite" => "https://images.ffkbu.de/umgebung/",
"geojson" => "geojson/badhonnef.geojson" "geojson" => "geojson/badhonnef.geojson"
), ),
3 => array( 3 => array(
"community_id" => 3, "community_id" => 3,
"shortlinkname" => 'bonn',
"name" => "Bonn", "name" => "Bonn",
"linktoseite" => "https://images.ffkbu.de/bonn/", "linktoseite" => "https://images.ffkbu.de/bonn/",
"geojson" => "geojson/bonn.geojson" "geojson" => "geojson/bonn.geojson"
@ -50,18 +54,21 @@
4 => array( 4 => array(
"community_id" => 4, "community_id" => 4,
"name" => "Bornheim", "name" => "Bornheim",
"shortlinkname" => 'bornheim',
"linktoseite" => "https://images.ffkbu.de/umgebung/", "linktoseite" => "https://images.ffkbu.de/umgebung/",
"geojson" => "geojson/bornheim.geojson" "geojson" => "geojson/bornheim.geojson"
), ),
5 => array( 5 => array(
"community_id" => 5, "community_id" => 5,
"name" => "Hennef", "name" => "Hennef",
"shortlinkname" => 'hennef',
"linktoseite" => "https://images.freifunk-hennef.de/downloader/firmware.php?id=0", "linktoseite" => "https://images.freifunk-hennef.de/downloader/firmware.php?id=0",
"geojson" => "geojson/hennef.geojson" "geojson" => "geojson/hennef.geojson"
), ),
6 => array( 6 => array(
"community_id" => 6, "community_id" => 6,
"name" => "Königswinter", "name" => "Königswinter",
"shortlinkname" => 'koenigswinter',
"head_titel" => "Freifunk Königswinter Firmware", "head_titel" => "Freifunk Königswinter Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
"link_url" => "http://downloader.freifunk-siegburg.de/", "link_url" => "http://downloader.freifunk-siegburg.de/",
@ -74,6 +81,7 @@
7 => array( 7 => array(
"community_id" => 7, "community_id" => 7,
"name" => "Lohmar", "name" => "Lohmar",
"shortlinkname" => 'lohmar',
"head_titel" => "Freifunk Lohmar Firmware", "head_titel" => "Freifunk Lohmar Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
"link_url" => "http://downloader.freifunk-siegburg.de/", "link_url" => "http://downloader.freifunk-siegburg.de/",
@ -85,6 +93,7 @@
), ),
8 => array( 8 => array(
"community_id" => 8, "community_id" => 8,
"shortlinkname" => 'meckenheim',
"name" => "Meckenheim", "name" => "Meckenheim",
"head_titel" => "Freifunk Meckenheim Firmware", "head_titel" => "Freifunk Meckenheim Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
@ -98,6 +107,7 @@
9 => array( 9 => array(
"community_id" => 9, "community_id" => 9,
"name" => "Much", "name" => "Much",
"shortlinkname" => 'much',
"head_titel" => "Freifunk Much Firmware", "head_titel" => "Freifunk Much Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
"link_url" => "http://downloader.freifunk-siegburg.de/", "link_url" => "http://downloader.freifunk-siegburg.de/",
@ -110,6 +120,7 @@
10 => array( 10 => array(
"community_id" => 10, "community_id" => 10,
"name" => "Neunkirchen", "name" => "Neunkirchen",
"shortlinkname" => 'neunkirchen',
"head_titel" => "Freifunk Neunkirchen Firmware", "head_titel" => "Freifunk Neunkirchen Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
"link_url" => "http://downloader.freifunk-siegburg.de/", "link_url" => "http://downloader.freifunk-siegburg.de/",
@ -122,6 +133,7 @@
11 => array( 11 => array(
"community_id" => 11, "community_id" => 11,
"name" => "Niederkassel", "name" => "Niederkassel",
"shortlinkname" => 'niederkassel',
"head_titel" => "Freifunk Niederkassel Firmware", "head_titel" => "Freifunk Niederkassel Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
"link_url" => "http://downloader.freifunk-siegburg.de/", "link_url" => "http://downloader.freifunk-siegburg.de/",
@ -134,6 +146,7 @@
12 => array( 12 => array(
"community_id" => 12, "community_id" => 12,
"name" => "Rheinbach", "name" => "Rheinbach",
"shortlinkname" => 'rheinbach',
"head_titel" => "Freifunk Rheinbach Firmware", "head_titel" => "Freifunk Rheinbach Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
"link_url" => "http://downloader.freifunk-siegburg.de/", "link_url" => "http://downloader.freifunk-siegburg.de/",
@ -145,6 +158,7 @@
), ),
13 => array( 13 => array(
"community_id" => 13, "community_id" => 13,
"shortlinkname" => 'ruppichteroth',
"name" => "Ruppichteroth", "name" => "Ruppichteroth",
"head_titel" => "Freifunk Ruppichteroth Firmware", "head_titel" => "Freifunk Ruppichteroth Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
@ -157,6 +171,7 @@
), ),
14 => array( 14 => array(
"community_id" => 14, "community_id" => 14,
"shortlinkname" => 'staugustin',
"name" => "Sankt Augustin", "name" => "Sankt Augustin",
"head_titel" => "Freifunk Sankt Augustin Firmware", "head_titel" => "Freifunk Sankt Augustin Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
@ -169,6 +184,7 @@
), ),
15 => array( 15 => array(
"community_id" => 15, "community_id" => 15,
"shortlinkname" => 'siegburg',
"name" => "Siegburg", "name" => "Siegburg",
"head_titel" => "Freifunk Siegburg Firmware", "head_titel" => "Freifunk Siegburg Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
@ -181,6 +197,7 @@
), ),
16 => array( 16 => array(
"community_id" => 16, "community_id" => 16,
"shortlinkname" => 'snw',
"name" => "Soziale Netzwerke", "name" => "Soziale Netzwerke",
"head_titel" => "Freifunk für SozLiale Netzwerke Firmware", "head_titel" => "Freifunk für SozLiale Netzwerke Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
@ -193,12 +210,14 @@
), ),
17 => array( 17 => array(
"community_id" => 17, "community_id" => 17,
"shortlinkname" => 'swisttal',
"name" => "Swisttal", "name" => "Swisttal",
"linktoseite" => "https://images.ffkbu.de/umgebung/", "linktoseite" => "https://images.ffkbu.de/umgebung/",
"geojson" => "geojson/swisttal.geojson" "geojson" => "geojson/swisttal.geojson"
), ),
18 => array( 18 => array(
"community_id" => 18, "community_id" => 18,
"shortlinkname" => 'troisdorf',
"name" => "Troisdorf", "name" => "Troisdorf",
"head_titel" => "Freifunk Troisdorf Firmware", "head_titel" => "Freifunk Troisdorf Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
@ -211,6 +230,7 @@
), ),
19 => array( 19 => array(
"community_id" => 19, "community_id" => 19,
"shortlinkname" => 'troisdorf-inn',
"name" => "Troisdorf - Fußgängerzone", "name" => "Troisdorf - Fußgängerzone",
"head_titel" => "Freifunk Troisdorf Fußgänerzone Firmware", "head_titel" => "Freifunk Troisdorf Fußgänerzone Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
@ -223,6 +243,7 @@
), ),
20 => array( 20 => array(
"community_id" => 20, "community_id" => 20,
"shortlinkname" => 'troisdorf-snw',
"name" => "Troisdorf - Soziale Netzwerke", "name" => "Troisdorf - Soziale Netzwerke",
"head_titel" => "Freifunk für Troisdorfer Soziale Netzwerke Firmware", "head_titel" => "Freifunk für Troisdorfer Soziale Netzwerke Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
@ -235,6 +256,7 @@
), ),
21 => array( 21 => array(
"community_id" => 21, "community_id" => 21,
"shortlinkname" => 'wachtberg',
"name" => "Wachtberg", "name" => "Wachtberg",
"head_titel" => "Freifunk Wachtberg Firmware", "head_titel" => "Freifunk Wachtberg Firmware",
"link_text" => "Zurück zur Startseite", "link_text" => "Zurück zur Startseite",
@ -247,6 +269,7 @@
), ),
22 => array( 22 => array(
"community_id" => 22, "community_id" => 22,
"shortlinkname" => 'windeck',
"name" => "Windeck", "name" => "Windeck",
"linktoseite" => "https://images.ffkbu.de/umgebung/", "linktoseite" => "https://images.ffkbu.de/umgebung/",
"geojson" => "geojson/windeck.geojson" "geojson" => "geojson/windeck.geojson"

13
link.php Normal file
View File

@ -0,0 +1,13 @@
<?php
/**
* @author Leo Maroni
* @copyright 2017 Leo Maroni
* @license Licensed under GPLv3
*/
require_once('community-config.inc.php');
$community_shortlink = $_REQUEST['name'];
foreach ($community as $item) {
if ($community_shortlink == $item['shortlinkname']) {
header("Location: firmware.php?id=" . $item['community_id']);
}
}