Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # get admin
- $result = mysql_query("select email from krea_admin",$db);
- while ($myrow = mysql_fetch_row($result))
- {
- $is_admin[$myrow[0]]= $myrow[0];
- }
- $result = mysql_query("select email from team_admin where team_id='$teamid' order by email",$db);
- while ($myrow = mysql_fetch_row($result))
- {
- $is_admin[$myrow[0]]= $myrow[0];
- }
- if ($is_admin[strtolower($REMOTE_USER)]) {}
- else {
- 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