+ if (($notify != "") AND ($poll != "")) {
+ $baseurl = matching($notify, $poll);
+
+ $baseurl2 = matching($baseurl, $profile);
+ if ($baseurl2 != "")
+ $baseurl = $baseurl2;
+ }
+
+ if (($baseurl == "") AND ($notify != ""))
+ $baseurl = matching($profile, $notify);
+
+ if (($baseurl == "") AND ($poll != ""))
+ $baseurl = matching($profile, $poll);
+
+ $baseurl = rtrim($baseurl, "/");
+