Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/user/files.php
Go to the documentation of this file.
00001 <?php
00002 
00003 // This file is part of Moodle - http://moodle.org/
00004 //
00005 // Moodle is free software: you can redistribute it and/or modify
00006 // it under the terms of the GNU General Public License as published by
00007 // the Free Software Foundation, either version 3 of the License, or
00008 // (at your option) any later version.
00009 //
00010 // Moodle is distributed in the hope that it will be useful,
00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 // GNU General Public License for more details.
00014 //
00015 // You should have received a copy of the GNU General Public License
00016 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
00017 
00026 require('../config.php');
00027 
00028 require_login();
00029 if (isguestuser()) {
00030     die();
00031 }
00032 
00033 $context = get_context_instance(CONTEXT_USER, $USER->id);
00034 require_capability('moodle/user:manageownfiles', $context);
00035 $title = get_string('myfiles');
00036 $struser = get_string('user');
00037 
00038 $PAGE->set_url('/user/files.php');
00039 $PAGE->set_context($context);
00040 $PAGE->set_title($title);
00041 $PAGE->set_heading($title);
00042 $PAGE->set_pagelayout('mydashboard');
00043 $PAGE->set_pagetype('user-files');
00044 
00045 echo $OUTPUT->header();
00046 echo $OUTPUT->box_start('generalbox');
00047 
00048 $renderer = $PAGE->get_renderer('core', 'user');
00049 echo $renderer->user_files_tree();
00050 
00051 echo $OUTPUT->single_button(new moodle_url('/user/filesedit.php'), get_string('myfilesmanage'), 'get');
00052 
00053 echo $OUTPUT->box_end();
00054 echo $OUTPUT->footer();
 All Data Structures Namespaces Files Functions Variables Enumerations