keep some default value be integer 2

This commit is contained in:
xiaomlove
2021-01-06 02:19:03 +08:00
parent 28ab56fe70
commit 38dae7c068
25 changed files with 100 additions and 100 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
require_once("include/bittorrent.php");
dbconn();
require_once(get_langfile_path());
$id = isset($_POST['id']) ? $_POST['id'] : (isset($_GET['id']) ? $_GET['id'] : die());
$id = isset($_POST['id']) ? intval($_POST['id']) : (isset($_GET['id']) ? intval($_GET['id']) : die());
int_check($id,true);
$email = unesc(htmlspecialchars(trim($_POST["email"])));
if(isset($_POST[conusr]))