Changeset 9939 in spip-zone
- Timestamp:
- Feb 27, 2007, 4:44:20 PM (14 years ago)
- Location:
- _plugins_/_test_/documents_distants
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_test_/documents_distants/documents_distants.html
r9876 r9939 3 3 4 4 <label for="document"><:documentsdistants:explicatif:></label> 5 <textarea name='documents' rows='40' cols='80'> </textarea>5 <textarea name='documents' rows='40' cols='80'>#ENV{documents}</textarea> 6 6 7 7 <br /> -
_plugins_/_test_/documents_distants/exec/documents_distants.php
r9876 r9939 31 31 echo gros_titre(_T('documentsdistants:importer')); 32 32 33 echo recuperer_fond('documents_distants',Array(' id'=>$id,'type_lien'=>$type_lien,'retour'=>$retour));33 echo recuperer_fond('documents_distants',Array('documents'=>$documents,'id'=>$id,'type_lien'=>$type_lien,'retour'=>$retour)); 34 34 fin_cadre_formulaire(); 35 35 … … 41 41 function importer_document($documents_distants,$type_lien,$id,$retour) 42 42 { 43 include_spip('inc/autoriser'); 43 44 44 45 $id2=$id; … … 47 48 48 49 $tableau =explode(";",$documents_distants); 49 include_spip('public/assembler');50 $autoriser=recuperer_fond('documents_distants_test',array('id'=>$id,'type_lien'=>$type_lien));51 50 52 echo $autoriser; 51 $autoriser=autoriser('joindredocument',str_replace('s', '',$type_lien),$id); 52 53 53 54 if (!($documents_distants and $id and $id2==$id)){return 'completer';} 54 55
Note: See TracChangeset
for help on using the changeset viewer.