[LON-CAPA-cvs] cvs: modules /msu/sentinel sentinelonly.pm

raeburn lon-capa-cvs@mail.lon-capa.org
Thu, 01 Mar 2007 19:44:21 -0000


raeburn		Thu Mar  1 14:44:21 2007 EDT

  Modified files:              
    /modules/msu/sentinel	sentinelonly.pm 
  Log:
  - Adding CVS version
  - Display message if script was called directly (i.e., not as internal redirect).
  
  
Index: modules/msu/sentinel/sentinelonly.pm
diff -u modules/msu/sentinel/sentinelonly.pm:1.1 modules/msu/sentinel/sentinelonly.pm:1.2
--- modules/msu/sentinel/sentinelonly.pm:1.1	Mon Jan  8 17:41:16 2007
+++ modules/msu/sentinel/sentinelonly.pm	Thu Mar  1 14:44:20 2007
@@ -1,6 +1,8 @@
 # Display informative page to MSU users when SSO-based authentication
 # is successful but there is no corresponding account in the 
 # MSU LON-CAPA domain.
+#
+# $Id: sentinelonly.pm,v 1.2 2007/03/01 19:44:20 raeburn Exp $
 # 
 # Copyright Michigan State University Board of Trustees
 #
@@ -52,6 +54,11 @@
     my $domain = $r->subprocess_env->get('REDIRECT_SSOUserDomain');
     my $domdesc = $Apache::lonnet::domaindescription{$domain};
 
+    if ($domain ne 'msu') {
+        $r->print(&mt("Information about a user's course enrollments in LON-CAPA-enabled courses, is displayed here following successful Sentinel authentication, when the user does not have an account in the msu domain in LON-CAPA.").'<br />'.&mt('You appear to have reached this page in some other way.')};
+        return OK;
+    }
+
     my %add_entries = (topmargin    => "0",
                        marginheight => "0",);
     my $start_page =