https://www.icyphoenix.com/viewtopic.php?f=29&t=27&p=3367#p3367
-----------------------------------
moreteavicar
Wed 27 Sep, 2006 15:27

Re: UPI2DB System
-----------------------------------
My suspicion to make this work properly is in the main function files, e.g. includes/upi2db/ upi2db_orig_lite.php

e.g. function set_unread()

in particular this statement: [code]if(isset($unread['mark_posts']) && in_array($p, $unread['mark_posts']))
    	{
    	    $sql = "UPDATE " . UPI2DB_UNREAD_POSTS_TABLE . " SET status = '" . $mark_id . "' WHERE post_id = " . $p;
    	}
    	else
    	{
    	    $sql = "INSERT INTO " . UPI2DB_UNREAD_POSTS_TABLE . " 
        		    (post_id, topic_id, forum_id, user_id, status, last_update, topic_type) 
        			    VALUES ('$p', '$t', '$f', '$user_id', '$mark_id', '$time', '$tt')";
    	}[/code]This requires a case structure checking view permissions


