phpBB

Code Changes

File: includes/acp/acp_icons.php

  Unmodified   Added   Modified   Removed
Line 40Line 40
		$action = (isset($_POST['edit'])) ? 'edit' : $action;
$action = (isset($_POST['import'])) ? 'import' : $action;
$icon_id = request_var('id', 0);

		$action = (isset($_POST['edit'])) ? 'edit' : $action;
$action = (isset($_POST['import'])) ? 'import' : $action;
$icon_id = request_var('id', 0);

 
		$submit = $request->is_set_post('submit', false);

$form_key = 'acp_icons';
add_form_key($form_key);


$mode = ($mode == 'smilies') ? 'smilies' : 'icons';



$mode = ($mode == 'smilies') ? 'smilies' : 'icons';


Line 324Line 328

case 'create':
case 'modify':


case 'create':
case 'modify':

 

if (!check_form_key($form_key))
{
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}


// Get items to create/modify
$images = (isset($_POST['image'])) ? array_keys(request_var('image', array('' => 0))) : array();


// Get items to create/modify
$images = (isset($_POST['image'])) ? array_keys(request_var('image', array('' => 0))) : array();

Line 512Line 521
				if ($pak != '')
{
$order = 0;

				if ($pak != '')
{
$order = 0;

 

if (!check_form_key($form_key))
{
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}


if (!($pak_ary = @file($phpbb_root_path . $img_path . '/' . $pak)))
{


if (!($pak_ary = @file($phpbb_root_path . $img_path . '/' . $pak)))
{

Line 698Line 712

$template->assign_vars(array(
'MESSAGE_TITLE' => $user->lang['EXPORT_' . $lang],


$template->assign_vars(array(
'MESSAGE_TITLE' => $user->lang['EXPORT_' . $lang],

					'MESSAGE_TEXT'		=> sprintf($user->lang['EXPORT_' . $lang . '_EXPLAIN'], '<a href="' . $this->u_action . '&amp;action=send">', '</a>'),

					'MESSAGE_TEXT'		=> sprintf($user->lang['EXPORT_' . $lang . '_EXPLAIN'], '<a href="' . $this->u_action . '&amp;action=send&amp;hash=' . generate_link_hash('acp_icons') . '">', '</a>'),


'S_USER_NOTICE' => true,
)


'S_USER_NOTICE' => true,
)

Line 709Line 723
			break;

case 'send':

			break;

case 'send':

 

if (!check_link_hash($request->variable('hash', ''), 'acp_icons'))
{
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}


$sql = "SELECT *
FROM $table


$sql = "SELECT *
FROM $table

Line 810Line 829

case 'move_up':
case 'move_down':


case 'move_up':
case 'move_down':

 

if (!check_link_hash($request->variable('hash', ''), 'acp_icons'))
{
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}


// Get current order id...
$sql = "SELECT {$fields}_order as current_order


// Get current order id...
$sql = "SELECT {$fields}_order as current_order

Line 928Line 952
				'EMOTION'		=> (isset($row['emotion'])) ? $row['emotion'] : '',
'U_EDIT' => $this->u_action . '&amp;action=edit&amp;id=' . $row[$fields . '_id'],
'U_DELETE' => $this->u_action . '&amp;action=delete&amp;id=' . $row[$fields . '_id'],

				'EMOTION'		=> (isset($row['emotion'])) ? $row['emotion'] : '',
'U_EDIT' => $this->u_action . '&amp;action=edit&amp;id=' . $row[$fields . '_id'],
'U_DELETE' => $this->u_action . '&amp;action=delete&amp;id=' . $row[$fields . '_id'],

				'U_MOVE_UP'		=> $this->u_action . '&amp;action=move_up&amp;id=' . $row[$fields . '_id'] . '&amp;start=' . $pagination_start,
'U_MOVE_DOWN' => $this->u_action . '&amp;action=move_down&amp;id=' . $row[$fields . '_id'] . '&amp;start=' . $pagination_start,

				'U_MOVE_UP'		=> $this->u_action . '&amp;action=move_up&amp;id=' . $row[$fields . '_id'] . '&amp;start=' . $pagination_start . '&amp;hash=' . generate_link_hash('acp_icons'),
'U_MOVE_DOWN' => $this->u_action . '&amp;action=move_down&amp;id=' . $row[$fields . '_id'] . '&amp;start=' . $pagination_start . '&amp;hash=' . generate_link_hash('acp_icons'),

			));

if (!$spacer && !$row['display_on_posting'])

			));

if (!$spacer && !$row['display_on_posting'])