Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

26 lines
1.4 KiB

  1. <?php
  2. if (isset($_POST['deltitle'])) {
  3. if ($_POST['deltitle'] =="yes") {
  4. // this title makes you verify that you want to delete this title
  5. echo '<form action="titlemanager.php" method="post">Please check the box to verify you want to delete: <b>' . $_POST['titlename'] . '</b> <input type="checkbox" name="deltitle" value="iamsure">';
  6. echo '<input type="hidden" name="titlenameid" value="' . $_POST['titlenameid'] . '"><input type="hidden" name="title" value="updatetitle"><input type="submit" value="Delete title"></form><br /><br />';
  7. } else if ($_POST['deltitle'] == "iamsure") {
  8. // this section actually deletes the title
  9. $stmtdel = $con->prepare("DELETE FROM gwtitles WHERE titlenameid = ?");
  10. $stmtdel->bind_param("i", $_POST['titlenameid']);
  11. $stmtdel->execute();
  12. $stmtdel->close();
  13. echo 'Title has been deleted, redirecting!';
  14. header ("Refresh:1; url=titlemanager.php");
  15. }
  16. } else {
  17. // this section updates the title name
  18. $stmtupd = $con->prepare("UPDATE gwtitles SET titlename = ?, titletype = ? WHERE titlenameid = ?");
  19. $stmtupd->bind_param("sii", $_POST['titlename'], $_POST['titletype'], $_POST['titlenameid']);
  20. $stmtupd->execute();
  21. $stmtupd->close();
  22. echo 'Title updated, redirecting!';
  23. header ("Refresh:1; url=titlemanager.php");
  24. }
  25. //echo 'Return to <a href="titlemanager.php" class="navlink">title manager</a>'; //this line needs to go away soon
  26. ?>