"._T('ckeditor:acces_interdit')."
") ; } } elseif (_request('upload') == 'post') { if ($peut_telecharger) { $tmp_file = $_FILES['fichier']['tmp_name']; $erreur = -1 ; if( is_uploaded_file($tmp_file) ) { $name_file = $_FILES['fichier']['name']; if (preg_match(_FILEBROWSER_FILETYPE_REGEX, $name_file)) { if (move_uploaded_file($tmp_file, $dir_name .'/'. $name_file)) { $erreur = false ; } else { $erreur = 3 ; } } else { $erreur = 2 ; } } else { $erreur = 1 ; } print(''."\n") ; print(''._T('ckeditor:copie_reussie', array('fichier'=> $name_file)).'
') ; $txt = _T('ckeditor:utiliser_fichier', array('fichier'=> $name_file)) ; print(''); } } else { print(""._T('ckeditor:acces_interdit')."
") ; } } else { if ($peut_mkdir && ($mkdir = _request('mkdir'))) { @mkdir($dir_name.'/'.$mkdir) ; } $h_dir = @opendir($dir_name) ; $dirs = array() ; $files = array() ; if ($h_dir) { while ($filename = @readdir($h_dir)) { if (_FILEBROWSER_HIDE_DOT_FILES && (strpos($filename, '.') === 0)) { continue ; } if (filetype($dir_name . '/' . $filename) == 'dir') { if ( ($filename != '.') && ($filename != '..') ) { $dirs[] = array($filename,$request_dir.($request_dir?'/':'').$filename, _T('ckeditor:acceder_repertoire', array('repertoire'=>$filename))) ; } } else { $files[]= $filename ; } } print('"._T('ckeditor:acces_interdit')."
") ; } ?>