~ubuntu-branches/ubuntu/trusty/moodle/trusty-proposed

« back to all changes in this revision

Viewing changes to admin/portfolio.php

  • Committer: Package Import Robot
  • Author(s): Thijs Kinkhorst
  • Date: 2013-07-19 08:52:46 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130719085246-yebwditc2exoap2r
Tags: 2.5.1-1
* New upstream version: 2.5.1.
  - Fixes security issues:
    CVE-2013-2242 CVE-2013-2243 CVE-2013-2244 CVE-2013-2245
    CVE-2013-2246
* Depend on apache2 instead of obsolete apache2-mpm-prefork.
* Use packaged libphp-phpmailer (closes: #429339), adodb,
  HTMLPurifier, PclZip.
* Update debconf translations, thanks Salvatore Merone, Pietro Tollot,
  Joe Hansen, Yuri Kozlov, Holger Wansing, Américo Monteiro,
  Adriano Rafael Gomes, victory, Michał Kułach.
  (closes: #716972, #716986, #717080, #717108, #717278)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
require_once($CFG->libdir . '/portfolio/forms.php');
6
6
require_once($CFG->libdir . '/adminlib.php');
7
7
 
8
 
$portfolio     = optional_param('pf', '', PARAM_FORMAT);
 
8
$portfolio     = optional_param('pf', '', PARAM_ALPHANUMEXT);
9
9
$action        = optional_param('action', '', PARAM_ALPHA);
10
10
$sure          = optional_param('sure', '', PARAM_ALPHA);
11
11
 
35
35
 
36
36
admin_externalpage_setup($pagename);
37
37
 
38
 
require_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM));
 
38
require_capability('moodle/site:config', context_system::instance());
39
39
 
40
40
$baseurl    = "$CFG->wwwroot/$CFG->admin/portfolio.php";
41
41
$sesskeyurl = "$CFG->wwwroot/$CFG->admin/portfolio.php?sesskey=" . sesskey();
43
43
 
44
44
$return = true; // direct back to the main page
45
45
 
 
46
// Purge all caches related to portfolio administration.
 
47
cache::make('core', 'plugininfo_portfolio')->purge();
 
48
 
46
49
/**
47
50
 * Helper function that generates a moodle_url object
48
51
 * relevant to the portfolio