AnhTuanCool |
09-29-2004 12:56 PM |
Hmmm, I know what ya problem now, in postings.php there are lots
but you must find the one goes within the Start Update Thread.
All should be right when you do this:
Open postings.php:
Find
PHP Code:
if ($_POST['do'] == 'updatethread')
{
globalize($_POST, array(
'threadid' => INT,
'visible' => STR,
'open' => STR,
'sticky' => STR,
'iconid' => INT,
'notes' => STR_NOHTML,
'threadstatus' => INT,
'reason' => STR,
'title' => STR
));
Replace with
PHP Code:
if ($_POST['do'] == 'updatethread')
{
globalize($_POST, array(
'threadid' => INT,
'visible' => STR,
'open' => STR,
'sticky' => STR,
'iconid' => INT,
'notes' => STR_NOHTML,
'threadstatus' => INT,
'reason' => STR,
'title' => STR,
'description' => STR
));
Find
PHP Code:
$DB_site->query("
UPDATE " . TABLE_PREFIX . "thread SET
visible = $visible,
open = $open,
sticky = $sticky ,
title = '" . addslashes(htmlspecialchars_uni($title)) . "',
iconid = $iconid,
notes = '". addslashes($notes) ."'
$similarthreads
WHERE threadid = $threadid
");
Replace with
PHP Code:
$DB_site->query("
UPDATE " . TABLE_PREFIX . "thread SET
visible = $visible,
open = $open,
sticky = $sticky ,
title = '" . addslashes(htmlspecialchars_uni($title)) . "',
description = '" . addslashes(htmlspecialchars_uni($description)) . "',
iconid = $iconid,
notes = '". addslashes($notes) ."'
$similarthreads
WHERE threadid = $threadid
");
there you go, and I updated the instruction too. Regard :)
|