some cleaning and debug
This commit is contained in:
parent
283d9c52b0
commit
f8b090de42
@ -19,9 +19,10 @@ $site = "Lalis";
|
||||
$dossier = "/sftp";
|
||||
$basedir = dirname( $_SERVER['DOCUMENT_ROOT'] ) . $dossier;
|
||||
|
||||
$base_url = "https://lalis69.ddns.net:10443/vote";
|
||||
$url_admin = $base_url . "/gestion";
|
||||
$accueil = $base_url . "/index.html";
|
||||
$base_url = "https://lalis69.ddns.net:10443/";
|
||||
$vote_url = $base_url . "vote/";
|
||||
$url_admin = $vote_url . "/gestion/";
|
||||
$accueil = $vote_url . "/index.html";
|
||||
if (empty( $_SERVER["PHP_AUTH_USER"]))
|
||||
{
|
||||
$_SERVER["PHP_AUTH_USER"] = 'script';
|
||||
|
@ -46,8 +46,6 @@ function mb_ucfirst($str)
|
||||
|
||||
function choixVote($path, $idVotation, $confirm=false)
|
||||
{
|
||||
global $base_url, $action;
|
||||
|
||||
$db = new db();
|
||||
$query = "SELECT * FROM liste_votes WHERE idVotation=" . $idVotation;
|
||||
$result = $db->query($query);
|
||||
@ -72,8 +70,6 @@ function choixVote($path, $idVotation, $confirm=false)
|
||||
|
||||
function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les votations 0 = votations en cours 1 = votations cloturées
|
||||
{
|
||||
global $base_url, $action;
|
||||
|
||||
$db = new db();
|
||||
$query = "SELECT * FROM liste_votations";
|
||||
if ($methode != 2)
|
||||
@ -85,7 +81,6 @@ function choixVotation($path, $methode = 2, $confirm = true) //2 = toutes les v
|
||||
|
||||
print ('<form method="get" action="' . $path . '">');
|
||||
print "<pre>";
|
||||
print '<input type="hidden" name="action" value="' . $action . '"/>';
|
||||
foreach($votations as $key => $value )
|
||||
{
|
||||
print '<input type="radio" name="idVotation" value="' . $value["id"] . '"/> ' . $value["titre"] . ' :' . $value["libelle"] . '<br>';
|
||||
|
Reference in New Issue
Block a user