Nur kleinere Korrekturen

modified:   .gitignore
	modified:   Makefile
	deleted:    Makefile~
	modified:   pandocTemplate/cwsvJudo.amp.pandocTemplate
	modified:   pandocTemplate/cwsvJudo.html5.pandocTemplate
	modified:   phpLib/cwsvJudo/galleryRedirector.php
This commit is contained in:
marko
2018-07-09 14:47:59 +02:00
parent a9e0a30538
commit b4b09f4c32
6 changed files with 30 additions and 78 deletions

View File

@@ -1,13 +1,19 @@
<?php
// Umleiten auf eine per query galId im $_GET gegebene Galerie
function galleryRedirector(){
require_once($_SERVER['DOCUMENT_ROOT']."/bonus/db.inc");
global $cwsvJudoConfig;
// require_once($_SERVER['DOCUMENT_ROOT']."/bonus/db.inc");
if(isset($_GET['galId'])){
$redirectLink = $baseDomain."/pages/desktop/verein.galerien.php";
// Datenbankverbindung bereit stellen
try{
$db_connection = new PDO('mysql:host='.$db_server.';dbname='.$db_name, $db_user, $db_password);
$db_connection = new PDO(
'mysql:host='.$cwsvJudoConfig["db"]["host"].';dbname='.$cwsvJudoConfig["db"]["name"],
$cwsvJudoConfig["db"]["user"],
$cwsvJudoConfig["db"]["password"]
);
if(is_positive_integer($_GET['galId'])){
// mögliche Werte für das jahr herausfinden