Diff for /loncom/imspackages/imsimport.pm between versions 1.23 and 1.27

version 1.23, 2008/08/24 13:48:40 version 1.27, 2009/04/04 19:39:29
Line 1 Line 1
   # The LearningOnline Network with CAPA
   # 
   # $Id$
   #
 # Copyright Michigan State University Board of Trustees  # Copyright Michigan State University Board of Trustees
 #  #
 # This file is part of the LearningOnline Network with CAPA (LON-CAPA).  # This file is part of the LearningOnline Network with CAPA (LON-CAPA).
Line 292  sub display_one { Line 296  sub display_one {
               &Apache::lonhtmlcommon::topic_bar(1,&mt('Specify the Course Management system used to create the package')).                &Apache::lonhtmlcommon::topic_bar(1,&mt('Specify the Course Management system used to create the package')).
         &mt('Choose the CMS used to create your IMS content package.').'            &mt('Choose the CMS used to create your IMS content package.').'  
         <select name="source">          <select name="source">
          <option value="-1" selected="true">Please select</option>           <option value="-1" selected="selected">Please select</option>
          <option value="bb5">Blackboard 5</option>           <option value="bb5">Blackboard 5</option>
          <option value="bb6">Blackboard 6</option>           <option value="bb6">Blackboard 6</option>
          <option value="angel">ANGEL</option>           <option value="angel">ANGEL</option>
Line 404  sub display_two { Line 408  sub display_two {
                       &Apache::lonhtmlcommon::topic_bar(3,$lt{'cont'}).                        &Apache::lonhtmlcommon::topic_bar(3,$lt{'cont'}).
                       &Apache::loncommon::start_data_table().                        &Apache::loncommon::start_data_table().
                       &Apache::loncommon::start_data_table_header_row().                        &Apache::loncommon::start_data_table_header_row().
                       '<th>'.$lt{'impo'}.'</th><th>'.$lt{'cont'}.'</th><th>'.                        '<th>'.$lt{'impo'}.'</th><th>'.$lt{'type'}.'</th><th>'.
                       $lt{'addo'}.'</th>'.                        $lt{'addo'}.'</th>'.
                       &Apache::loncommon::end_data_table_header_row());                        &Apache::loncommon::end_data_table_header_row());
             foreach my $area (@{$areas}) {              foreach my $area (@{$areas}) {
Line 718  sub handler { Line 722  sub handler {
     my $fn;      my $fn;
     if ($env{'form.filename'}) {      if ($env{'form.filename'}) {
         $fn=$env{'form.filename'};          $fn=$env{'form.filename'};
         $fn=~s/^http\:\/\/[^\/]+\///;          $fn=~s/^https?\:\/\/[^\/]+\///;
         $fn=~s/^\///;          $fn=~s/^\///;
         $fn=~s/(\~|priv\/)($LONCAPA::username_re)//;          $fn=~s/(\~|priv\/)($LONCAPA::username_re)//;
         $fn=~s/\/+/\//g;          $fn=~s/\/+/\//g;

Removed from v.1.23  
changed lines
  Added in v.1.27


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>