<?php require_once 'dbc.php'; require_once "config.php"; require_once "functions.php"; $fname = get_value('fname'); $lname = get_value('lname'); $email = get_value('email'); $comment = get_value('comment'); $paygame = get_amount_psn(); $payrights = get_amount_rights(); $anonymous = get_value('anonymous'); $signed = 1; $email = filter_var($email, FILTER_SANITIZE_EMAIL); if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { $signed = 0; } if ($anonymous != "0" && $anonymous != "1") { $signed = 0; } if (!is_numeric($paygame) || $paygame < 0 || !is_numeric($payrights) || $payrights < 0) { $signed = 0; } if (strlen($comment) < 50 || strlen($comment) > 5000) { $signed = 0; } // Avoid header injection if (eregi("(\r|\n)", $fname) || eregi("(\r|\n)", $lname) || eregi("(\r|\n)", $email)) { $signed = 0; } if ($signed) {
</table> </td> </tr> <tr> <td> <div align="right" class="style6"> <span class="style6">How much would you pay for this app if it was on PSN? </span> </div> </td> <td> <table> <td> <div align="left"> <span class="style6" valign="center"> <input name="paygame" type="text" class="style6" id="paygame" size="10" value="<?php echo htmlspecialchars(get_amount_psn()); ?> " />$USD </span> </div> </td> <td> <div id="paygame_error" style="color: #FF0000;" align="center"> </div> </td> </table> </td> </tr> <tr> <td> <div align="right" class="style6"> <span class="style6">How much would you pay to have your rights defended? </span>