dbquery("UPDATE ".DB_THREADS." SET thread_postcount='$rows', thread_lastpostid='$last_post', thread_views=thread_views+1 WHERE thread_id='".$_GET['thread_id']."'");
if (!iMOD OR !iADMIN OR !iSADMIN)
{
dbquery("UPDATE ".DB_THREADS." SET thread_postcount='$rows', thread_lastpostid='$last_post', thread_views=thread_views+1 WHERE thread_id='".$_GET['thread_id']."'");
}
if($fdata['forum_cat'] == 22)
{/* do count if it is the admin and mods category with cat-id 22 */
dbquery("UPDATE ".DB_THREADS." SET thread_postcount='$rows', thread_lastpostid='$last_post', thread_views=thread_views+1 WHERE thread_id='".$_GET['thread_id']."'");
}else
{/* all else */
if (!iMOD OR !iADMIN OR !iSADMIN)
{
dbquery("UPDATE ".DB_THREADS." SET thread_postcount='$rows', thread_lastpostid='$last_post', thread_views=thread_views+1 WHERE thread_id='".$_GET['thread_id']."'");
}
}
if ($can_post)
Quote
Maybe change to:Code Download sourceif ($can_post)
to check if admin had access instead of check if categorie is fixed number
- by douwe_yntema
Category Forum
User Administration - 8Labels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions