Update header.php
[clinton/MarylandElectronicPetitionSignature.git] / index.php
... / ...
CommitLineData
1<?PHP
2if (isset($_GET['invite'])){
3 setcookie("invite", $_GET['invite']);
4 header('Location: index.php');
5}
6$title = 'MEPS - Are you Registered?';
7if ($_COOKIE['invite'] != ''){
8 $title = 'MEPS ('.strtoupper($_COOKIE['invite']).') - Are you Registered?';
9}
10include_once('header.php');
11slack_general('Home Page Loaded','md-petition');
12 $q = "select * from website_text where id = '1'";
13 $r = $petition->query($q);
14 $d = mysqli_fetch_array($r);
15?>
16 <script>document.title = "<?PHP echo $title;?>";</script>
17 <div class='col-sm-12' style='height:100px; text-align:center;'><h2><?PHP echo $d['text_title'];?></h2><p><?PHP echo $d['text_block'];?></p></div>
18
19 <div class='col-sm-6' style='height:100px; text-align:center;'><button type="button" class="btn btn-success btn-lg btn-block" onclick="window.location.href='enter_information.php'">YES</button></div>
20
21 <div class='col-sm-6' style='height:100px; text-align:center;'><button type="button" class="btn btn-danger btn-lg btn-block" onclick="window.location.href='not_a_registered_voter.php'">NO</button> </div>
22
23<?PHP include_once('footer.php');