Permalink
Browse files

Merge pull request #2 from genehack/patch-1

Convert to using heredoc
  • Loading branch information...
2 parents 6e8370b + 03aedcb commit 12e6ca4452e5738cf5689c59600b56acde687686 @japharl committed Aug 8, 2012
Showing with 28 additions and 16 deletions.
  1. +28 −16 www/cgi-bin/present.pl
View
@@ -1,23 +1,35 @@
#!/usr/bin/perl
use CGI qw/:standard/;
-use Net::Address::IP::Local;
+
+# FIXME there's no reason why this couldn't be a static page, but that would require renaming
+# this file and moving it outside of the cgi-bin directory and updating everything that links to it.
+# so. yeah.
print header;
+print <<EOHTML;
+<html>
+ <body>
+ <p>Thank you for being a presenter.</p>
+ <p>Pleae make sure VNC is installed as a service on your computer.</p>
+ <p style="color:red;font-weight:bold">PLEASE NOTE:</p>
+ <p>Your screen will be captured through the course of your presentation. This may be shared over the podcast. Please refrain from sharing personal information you do not wish to have publically available during this time.</p>
+ <p>You acknowledge by proceeding that you have read this disclaimer.</p>
+ <p></p>
+ <p>Once you hit submit, you will see a barcode on your screen while we test to ensure that VNC has been set up correctly on your computer.</p>
+ <p>Do <strong>not</strong> minimize the window while the barcode is displayed.</p>";
+ <p>You will see an OK message once your machine has been verified, with a PC number that we will use to access your screen. Please be sure that Zak knows this number... :)</p>
+ <form method="POST" action="presentor_start.pl">
+ <p>Optional - VNC Password: <input type="password" name="PASSWORD" />
+ <br />
+ <p>
+ Your name / Machine name (eg. Brock's PC or Brock's Phone):
+ <input type="text" name="HOST_ALIAS" /><br />
+ <input type="submit" name="Submit" value="Submit" />
+ </p>
+ </form>
+ </body>
+</html>
+EOHTML
-print "<HTML><BODY>";
-print "Thank you for being a presenter.<BR>";
-print "Pleae make sure VNC is installed as a service on your computer.<BR>";
-print "<B><FONT COLOR=\"RED\">PLEASE NOTE</FONT>:";
-print "Your screen will be captured through the course of your presentation. This may be shared over the podcast. Please refrain from sharing personal information you do not wish to have publically available during this time.<BR>";
-print "You acknowledge by proceeding that you have read this disclaimer.<BR></B>";
-print "<BR><BR>";
-print "Once you hit submit, you will see a barcode on your screen while we test to ensure that VNC has been set up correctly on your computer.<BR>";
-print "Do <b>not</b> minimize the window while the barcode is displayed.<BR>";
-print "You will see an OK message once your machine has been verified, with a PC number that we will use to access your screen. Please be sure that Zak knows this number... :)<BR>";
-print "<FORM METHOD=\"post\" action=\"presentor_start.pl\">";
-print "Optional - VNC Password: <INPUT TYPE=\"PASSWORD\" NAME=\"PASSWORD\"><BR>";
-print "Your name / Machine name (eg. Brock's PC or Brock's Phone): <INPUT TYPE=\"TEXT\" NAME=\"HOST_ALIAS\"><BR><BR>";
-print "<INPUT TYPE=\"submit\" NAME=\"Submit\" VALUE=\"Submit\"><BR>";
-print "</BODY></HTML>";

0 comments on commit 12e6ca4

Please sign in to comment.