Line 40 | Line 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 324 | Line 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 512 | Line 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 698 | Line 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 . '&action=send">', '</a>'),
| 'MESSAGE_TEXT' => sprintf($user->lang['EXPORT_' . $lang . '_EXPLAIN'], '<a href="' . $this->u_action . '&action=send&hash=' . generate_link_hash('acp_icons') . '">', '</a>'),
|
'S_USER_NOTICE' => true, )
| 'S_USER_NOTICE' => true, )
|
Line 709 | Line 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 810 | Line 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 928 | Line 952 |
---|
'EMOTION' => (isset($row['emotion'])) ? $row['emotion'] : '', 'U_EDIT' => $this->u_action . '&action=edit&id=' . $row[$fields . '_id'], 'U_DELETE' => $this->u_action . '&action=delete&id=' . $row[$fields . '_id'],
|
'EMOTION' => (isset($row['emotion'])) ? $row['emotion'] : '', 'U_EDIT' => $this->u_action . '&action=edit&id=' . $row[$fields . '_id'], 'U_DELETE' => $this->u_action . '&action=delete&id=' . $row[$fields . '_id'],
|
'U_MOVE_UP' => $this->u_action . '&action=move_up&id=' . $row[$fields . '_id'] . '&start=' . $pagination_start, 'U_MOVE_DOWN' => $this->u_action . '&action=move_down&id=' . $row[$fields . '_id'] . '&start=' . $pagination_start,
| 'U_MOVE_UP' => $this->u_action . '&action=move_up&id=' . $row[$fields . '_id'] . '&start=' . $pagination_start . '&hash=' . generate_link_hash('acp_icons'), 'U_MOVE_DOWN' => $this->u_action . '&action=move_down&id=' . $row[$fields . '_id'] . '&start=' . $pagination_start . '&hash=' . generate_link_hash('acp_icons'),
|
));
if (!$spacer && !$row['display_on_posting'])
| ));
if (!$spacer && !$row['display_on_posting'])
|