Guild Wars stat tracking The idea behind this is to track multiple characters individual stats as well as account stats.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 

25 行
1.3 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 = ?, titlemaxrank = ? WHERE titlenameid = ?");
  19. $stmtupd->bind_param("siii", $_POST['titlename'], $_POST['titletype'], $_POST['titlemaxrank'], $_POST['titlenameid']);
  20. $stmtupd->execute();
  21. $stmtupd->close();
  22. echo 'Title updated, redirecting!';
  23. header ("Refresh:1; url=titlemanager.php");
  24. }
  25. ?>