diff --git a/Controller/GalleryController.php b/Controller/GalleryController.php deleted file mode 100644 index 4fba4bb..0000000 --- a/Controller/GalleryController.php +++ /dev/null @@ -1,27 +0,0 @@ -galleryModel = new GalleryModel(); - $this->view = $view; - } - - public function showPhotos() - { - $this->view->setVars([ - "photos" => $this->galleryModel->selectPhotos() - ]); - - } - -} \ No newline at end of file diff --git a/Model/Database.php b/Model/Database.php index 94241c4..8547ddb 100644 --- a/Model/Database.php +++ b/Model/Database.php @@ -7,10 +7,10 @@ abstract class Database { /** * Zugangsdaten für die Datenbank */ - private $dbName = "fotofreunde"; //Datenbankname - private $linkName = "localhost"; //Datenbank-Server - private $user = "root"; //Benutzername - private $pw = "root"; //Passwort + private $dbName = "pbbfa23civ_notes"; //Datenbankname + private $linkName = "mysql.pb.bib.de"; //Datenbank-Server + private $user = "pbbfa23civ"; //Benutzername + private $pw = "eJZpd6EuqZzV"; //Passwort /** * Stellt eine Verbindung zur Datenbank her diff --git a/Model/GalleryModel.php b/Model/GalleryModel.php deleted file mode 100644 index c9aa084..0000000 --- a/Model/GalleryModel.php +++ /dev/null @@ -1,28 +0,0 @@ -linkDB(); - - try { - $res = $pdo->query($sql); - } catch (\PDOException $e) { - new \ppa\Library\ErrorMsg("Ihre Anfrage konnte nicht verarbeitet werden", $e); - die; - } - - return $res->fetchAll(\PDO::FETCH_ASSOC); - } -} \ No newline at end of file diff --git a/Views/Gallery/showPhotos.phtml b/Views/Gallery/showPhotos.phtml deleted file mode 100644 index 958fbf0..0000000 --- a/Views/Gallery/showPhotos.phtml +++ /dev/null @@ -1,17 +0,0 @@ - - -