| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?php 2 require_once(dirname(__FILE__) . '/../config.php'); 3 require_once($CFG->libdir . '/filelib.php'); 4 5 // Note: file.php always calls require_login() with $setwantsurltome=false 6 // in order to avoid messing redirects. MDL-14495 7 require_login(0, true, null, false); 8 9 $relativepath = get_file_argument('question/exportfile.php'); 10 if (!$relativepath) { 11 error('No valid arguments supplied or incorrect server configuration'); 12 } 13 14 $pathname = $CFG->dataroot . '/temp/questionexport/' . $USER->id . '/' . $relativepath; 15 16 send_temp_file($pathname, $relativepath); 17 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |