Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

30 righe
1.5 KiB

  1. <?php
  2. if (isset($_SESSION['userid'])) {
  3. if (isset($_POST['deltitle'])) {
  4. if ($_POST['deltitle'] == "yes") {
  5. // this title makes you verify that you want to delete this title
  6. 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">';
  7. 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 />';
  8. } else if ($_POST['deltitle'] == "iamsure") {
  9. // this section actually deletes the title
  10. $stmtdel = $con->prepare("DELETE FROM gwtitles WHERE titlenameid = ?");
  11. $stmtdel->bind_param("i", $_POST['titlenameid']);
  12. $stmtdel->execute();
  13. $stmtdelst = $con->prepare("DELETE FROM gwsubtitles WHERE titlenameid = ?");
  14. $stmtdelst->bind_param("i", $_POST['titlenameid']);
  15. $stmtdelst->execute();
  16. $stmtdel->close();
  17. echo 'The title and associated title ranks have been deleted, redirecting!';
  18. header ("Refresh:1; url=titlemanager.php");
  19. }
  20. } else {
  21. // this section updates the title name
  22. $stmtupd = $con->prepare("UPDATE gwtitles SET titlename = ?, titletype = ?, titlemaxrank = ? WHERE titlenameid = ?");
  23. $stmtupd->bind_param("siii", $_POST['titlename'], $_POST['titletype'], $_POST['titlemaxrank'], $_POST['titlenameid']);
  24. $stmtupd->execute();
  25. $stmtupd->close();
  26. echo 'Title updated, redirecting!';
  27. header ("Refresh:1; url=titlemanager.php");
  28. }
  29. }
  30. ?>