mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-05-19 00:30:21 -07:00
does this make it work
This commit is contained in:
parent
4bd72f1b05
commit
c91b9a167a
14
newreply.php
14
newreply.php
@ -6,6 +6,8 @@
|
|||||||
// Stop this insanity. Never index newreply.
|
// Stop this insanity. Never index newreply.
|
||||||
$meta['noindex'] = true;
|
$meta['noindex'] = true;
|
||||||
|
|
||||||
|
$message = $_POST['message'] ?? null;
|
||||||
|
|
||||||
// Give failed replies a last-chance to copy and save their work,
|
// Give failed replies a last-chance to copy and save their work,
|
||||||
// as way too often you'll miss and then it's just gone forever
|
// as way too often you'll miss and then it's just gone forever
|
||||||
$lastchance = null;
|
$lastchance = null;
|
||||||
@ -103,10 +105,13 @@
|
|||||||
|
|
||||||
$numdays = (ctime() - $user['regdate']) / 86400;
|
$numdays = (ctime() - $user['regdate']) / 86400;
|
||||||
$tags = array();
|
$tags = array();
|
||||||
$message = doreplace($message, $numposts, $numdays, $username, $tags);
|
|
||||||
|
$message = stripslashes($message);
|
||||||
|
|
||||||
|
$message = doreplace($message, $numposts, $numdays, $user['name'], $tags);
|
||||||
$tagval = $sql->escape(json_encode($tags));
|
$tagval = $sql->escape(json_encode($tags));
|
||||||
$rsign = doreplace($sign, $numposts, $numdays, $username);
|
$rsign = doreplace($sign, $numposts, $numdays, $user['name']);
|
||||||
$rhead = doreplace($head, $numposts, $numdays, $username);
|
$rhead = doreplace($head, $numposts, $numdays, $user['name']);
|
||||||
$currenttime = ctime();
|
$currenttime = ctime();
|
||||||
|
|
||||||
// Submitting a post
|
// Submitting a post
|
||||||
@ -137,7 +142,7 @@
|
|||||||
|
|
||||||
$options = filter_int($nosmilies) . "|" . filter_int($nohtml);
|
$options = filter_int($nosmilies) . "|" . filter_int($nohtml);
|
||||||
|
|
||||||
if($pid) $sql->query("INSERT INTO `posts_text` (`pid`,`text`,`tagval`, `options`) VALUES ('$pid','$message','$tagval', '$options')");
|
if($pid) $sql->query("INSERT INTO `posts_text` (`pid`,`text`,`tagval`, `options`) VALUES ('$pid','". $sql->escape($message) ."','$tagval', '$options')");
|
||||||
|
|
||||||
$sql->query("UPDATE `threads` SET $closeq $stickq `replies` = `replies` + 1, `lastpostdate` = '$currenttime', `lastposter` = '$userid' WHERE `id`='$id'");
|
$sql->query("UPDATE `threads` SET $closeq $stickq `replies` = `replies` + 1, `lastpostdate` = '$currenttime', `lastposter` = '$userid' WHERE `id`='$id'");
|
||||||
$sql->query("UPDATE `forums` SET `numposts` = `numposts` + 1, `lastpostdate` = '$currenttime', `lastpostuser` ='$userid', `lastpostid` = '$pid' WHERE `id`='$forumid'");
|
$sql->query("UPDATE `forums` SET `numposts` = `numposts` + 1, `lastpostdate` = '$currenttime', `lastpostuser` ='$userid', `lastpostid` = '$pid' WHERE `id`='$forumid'");
|
||||||
@ -161,7 +166,6 @@
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
loadtlayout();
|
loadtlayout();
|
||||||
$message = stripslashes($message);
|
|
||||||
$ppost = $user;
|
$ppost = $user;
|
||||||
$ppost['posts']++;
|
$ppost['posts']++;
|
||||||
$ppost['uid'] = $userid;
|
$ppost['uid'] = $userid;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user