update: php config files to skeleton files

This commit is contained in:
Emmanuel ROY 2021-02-03 15:53:32 +01:00
parent c136b3beaf
commit 4872d12d28
5 changed files with 13 additions and 49 deletions

7
.gitignore vendored
View file

@ -2,3 +2,10 @@ composer.lock
vendor
.idea
.php_cs.cache
application/config/app-parameters.php
application/config/bdd-parameters.php
application/config/cas-authentification-config.php
application/config/hybrid-authentification-config.php
application/config/soap-constantes.php

View file

@ -1,6 +1,5 @@
<?php
// De base laisser vide,
// sauf si l'application est hebergé sur de multiples sous-repertoire en ajoutant le slash_final
// par exemple : "my-app/"
@ -8,6 +7,6 @@
define("BASE_SERVER_DIRECTORY", "");
// Optionnel! il n'est nécessaire que si vous l'utilisez dans les fichiers de traitement
define('PATH_URL', $_SERVER['REQUEST_SCHEME'] . "://www.domain.org");
define('PATH_URL', $_SERVER['REQUEST_SCHEME'] . "://localhost.localdomain");
define('ENV', "TEST");
define('ENV', "DEV");

View file

@ -11,4 +11,4 @@ define('PASS_BDD1', "pass1");
define('DSN_BDD2', "mysql:host=localhost;dbname=db2");
define('USER_BDD2', "user2");
define('PASS_BDD2', "pass2");
define('PASS_BDD2', "pass2");

View file

@ -24,7 +24,7 @@ $phpcas_path = '../../source/';
///////////////////////////////////////
// Full Hostname of your CAS Server
$cas_host = 'cas.domain.fr';
$cas_host = 'cas.localdomain';
// Context of the CAS Server
$cas_context = 'cas';
// Port of your CAS server. Normally for a https server it's 443
@ -54,49 +54,7 @@ $db_user = 'phpcasuser';
$db_password = 'mysupersecretpass';
$db_table = 'phpcastabel';
$driver_options = '';
*/
///////////////////////////////////////////
// End Configuration -- Don't edit below //
///////////////////////////////////////////
// Generating the URLS for the local cas example services for proxy testing
if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') {
$curbase = 'https://' . $_SERVER['SERVER_NAME'];
} else {
$curbase = 'http://' . $_SERVER['SERVER_NAME'];
}
if ($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443) {
$curbase .= ':' . $_SERVER['SERVER_PORT'];
}
$curdir = dirname($_SERVER['REQUEST_URI']) . "/";
// CAS client nodes for rebroadcasting pgtIou/pgtId and logoutRequest
$rebroadcast_node_1 = 'http://cas-client-1.example.com';
$rebroadcast_node_2 = 'http://cas-client-2.example.com';
// access to a single service
$serviceUrl = $curbase . $curdir . 'example_service.php';
// access to a second service
$serviceUrl2 = $curbase . $curdir . 'example_service_that_proxies.php';
$pgtBase = preg_quote(preg_replace('/^http:/', 'https:', $curbase . $curdir), '/');
$pgtUrlRegexp = '/^' . $pgtBase . '.*$/';
$cas_url = 'https://' . $cas_host;
if ($cas_port != '443') {
$cas_url = $cas_url . ':' . $cas_port;
}
$cas_url = $cas_url . $cas_context;
// Set the session-name to be unique to the current script so that the client script
// doesn't share its session with a proxied script.
// This is just useful when running the example code, but not normally.
session_name(
'session_for-'
. preg_replace('/[^a-z0-9-]/i', '_', basename($_SERVER['SCRIPT_NAME']))
);
// Set an UTF-8 encoding header for internation characters (User attributes)
header('Content-Type: text/html; charset=utf-8');
?>
*/
///////////////////////////////////////////