mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
55 lines
1.8 KiB
PHP
55 lines
1.8 KiB
PHP
|
<?php
|
||
|
/**
|
||
|
* This software is governed by the CeCILL-B license. If a copy of this license
|
||
|
* is not distributed with this file, you can obtain one at
|
||
|
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt
|
||
|
*
|
||
|
* Authors of STUdS (initial project): Guilhem BORGHESI (borghesi@unistra.fr) and Raphaël DROZ
|
||
|
* Authors of Framadate/OpenSondage: Framasoft (https://github.com/framasoft)
|
||
|
*
|
||
|
* =============================
|
||
|
*
|
||
|
* Ce logiciel est régi par la licence CeCILL-B. Si une copie de cette licence
|
||
|
* ne se trouve pas avec ce fichier vous pouvez l'obtenir sur
|
||
|
* http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt
|
||
|
*
|
||
|
* Auteurs de STUdS (projet initial) : Guilhem BORGHESI (borghesi@unistra.fr) et Raphaël DROZ
|
||
|
* Auteurs de Framadate/OpenSondage : Framasoft (https://github.com/framasoft)
|
||
|
*/
|
||
|
|
||
|
use Framadate\Services\PollService;
|
||
|
use Framadate\Utils;
|
||
|
|
||
|
include_once __DIR__ . '/app/inc/init.php';
|
||
|
|
||
|
if (!is_file(CONF_FILENAME)) {
|
||
|
header(('Location: ' . Utils::get_server_name() . 'admin/check.php'));
|
||
|
exit;
|
||
|
}
|
||
|
|
||
|
/* SERVICES */
|
||
|
/* -------- */
|
||
|
$logService = '\Framadate\Services\LogService';
|
||
|
$pollService = new PollService($connect, new $logService());
|
||
|
|
||
|
/* PAGE */
|
||
|
/* ---- */
|
||
|
|
||
|
$demoPollURL = "";
|
||
|
|
||
|
if (defined("DEMO_POLL_ID")) {
|
||
|
$demoPollURL = Utils::getUrlSondage(DEMO_POLL_ID);
|
||
|
}
|
||
|
|
||
|
$nbcol = max( $config['show_what_is_that'] + $config['show_the_software'] + $config['show_cultivate_your_garden'], 1 );
|
||
|
|
||
|
$smarty->assign('show_what_is_that', $config['show_what_is_that']);
|
||
|
$smarty->assign('show_the_software', $config['show_the_software']);
|
||
|
$smarty->assign('show_cultivate_your_garden', $config['show_cultivate_your_garden']);
|
||
|
$smarty->assign('col_size', 12 / $nbcol);
|
||
|
$smarty->assign('demo_poll_url', $demoPollURL);
|
||
|
|
||
|
$smarty->assign('title', __('Generic', 'Create your own polls'));
|
||
|
|
||
|
$smarty->display('index.tpl');
|