"; print_r($_REQUEST); echo ""; switch($_REQUEST['type_id']) { case "term": $base_urlt = "notifications/subscribe/".$user->uid."/taxonomy/tid/".$id."?".$destination; break; case "content": $base_urlt = "notifications/subscribe/".$user->uid."/nodetype/type/".$id."?".$destination; break; case "author": $base_urlt = "notifications/subscribe/".$user->uid."/author/author/".$id."?".$destination; break; } echo $base_urlt; } else { if((!$type_id OR !$id) AND $user->uid) { drupal_goto("user/".$user->uid."/notifications"); } if(isset($_REQUEST['dest'])) { $destination = "destination=".$_REQUEST['dest']; $norm_path = $_REQUEST['dest']; } else { $norm_path = referer_uri(); GLOBAL $base_url; if (($norm_path = referer_uri()) && (preg_match("!^$base_url/!", $norm_path))) { $path = explode(".com",$norm_path); $norm_path = $path[1]; } else $norm_path = "/"; $destination = "destination=".$norm_path; } if((is_numeric($id) || $_REQUEST['type_id'] == "content") AND $user->uid) { switch($_REQUEST['type_id']) { case "term": $base_urlt = "notifications/subscribe/".$user->uid."/taxonomy/tid/".$id; break; case "content": $base_urlt = "notifications/subscribe/".$user->uid."/nodetype/type/".$id; break; case "author": $base_urlt = "notifications/subscribe/".$user->uid."/author/author/".$id; break; } drupal_goto($base_urlt, $destination); } else{ drupal_set_message("You must login to subscribe."); drupal_goto($norm_path, $destination); } } ?>
Register For...
Free Trade Alerts
Education
1-on-1 Support
eToro Copytrader Tips