@@ -55,34+60,21 @@ foreach my $key ( keys %coins_db )
}
}
}
}
-print "Content-type: text/html\n\n";
-print "<html>";
-print "<head>";
-print "<title>flipacoin.org - The Internet's first coinflipping service.</title>";
-print "</head>";
-print "<body>";
-
if ( ! ($requestedcoinid =~ /\A[a-z0-9]*\z/) ) {
if ( ! ($requestedcoinid =~ /\A[a-z0-9]*\z/) ) {
- alert("You sent me an invalid coin!");
- exit;
+ exitalert("You sent me an invalid coin!");
}
if ( ! ($requestedaction =~ /\A[a-z]*\z/) ) {
}
if ( ! ($requestedaction =~ /\A[a-z]*\z/) ) {
- alert("You sent me an invalid action!");
- exit;
+ exitalert("You sent me an invalid action!");
}
}
-print "<font size=1>During the last $COINLIFETIME days $flippedcoinsindb/$coinsindb coins were flipped/created. | <a href='http://git.treefish.org/wirbrennen/flipacoin.git'>git</a></font>";
-print "<hr>";
-print "<h3>flipacoin.org - The Internet's first coinflipping service.</h3>";