Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. # get admin
  2. $result = mysql_query("select email from krea_admin",$db);
  3. while ($myrow = mysql_fetch_row($result))
  4. {
  5. $is_admin[$myrow[0]]= $myrow[0];
  6. }
  7.  
  8. $result = mysql_query("select email from team_admin where team_id='$teamid' order by email",$db);
  9. while ($myrow = mysql_fetch_row($result))
  10. {
  11. $is_admin[$myrow[0]]= $myrow[0];
  12. }
  13.  
  14. if ($is_admin[strtolower($REMOTE_USER)]) {}
  15. else {
  16.  
  17. echo "<br><center><h3 style='color:red;'>You have not been identified as admin for team $team_id <br>You do not have access to this part of the tool</h3>If you would like to be admin for this team, please ask one of the current admins : ";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement