Plugin Directory

Changeset 1496457


Ignore:
Timestamp:
09/15/2016 06:39:27 PM (10 years ago)
Author:
warren.brown
Message:

Updated readme to reflect that the plugin works with 4.6.1. No real changes in code base.

Location:
ugrm/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ugrm/trunk/UGRM.php

    r627722 r1496457  
    11<?php
    2 /*
     2/* 
    33Plugin Name: UGRM - UFAD Groups to Roles Munger
    44Plugin URI: http://www.flmnh.ufl.edu/omt/omtforge
     
    1414function UGRM_munge_UFAD_Groups2Roles($user_role) {
    1515    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');
    1919        $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');
    2121        //IIS prepends a HTTP_ prefix to all the Shibboleth server variables
    2222        //because Shibboleth sends them through CGI as IIS does not
     
    5353            $user_role = "none";
    5454        }
     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();
    5561        return $user_role;
    5662    }
  • ugrm/trunk/options.php

    r478117 r1496457  
    4848     <tr valign="top">
    4949       <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>
    5151    </tr>
    5252   
    5353     <tr valign="top">
    5454       <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>
    5656    </tr>
    5757   
    5858     <tr valign="top">
    5959       <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>
    6161    </tr>   
    6262   
    6363     <tr valign="top">
    6464       <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>
    6666    </tr>   
    6767   
    6868     <tr valign="top">
    6969       <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>
    7171    </tr>
    7272     
  • ugrm/trunk/readme.txt

    r627722 r1496457  
    44Tags: UF, UFAD authentication, login, SAML, shibboleth
    55Requires at least: 3.2.1
    6 Tested up to: 3.4.2
     6Tested up to: 4.6.1
    77Stable tag: 1.7.1
    88
Note: See TracChangeset for help on using the changeset viewer.