From 13307c1360721ee1892ae5eb1e7d9d27ec6c3c76 Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Wed, 18 Sep 2002 04:38:17 +0000 Subject: New smilies admin, a bug fixed in mysql.php and a left join removed from admin_forums.php git-svn-id: file:///svn/phpbb/trunk@2891 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_forums.php | 7 +- phpBB/admin/admin_smilies.php | 550 +++++++++++---------- phpBB/admin/subSilver.css | 8 + phpBB/db/mysql.php | 4 +- phpBB/language/lang_english/lang_admin.php | 59 ++- .../templates/subSilver/admin/smile_edit_body.tpl | 34 -- .../subSilver/admin/smile_import_body.tpl | 24 - .../templates/subSilver/admin/smile_list_body.tpl | 25 - 8 files changed, 329 insertions(+), 382 deletions(-) delete mode 100644 phpBB/templates/subSilver/admin/smile_edit_body.tpl delete mode 100644 phpBB/templates/subSilver/admin/smile_import_body.tpl delete mode 100644 phpBB/templates/subSilver/admin/smile_list_body.tpl diff --git a/phpBB/admin/admin_forums.php b/phpBB/admin/admin_forums.php index b4448a7185..76efa5c65c 100644 --- a/phpBB/admin/admin_forums.php +++ b/phpBB/admin/admin_forums.php @@ -763,10 +763,9 @@ page_footer(); function get_forum_info($forum_id) { global $db; - $sql = 'SELECT f.*, s.* - FROM ' . FORUMS_TABLE . ' f - LEFT JOIN ' . STYLES_TABLE . " s ON f.forum_style = s.style_id - WHERE f.forum_id = $forum_id"; + $sql = 'SELECT * + FROM ' . FORUMS_TABLE . " + WHERE forum_id = $forum_id"; $result = $db->sql_query($sql); if (!$row = $db->sql_fetchrow($result)) { diff --git a/phpBB/admin/admin_smilies.php b/phpBB/admin/admin_smilies.php index c930c3edc8..a76899e965 100644 --- a/phpBB/admin/admin_smilies.php +++ b/phpBB/admin/admin_smilies.php @@ -1,6 +1,6 @@ get_acl_admin('general') ) +if (!$acl->get_acl_admin('general')) { message_die(MESSAGE, $lang['No_admin']); } @@ -51,374 +51,389 @@ if ( !$acl->get_acl_admin('general') ) // // Check to see what mode we should operate in. // -if ( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) +if (isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode'])) { - $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; + $mode = (!empty($HTTP_POST_VARS['mode'])) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; } else { $mode = ''; } -$delimeter = '=+:'; +$delimiter = '=+:'; +$smilies_images = $smilies_paks = array(); +$click_return = '

' . sprintf($lang['Click_return_smileadmin'], '', ''); +$click_return .= '

