Skip to content
Snippets Groups Projects
Commit b41885e3 authored by Hakan Sandell's avatar Hakan Sandell
Browse files

Replacing $_REQUEST variables with $INPUT wrapper, plugin manager

parent 392c9b52
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,9 @@ class ap_download extends ap_manage { ...@@ -8,8 +8,9 @@ class ap_download extends ap_manage {
*/ */
function process() { function process() {
global $lang; global $lang;
global $INPUT;
$plugin_url = $_REQUEST['url']; $plugin_url = $INPUT->str('url');
$this->download($plugin_url, $this->overwrite); $this->download($plugin_url, $this->overwrite);
return ''; return '';
} }
......
...@@ -6,9 +6,11 @@ class ap_enable extends ap_manage { ...@@ -6,9 +6,11 @@ class ap_enable extends ap_manage {
function process() { function process() {
global $plugin_protected; global $plugin_protected;
global $INPUT;
$count_enabled = $count_disabled = 0; $count_enabled = $count_disabled = 0;
$this->enabled = isset($_REQUEST['enabled']) ? $_REQUEST['enabled'] : array(); $this->enabled = $INPUT->arr('enabled');
foreach ($this->manager->plugin_list as $plugin) { foreach ($this->manager->plugin_list as $plugin) {
if (in_array($plugin, $plugin_protected)) continue; if (in_array($plugin, $plugin_protected)) continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment