X-Git-Url: http://git.hcoop.net/clinton/MarylandElectronicPetitionSignature.git/blobdiff_plain/88928cd6fe8be1da76813ea6e9535feac30f2561..0e12b9f36681835e11a10b70adcbef98e45a42e9:/header.php diff --git a/header.php b/header.php index 148bf75..a5be395 100644 --- a/header.php +++ b/header.php @@ -1,12 +1,23 @@ @@ -16,7 +27,10 @@ if ($_GET['debug'] == 'off'){ - + + + + @@ -52,9 +67,15 @@ input:focus { real_escape_string($_COOKIE['invite']); - $q = "select petition_name, web_color from petitions where web_short_name = '$invite'"; + $q = "select * from petitions where web_short_name = '$invite'"; $r = $petition->query($q); $d = mysqli_fetch_array($r); - echo "

$d[petition_name]

"; - } + echo "

$d[petition_name]

"; + if ($d['social_phone'] != ''){ + echo "

Support: ".$d['social_phone']." ".$d['social_email']."

"; + } + if ($d['social_email'] != '' && $d['social_phone'] == ''){ + echo "

Support: ".$d['social_email']."

"; + } + } ?>