aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/modules/acp/acp_attachments.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-12-25 14:47:57 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-12-25 14:47:57 +0000
commit5b9a3c9a7d8f8e4590dddf4440ac82c30ef3f730 (patch)
treea083f062a59bdacfe913d1cc84d96813037185ec /phpBB/modules/acp/acp_attachments.php
parentddfef8d832e84eca694bc6d98f2d4ec3ca480142 (diff)
downloadforums-5b9a3c9a7d8f8e4590dddf4440ac82c30ef3f730.tar
forums-5b9a3c9a7d8f8e4590dddf4440ac82c30ef3f730.tar.gz
forums-5b9a3c9a7d8f8e4590dddf4440ac82c30ef3f730.tar.bz2
forums-5b9a3c9a7d8f8e4590dddf4440ac82c30ef3f730.tar.xz
forums-5b9a3c9a7d8f8e4590dddf4440ac82c30ef3f730.zip
add nils' request and super globals class
rename request:: to phpbb_request:: git-svn-id: file:///svn/phpbb/trunk@9230 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/modules/acp/acp_attachments.php')
-rw-r--r--phpBB/modules/acp/acp_attachments.php28
1 files changed, 14 insertions, 14 deletions
diff --git a/phpBB/modules/acp/acp_attachments.php b/phpBB/modules/acp/acp_attachments.php
index c4642f9dad..3a456b18ca 100644
--- a/phpBB/modules/acp/acp_attachments.php
+++ b/phpBB/modules/acp/acp_attachments.php
@@ -31,7 +31,7 @@ class acp_attachments
$user->add_lang(array('posting', 'viewtopic', 'acp/attachments'));
$error = $notify = array();
- $submit = request::is_set_post('submit');
+ $submit = phpbb_request::is_set_post('submit');
$action = request_var('action', '');
$form_key = 'acp_attach';
@@ -128,7 +128,7 @@ class acp_attachments
);
$this->new_config = $config;
- $cfg_array = (request::is_set('config')) ? request_var('config', array('' => '')) : $this->new_config;
+ $cfg_array = (phpbb_request::is_set('config')) ? request_var('config', array('' => '')) : $this->new_config;
$error = array();
// We validate the complete config if whished
@@ -274,7 +274,7 @@ class acp_attachments
{
$l_explain = (isset($user->lang[$vars['lang'] . '_EXPLAIN'])) ? $user->lang[$vars['lang'] . '_EXPLAIN'] : '';
}
-
+
$content = build_cfg_template($type, $config_key, $this->new_config, $config_key, $vars);
if (empty($content))
{
@@ -297,7 +297,7 @@ class acp_attachments
case 'extensions':
- if ($submit || request::is_set_post('add_extension_check'))
+ if ($submit || phpbb_request::is_set_post('add_extension_check'))
{
if ($submit)
{
@@ -361,7 +361,7 @@ class acp_attachments
// Add Extension?
$add_extension = strtolower(request_var('add_extension', ''));
$add_extension_group = request_var('add_group_select', 0);
- $add = request::is_set_post('add_extension_check');
+ $add = phpbb_request::is_set_post('add_extension_check');
if ($add_extension && $add)
{
@@ -402,7 +402,7 @@ class acp_attachments
$template->assign_vars(array(
'S_EXTENSIONS' => true,
'ADD_EXTENSION' => (isset($add_extension)) ? $add_extension : '',
- 'GROUP_SELECT_OPTIONS' => (request::is_set_post('add_extension_check')) ? $this->group_select('add_group_select', $add_extension_group, 'extension_group') : $this->group_select('add_group_select', false, 'extension_group'))
+ 'GROUP_SELECT_OPTIONS' => (phpbb_request::is_set_post('add_extension_check')) ? $this->group_select('add_group_select', $add_extension_group, 'extension_group') : $this->group_select('add_group_select', false, 'extension_group'))
);
$sql = 'SELECT *
@@ -512,10 +512,10 @@ class acp_attachments
$size_select = request_var('size_select', 'b');
$forum_select = request_var('forum_select', false);
$allowed_forums = request_var('allowed_forums', array(0));
- $allow_in_pm = request::is_set_post('allow_in_pm');
+ $allow_in_pm = phpbb_request::is_set_post('allow_in_pm');
$max_filesize = request_var('max_filesize', 0);
$max_filesize = ($size_select == 'kb') ? round($max_filesize * 1024) : (($size_select == 'mb') ? round($max_filesize * 1048576) : $max_filesize);
- $allow_group = request::is_set_post('allow_group');
+ $allow_group = phpbb_request::is_set_post('allow_group');
if ($max_filesize == $config['max_filesize'])
{
@@ -593,7 +593,7 @@ class acp_attachments
);
$group_id = request_var('g', 0);
- $action = request::is_set_post('add');
+ $action = phpbb_request::is_set_post('add');
switch ($action)
{
@@ -876,8 +876,8 @@ class acp_attachments
if ($submit)
{
- $delete_files = array_keys(request::variable('delete', array('' => 0), false, request::POST));
- $add_files = array_keys(request::variable('add', array('' => 0), false, request::POST));
+ $delete_files = array_keys(phpbb_request::variable('delete', array('' => 0), false, phpbb_request::POST));
+ $add_files = array_keys(phpbb_request::variable('add', array('' => 0), false, phpbb_request::POST));
$post_ids = request_var('post_id', array('' => 0));
if (sizeof($delete_files))
@@ -1231,14 +1231,14 @@ class acp_attachments
{
global $db, $user;
- if (request::is_set('securesubmit'))
+ if (phpbb_request::is_set('securesubmit'))
{
// Grab the list of entries
$ips = request_var('ips', '');
$ip_list = array_unique(explode("\n", $ips));
$ip_list_log = implode(', ', $ip_list);
- $ip_exclude = (int) request::variable('ipexclude', false, false, request::POST);
+ $ip_exclude = (int) phpbb_request::variable('ipexclude', false, false, phpbb_request::POST);
$iplist = array();
$hostlist = array();
@@ -1385,7 +1385,7 @@ class acp_attachments
trigger_error($user->lang['SECURE_DOWNLOAD_UPDATE_SUCCESS'] . adm_back_link($this->u_action));
}
- else if (request::is_set_post('unsecuresubmit'))
+ else if (phpbb_request::is_set_post('unsecuresubmit'))
{
$unip_sql = request_var('unip', array(0));