Blootix
04-22-2005, 03:24 AM
2. Edit file includes/functions_newpost.php and find:
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $newpostid, $_REQUEST;
Replace that with:
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $original_text, $weneedacounter, $newpostid, $_REQUEST;
$wehavecensoredwords=0;
// censor and htmlspecialchars post title
$test_for_censor=$post['title'];
$post['title'] = fetch_censored_text($post['title']);
if ($post['title']!=$test_for_censor)
{
$wehavecensoredwords=1;
}
Replace that with:
$wehavecensoredwords=0;
$original_title='';
$original_message='';
$test_for_censor=$post['title'];
$post['title'] = fetch_censored_text($post['title']);
if ($post['title']!=$test_for_censor)
{
$wehavecensoredwords=1;
$original_title=$test_for_censor;
}
else
{
$original_title=$post['title'];
}
I think you meant
//2. Edit file includes/functions_newpost.php and find:
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $newpostid, $_REQUEST;
//Replace that with:
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $original_text, $weneedacounter, $newpostid, $_REQUEST;
$wehavecensoredwords=0;
$original_title='';
$original_message='';
$test_for_censor=$post['title'];
$post['title'] = fetch_censored_text($post['title']);
if ($post['title']!=$test_for_censor)
{
$wehavecensoredwords=1;
$original_title=$test_for_censor;
}
else
{
$original_title=$post['title'];
}
Am I correct?
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $newpostid, $_REQUEST;
Replace that with:
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $original_text, $weneedacounter, $newpostid, $_REQUEST;
$wehavecensoredwords=0;
// censor and htmlspecialchars post title
$test_for_censor=$post['title'];
$post['title'] = fetch_censored_text($post['title']);
if ($post['title']!=$test_for_censor)
{
$wehavecensoredwords=1;
}
Replace that with:
$wehavecensoredwords=0;
$original_title='';
$original_message='';
$test_for_censor=$post['title'];
$post['title'] = fetch_censored_text($post['title']);
if ($post['title']!=$test_for_censor)
{
$wehavecensoredwords=1;
$original_title=$test_for_censor;
}
else
{
$original_title=$post['title'];
}
I think you meant
//2. Edit file includes/functions_newpost.php and find:
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $weneedacounter, $newpostid, $_REQUEST;
//Replace that with:
global $DB_site, $vboptions, $vbphrase, $bbuserinfo, $forumperms, $usergroupcache, $wehavecensoredwords, $original_text, $weneedacounter, $newpostid, $_REQUEST;
$wehavecensoredwords=0;
$original_title='';
$original_message='';
$test_for_censor=$post['title'];
$post['title'] = fetch_censored_text($post['title']);
if ($post['title']!=$test_for_censor)
{
$wehavecensoredwords=1;
$original_title=$test_for_censor;
}
else
{
$original_title=$post['title'];
}
Am I correct?