Line 166 | Line 166 |
---|
} $db->sql_freeresult($result);
|
} $db->sql_freeresult($result);
|
if (sizeof($smilies))
| if (count($smilies))
|
{ foreach ($smilies as $row) {
| { foreach ($smilies as $row) {
|
Line 301 | Line 301 |
---|
}
// Ok, another row for adding an addition code for a pre-existing image...
|
}
// Ok, another row for adding an addition code for a pre-existing image...
|
if ($action == 'add' && $mode == 'smilies' && sizeof($smilies))
| if ($action == 'add' && $mode == 'smilies' && count($smilies))
|
{ $template->assign_vars(array( 'S_ADD_CODE' => true,
| { $template->assign_vars(array( 'S_ADD_CODE' => true,
|
Line 378 | Line 378 |
---|
{ $smiley_count = $this->item_count($table);
|
{ $smiley_count = $this->item_count($table);
|
$addable_smileys_count = sizeof($images);
| $addable_smileys_count = count($images);
|
foreach ($images as $image) { if (!isset($image_add[$image]))
| foreach ($images as $image) { if (!isset($image_add[$image]))
|
Line 546 | Line 546 |
---|
{ if (preg_match_all("#'(.*?)', ?#", $pak_entry, $data)) {
|
{ if (preg_match_all("#'(.*?)', ?#", $pak_entry, $data)) {
|
if ((sizeof($data[1]) != 4 && $mode == 'icons') || ((sizeof($data[1]) != 6 || (empty($data[1][4]) || empty($data[1][5]))) && $mode == 'smilies' ))
| if ((count($data[1]) != 4 && $mode == 'icons') || ((count($data[1]) != 6 || (empty($data[1][4]) || empty($data[1][5]))) && $mode == 'smilies' ))
|
{ trigger_error($user->lang['WRONG_PAK_TYPE'] . adm_back_link($this->u_action), E_USER_WARNING); }
| { trigger_error($user->lang['WRONG_PAK_TYPE'] . adm_back_link($this->u_action), E_USER_WARNING); }
|
Line 605 | Line 605 |
---|
if ($mode == 'smilies') { $smiley_count = $this->item_count($table);
|
if ($mode == 'smilies') { $smiley_count = $this->item_count($table);
|
if ($smiley_count + sizeof($pak_ary) > SMILEY_LIMIT)
| if ($smiley_count + count($pak_ary) > SMILEY_LIMIT)
|
{ trigger_error($user->lang('TOO_MANY_SMILIES', SMILEY_LIMIT) . adm_back_link($this->u_action), E_USER_WARNING); }
| { trigger_error($user->lang('TOO_MANY_SMILIES', SMILEY_LIMIT) . adm_back_link($this->u_action), E_USER_WARNING); }
|
Line 616 | Line 616 |
---|
$data = array(); if (preg_match_all("#'(.*?)', ?#", $pak_entry, $data)) {
|
$data = array(); if (preg_match_all("#'(.*?)', ?#", $pak_entry, $data)) {
|
if ((sizeof($data[1]) != 4 && $mode == 'icons') || (sizeof($data[1]) != 6 && $mode == 'smilies'))
| if ((count($data[1]) != 4 && $mode == 'icons') || (count($data[1]) != 6 && $mode == 'smilies'))
|
{ trigger_error($user->lang['WRONG_PAK_TYPE'] . adm_back_link($this->u_action), E_USER_WARNING); }
| { trigger_error($user->lang['WRONG_PAK_TYPE'] . adm_back_link($this->u_action), E_USER_WARNING); }
|