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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user