Source: site.view [edit]
Function name: gfEnterLottery
Arguments: coins,email,p1,p2,p3,p4,p5,p6
Description: Enter a lottery
Page type: html
Render function:  
Module: sandbox

Page source:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Rewards@Home</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="WubHub_DoIt?cmdline=gfCSS" rel="stylesheet" type="text/css" media="screen" />
</head>
<body oncontextmenu="return false">
<div id="bg3">
  <div id="bg4">
    <div id="bg5">
      <div id="page">
        <div id="content">
          <div class="post">
            <div class="title">
              <h2><a href="#">Free Lottery Tickets!</a></h2>
              
            </div>
            <div class="entry">
<webl>
  var c = ToInt(coins) div 1000;
  var m = 60;
  p1 = ToInt(p1) ? 0;
  p2 = ToInt(p2) ? 0;
  p3 = ToInt(p3) ? 0;
  p4 = ToInt(p4) ? 0;
  p5 = ToInt(p5) ? 0;
  p6 = ToInt(p6) ? 0;

  if (c >= 150) then
     if (p1 > 0) and (p2 > 0) and (p3 > 0) and (p4 > 0) and (p5 > 0) and (p6 > 0) and
        (p1 < m) and (p2 < m) and (p3 < m) and (p4 < m) and (p5 < m) and (p6 < m) then
        c = c - 150;
        "Your picks have been entered into the current drawing for the New York Lottery.<p>" +
        "If you win, we will contact you at " + email + " to notify you of your winnings and request your mailing address where we will send your winning lottery ticket." +
        "<br><p><font size=4>You have " + ToString(c) + " points left.</font><p>" +
        `<a href="WubHub_DoIt?cmdline=gfRewards(` + ToString(c * 1000) + 
        `,lottery)")>Earn more Reward Points</a>`
     else
        "Each pick must be between 1 and 59<p>" +
           `<a href="WubHub_DoIt?cmdline=gfLottery(%coins%)">Pick again</a>`
     end
  else
     "You have not accumulated enough Reward Points yet for this prize.<p>" +
     `<a href="WubHub_DoIt?cmdline=gfRewards(%coins%,none)">Earn more Reward Points</a>`
  end;
</webl>


              </div>
            </div>
          </div>
        </div>
        <div style="clear: both; height: 40px;">&nbsp;</div>
      </div>
    </div>
  </div>
</div>
<div id="footer">
  <p>(c) 2009  geneticfinance.com</p>
</div>
</body>
</html>