You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.6 KiB
47 lines
1.6 KiB
<?php
|
|
|
|
$rep = __DIR__ . '/../';
|
|
|
|
$views['form'] = 'Views/HTML/form.php';
|
|
$views['admin'] = 'Views/HTML/admin.php';
|
|
$views['adminLogin'] = 'Views/HTML/adminLogin.php';
|
|
$views['possibleResponsesForm'] = 'Views/HTML/possibleResponsesForm.php';
|
|
$views['continue'] = 'Views/HTML/continue.php';
|
|
$views['categories'] = 'Views/HTML/categories.php';
|
|
$views['questions'] = 'Views/HTML/questions.php';
|
|
$views['responses'] = 'Views/HTML/responses.php';
|
|
$views['thanks'] = 'Views/HTML/thanks.php';
|
|
$views['error'] = 'Views/HTML/error.php';
|
|
|
|
$_SERVER['BASE_URI'] = '';
|
|
|
|
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http";
|
|
$url = $protocol . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
|
echo $url;
|
|
|
|
echo "URL : ".$url." ";
|
|
$newUrl=parse_url($url, PHP_URL_PATH);
|
|
echo "NewURL : ".$newUrl." ";
|
|
$container_name = basename($newUrl);
|
|
echo "Container : ".$container_name;
|
|
|
|
|
|
$controller['Candidate'] = 'ControllerCandidate';
|
|
$controller['Admin'] = 'ControllerAdmin';
|
|
|
|
$googleApis = "https://fonts.googleapis.com";
|
|
$googleStatic = "https://fonts.gstatic.com";
|
|
$poppins = "https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap";
|
|
$icon = "https://cdn.uca.fr/images/favicon/favicon.ico";
|
|
$logoUCA = "https://cdn.uca.fr/images/logos/logo_uca_mini_light.png";
|
|
|
|
$GLOBALS['emailMaxLength']=150;
|
|
$GLOBALS['pseudoMaxLength']=50;
|
|
$GLOBALS['passwordMaxLength']=500;
|
|
$GLOBALS['keyWordMaxLength']=50;
|
|
$GLOBALS['titleMaxLength']=50;
|
|
$GLOBALS['typeMaxLength']=50;
|
|
$GLOBALS['responseMaxLength']=200;
|
|
$GLOBALS['usernameMaxLength']=50;
|
|
|