Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 
 

33 wiersze
1.6 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. if (!isset($_POST['autofill'])) {
  22. $_POST['autofill'] = "0";
  23. }
  24. // this section updates the title name
  25. $stmtupd = $con->prepare("UPDATE gwtitles SET titlename = ?, titletype = ?, titlemaxrank = ?, autofilled = ? WHERE titlenameid = ?");
  26. $stmtupd->bind_param("siiii", $_POST['titlename'], $_POST['titletype'], $_POST['titlemaxrank'], $_POST['autofill'], $_POST['titlenameid']);
  27. $stmtupd->execute();
  28. $stmtupd->close();
  29. echo 'Title updated, redirecting!';
  30. header ("Refresh:1; url=titlemanager.php");
  31. }
  32. }
  33. ?>