###############
  ..
http://www.3ssom.com/hacks/
###############


- fixed links to multiply pages threads with pp= in url



=============================================================
  :

includes/functions_bbcodeparse.php


1.    1444  
=============================================================

function handle_bbcode_url($text, $link, $type = 'url')
{
	global $wysiwygparse;
=============================================================
 
=============================================================

function handle_bbcode_url($text, $link, $type = 'url')
{
	global $wysiwygparse, $DB_site, $vboptions, $bbuserinfo;

=============================================================
2.    1460   
=============================================================

$rightlink = strip_smilies(str_replace('\\"', '"', $rightlink));
$rightlink = str_replace('"', '&quot;', $rightlink);

=============================================================
   
=============================================================

	$local_links = preg_replace ("~http://(www.|)~i", "", $vboptions["bburl"]);
	if (preg_match("~".$local_links."[^ ]+\.php\?~",$rightlink)) {
		$rightlink = preg_replace (array("~[^ ]*/([a-z]+\.php[^ ]*)~i", "~forumid~i", "~threadid~i", "~postid~i"), array("\\1", "f", "t", "p"), $rightlink);
		$rtext = $rightlink;
		if (preg_match("~showthread\.php|printthread\.php~", $rightlink)) {
			if (preg_match("~[^a-z]p=([0-9]+)~", $rightlink, $num)) {
				$check_post = $DB_site->query_first("SELECT post.postid,thread.forumid,thread.title FROM " . TABLE_PREFIX . "post AS post LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON thread.threadid = post.threadid WHERE post.postid = ". intval($num[1]));
				if (is_array($check_post)) {
					$forumperms = fetch_permissions($check_post["forumid"]);
					if (!($forumperms & CANVIEW)) {
						return "<b>   </b>";
					} else {
						$rtext = "-*".$check_post["title"]."*-";
					}
				} else {
					return "<b>  </b>";
				}
			}
			if (preg_match("~[^a-z]t=([0-9]+)~", $rightlink, $num)) {
				$check_thread = $DB_site->query_first("SELECT forumid,title FROM " . TABLE_PREFIX . "thread AS thread WHERE threadid = ". intval($num[1]));
				if (is_array($check_thread)) {
					$forumperms = fetch_permissions($check_thread["forumid"]);
					if (!($forumperms & CANVIEW)) {
						return "<b>   </b>";
					} else {
						$rtext = "-=".$check_thread["title"]."=-";
					}
				} else {
					return "<b>  </b>";
				}
			}
		} elseif (preg_match("~forumdisplay\.php~", $rightlink)) {
			if (preg_match("~[^a-z]f=([0-9]+)~", $rightlink, $num)) {
				$foruminfo = verify_id('forum', $num[1], 0, 1);
				if (is_array($foruminfo)) {
					$forumperms = fetch_permissions($foruminfo['forumid']);
					if (!($forumperms & CANVIEW)) {
						return "<b>   </b>";
					} else {
						$rtext = "~".$foruminfo["title"]."~";
					}
				} else {
					return "<b>  </b>";
				}
			}
		}
		return "<a href=\"$rightlink\" target=\"_blank\"><font class=\"alt2\"><u>$rtext</u></font></a>";
	}
=============================================================
###############
  ..
http://www.3ssom.com/hacks/
###############