' . sprintf($lang['Click_return_admin_index'], '', ''); -// -// Read a listing of uploaded smilies for use in the add or edit smliey code... -// -$dir = @opendir($phpbb_root_path . $board_config['smilies_path']); - -while( $file = @readdir($dir) ) +if ($mode == 'edit' || !empty($HTTP_POST_VARS['add']) || !empty($HTTP_POST_VARS['import_pak'])) { - if ( is_file($phpbb_root_path . $board_config['smilies_path'] . '/' . $file) ) + $dir = @opendir($phpbb_root_path . $board_config['smilies_path']); + while ($file = @readdir($dir)) { - $img_size = @getimagesize($phpbb_root_path . $board_config['smilies_path'] . '/' . $file); - - if ( $img_size[0] && $img_size[1] ) + if (is_file($phpbb_root_path . $board_config['smilies_path'] . '/' . $file)) { - $smiley_images[] = $file; - } - else if( eregi('.pak$', $file) ) - { - $smiley_paks[] = $file; + $img_size = @getimagesize($phpbb_root_path . $board_config['smilies_path'] . '/' . $file); + + if (preg_match('/\.(gif|png|jpg)$/i', $file) || (!empty($img_size[0]) && !empty($img_size[1]))) + { + $smilies_images[] = $file; + } + elseif (preg_match('/\.pak$/i', $file)) + { + $smilies_paks[] = $file; + } } } + @closedir($dir); } -@closedir($dir); - // // Select main mode // -if ( isset($HTTP_GET_VARS['import_pack']) || isset($HTTP_POST_VARS['import_pack']) ) +if (isset($HTTP_POST_VARS['import_pak'])) { - // - // Import a list a "Smiley Pack" - // - $smile_pak = ( isset($HTTP_POST_VARS['smile_pak']) ) ? $HTTP_POST_VARS['smile_pak'] : $HTTP_GET_VARS['smile_pak']; - $clear_current = ( isset($HTTP_POST_VARS['clear_current']) ) ? $HTTP_POST_VARS['clear_current'] : $HTTP_GET_VARS['clear_current']; - $replace_existing = ( isset($HTTP_POST_VARS['replace']) ) ? intval($HTTP_POST_VARS['replace']) : intval($HTTP_GET_VARS['replace']); - - if ( !empty($smile_pak) ) + if (!empty($HTTP_POST_VARS['smilies_pak'])) { // - // The user has already selected a smile_pak file.. Import it. + // The user has already selected a smilies_pak file.. Import it. // - if ( !empty($clear_current) ) + if (!empty($HTTP_POST_VARS['clear_current'])) { - $sql = "DELETE - FROM " . SMILIES_TABLE; - $db->sql_query($sql); + $db->sql_query('DELETE FROM ' . SMILIES_TABLE); } else { - $sql = "SELECT code - FROM ". SMILIES_TABLE; - $result = $db->sql_query($sql); + $result = $db->sql_query('SELECT code FROM ' . SMILIES_TABLE); - $cur_smilies = $db->sql_fetchrowset($result); - - for( $i = 0; $i < count($cur_smilies); $i++ ) + $smilies = array(); + while ($row = $db->sql_fetchrow($result)) { - $k = $cur_smilies[$i]['code']; - $smiles[$k] = 1; + $smilies[$row['code']] = 1; } } - $fcontents = @file($phpbb_root_path . $board_config['smilies_path'] . '/'. $smile_pak); + $fcontents = @file($phpbb_root_path . $board_config['smilies_path'] . '/'. $smilies_pak); - if ( empty($fcontents) ) + if (empty($fcontents)) { - message_die(ERROR, "Couldn't read smiley pak file", "", __LINE__, __FILE__, $sql); + message_die(ERROR, 'Could not read smiley pak file' . $click_return); } - for( $i = 0; $i < count($fcontents); $i++ ) + foreach ($fcontents as $line) { - $smile_data = explode($delimeter, trim(addslashes($fcontents[$i]))); + $smile_data = explode($delimiter, trim($line)); + + $smile_url = $smile_data[0]; + $emotion = $smile_data[1]; + $code = htmlentities($smile_data[2]); - for( $j = 2; $j < count($smile_data); $j++) + if (!isset($smile_data[4])) { // - // Replace > and < with the proper html_entities for matching. + // The size isn't specified, try to get it from the file and if it fails + // arbitrary set it to 15 and let the user correct it later. // - $smile_data[$j] = htmlentities($smile_data[$j]); - $k = $smile_data[$j]; - - if ( $smiles[$k] == 1 ) - { - if ( !empty($replace_existing) ) - { - $sql = "UPDATE " . SMILIES_TABLE . " - SET smile_url = '" . str_replace("\'", "''", $smile_data[0]) . "', emoticon = '" . str_replace("\'", "''", $smile_data[1]) . "' - WHERE code = '" . str_replace("\'", "''", $smile_data[$j]) . "'"; - } - else - { - $sql = ''; - } - } - else - { - $sql = "INSERT INTO " . SMILIES_TABLE . " (code, smile_url, emoticon) - VALUES('" . str_replace("\'", "''", $smile_data[$j]) . "', '" . str_replace("\'", "''", $smile_data[0]) . "', '" . str_replace("\'", "''", $smile_data[1]) . "')"; - } + $size = @getimagesize($phpbb_root_path . $board_config['smilies_path'] . '/' . $smile_url); + $smile_width = (!empty($size[0])) ? $size[0] : 15; + $smile_height = (!empty($size[1])) ? $size[1] : 15; + } + else + { + $smile_width = $smile_data[3]; + $smile_height = $smile_data[4]; + } - if ( $sql != '' ) + if (!empty($smilies[$code])) + { + if (!empty($HTTP_POST_VARS['replace_existing'])) { - $db->sql_query($sql); + $code_sql = str_replace("'", "''", str_replace('\\', '\\\\', $code)); + $sql = array( + 'smile_url' => $smile_url, + 'smile_height' => $smile_height, + 'smile_width' => $smile_width, + 'emoticon' => $emotion + ); + $db->sql_query_array('UPDATE ' . SMILIES_TABLE . " SET WHERE code = '$code_sql'", $sql); } } + else + { + $sql = array( + 'code' => $code, + 'smile_url' => $smile_url, + 'smile_height' => $smile_height, + 'smile_width' => $smile_width, + 'emoticon' => $emotion + ); + $db->sql_query_array('INSERT INTO ' . SMILIES_TABLE, $sql); + } } - message_die(MESSAGE, $lang['smiley_import_success']); - + message_die(MESSAGE, $lang['Smilies_import_success'] . $click_return); } else { - // - // Display the script to get the smile_pak cfg file... - // - $smile_paks_select = "'; + + foreach ($smilies_paks as $pak) { - $smile_paks_select .= ""; + $smilies_paks_select .= ''; } + $smilies_paks_select .= ''; } - $smile_paks_select .= ""; - $hidden_vars = ""; + page_header($lang['Import_smilies']); +?> +

- $template->set_filenames(array( - "body" => "admin/smile_import_body.tpl") - ); +

- $template->assign_vars(array( - "L_SMILEY_TITLE" => $lang['smiley_title'], - "L_SMILEY_EXPLAIN" => $lang['smiley_import_inst'], - "L_SMILEY_IMPORT" => $lang['smiley_import'], - "L_SELECT_LBL" => $lang['choose_smile_pak'], - "L_IMPORT" => $lang['import'], - "L_CONFLICTS" => $lang['smile_conflicts'], - "L_DEL_EXISTING" => $lang['del_existing_smileys'], - "L_REPLACE_EXISTING" => $lang['replace_existing'], - "L_KEEP_EXISTING" => $lang['keep_existing'], - - "S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"), - "S_SMILE_SELECT" => $smile_paks_select, - "S_HIDDEN_FIELDS" => $hidden_vars) - ); +
+ + + + + + + + + + + + + + + + + +

+
+    
+    
+
+pparse("body"); + page_footer(); } } -else if ( isset($HTTP_POST_VARS['export_pack']) || isset($HTTP_GET_VARS['export_pack']) ) +elseif (isset($HTTP_GET_VARS['export_pak'])) { - // - // Export our smiley config as a smiley pak... - // - if ( $HTTP_GET_VARS['export_pack'] == "send" ) - { - $sql = "SELECT * - FROM " . SMILIES_TABLE; - $result = $db->sql_query($sql); - - $resultset = $db->sql_fetchrowset($result); - - $smile_pak = ''; - for($i = 0; $i < count($resultset); $i++ ) - { - $smile_pak .= $resultset[$i]['smile_url'] . $delimeter; - $smile_pak .= $resultset[$i]['emoticon'] . $delimeter; - $smile_pak .= $resultset[$i]['code'] . "\n"; - } + $smilies_pak = ''; - header("Content-Type: text/x-delimtext; name=\"smiles.pak\""); - header("Content-disposition: attachment; filename=smiles.pak"); - - echo $smile_pak; - - exit; + $result = $db->sql_query('SELECT * FROM ' . SMILIES_TABLE); + while ($row = $db->sql_fetchrow($result)) + { + $smilies_pak .= $row['smile_url'] . $delimiter; + $smilies_pak .= $row['emoticon'] . $delimiter; + $smilies_pak .= $row['code'] . $delimiter; + $smilies_pak .= $row['smile_height'] . $delimiter; + $smilies_pak .= $row['smile_width'] . "\n"; } + $db->sql_close(); + + header('Content-Type: text/x-delimtext; name="smilies.pak"'); + header('Content-disposition: attachment; filename=smilies.pak"'); - message_die(MESSAGE, sprintf($lang['export_smiles'], '', '')); + echo $smilies_pak; + exit; } -else if( isset($HTTP_POST_VARS['add']) ) +elseif (isset($HTTP_POST_VARS['export_pak'])) { - // - // Admin has selected to add a smiley. - // - - $template->set_filenames(array( - "body" => "admin/smile_edit_body.tpl") - ); - - $filename_list = ""; - for( $i = 0; $i < count($smiley_images); $i++ ) + page_header($lang['Export_smilies']); + message_die(MESSAGE, sprintf($lang['Export_smilies_explain'], '', '') . $click_return); +} +elseif (isset($HTTP_POST_VARS['add'])) +{ + $filename_list = ''; + foreach ($smilies_images as $smile_url) { - $filename_list .= ''; + if (!isset($default_image)) + { + $default_image = $smile_url; + } + $filename_list .= ''; } - $s_hidden_fields = ''; - - $template->assign_vars(array( - "L_SMILEY_TITLE" => $lang['smiley_title'], - "L_SMILEY_CONFIG" => $lang['smiley_config'], - "L_SMILEY_EXPLAIN" => $lang['smiley_instr'], - "L_SMILEY_CODE" => $lang['smiley_code'], - "L_SMILEY_URL" => $lang['smiley_url'], - "L_SMILEY_EMOTION" => $lang['smiley_emot'], - "L_SUBMIT" => $lang['Submit'], - "L_RESET" => $lang['Reset'], + page_header($lang['Add_smile']); +?> +

- "SMILEY_IMG" => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smiley_images[0], + - "S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields, - "S_FILENAME_OPTIONS" => $filename_list, - "S_SMILEY_BASEDIR" => $phpbb_root_path . $board_config['smilies_path']) - ); +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
   
+pparse("body"); + page_footer(); } -// -// -// -switch( $mode ) +switch ($mode) { case 'delete': - - $smiley_id = ( !empty($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : intval($HTTP_GET_VARS['id']); - - $sql = "DELETE FROM " . SMILIES_TABLE . " - WHERE smilies_id = " . $smiley_id; - $db->sql_query($sql); - - message_die(GENERAL_MESSAGE, $lang['smiley_del_success']); - break; + $db->sql_query('DELETE FROM ' . SMILIES_TABLE . ' WHERE smilies_id = ' . intval($HTTP_GET_VARS['smile_id'])); + message_die(MESSAGE, $lang['Smile_deleted'] . $click_return); + break; case 'edit': + $smile_id = intval($HTTP_GET_VARS['smile_id']); - $smiley_id = ( !empty($HTTP_POST_VARS['id']) ) ? intval($HTTP_POST_VARS['id']) : intval($HTTP_GET_VARS['id']); - - $sql = "SELECT * - FROM " . SMILIES_TABLE . " - WHERE smilies_id = " . $smiley_id; + $sql = 'SELECT * + FROM ' . SMILIES_TABLE . " + WHERE smilies_id = $smile_id"; $result = $db->sql_query($sql); - $smile_data = $db->sql_fetchrow($result); - $filename_list = ""; - for( $i = 0; $i < count($smiley_images); $i++ ) + $filename_list = ''; + foreach ($smilies_images as $smile_url) { -// $selected = - if( $smiley_images[$i] == $smile_data['smile_url'] ) + if ($smile_url == $smile_data['smile_url']) { - $smiley_selected = "selected=\"selected\""; - $smiley_edit_img = $smiley_images[$i]; + $smile_selected = ' selected="selected"'; + $smile_edit_img = $smile_url;; } else { - $smiley_selected = ""; + $smile_selected = ''; } - $filename_list .= ''; + $filename_list .= ''; } - $template->set_filenames(array( - "body" => "admin/smile_edit_body.tpl") - ); - - $s_hidden_fields = ''; - - $template->assign_vars(array( - "SMILEY_CODE" => $smile_data['code'], - "SMILEY_EMOTICON" => $smile_data['emoticon'], - - "L_SMILEY_TITLE" => $lang['smiley_title'], - "L_SMILEY_CONFIG" => $lang['smiley_config'], - "L_SMILEY_EXPLAIN" => $lang['smile_desc'], - "L_SMILEY_CODE" => $lang['smiley_code'], - "L_SMILEY_URL" => $lang['smiley_url'], - "L_SMILEY_EMOTION" => $lang['smiley_emot'], - "L_SUBMIT" => $lang['Submit'], - "L_RESET" => $lang['Reset'], - - "SMILEY_IMG" => $phpbb_root_path . $board_config['smilies_path'] . '/' . $smiley_edit_img, - - "S_SMILEY_ACTION" => append_sid("admin_smilies.$phpEx"), - "S_HIDDEN_FIELDS" => $s_hidden_fields, - "S_FILENAME_OPTIONS" => $filename_list, - "S_SMILEY_BASEDIR" => $phpbb_root_path . $board_config['smilies_path']) - ); - - $template->pparse("body"); - break; - - case 'save': - - // - // Get the submitted data, being careful to ensure that we only - // accept the data we are looking for. - // - $smile_code = ( isset($HTTP_POST_VARS['smile_code']) ) ? $HTTP_POST_VARS['smile_code'] : $HTTP_GET_VARS['smile_code']; - $smile_url = ( isset($HTTP_POST_VARS['smile_url']) ) ? $HTTP_POST_VARS['smile_url'] : $HTTP_GET_VARS['smile_url']; - $smile_emotion = ( isset($HTTP_POST_VARS['smile_emotion']) ) ? $HTTP_POST_VARS['smile_emotion'] : $HTTP_GET_VARS['smile_emotion']; - $smile_id = ( isset($HTTP_POST_VARS['smile_id']) ) ? intval($HTTP_POST_VARS['smile_id']) : intval($HTTP_GET_VARS['smile_id']); + page_header($lang['Edit_smile']); +?> +

- $smile_code = htmlspecialchars($smile_code); + - // - // Proceed with updating the smiley table. - // - $sql = "UPDATE " . SMILIES_TABLE . " - SET code = '" . str_replace("\'", "''", $smile_code) . "', smile_url = '" . str_replace("\'", "''", $smile_url) . "', emoticon = '" . str_replace("\'", "''", $smile_emotion) . "' - WHERE smilies_id = $smile_id"; - $db->sql_query($sql); +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
   
+sql_query($sql); - - message_die(MESSAGE, $lang['smiley_add_success']); - break; + $sql = array( + 'code' => htmlspecialchars(stripslashes($HTTP_POST_VARS['smile_code'])), + 'smile_url' => stripslashes($HTTP_POST_VARS['smile_url']), + 'smile_height' => intval($HTTP_POST_VARS['smile_height']), + 'smile_width' => intval($HTTP_POST_VARS['smile_width']), + 'emoticon' => stripslashes($HTTP_POST_VARS['smile_emotion']) + ); + + if ($mode == 'modify') + { + $db->sql_query_array('UPDATE ' . SMILIES_TABLE . ' SET WHERE smilies_id = ' . $HTTP_POST_VARS['smile_id'], $sql); + message_die(MESSAGE, $lang['Smile_edited'] . $click_return); + } + else + { + $db->sql_query_array('INSERT INTO ' . SMILIES_TABLE, $sql); + message_die(MESSAGE, $lang['Smile_added'] . $click_return); + } + break; default: - $sql = "SELECT * - FROM " . SMILIES_TABLE; - $result = $db->sql_query($sql); - + $result = $db->sql_query('SELECT * FROM ' . SMILIES_TABLE); page_header($lang['Emoticons']); - ?>

