Subversion Repositories wimsdev

Rev

Rev 17208 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17208 Rev 17209
Line 144... Line 144...
144
        error=bad_file
144
        error=bad_file
145
        !exit
145
        !exit
146
      !endif
146
      !endif
147
      !sh cd $wims_home/sessions/$wims_session;\
147
      !sh cd $wims_home/sessions/$wims_session;\
148
          wget -O user-deposit "$wgetfile" 2> /dev/null;
148
          wget -O user-deposit "$wgetfile" 2> /dev/null;
149
      wims_deposit=savecls.tgz
149
      wims_deposit=savecls.$format
150
    !endif
150
    !endif
151
    !sh $wims_home/public_html/scripts/adm/decompress.sh
151
    !sh $wims_home/public_html/scripts/adm/decompress.sh
152
    ssourcecls=file
152
    ssourcecls=file
153
    scheckpwd=1
153
    scheckpwd=1
154
    step=-1
154
    step=-1
155
  !endif
155
  !endif
-
 
156
!endif
-
 
157
 
-
 
158
!if $ssourcecls=file
-
 
159
  source_title=!defof class_institution,class_description in wimshome/sessions/$wims_session/upload/class/.def
-
 
160
!else
-
 
161
  source_title=!defof class_institution,class_description in wimshome/log/classes/$ssourcecls/.def
-
 
162
!endif
-
 
163
!if $step=-2
156
  !exit
164
  !exit
157
!endif
165
!endif
158
 
166
 
159
!if $step=-1
167
!if $step=-1
160
  !!checking pwd or exampleclass
168
  !!checking pwd or exampleclass
161
  !if $ssourcecls=file or $ssourcecls=wget
169
  !if $ssourcecls=file
162
    scheckpwd=1
170
    scheckpwd=1
163
  !else
171
  !else
164
    !if $ssourcecls>9999
172
    !if $ssourcecls>9999
165
      !! check cloningpwd
173
      !! check cloningpwd
166
      !! --------------------------------------- attention il faut rajouter la temporisation pour badpwd
174
      !! --------------------------------------- attention il faut rajouter la temporisation pour badpwd
Line 174... Line 182...
174
    scheckpwd=1
182
    scheckpwd=1
175
  !endif
183
  !endif
176
  !exit
184
  !exit
177
!endif
185
!endif
178
 
186
 
179
!if $ssourcecls=file
-
 
180
  source_title=!defof class_institution,class_description in wimshome/sessions/$wims_session/upload/class/.def
-
 
181
!else
-
 
182
  source_title=!defof class_institution,class_description in wimshome/log/classes/$ssourcecls/.def
-
 
183
!endif
-
 
184
 
187
 
185
!if $step=0
188
!if $step=0
186
  !if $methodecp!=0 and $methodecp!=1
189
  !if $methodecp!=0 and $methodecp!=1
187
    error=badcpmethod
190
    error=badcpmethod
188
    !exit
191
    !exit