1
0
Fork 0

in productive

This commit is contained in:
Martin/Geno 2019-02-16 00:22:58 +01:00
parent 9666591deb
commit d28bc5b971
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
4 changed files with 19 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
productive.php

9
config.php Normal file
View File

@ -0,0 +1,9 @@
<?php
$MYSQL_HOST="localhost";
$MYSQL_DBNAME="website_kartontage";
$MYSQL_USERNAME=$MYSQL_DBNAME;
$MYSQL_PASSWORD="QyxlQEXj667j6Brf";
if(file_exists('productive.php'))
include 'productive.php';

View File

@ -1,12 +1,16 @@
<?php
try {
$conn = new PDO("mysql:dbname=d02a1996;host=dd29132.kasserver.com", 'd02a1996', 'VaR3DFKpSThyBB7m');
include 'config.php';
$conn = new PDO("mysql:dbname=$MYSQL_DBNAME;host=$MYSQL_HOST", $MYSQL_USERNAME, $MYSQL_PASSWORD);
$conn->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"])){

View File

@ -1,6 +1,8 @@
<?php
try {
$conn = new PDO("mysql:dbname=website_kartontage;host=localhost", 'website_kartontage', 'QyxlQEXj667j6Brf');
include 'config.php';
$conn = new PDO("mysql:dbname=$MYSQL_DBNAME;host=$MYSQL_HOST", $MYSQL_USERNAME, $MYSQL_PASSWORD);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(PDOException $e) {
echo "Webseite wird momentan überarbeitet";