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.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

22 行
1014 B

  1. <?php
  2. include_once 'gw-connect.php';
  3. $con = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME);
  4. #non-section specific POST data here
  5. $gold = mysqli_real_escape_string($con, $_POST['droppedgold']); //how much gold dropped
  6. $droptype = mysqli_real_escape_string($con, $_POST['droptype']); //this dictates if the drop was a weapon/rune/material
  7. $locid = mysqli_real_escape_string($con, $_POST['location']); //this is `treasurelocation`.`treasureid` in the database
  8. if ($droptype == 1){
  9. $rarity = mysqli_real_escape_string($con, $_POST['rare']);
  10. echo 'a '. $rarity . ' drop was a weapon!<BR />';
  11. } else if ($droptype == 2){
  12. echo 'drop was a rare material!<BR />';
  13. } else if ($droptype == 3){
  14. echo 'drop was a rune!<BR />';
  15. } else {
  16. echo 'No data was sent!<BR />';
  17. }
  18. # all of the below will go away soon
  19. echo 'The locid variable is set to ' . $locid . '<BR />';
  20. echo 'The amount of gold dropped was ' . $gold . '<BR />';
  21. echo '<BR />Return to <A HREF="gw-record.php">data recording</A> page';
  22. ?>