From d28bc5b971e11c4c19a447275897c6a1fef464d2 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Sat, 16 Feb 2019 00:22:58 +0100 Subject: [PATCH] in productive --- .gitignore | 1 + config.php | 9 +++++++++ ical.php | 8 ++++++-- index.php | 4 +++- 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 config.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6fce1de --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +productive.php diff --git a/config.php b/config.php new file mode 100644 index 0000000..053c62a --- /dev/null +++ b/config.php @@ -0,0 +1,9 @@ +setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $conn-> exec("SET CHARACTER SET utf8"); + + header('Content-type: text/calendar; charset=utf-8'); + } catch(PDOException $e) { echo "Webseite wird momentan überarbeitet"; + return; } -header('Content-type: text/calendar; charset=utf-8'); $stmt = $conn->prepare('select * from places'); if(isset($_GET["places_id"])){ diff --git a/index.php b/index.php index 286fc19..d5b9734 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,8 @@ setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $e) { echo "Webseite wird momentan überarbeitet";