Ver a proveniência

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

pull/16/head
mauirixxx há 7 anos
ascendente
cometimento
d0ed4b8cd8
2 ficheiros alterados com 5 adições e 1 eliminações
  1. +4
    -1
      includes/title-update.php
  2. +1
    -0
      titlemanager.php

+ 4
- 1
includes/title-update.php Ver ficheiro

@@ -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 Ver ficheiro

@@ -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');


Carregando…
Cancelar
Guardar