Advertisement
Guest User

Group email subscription array of allowed users

a guest
May 15th, 2010
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <?php
  2. // The following snippet of code wraps all of bp-activity-subscription-main.php
  3.  
  4. global $current_user;
  5. get_currentuserinfo();
  6. $this_user = $current_user->id;
  7. //var_dump($this_user);
  8.  
  9. $allowed_users = array(1, 2, 3);
  10. if(in_array("$this_user", $allowed_users)):
  11.  
  12. // all page code
  13.  
  14. endif;
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement