*/ define('INTERNAL', 1); define('INSTITUTIONALADMIN', 1); define('MENUITEM', 'manageinstitutions/institutionfiles'); define('SECTION_PLUGINTYPE', 'artefact'); define('SECTION_PLUGINNAME', 'file'); define('SECTION_PAGE', 'institutionfiles'); require dirname(dirname(dirname(__FILE__))) . '/init.php'; safe_require('artefact', 'file'); require_once get_config('libroot') . 'institution.php'; $institution = param_alphanum('institution', false); define('TITLE', get_string('institutionfiles', 'admin')); $s = institution_selector_for_page($institution, get_config('wwwroot') . 'artefact/file/institutionfiles.php'); $institution = $s['institution']; $pagebase = get_config('wwwroot') . 'artefact/file/institutionfiles.php?institution=' . $institution; $form = pieform(ArtefactTypeFileBase::files_form($pagebase, null, $institution)); $js = ArtefactTypeFileBase::files_js(); $smarty = smarty(); setpageicon($smarty, 'icon-university'); if ($institution === false) { $smarty->display('admin/users/noinstitutions.tpl'); exit; } if (!$USER->can_edit_institution($institution)) { throw new AccessDeniedException(); } $smarty->assign('institution', $institution); $smarty->assign('institutionselector', $s['institutionselector']); $smarty->assign('form', $form); $smarty->assign('INLINEJAVASCRIPT', $s['institutionselectorjs'] . $js); $smarty->assign('PAGEHEADING', TITLE);
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * @package mahara * @subpackage artefact-file * @author Catalyst IT Ltd * @license http://www.gnu.org/copyleft/gpl.html GNU GPL * @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz * */ define('INTERNAL', 1); define('ADMIN', 1); define('MENUITEM', 'configsite/sitefiles'); define('SECTION_PLUGINTYPE', 'artefact'); define('SECTION_PLUGINNAME', 'file'); define('SECTION_PAGE', 'sitefiles'); require dirname(dirname(dirname(__FILE__))) . '/init.php'; safe_require('artefact', 'file'); define('TITLE', get_string('sitefiles', 'admin')); $form = pieform(ArtefactTypeFileBase::files_form(get_config('wwwroot') . 'artefact/file/sitefiles.php', null, 'mahara')); $js = ArtefactTypeFileBase::files_js(); $smarty = smarty(); $smarty->assign('descriptionstrargs', array('<a href="' . get_config('wwwroot') . 'admin/site/menu.php">', '</a>')); $smarty->assign('heading', get_string('sitefiles', 'admin')); $smarty->assign('institution', 'mahara'); $smarty->assign('form', $form); $smarty->assign('INLINEJAVASCRIPT', $js); $smarty->display('artefact:file:files.tpl');
* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. * * @package mahara * @subpackage artefact-file * @author Catalyst IT Ltd * @license http://www.gnu.org/copyleft/gpl.html GNU GPL * @copyright (C) 2006-2008 Catalyst IT Ltd http://catalyst.net.nz * */ define('INTERNAL', 1); define('MENUITEM', 'myportfolio/files'); define('SECTION_PLUGINTYPE', 'artefact'); define('SECTION_PLUGINNAME', 'file'); define('SECTION_PAGE', 'index'); require dirname(dirname(dirname(__FILE__))) . '/init.php'; define('TITLE', get_string('myfiles', 'artefact.file')); safe_require('artefact', 'file'); $form = pieform(ArtefactTypeFileBase::files_form(get_config('wwwroot') . 'artefact/file/index.php')); $js = ArtefactTypeFileBase::files_js(); $smarty = smarty(array(), array(), array(), array('sideblocks' => array(array('name' => 'quota', 'weight' => -10, 'data' => array())))); $smarty->assign('heading', get_string('myfiles', 'artefact.file')); $smarty->assign('form', $form); $smarty->assign('INLINEJAVASCRIPT', $js); $smarty->display('artefact:file:files.tpl');
* @package mahara * @subpackage artefact-file * @author Catalyst IT Ltd * @license http://www.gnu.org/copyleft/gpl.html GNU GPL version 3 or later * @copyright For copyright information on Mahara, please see the README file distributed with this software. * */ define('INTERNAL', 1); define('MENUITEM', 'groups/files'); define('SECTION_PLUGINTYPE', 'artefact'); define('SECTION_PLUGINNAME', 'file'); define('SECTION_PAGE', 'groupfiles'); require dirname(dirname(dirname(__FILE__))) . '/init.php'; require_once get_config('libroot') . 'group.php'; safe_require('artefact', 'file'); define('GROUP', param_integer('group')); $group = group_current_group(); if (!($role = group_user_access($group->id) || !group_within_edit_window($group))) { throw new AccessDeniedException(); } define('TITLE', $group->name . ' - ' . get_string('groupfiles', 'artefact.file')); require_once get_config('docroot') . 'interaction/lib.php'; $pagebase = get_config('wwwroot') . 'artefact/file/groupfiles.php?group=' . $group->id; $form = pieform(ArtefactTypeFileBase::files_form($pagebase, $group->id)); $js = ArtefactTypeFileBase::files_js(); $smarty = smarty(array(), array(), array(), array('sideblocks' => array(array('name' => 'groupquota', 'weight' => -10, 'data' => array())))); $smarty->assign('heading', $group->name); $smarty->assign('form', $form); $smarty->assign('INLINEJAVASCRIPT', $js); $smarty->assign('group', $group->name); $smarty->display('artefact:file:files.tpl');