Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 27... Línea 27...
27
require_once(__DIR__ . '/../config.php');
27
require_once(__DIR__ . '/../config.php');
28
require_once($CFG->libdir . '/adminlib.php');
28
require_once($CFG->libdir . '/adminlib.php');
29
require_once($CFG->libdir . '/filelib.php');
29
require_once($CFG->libdir . '/filelib.php');
Línea 30... Línea 30...
30
 
30
 
31
$fetchupdates = optional_param('fetchupdates', false, PARAM_BOOL); // Check for available plugins updates.
-
 
32
$updatesonly = optional_param('updatesonly', false, PARAM_BOOL); // Show updateable plugins only.
-
 
33
$contribonly = optional_param('contribonly', false, PARAM_BOOL); // Show additional plugins only.
31
$fetchupdates = optional_param('fetchupdates', false, PARAM_BOOL); // Check for available plugins updates.
34
$uninstall = optional_param('uninstall', '', PARAM_COMPONENT); // Uninstall the plugin.
32
$uninstall = optional_param('uninstall', '', PARAM_COMPONENT); // Uninstall the plugin.
35
$delete = optional_param('delete', '', PARAM_COMPONENT); // Delete the plugin folder after it is uninstalled.
33
$delete = optional_param('delete', '', PARAM_COMPONENT); // Delete the plugin folder after it is uninstalled.
36
$confirmed = optional_param('confirm', false, PARAM_BOOL); // Confirm the uninstall/delete action.
34
$confirmed = optional_param('confirm', false, PARAM_BOOL); // Confirm the uninstall/delete action.
37
$return = optional_param('return', 'overview', PARAM_ALPHA); // Where to return after uninstall.
35
$return = optional_param('return', 'overview', PARAM_ALPHA); // Where to return after uninstall.
Línea 45... Línea 43...
45
 
43
 
46
require_admin();
44
require_admin();
Línea 47... Línea 45...
47
$syscontext = context_system::instance();
45
$syscontext = context_system::instance();
48
 
-
 
49
// URL params we want to maintain on redirects.
46
 
Línea 50... Línea 47...
50
$pageparams = array('updatesonly' => $updatesonly, 'contribonly' => $contribonly);
47
// URL params we want to maintain on redirects.
Línea 51... Línea 48...
51
$pageurl = new moodle_url('/admin/plugins.php', $pageparams);
48
$pageurl = new moodle_url('/admin/plugins.php');
Línea 52... Línea 49...
52
 
49
 
Línea 53... Línea 50...
53
$pluginman = core_plugin_manager::instance();
50
$pluginman = core_plugin_manager::instance();
54
 
51
 
55
$PAGE->set_primary_active_tab('siteadminnode');
52
$PAGE->set_primary_active_tab('siteadminnode');
56
 
53
 
57
if ($uninstall) {
54
if ($uninstall) {
58
 
55
 
59
    if (!$confirmed) {
56
    if (!$confirmed) {
Línea 199... Línea 196...
199
            )
196
            )
200
        );
197
        );
201
    }
198
    }
202
}
199
}
Línea 203... Línea 200...
203
 
200
 
Línea 204... Línea 201...
204
admin_externalpage_setup('pluginsoverview', '', $pageparams);
201
admin_externalpage_setup('pluginsoverview');
205
 
202
 
Línea 206... Línea 203...
206
/** @var core_admin_renderer $output */
203
/** @var core_admin_renderer $output */
Línea 212... Línea 209...
212
    require_sesskey();
209
    require_sesskey();
213
    $checker->fetch();
210
    $checker->fetch();
214
    redirect($PAGE->url);
211
    redirect($PAGE->url);
215
}
212
}
Línea 216... Línea 213...
216
 
213