/* Decoded by unphp.net */ ?>'+emoji+''); } else { $(this).remove(); } }); HTML; $output = <<
HTML; $emoji = json_decode (file_get_contents (ROOT_DIR . "/engine/data/emoticons/emoji.json" ) ); foreach ($emoji as $key => $value ) { $i = 0; $output .= "
".$lang['emoji_'.$value->category]."
"; foreach ($value->emoji as $symbol ) { $i++; $output .= "
code}\">
"; } $output .= "
"; } $output .= ""; } else { $i = 0; $output = ""; $smilies = explode(",", $config['smilies']); $count_smilies = count($smilies); foreach($smilies as $smile) { $i++; $smile = trim($smile); $sm_image =""; if( file_exists( ROOT_DIR . "/engine/data/emoticons/" . $smile . ".png" ) ) { if( file_exists( ROOT_DIR . "/engine/data/emoticons/" . $smile . "@2x.png" ) ) { $sm_image = "\"{$smile}\""; } else { $sm_image = "\"{$smile}\""; } } elseif ( file_exists( ROOT_DIR . "/engine/data/emoticons/" . $smile . ".gif" ) ) { if( file_exists( ROOT_DIR . "/engine/data/emoticons/" . $smile . "@2x.gif" ) ) { $sm_image = "\"{$smile}\""; } else { $sm_image = "\"{$smile}\""; } } $output .= ""; if ($i%7 == 0 AND $i < $count_smilies) $output .= ""; } $output .= "
{$sm_image}
"; } if (isset($addtype) AND $addtype == "addnews") { $js_array[] = "engine/classes/js/bbcodes.js"; $js_array[] = "engine/classes/js/typograf.min.js"; $startform = "short_story"; $addform = "document.entryform"; $add_id = (isset($_REQUEST['id'])) ? intval($_REQUEST['id']) : ''; $p_name = urlencode($member_id['name']); if ($is_logged AND ($user_group[$member_id['user_group']]['allow_image_upload'] OR $user_group[$member_id['user_group']]['allow_file_upload']) ) { $image_upload = ""; } else { $image_upload = ""; } $bb_code = << {$image_upload}
HTML; $image_align = array (0 => '', 'left' => '', 'right' => '', 'center' => ''); $image_align[$config['image_align']] = "selected"; $bb_js_code = << HTML; } else { if( $config['allow_comments_wysiwyg'] == "-1" ) { $code = << HTML; $bb_code = $code; $startform = "comments"; $addform = "document.getElementById( 'dle-comments-form' )"; $add_id = false; } else { $js_array[] = "engine/classes/js/bbcodes.js"; $startform = "comments"; $addform = "document.getElementById( 'dle-comments-form' )"; $add_id = false; if ($user_group[$member_id['user_group']]['allow_url']) { $url_link = ""; } else $url_link = ""; if ($user_group[$member_id['user_group']]['allow_image']) { $image_link = ""; } else $image_link = ""; $image_upload = ""; if ($is_logged AND $user_group[$member_id['user_group']]['allow_up_image'] ) { $p_name = urlencode($member_id['name']); if( !$comments_image_uploader_loaded ) $image_upload = ""; } if ($user_group[$member_id['user_group']]['video_comments']) { $v_link = ""; } else $v_link = ""; if ($user_group[$member_id['user_group']]['media_comments']) { $m_link = ""; } else $m_link = ""; $code = <<
{$url_link}{$image_link}{$image_upload}{$v_link}{$m_link}
HTML; $image_align = array (0 => '', 'left' => '', 'right' => '', 'center' => ''); $image_align[$config['image_align']] = "selected"; $bb_code = << {$code} HTML; } } ?>