$value)
$out[$index] = stripslashes(preg_replace($del,"",$value));
return $out;
}
}
//now we what to obtain splited link
$link = array();
$field = array();
$field[0] = "/\/thd\//";
$field[1] = "/\/$/";
$field[2] = "/^\//";
$link = split_uri(preg_replace($field,"",$_SERVER['REQUEST_URI']));
//here we know how many parameters has URI
$params = count($link);
if($params == 3)
$three = 2;
$path = pathOK(($params == 3 ? $three : $params));
if ((substr($_SERVER['REQUEST_URI'],-1,1) != "/") && $params <= 2)
$path = preg_replace("/..\/$/","",$path);
?>
Timeshare Resale, Sell Timeshare Resales, Timeshare Sale, Timeshare Sales, Selling & Rentals Timeshare, vacation property for rent selling, rent and b\n'.
''."\n".
''."\n".
''."\n".
''."\n";
?>
Links ";
//here will follow page content
if(in_array($params,array(1,2)))
{
$catId = cat_id(urldecode($link[1]));
$qry = "SELECT b.name AS cat_name,count(a.type) AS counter FROM linkshare AS a
LEFT JOIN l_categs AS b ON b.id=a.type
WHERE a.visible='1'".($params==2 ? " AND a.type={$catId}" : "")."
GROUP BY a.type";
echo "