mirror of
https://framagit.org/framasoft/framadate/framadate
synced 2026-07-21 00:58:53 +00:00
Fix collisions + Inversion bandeau Gitlab entre README et INSTALL
This commit is contained in:
parent
91a9af07bd
commit
a445a5d6fa
3 changed files with 32 additions and 11 deletions
|
|
@ -1,12 +1,3 @@
|
|||
[](https://git.framasoft.org)
|
||||
|
||||
 **Framasoft uses GitLab** for the development of its free softwares. Our Github repositories are only mirrors.
|
||||
If you want to work with us, **fork us on [git.framasoft.org](https://git.framasoft.org)**. (no registration needed, you can sign in with your Github account)
|
||||
|
||||
 **Framasoft utilise GitLab** pour le développement de ses logiciels libres. Nos dépôts Github ne sont que des mirroirs.
|
||||
Si vous souhaitez travailler avec nous, **forkez-nous sur [git.framasoft.org](https://git.framasoft.org)**. (l'inscription n'est pas nécessaire, vous pouvez vous connecter avec votre compte Github)
|
||||
* * *
|
||||
|
||||

|
||||
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
|
||||
|
|
|
|||
|
|
@ -1,3 +1,12 @@
|
|||
[](https://git.framasoft.org)
|
||||
|
||||
 **Framasoft uses GitLab** for the development of its free softwares. Our Github repositories are only mirrors.
|
||||
If you want to work with us, **fork us on [git.framasoft.org](https://git.framasoft.org)**. (no registration needed, you can sign in with your Github account)
|
||||
|
||||
 **Framasoft utilise GitLab** pour le développement de ses logiciels libres. Nos dépôts Github ne sont que des mirroirs.
|
||||
Si vous souhaitez travailler avec nous, **forkez-nous sur [git.framasoft.org](https://git.framasoft.org)**. (l'inscription n'est pas nécessaire, vous pouvez vous connecter avec votre compte Github)
|
||||
* * *
|
||||
|
||||

|
||||
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
|
||||
|
|
|
|||
|
|
@ -38,13 +38,34 @@ function random($car)
|
|||
return $string;
|
||||
}
|
||||
|
||||
// Like function get_sondage_from_id()
|
||||
function check_poll_id($id)
|
||||
{
|
||||
global $connect;
|
||||
|
||||
$sql = 'SELECT `id_sondage` FROM sondage`id_sondage` = ' . $connect->Param('id_sondage') ;
|
||||
$sql = $connect->Prepare($sql);
|
||||
$poll = $connect->Execute($sql, [$id]);
|
||||
|
||||
if ($poll === false) {
|
||||
return false;
|
||||
}
|
||||
|
||||
$dbpoll = $poll->FetchObject(false);
|
||||
|
||||
return $dbpoll->id_sondage;
|
||||
}
|
||||
|
||||
function ajouter_sondage()
|
||||
{
|
||||
global $connect;
|
||||
global $config;
|
||||
|
||||
$sondage=random(16);
|
||||
$sondage_admin=$sondage.random(8);
|
||||
$sondage = random(16);
|
||||
while(check_poll_id($sondage) == $sondage) {
|
||||
$sondage = random(16);
|
||||
}
|
||||
$sondage_admin = $sondage.random(8);
|
||||
|
||||
$date_fin = $_SESSION["champdatefin"]; // provided by choix_autre.php or choix_date.php
|
||||
$_SESSION["champdatefin"]=""; //clean param cause 2 polls created by the same user in the same session can be affected by this param during the 2nd creation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue