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";