-
"> +
@@ -427,7 +442,7 @@ switch( $mode ) sql_fetchrow($result) ) + if ($row = $db->sql_fetchrow($result)) { do { @@ -438,8 +453,8 @@ switch( $mode ) - - + + - +
<?php echo htmlspecialchars($row['code']); ?> ">">">">
        
@@ -459,5 +474,4 @@ switch( $mode ) break; } - ?> \ No newline at end of file diff --git a/phpBB/admin/subSilver.css b/phpBB/admin/subSilver.css index 393d613d70..58978f37fe 100644 --- a/phpBB/admin/subSilver.css +++ b/phpBB/admin/subSilver.css @@ -140,12 +140,20 @@ td.cat { background-color: #D1D7DC; } +td.catBottom { + background-image: url(../templates/subSilver/images/cellpic1.gif); + background-color:#D1D7DC; border: #FFFFFF; height: 28px; +} + .row1 { background-color: #EFEFEF; } .row2 { background-color: #DEE3E7; } +.row3 { + background-color: #D1D7DC; +} /* Misc diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php index f9be4b839a..1fafc51152 100644 --- a/phpBB/db/mysql.php +++ b/phpBB/db/mysql.php @@ -186,7 +186,7 @@ class sql_db } elseif (is_string($var)) { - $values[] = str_replace("'", "''", $var); + $values[] = "'" . str_replace("'", "''", $var) . "'"; } else { @@ -201,7 +201,7 @@ class sql_db $values = array(); foreach ($assoc_ary as $key => $var) { - if (is_null($var) + if (is_null($var)) { $values[] = "$key = NULL"; } diff --git a/phpBB/language/lang_english/lang_admin.php b/phpBB/language/lang_english/lang_admin.php index a5a742101d..f3250be0da 100644 --- a/phpBB/language/lang_english/lang_admin.php +++ b/phpBB/language/lang_english/lang_admin.php @@ -576,34 +576,43 @@ $lang['Click_return_forumadmin'] = 'Click %sHere%s to return to Forum Administra // // Smiley Management // -$lang['Emoticons_explain'] = 'From this page you can add, remove and edit the emoticons or smileys your users may use in their posts and private messages.'; - -$lang['smiley_config'] = 'Smiley Configuration'; -$lang['smiley_code'] = 'Smiley Code'; -$lang['smiley_url'] = 'Smiley Image File'; -$lang['smiley_emot'] = 'Smiley Emotion'; -$lang['smile_add'] = 'Add a new Smiley'; +$lang['Emoticons_explain'] = 'From this page you can add, remove and edit the emoticons or smilies users can use in their posts and private messages.'; + +$lang['Import_smilies'] = 'Import smilies pak'; +$lang['Import_smilies_explain'] = 'Unzip the smilies package to your smilies directory then select the correct information in this form to import it.'; + +$lang['Smilies_import'] = 'Smilies pack import'; +$lang['No_smilies_pak'] = 'No smilies pack found'; +$lang['Select_package'] = 'Select a package file'; +$lang['Delete_existing_smilies'] = 'Delete existing smilies before import'; +$lang['Smilies_conflicts'] = 'What should be done in case of conflicts?'; +$lang['Keep_existing_smilies'] = 'Keep existing smilies'; +$lang['Replace_existing_smilies'] = 'Replace existing smilies'; +$lang['Smilies_import_success'] = 'The smilies pack was imported successfully'; + +$lang['Export_smilies'] = 'Create smilies pak'; +$lang['Export_smilies_explain'] = 'To create a package of your currently installed smilies, %sclick here%s to download the smilies.pak file. Name this file appropriately, making sure to keep the .pak file extension then create a zip file containing all of your smilies images plus this .pak configuration file.'; + +$lang['Add_smile'] = 'Add a new smile'; +$lang['Edit_smile'] = 'Edit smile'; + +$lang['Smile_config'] = 'Smile configuration'; +$lang['Smile_code'] = 'Smile code'; +$lang['Smile_url'] = 'Smile image file'; +$lang['Smile_height'] = 'Smile height'; +$lang['Smile_width'] = 'Smile width'; +$lang['Smile_emotion'] = 'Smile emotion'; +$lang['Smile_add'] = 'Add a new smile'; +$lang['Smile_edit'] = 'Edit smile'; $lang['Smile'] = 'Smile'; $lang['Emotion'] = 'Emotion'; -$lang['Select_pak'] = 'Select Pack (.pak) File'; -$lang['replace_existing'] = 'Replace Existing Smiley'; -$lang['keep_existing'] = 'Keep Existing Smiley'; -$lang['smiley_import_inst'] = 'You should unzip the smiley package and upload all files to the appropriate Smiley directory for your installation. Then select the correct information in this form to import the smiley pack.'; -$lang['smiley_import'] = 'Smiley Pack Import'; -$lang['choose_smile_pak'] = 'Choose a Smile Pack .pak file'; -$lang['import'] = 'Import Smileys'; -$lang['smile_conflicts'] = 'What should be done in case of conflicts'; -$lang['del_existing_smileys'] = 'Delete existing smileys before import'; -$lang['import_smile_pack'] = 'Import Smiley Pack'; -$lang['export_smile_pack'] = 'Create Smiley Pack'; -$lang['export_smiles'] = 'To create a smiley pack from your currently installed smileys, click %sHere%s to download the smiles.pak file. Name this file appropriately making sure to keep the .pak file extension. Then create a zip file containing all of your smiley images plus this .pak configuration file.'; - -$lang['smiley_add_success'] = 'The Smiley was successfully added'; -$lang['smiley_edit_success'] = 'The Smiley was successfully updated'; -$lang['smiley_import_success'] = 'The Smiley Pack was imported successfully!'; -$lang['smiley_del_success'] = 'The Smiley was successfully removed'; -$lang['Click_return_smileadmin'] = 'Click %sHere%s to return to Smiley Administration'; +$lang['Smile_deleted'] = 'This smile has been successfully removed'; +$lang['Smile_edited'] = 'This smile has been successfully updated'; +$lang['Smile_added'] = 'This smile has been successfully added'; +$lang['Smilies_imported'] = 'The smilies pack has been successfully imported'; + +$lang['Click_return_smileadmin'] = 'Click %sHere%s to return to Smilies Administration'; // diff --git a/phpBB/templates/subSilver/admin/smile_edit_body.tpl b/phpBB/templates/subSilver/admin/smile_edit_body.tpl deleted file mode 100644 index 087f623862..0000000000 --- a/phpBB/templates/subSilver/admin/smile_edit_body.tpl +++ /dev/null @@ -1,34 +0,0 @@ - -

{L_SMILEY_TITLE}

- -

{L_SMILEY_EXPLAIN}

- - - -
- - - - - - - - - - - - - - - - - - -
{L_SMILEY_CONFIG}
{L_SMILEY_CODE}
{L_SMILEY_URL}    
{L_SMILEY_EMOTION}
{S_HIDDEN_FIELDS}
diff --git a/phpBB/templates/subSilver/admin/smile_import_body.tpl b/phpBB/templates/subSilver/admin/smile_import_body.tpl deleted file mode 100644 index 9881cb1ca7..0000000000 --- a/phpBB/templates/subSilver/admin/smile_import_body.tpl +++ /dev/null @@ -1,24 +0,0 @@ - -

{L_SMILEY_TITLE}

- -

{L_SMILEY_EXPLAIN}

- -
- - - - - - - - - - - - - - - - - -
{L_SMILEY_IMPORT}
{L_SELECT_LBL}{S_SMILE_SELECT}
{L_DEL_EXISTING}
{L_CONFLICTS}
{L_REPLACE_EXISTING}   {L_KEEP_EXISTING}
{S_HIDDEN_FIELDS}
diff --git a/phpBB/templates/subSilver/admin/smile_list_body.tpl b/phpBB/templates/subSilver/admin/smile_list_body.tpl deleted file mode 100644 index ae85ad95eb..0000000000 --- a/phpBB/templates/subSilver/admin/smile_list_body.tpl +++ /dev/null @@ -1,25 +0,0 @@ - -

{L_SMILEY_TITLE}

- -

{L_SMILEY_TEXT}

- -
- - - - - - - - - - - - - - - - - - -
{L_CODE}{L_SMILE}{L_EMOT}{L_ACTION}
{smiles.CODE}{smiles.CODE}{smiles.EMOT}{L_EDIT}{L_DELETE}
{S_HIDDEN_FIELDS}    
-- cgit v1.2.1