call_police.php
55 istruzioni<?
include "../head_include.php";
?>
<body>
<?php
include "config.php";
include "index_include.php";
$id = $_REQUEST['id'];
if ($id < 0 || $id > count($candidate_nam)) {
echo "Call Police!";
exit;
}
?>
<center>
<div class="sfondoscheda">
<h1>Hai confermato il tuo voto per <?=$candidate_nam[$id]?></h1>
<?
if ($id > 0) {
?>
<table><tr>
<td><img alt="immagine di <?=$candidate_nam[$id]?>" src="<?=$candidate_img[$id]?>.gif"/></td>
<td><img alt="simbolo di <?=$candidate_prt[$id]?>" src="<?=$candidate_smb[$id]?>.gif"/></td>
</tr></table>
<?
}
?>
<h2>Ma hai detto che sulla scheda appena stampata <br/>NON c'è scritto "<?=$candidate_nam[$id]?>"</h2>
<?/*
// create ballotpaper.pdf with the name of $candidates[$id]
// system("lpr ballotpaper.pdf") //ejects only half of the ballotpaper since the rest must
// be left for the confirmation text (if confirmed!)
*/?>
<center>
<p class="bold scatola">
allora questo chiosco di voto
è stato sabotato!
<br/><br/>NON TOCCARE NULLA MA AVVISA IL PRESIDENTE DI SEGGIO E CHIAMA I CARABINIERI!</p>
<p class="bold"> Il tuo voto NON è stato registrato! <br/>Potrai votare di nuovo,
ma ad un chiosco diverso da questo che ora non è più inutilizzabile.
</p>
</div>
<?
if (file_exists("$_SERVER[DOCUMENT_ROOT]/CONTAMI/phpcounter.php")) {
echo '<br/><div id="contatore" class="centro piccolone">', "\n";
require "$_SERVER[DOCUMENT_ROOT]/CONTAMI/phpcounter.php";
echo "</div>\n";
}
?>
</body>
</html>