in productive
This commit is contained in:
parent
9666591deb
commit
d28bc5b971
|
@ -0,0 +1 @@
|
|||
productive.php
|
|
@ -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';
|
8
ical.php
8
ical.php
|
@ -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"])){
|
||||
|
|
|
@ -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";
|
||||
|
|
Reference in New Issue