Just a web script to help track when, where, and what you got from the free treasures scattered about Nightfall in the game Guild Wars.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
740 B

  1. <?php
  2. $toonid = $_POST['playerid'];
  3. $action = $_POST['gwaction'];
  4. if ($action == 1){
  5. echo '<FORM METHOD="POST" ACTION="gw-record.php" NAME="record"><INPUT TYPE="HIDDEN" NAME="playerid" VALUE="'. $toonid . '"><INPUT TYPE="SUBMIT" ID="clkRecord"></FORM>';
  6. echo '<script type="text/javascript"> document.getElementById(\'clkRecord\').submit(); </script>';
  7. } else if ($action == 2){
  8. echo '<FORM METHOD="POST" ACTION="gw-pull.php" NAME="insert"><INPUT TYPE="HIDDEN" NAME="cname" VALUE="' . $toonid . '"><INPUT TYPE="SUBMIT" ID="clkInsert"></FORM>';
  9. echo '<script type="text/javascript"> document.getElementById(\'clkInsert\').submit(); </script>';
  10. } else {
  11. echo 'You shouldn\'t be seeing this, something went horribly horribly wrong!';
  12. }
  13. ?>