Changeset 1496457
- Timestamp:
- 09/15/2016 06:39:27 PM (10 years ago)
- Location:
- ugrm/trunk
- Files:
-
- 3 edited
-
UGRM.php (modified) (3 diffs)
-
options.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ugrm/trunk/UGRM.php
r627722 r1496457 1 1 <?php 2 /* 2 /* 3 3 Plugin Name: UGRM - UFAD Groups to Roles Munger 4 4 Plugin URI: http://www.flmnh.ufl.edu/omt/omtforge … … 14 14 function UGRM_munge_UFAD_Groups2Roles($user_role) { 15 15 if (isset($_SERVER['UFADGroupsDN']) || isset($_SERVER['HTTP_UFADGROUPSDN']) || isset($_SERVER['REDIRECT_UFADGroupsDN'])) { 16 $UGRM_admin_role = get_option('UGRM_admin_role');17 $UGRM_editor_role = get_option('UGRM_editor_role');18 $UGRM_author_role = get_option('UGRM_author_role');16 $UGRM_admin_role = get_option('UGRM_admin_role'); 17 $UGRM_editor_role = get_option('UGRM_editor_role'); 18 $UGRM_author_role = get_option('UGRM_author_role'); 19 19 $UGRM_contributor_role = get_option('UGRM_contributor_role'); 20 $UGRM_subscriber_role = get_option('UGRM_subscriber_role');20 $UGRM_subscriber_role = get_option('UGRM_subscriber_role'); 21 21 //IIS prepends a HTTP_ prefix to all the Shibboleth server variables 22 22 //because Shibboleth sends them through CGI as IIS does not … … 53 53 $user_role = "none"; 54 54 } 55 # echo "<h1>site_option = ".get_site_option('UGRM_editor_role')."</h1>"; 56 # echo "<h2>regs option = ".get_option('UGRM_admin_role')."</h2>"; 57 # echo "<h1>LOGINWALLA: Mapping user role $user_role $UGRM_editor_role</h1>"; 58 # echo "<h2>UFADGroupsDN = $UFADGroupsDN</h2>"; 59 # echo "<h2>user_role = $user_role</h2>"; 60 # exit(); 55 61 return $user_role; 56 62 } -
ugrm/trunk/options.php
r478117 r1496457 48 48 <tr valign="top"> 49 49 <th scope="row">UFAD Group for Admin Role</th> 50 <td><input type="text" name="UGRM_admin_role" value="<?php echo get_option('UGRM_admin_role'); ?>"/></td>50 <td><input type="text" style="width:280px;" name="UGRM_admin_role" value="<?php echo get_option('UGRM_admin_role'); ?>"/></td> 51 51 </tr> 52 52 53 53 <tr valign="top"> 54 54 <th scope="row">UFAD Group for Editor Role</th> 55 <td><input type="text" name="UGRM_editor_role" value="<?php echo get_option('UGRM_editor_role'); ?>"/></td>55 <td><input type="text" style="width:280px;" name="UGRM_editor_role" value="<?php echo get_option('UGRM_editor_role'); ?>"/></td> 56 56 </tr> 57 57 58 58 <tr valign="top"> 59 59 <th scope="row">UFAD Group for Author Role</th> 60 <td><input type="text" name="UGRM_author_role" value="<?php echo get_option('UGRM_author_role'); ?>"/></td>60 <td><input type="text" style="width:280px;" name="UGRM_author_role" value="<?php echo get_option('UGRM_author_role'); ?>"/></td> 61 61 </tr> 62 62 63 63 <tr valign="top"> 64 64 <th scope="row">UFAD Group for Contributor Role</th> 65 <td><input type="text" name="UGRM_contributor_role" value="<?php echo get_option('UGRM_contributor_role'); ?>"/></td>65 <td><input type="text" style="width:280px;" name="UGRM_contributor_role" value="<?php echo get_option('UGRM_contributor_role'); ?>"/></td> 66 66 </tr> 67 67 68 68 <tr valign="top"> 69 69 <th scope="row">UFAD Group for Subscriber Role</th> 70 <td><input type="text" name="UGRM_subscriber_role" value="<?php echo get_option('UGRM_subscriber_role'); ?>"/></td>70 <td><input type="text" style="width:280px;" name="UGRM_subscriber_role" value="<?php echo get_option('UGRM_subscriber_role'); ?>"/></td> 71 71 </tr> 72 72 -
ugrm/trunk/readme.txt
r627722 r1496457 4 4 Tags: UF, UFAD authentication, login, SAML, shibboleth 5 5 Requires at least: 3.2.1 6 Tested up to: 3.4.26 Tested up to: 4.6.1 7 7 Stable tag: 1.7.1 8 8
Note: See TracChangeset
for help on using the changeset viewer.