diff --git a/Caddyfile b/Caddyfile index 2667b99..ade4cc8 100644 --- a/Caddyfile +++ b/Caddyfile @@ -18,5 +18,5 @@ log stdout errors stdout -header / Content-Security-Policy "default-src 'self' ; media-src https://storage.theel0ja.info; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www1.theel0ja.info https://www0.theel0ja.info https://cdnjs.cloudflare.com https://cdn.theel0ja.info; style-src 'self' data: 'unsafe-inline' https://cdnjs.cloudflare.com https://getbootstrap.com https://cdn.theel0ja.info; img-src 'self' data: https://www0.theel0ja.info blob: https://cdn.rawgit.com; font-src data: ; connect-src https://sentry.io https://*.tiles.mapbox.com https://api.mapbox.com; child-src data: blob:; report-uri https://sentry.io/api/942255/csp-report/?sentry_key=87c404ea730a4a0cb596ca0caec20bbb;" +header / Content-Security-Policy "default-src 'self' ; media-src https://storage.theel0ja.info; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www1.theel0ja.info https://www0.theel0ja.info https://cdnjs.cloudflare.com https://cdn.theel0ja.info; style-src 'self' data: 'unsafe-inline' https://cdnjs.cloudflare.com https://getbootstrap.com https://cdn.theel0ja.info; img-src 'self' data: https://www0.theel0ja.info https://assets.theel0ja.info https://api.mapbox.com blob:; font-src data: ; connect-src https://sentry.io https://*.tiles.mapbox.com https://api.mapbox.com; child-src data: blob:; report-uri https://sentry.io/api/942255/csp-report/?sentry_key=87c404ea730a4a0cb596ca0caec20bbb;" header / X-Frame-Options "DENY" diff --git a/README.md b/README.md index 5890c66..d28bbaa 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ --> - + ## Development server ```bash diff --git a/docker-compose.yml b/docker-compose.yml index 81c68ca..b45abeb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: . #image: abiosoft/caddy:php ports: - - 172.19.5.1:30005:2015 + - 37391:2015 volumes: - ./Caddyfile:/etc/Caddyfile - ./src:/app/src diff --git a/src/.htaccess b/src/.htaccess new file mode 100644 index 0000000..f31ef2c --- /dev/null +++ b/src/.htaccess @@ -0,0 +1,2 @@ +RewriteEngine On +RewriteRule ^([^/.]+)$ $1.php [L] diff --git a/src/add-to-flagfox.php b/src/add-to-flagfox.php index abde40a..887262b 100644 --- a/src/add-to-flagfox.php +++ b/src/add-to-flagfox.php @@ -6,7 +6,7 @@ Add to Flagfox - IPLookup - + + + @@ -38,22 +52,22 @@
- + #} @@ -62,10 +76,10 @@ {% if isp %} {{isp}} {% else %} - Unknown + Unknown{# TODO: add styles, etc. to this #} {% endif %} {% if asn and isp %} - (AS{{asn}}) + (AS{{asn}}) {% endif %} @@ -75,7 +89,7 @@ {% if continent %} {{continent}} {% else %} - Unknown + Unknown{# TODO: add styles, etc. to this #} {% endif %} @@ -99,16 +113,16 @@ {% if country %} {{country_name}} {% else %} - Unknown + Unknown{# TODO: add styles, etc. to this #} {% endif %} @@ -118,7 +132,7 @@ {% if region %} {{region}} {% else %} - Unknown + Unknown{# TODO: add styles, etc. to this #} {% endif %} @@ -127,7 +141,7 @@ {% if local_time %} {{local_time}} {% else %} - Unknown + Unknown{# TODO: add styles, etc. to this #} {% endif %} @@ -137,7 +151,7 @@ {% if city %} {{city}} {% else %} - Unknown + Unknown{# TODO: add styles, etc. to this #} {% endif %} @@ -146,17 +160,17 @@ {% if lat %} {{lat}} {% else %} - Unknown + Unknown{# TODO: add styles, etc. to this #} {% endif %} - + @@ -165,7 +179,7 @@ {% if lat %} {{lon}} {% else %} - Unknown + Unknown{# TODO: add styles, etc. to this #} {% endif %} @@ -179,7 +193,7 @@
- +
@@ -212,7 +226,7 @@ - + {# Add zoom controls to map. #}
Hostname {% if hostname %} - {{hostname}} + {{hostname}} {% else %} - Unknown + Unknown{# TODO: add styles, etc. to this #} {% endif %}
Country Code {% if country %} - {{country}}{# (ISO 3166-1 alpha-3) #} + {{country}}{# (ISO 3166-1 alpha-3) #}{# (TODO: set ISO 3166-1 alpha-3 here) #} {% else %} - Unknown + Unknown{# TODO: add styles, etc. to this #} {% endif %}
IP AddressIP Address{# (IPv4)#} {% if ip %} {{ip}} {% else %} - Unknown + Unknown{# TODO: add styles, etc. to this #} {% endif %}