浏览代码

fixed bug with pre-loading the next rank after what's saved in the database

pull/16/head
mauirixxx 7 年前
父节点
当前提交
d0ed4b8cd8
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. +4
    -1
      includes/title-update.php
  2. +1
    -0
      titlemanager.php

+ 4
- 1
includes/title-update.php 查看文件

@@ -9,8 +9,11 @@ if (isset($_POST['deltitle'])) {
$stmtdel = $con->prepare("DELETE FROM gwtitles WHERE titlenameid = ?");
$stmtdel->bind_param("i", $_POST['titlenameid']);
$stmtdel->execute();
$stmtdelst = $con->prepare("DELETE FROM gwsubtitles WHERE titlenameid = ?");
$stmtdelst->bind_param("i", $_POST['titlenameid']);
$stmtdelst->execute();
$stmtdel->close();
echo 'Title has been deleted, redirecting!';
echo 'The title and associated title ranks have been deleted, redirecting!';
header ("Refresh:1; url=titlemanager.php");
}
} else {


+ 1
- 0
titlemanager.php 查看文件

@@ -41,6 +41,7 @@ if ($_SESSION['admin'] == 1) {
}
} else {
unset($_SESSION['tid']);
unset($_SESSION['tr']);
echo 'Add titles <form action="titlemanager.php" method="post"><input type="hidden" name="title" value="addtitle"><input type="submit" value="Add title"></form><br />';
echo 'Modify titles <form action="titlemanager.php" method="post"><input type="hidden" name="title" value="modtitle"><select name="tid" onchange="this.form.submit()"><option selected disabled>Select title</option>';
include ('includes/title-select.php');


正在加载...
取消
保存