diff --git a/phpBB/adm/admin_groups.php b/phpBB/adm/admin_groups.php index 8d51b867e2..91dfe2f988 100644 --- a/phpBB/adm/admin_groups.php +++ b/phpBB/adm/admin_groups.php @@ -709,7 +709,7 @@ function swatch() - + (isset($image_display_on_posting[$image])) ? 1 : 0, ); - if ($mode == 'emoticons') + if ($mode == 'smilies') { $img_sql = array_merge($img_sql, array( - 'emoticon' => $image_emotion[$image], + 'smiley' => $image_emotion[$image], 'code' => $image_code[$image]) ); } @@ -403,7 +403,7 @@ switch ($action) switch ($mode) { - case 'emoticons': + case 'smilies': break; case 'icons': @@ -419,7 +419,7 @@ switch ($action) { $cur_img = array(); - $field_sql = ($mode == 'emoticons') ? 'code' : 'icons_url'; + $field_sql = ($mode == 'smilies') ? 'code' : 'icons_url'; $result = $db->sql_query("SELECT $field_sql FROM $table"); while ($row = $db->sql_fetchrow($result)) @@ -441,7 +441,7 @@ switch ($action) if (preg_match_all("#'(.*?)', #", $pak_entry, $data)) { if ((sizeof($data[1]) != 3 && $mode == 'icons') || - (sizeof($data[1]) != 5 && $mode == 'emoticons')) + (sizeof($data[1]) != 5 && $mode == 'smilies')) { trigger_error($user->lang['WRONG_PAK_TYPE']); } @@ -456,19 +456,19 @@ switch ($action) } if ($current == 'replace' && - (($mode == 'emoticons' && !empty($cur_img[$code])) || + (($mode == 'smilies' && !empty($cur_img[$code])) || ($mode == 'icons' && !empty($cur_img[$img])))) { - $replace_sql = ($mode == 'emoticons') ? $code : $img; + $replace_sql = ($mode == 'smilies') ? $code : $img; $sql = array( $fields . '_url' => $img, $fields . '_height' => (int) $height, $fields . '_width' => (int) $width, ); - if ($mode == 'emoticons') + if ($mode == 'smilies') { $sql = array_merge($sql, array( - 'emoticon' => $emotion + 'smiley' => $emotion )); } @@ -486,11 +486,11 @@ switch ($action) $fields . '_order' => (int) $order, ); - if ($mode == 'emoticons') + if ($mode == 'smilies') { $sql = array_merge($sql, array( 'code' => $code, - 'emoticon' => $emotion + 'smiley' => $emotion )); } $db->sql_query("INSERT INTO $table " . $db->sql_build_array('INSERT', $sql)); @@ -581,9 +581,9 @@ switch ($action) $pak .= "'" . addslashes($row[$fields . '_url']) . "', "; $pak .= "'" . addslashes($row[$fields . '_height']) . "', "; $pak .= "'" . addslashes($row[$fields . '_width']) . "', "; - if ($mode == 'emoticons') + if ($mode == 'smilies') { - $pak .= "'" . addslashes($row['emoticon']) . "', "; + $pak .= "'" . addslashes($row['smiley']) . "', "; $pak .= "'" . addslashes($row['code']) . "', "; } $pak .= "\n"; @@ -612,7 +612,7 @@ switch ($action) switch ($mode) { - case 'emoticons': + case 'smilies': break; case 'icons': @@ -704,7 +704,7 @@ switch ($action) lang[$lang]; ?> lang['CODE']; ?> @@ -730,23 +730,23 @@ switch ($action) $spacer = TRUE; ?> - lang[$lang . '_NOT_DISPLAYED'] ?> + lang[$lang . '_NOT_DISPLAYED'] ?> <?php echo $alt_text; ?> - + @@ -760,7 +760,7 @@ switch ($action) ?> -   +   diff --git a/phpBB/adm/admin_permissions.php b/phpBB/adm/admin_permissions.php index f78020ecb4..7ed3b4db96 100644 --- a/phpBB/adm/admin_permissions.php +++ b/phpBB/adm/admin_permissions.php @@ -295,7 +295,7 @@ switch ($submit) { $option_id_ary[] = $row['auth_option_id']; } - while($row = $db->sql_fetchrow($result)); + while ($row = $db->sql_fetchrow($result)); foreach ($ug_data as $id) { diff --git a/phpBB/adm/admin_profile.php b/phpBB/adm/admin_profile.php index 4c85cce6f6..482befc3b4 100644 --- a/phpBB/adm/admin_profile.php +++ b/phpBB/adm/admin_profile.php @@ -233,7 +233,7 @@ if ($mode == 'create' || $mode == 'edit') // Or we are creating a new dropdown list. $cp->vars['lang_options'] = explode("\n", $options); } - else if($mode == 'edit') + else if ($mode == 'edit') { $cp->vars['lang_options'] = $lang_options; $error[] = 'You are not allowed to remove or add options within already existing profile fields'; @@ -376,7 +376,7 @@ if ($mode == 'create' || $mode == 'edit') $error[] = $user->lang['EMPTY_FIELD_IDENT']; } - if(!preg_match('/^[a-z_]$/', $cp->vars['field_ident'])) + if (!preg_match('/^[a-z_]+$/', $cp->vars['field_ident'])) { $error[] = $user->lang['INVALID_CHARS_FIELD_IDENT']; } @@ -502,7 +502,7 @@ if ($mode == 'create' || $mode == 'edit') // Initialize these array elements if we are creating a new field if (!sizeof($cp->vars['lang_options'])) { - if($field_type == FIELD_BOOL) + if ($field_type == FIELD_BOOL) { // No options have been defined for a boolean field. $cp->vars['lang_options'][0] = ''; diff --git a/phpBB/adm/admin_styles.php b/phpBB/adm/admin_styles.php index 0730511646..2800aef021 100644 --- a/phpBB/adm/admin_styles.php +++ b/phpBB/adm/admin_styles.php @@ -2521,7 +2521,7 @@ function install_style($action, &$error, $name, $copyright, $active, $default, $ // and do the install if necessary if (!${$element . '_id'}) { - $error = install_element($element, $action, $root_path, ${$element . '_id'}, ${$element . '_name'}, ${$element . '_copyright'}); + $error = install_element($element, $error, $action, $root_path, ${$element . '_id'}, ${$element . '_name'}, ${$element . '_copyright'}); } } @@ -3051,7 +3051,8 @@ function install($type, $action, $id) lang[$l_type . '_NAME']; ?>: ' : '' . ${$type . '_name'} . ''; ?> diff --git a/phpBB/adm/admin_users.php b/phpBB/adm/admin_users.php index 1c2587c56e..eee887de42 100644 --- a/phpBB/adm/admin_users.php +++ b/phpBB/adm/admin_users.php @@ -1058,7 +1058,7 @@ function marklist(match, status) 'viewcensors' => false, 'bbcode' => true, 'html' => false, - 'smile' => true, + 'smilies' => true, 'attachsig' => true, ); @@ -1081,7 +1081,7 @@ function marklist(match, status) unset($data); // Set the popuppm option - $option_ary = array('popuppm', 'viewimg', 'viewflash', 'viewsmilies', 'viewsigs', 'viewavatars', 'viewcensors', 'bbcode', 'html', 'smile', 'attachsig'); + $option_ary = array('popuppm', 'viewimg', 'viewflash', 'viewsmilies', 'viewsigs', 'viewavatars', 'viewcensors', 'bbcode', 'html', 'smilies', 'attachsig'); foreach ($option_ary as $option) { @@ -1133,7 +1133,7 @@ function marklist(match, status) } unset($option_ary); - $option_ary = array('popuppm', 'viewimg', 'viewflash', 'viewsmilies', 'viewsigs', 'viewavatars', 'viewcensors', 'bbcode', 'html', 'smile', 'attachsig'); + $option_ary = array('popuppm', 'viewimg', 'viewflash', 'viewsmilies', 'viewsigs', 'viewavatars', 'viewcensors', 'bbcode', 'html', 'smilies', 'attachsig'); foreach ($option_ary as $option) { @@ -1210,8 +1210,8 @@ function marklist(match, status) />lang['YES']; ?>   />lang['NO']; ?> - lang['DEFAULT_SMILE']; ?>: - />lang['YES']; ?>   />lang['NO']; ?> + lang['DEFAULT_SMILIES']; ?>: + />lang['YES']; ?>   />lang['NO']; ?> lang['DEFAULT_ADD_SIG']; ?>: diff --git a/phpBB/adm/editor.js b/phpBB/adm/editor.js index a54a31db38..67cb031ed6 100644 --- a/phpBB/adm/editor.js +++ b/phpBB/adm/editor.js @@ -47,7 +47,7 @@ function arraypop(thearray) { return retval; } -function emoticon(text) { +function smiley(text) { text = ' ' + text + ' '; if (document.forms[form_name].elements[text_name].createTextRange && document.forms[form_name].elements[text_name].caretPos) { var caretPos = document.forms[form_name].elements[text_name].caretPos; diff --git a/phpBB/common.php b/phpBB/common.php index 41c31e75b1..9d2d8eb7bd 100644 --- a/phpBB/common.php +++ b/phpBB/common.php @@ -251,6 +251,9 @@ $db = new sql_db(); // Connect to DB $db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false); +// We do not need this any longer, unset for safety purposes +unset($dbpasswd); + // Grab global variables, re-cache if necessary if ($config = $cache->get('config')) { diff --git a/phpBB/download.php b/phpBB/download.php index 691bb9e0b0..bfe7c9fa04 100644 --- a/phpBB/download.php +++ b/phpBB/download.php @@ -130,16 +130,16 @@ else // Determine the 'presenting'-method if ($download_mode == PHYSICAL_LINK) { - if (!@is_dir($phpbb_root_path . $config['upload_dir'])) + if (!@is_dir($phpbb_root_path . $config['upload_path'])) { trigger_error($user->lang['PHYSICAL_DOWNLOAD_NOT_POSSIBLE']); } - redirect($phpbb_root_path . $config['upload_dir'] . '/' . $attachment['physical_filename']); + redirect($phpbb_root_path . $config['upload_path'] . '/' . $attachment['physical_filename']); } else { - send_file_to_browser($attachment, $config['upload_dir'], $extensions[$attachment['extension']]['display_cat']); + send_file_to_browser($attachment, $config['upload_path'], $extensions[$attachment['extension']]['display_cat']); exit; } diff --git a/phpBB/index.php b/phpBB/index.php index b307b44c4c..5c5913fe01 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -56,7 +56,8 @@ if ($config['load_birthdays']) $now = getdate(); $sql = 'SELECT user_id, username, user_colour, user_birthday FROM ' . USERS_TABLE . " - WHERE user_birthday LIKE '" . sprintf('%2d-%2d-', $now['mday'], $now['mon']) . "%'"; + WHERE user_birthday LIKE '" . sprintf('%2d-%2d-', $now['mday'], $now['mon']) . "%' + AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')'; $result = $db->sql_query($sql); while ($row = $db->sql_fetchrow($result)) diff --git a/phpBB/install/install.php b/phpBB/install/install.php index 9532474c96..deaa04fbcc 100644 --- a/phpBB/install/install.php +++ b/phpBB/install/install.php @@ -621,7 +621,7 @@ if ($stage == 1) // Generate list of available DB's $dbms_options = ''; - foreach($available_dbms as $dbms_name => $details) + foreach ($available_dbms as $dbms_name => $details) { $selected = ($dbms_name == $dbms) ? ' selected="selected"' : ''; $dbms_options .= ''; diff --git a/phpBB/install/schemas/firebird_schema.sql b/phpBB/install/schemas/firebird_schema.sql index edd5c53e32..de3a3eb35f 100644 --- a/phpBB/install/schemas/firebird_schema.sql +++ b/phpBB/install/schemas/firebird_schema.sql @@ -528,13 +528,13 @@ CREATE TABLE phpbb_sitelist ( # phpbb_smilies CREATE TABLE phpbb_smilies ( - smile_id INTEGER NOT NULL, + smiley_id INTEGER NOT NULL, code VARCHAR(10), - emoticon VARCHAR(50), - smile_url VARCHAR(50), - smile_width INTEGER DEFAULT 0 NOT NULL, - smile_height INTEGER DEFAULT 0 NOT NULL, - smile_order INTEGER DEFAULT 0 NOT NULL, + smiley VARCHAR(50), + smiley_url VARCHAR(50), + smiley_width INTEGER DEFAULT 0 NOT NULL, + smiley_height INTEGER DEFAULT 0 NOT NULL, + smiley_order INTEGER DEFAULT 0 NOT NULL, display_on_posting INTEGER DEFAULT 1 NOT NULL );; @@ -1275,7 +1275,7 @@ ADD PRIMARY KEY ( ALTER TABLE phpbb_smilies ADD PRIMARY KEY ( - smile_id + smiley_id );; ALTER TABLE phpbb_styles @@ -1530,9 +1530,9 @@ CREATE GENERATOR G_phpbb_sitelistsite_idGen24;; SET GENERATOR G_phpbb_sitelistsite_idGen24 TO 0;; -CREATE GENERATOR G_phpbb_smiliessmile_idGen25;; +CREATE GENERATOR G_phpbb_smiliessmiley_idGen25;; -SET GENERATOR G_phpbb_smiliessmile_idGen25 TO 0;; +SET GENERATOR G_phpbb_smiliessmiley_idGen25 TO 0;; CREATE GENERATOR G_phpbb_stylesstyle_idGen26;; @@ -1737,11 +1737,11 @@ BEGIN NEW.site_id = GEN_ID(G_phpbb_sitelistsite_idGen24, 1); END;; -CREATE TRIGGER NextG_phpbb_smiliessmile_idGen2 FOR phpbb_smilies +CREATE TRIGGER NextG_phpbb_smiliessmiley_idGen2 FOR phpbb_smilies BEFORE INSERT AS BEGIN - NEW.smile_id = GEN_ID(G_phpbb_smiliessmile_idGen25, 1); + NEW.smiley_id = GEN_ID(G_phpbb_smiliessmiley_idGen25, 1); END;; CREATE TRIGGER tNextG_phpbb_stylesstyle_idGen2 FOR phpbb_styles diff --git a/phpBB/install/schemas/mssql_schema.sql b/phpBB/install/schemas/mssql_schema.sql index 0af42cb739..851a85eac4 100644 --- a/phpBB/install/schemas/mssql_schema.sql +++ b/phpBB/install/schemas/mssql_schema.sql @@ -533,13 +533,13 @@ CREATE TABLE [phpbb_sitelist] ( GO CREATE TABLE [phpbb_smilies] ( - [smile_id] [int] IDENTITY (1, 1) NOT NULL , + [smiley_id] [int] IDENTITY (1, 1) NOT NULL , [code] [varchar] (10) NULL , - [emoticon] [varchar] (50) NULL , - [smile_url] [varchar] (50) NULL , - [smile_width] [int] NOT NULL , - [smile_height] [int] NOT NULL , - [smile_order] [int] NOT NULL , + [smiley] [varchar] (50) NULL , + [smiley_url] [varchar] (50) NULL , + [smiley_width] [int] NOT NULL , + [smiley_height] [int] NOT NULL , + [smiley_order] [int] NOT NULL , [display_on_posting] [int] NOT NULL ) ON [PRIMARY] GO @@ -1073,7 +1073,7 @@ GO ALTER TABLE [phpbb_smilies] WITH NOCHECK ADD CONSTRAINT [PK_phpbb_smilies] PRIMARY KEY CLUSTERED ( - [smile_id] + [smiley_id] ) ON [PRIMARY] GO @@ -1463,9 +1463,9 @@ ALTER TABLE [phpbb_sitelist] WITH NOCHECK ADD GO ALTER TABLE [phpbb_smilies] WITH NOCHECK ADD - CONSTRAINT [DF_smilie_smile_width] DEFAULT (0) FOR [smile_width], - CONSTRAINT [DF_smilie_smile_height] DEFAULT (0) FOR [smile_height], - CONSTRAINT [DF_smilie_smile_order] DEFAULT (0) FOR [smile_order], + CONSTRAINT [DF_smilie_smiley_width] DEFAULT (0) FOR [smiley_width], + CONSTRAINT [DF_smilie_smiley_height] DEFAULT (0) FOR [smiley_height], + CONSTRAINT [DF_smilie_smiley_order] DEFAULT (0) FOR [smiley_order], CONSTRAINT [DF_smilie_display_on_posting] DEFAULT (1) FOR [display_on_posting] GO diff --git a/phpBB/install/schemas/mysql_schema.sql b/phpBB/install/schemas/mysql_schema.sql index 84eb54444f..e92fc45c90 100644 --- a/phpBB/install/schemas/mysql_schema.sql +++ b/phpBB/install/schemas/mysql_schema.sql @@ -622,15 +622,15 @@ CREATE TABLE phpbb_sitelist ( # Table: 'phpbb_smilies' CREATE TABLE phpbb_smilies ( - smile_id tinyint(4) UNSIGNED NOT NULL auto_increment, + smiley_id tinyint(4) UNSIGNED NOT NULL auto_increment, code char(10), - emoticon char(50), - smile_url char(50), - smile_width tinyint(4) UNSIGNED NOT NULL, - smile_height tinyint(4) UNSIGNED NOT NULL, - smile_order tinyint(4) UNSIGNED NOT NULL, + smiley char(50), + smiley_url char(50), + smiley_width tinyint(4) UNSIGNED NOT NULL, + smiley_height tinyint(4) UNSIGNED NOT NULL, + smiley_order tinyint(4) UNSIGNED NOT NULL, display_on_posting tinyint(1) UNSIGNED DEFAULT '1' NOT NULL, - PRIMARY KEY (smile_id) + PRIMARY KEY (smiley_id) ); # Table: 'phpbb_styles' diff --git a/phpBB/install/schemas/postgres_schema.sql b/phpBB/install/schemas/postgres_schema.sql index 0de7a6421a..dc9e5dad9e 100644 --- a/phpBB/install/schemas/postgres_schema.sql +++ b/phpBB/install/schemas/postgres_schema.sql @@ -847,25 +847,25 @@ CREATE TABLE phpbb_sitelist ( SELECT SETVAL('phpbb_sitelist_site_id_seq',(select case when max(site_id)>0 then max(site_id)+1 else 1 end from phpbb_sitelist)); /* Table: phpbb_smilies */ -CREATE SEQUENCE phpbb_smilies_smile_id_seq; +CREATE SEQUENCE phpbb_smilies_smiley_id_seq; CREATE TABLE phpbb_smilies ( - smile_id INT2 DEFAULT nextval('phpbb_smilies_smile_id_seq'), + smiley_id INT2 DEFAULT nextval('phpbb_smilies_smiley_id_seq'), code char(10), - emoticon char(50), - smile_url char(50), - smile_width INT2 NOT NULL, - smile_height INT2 NOT NULL, - smile_order INT2 NOT NULL, + smiley char(50), + smiley_url char(50), + smiley_width INT2 NOT NULL, + smiley_height INT2 NOT NULL, + smiley_order INT2 NOT NULL, display_on_posting INT2 DEFAULT '1' NOT NULL, - PRIMARY KEY (smile_id), - CHECK (smile_width>=0), - CHECK (smile_height>=0), - CHECK (smile_order>=0), + PRIMARY KEY (smiley_id), + CHECK (smiley_width>=0), + CHECK (smiley_height>=0), + CHECK (smiley_order>=0), CHECK (display_on_posting>=0) ); -SELECT SETVAL('phpbb_smilies_smile_id_seq',(select case when max(smile_id)>0 then max(smile_id)+1 else 1 end from phpbb_smilies)); +SELECT SETVAL('phpbb_smilies_smiley_id_seq',(select case when max(smiley_id)>0 then max(smiley_id)+1 else 1 end from phpbb_smilies)); /* Table: phpbb_styles */ CREATE SEQUENCE phpbb_styles_style_id_seq; diff --git a/phpBB/install/schemas/schema_data.sql b/phpBB/install/schemas/schema_data.sql index 4d5c567e4e..c87d165e33 100644 --- a/phpBB/install/schemas/schema_data.sql +++ b/phpBB/install/schemas/schema_data.sql @@ -55,10 +55,11 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('topics_per_page',' INSERT INTO phpbb_config (config_name, config_value) VALUES ('hot_threshold','25'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('avatar_path','images/avatars/upload'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('avatar_gallery_path','images/avatars/gallery'); -INSERT INTO phpbb_config (config_name, config_value) VALUES ('smilies_path','images/smiles'); +INSERT INTO phpbb_config (config_name, config_value) VALUES ('smilies_path','images/smilies'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('icons_path','images/icons'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('upload_icons_path','images/upload_icons'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('ranks_path','images/ranks'); +INSERT INTO phpbb_config (config_name, config_value) VALUES ('upload_path', 'files'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('email_enable','1'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_privmsg','1'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('gzip_compress','0'); @@ -146,7 +147,6 @@ INSERT INTO phpbb_config (config_name, config_value) VALUES ('attachment_quota', INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_attachments', '3'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('max_attachments_pm', '1'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_pm_attach', '0'); -INSERT INTO phpbb_config (config_name, config_value) VALUES ('upload_dir', 'files'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('img_display_inlined','1'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('secure_downloads', '0'); INSERT INTO phpbb_config (config_name, config_value) VALUES ('secure_allow_deny', '1'); @@ -496,42 +496,42 @@ INSERT INTO phpbb_posts (post_id, topic_id, forum_id, poster_id, post_time, post # -- Smilies -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':D', 'icon_biggrin.gif', 'Very Happy', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':)', 'icon_smile.gif', 'Smile', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':(', 'icon_sad.gif', 'Sad', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':o', 'icon_surprised.gif', 'Surprised', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':eek:', 'icon_surprised.gif', 'Surprised', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES ('8O', 'icon_eek.gif', 'Shocked', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':?', 'icon_confused.gif', 'Confused', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES ('8)', 'icon_cool.gif', 'Cool', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':lol:', 'icon_lol.gif', 'Laughing', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':x', 'icon_mad.gif', 'Mad', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':P', 'icon_razz.gif', 'Razz', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':oops:', 'icon_redface.gif', 'Embarassed', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':cry:', 'icon_cry.gif', 'Crying or Very sad', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':evil:', 'icon_evil.gif', 'Evil or Very Mad', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':twisted:', 'icon_twisted.gif', 'Twisted Evil', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':roll:', 'icon_rolleyes.gif', 'Rolling Eyes', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (';)', 'icon_wink.gif', 'Wink', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':!:', 'icon_exclaim.gif', 'Exclamation', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':?:', 'icon_question.gif', 'Question', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':idea:', 'icon_idea.gif', 'Idea', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':arrow:', 'icon_arrow.gif', 'Arrow', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':|', 'icon_neutral.gif', 'Neutral', 15, 15); -INSERT INTO phpbb_smilies (code, smile_url, emoticon, smile_width, smile_height) VALUES (':mrgreen:', 'icon_mrgreen.gif', 'Mr. Green', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':D', 'icon_biggrin.gif', 'Very Happy', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':)', 'icon_smile.gif', 'Smile', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':(', 'icon_sad.gif', 'Sad', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':o', 'icon_surprised.gif', 'Surprised', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':eek:', 'icon_surprised.gif', 'Surprised', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES ('8O', 'icon_eek.gif', 'Shocked', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':?', 'icon_confused.gif', 'Confused', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES ('8)', 'icon_cool.gif', 'Cool', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':lol:', 'icon_lol.gif', 'Laughing', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':x', 'icon_mad.gif', 'Mad', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':P', 'icon_razz.gif', 'Razz', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':oops:', 'icon_redface.gif', 'Embarassed', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':cry:', 'icon_cry.gif', 'Crying or Very sad', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':evil:', 'icon_evil.gif', 'Evil or Very Mad', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':twisted:', 'icon_twisted.gif', 'Twisted Evil', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':roll:', 'icon_rolleyes.gif', 'Rolling Eyes', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (';)', 'icon_wink.gif', 'Wink', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':!:', 'icon_exclaim.gif', 'Exclamation', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':?:', 'icon_question.gif', 'Question', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':idea:', 'icon_idea.gif', 'Idea', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':arrow:', 'icon_arrow.gif', 'Arrow', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':|', 'icon_neutral.gif', 'Neutral', 15, 15); +INSERT INTO phpbb_smilies (code, smiley_url, smiley, smiley_width, smiley_height) VALUES (':mrgreen:', 'icon_mrgreen.gif', 'Mr. Green', 15, 15); # -- icons ... these are just some of those in CVS INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('misc/arrow_bold_rgt.gif', 19, 19, 1, 1); -INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/redface_anim.gif', 19, 19, 9, 1); -INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/mr_green.gif', 19, 19, 10, 1); +INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smilies/redface_anim.gif', 19, 19, 9, 1); +INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smilies/mr_green.gif', 19, 19, 10, 1); INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('misc/musical.gif', 19, 19, 4, 1); INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('misc/asterix.gif', 19, 19, 2, 1); INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('misc/square.gif', 19, 19, 3, 1); -INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/alien_grn.gif', 19, 19, 5, 1); -INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/idea.gif', 19, 19, 8, 1); -INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/question.gif', 19, 19, 6, 1); -INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smile/exclaim.gif', 19, 19, 7, 1); +INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smilies/alien_grn.gif', 19, 19, 5, 1); +INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smilies/idea.gif', 19, 19, 8, 1); +INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smilies/question.gif', 19, 19, 6, 1); +INSERT INTO phpbb_icons (icons_url, icons_width, icons_height, icons_order, display_on_posting) VALUES ('smilies/exclaim.gif', 19, 19, 7, 1); # MSSQL IDENTITY phpbb_search_wordlist ON # diff --git a/phpBB/language/en/admin.php b/phpBB/language/en/admin.php index e8658a4e65..11d0676c97 100644 --- a/phpBB/language/en/admin.php +++ b/phpBB/language/en/admin.php @@ -91,7 +91,7 @@ $lang += array( 'GROUP_PERMS' => 'Group permissions', 'POST_CAT' => 'Posting', - 'SMILE' => 'Smilies', + 'SMILIES' => 'Smilies', 'ICONS' => 'Icons', 'WORD_CENSOR' => 'Word Censors', @@ -439,7 +439,7 @@ $lang += array( 'acl_a_cookies' => 'Can alter cookie settings', 'acl_a_names' => 'Can alter disallowed names', 'acl_a_words' => 'Can alter word censors', - 'acl_a_icons' => 'Can alter topic icons and emoticons', + 'acl_a_icons' => 'Can alter topic icons and smilies', 'acl_a_search' => 'Can re-index search tables', 'acl_a_prune' => 'Can prune forums', 'acl_a_bbcode' => 'Can define BBCode tags', @@ -704,7 +704,7 @@ $lang += array( 'BROWSER_VALID_EXPLAIN' => 'Enables browser validation for each session inproving security.', 'ENABLE_GZIP' => 'Enable GZip Compression', 'SMILIES_PATH' => 'Smilies storage path', - 'SMILIES_PATH_EXPLAIN' => 'Path under your phpBB root dir, e.g. images/smiles', + 'SMILIES_PATH_EXPLAIN' => 'Path under your phpBB root dir, e.g. images/smilies', 'ICONS_PATH' => 'Post icons storage path', 'ICONS_PATH_EXPLAIN' => 'Path under your phpBB root dir, e.g. images/icons', 'UPLOAD_ICONS_PATH' => 'Extension group icons storage path', @@ -1028,60 +1028,71 @@ $lang += array( // Smiley and topic icons $lang += array( 'ICONS_EXPLAIN' => 'From this page you can add, remove and edit the icons users may add to their topics or posts. These icons are generally displayed next to topic titles on the forum listing, or the post subjects in topic listings. You can also install and create new packages of icons.', - 'SMILE_EXPLAIN' => 'Smilies or emoticons are typically small, sometimes animated images used to convey an emotion or feeling. From this page you can add, remove and edit the emoticons users can use in their posts and private messages. You can also install and create new packages of smilies.', - 'IMPORT_SMILE' => 'Install smilies pak', - 'EXPORT_SMILE' => 'Create smilies pak', + 'SMILIES_EXPLAIN' => 'Smilies or emoticons are typically small, sometimes animated images used to convey an emotion or feeling. From this page you can add, remove and edit the emoticons users can use in their posts and private messages. You can also install and create new packages of smilies.', + 'IMPORT_SMILIES' => 'Install smilies pak', + 'EXPORT_SMILIES' => 'Create smilies pak', 'IMPORT_ICONS' => 'Install icons pak', 'EXPORT_ICONS' => 'Create icons pak', - 'MASS_ADD_SMILE'=> 'Add multiple smilies', - 'ADD_SMILE' => 'Add single smilie', + 'MASS_ADD_SMILIES'=> 'Add multiple smilies', + 'ADD_SMILIES' => 'Add single smiley', 'ADD_ICONS' => 'Add single icon', 'ADD_ICONS' => 'Add multiple icons', - 'EDIT_SMILE' => 'Edit smilies', + 'EDIT_SMILIES' => 'Edit smilies', 'EDIT_ICONS' => 'Edit Icons', - 'SMILE_NOT_DISPLAYED' => 'The following smilies are not displayed on the posting page', + 'SMILIES_NOT_DISPLAYED' => 'The following smilies are not displayed on the posting page', 'ICONS_NOT_DISPLAYED' => 'The following icons are not displayed on the posting page', + 'CODE' => 'Code', 'EMOTION' => 'Emotion', 'REORDER' => 'Reorder', 'DISPLAY' => 'Display', 'DIMENSIONS' => 'Dimensions', 'FIRST' => 'First', - 'AFTER_SMILE' => 'After %s', + 'AFTER_SMILIES' => 'After %s', 'AFTER_ICONS' => 'After %s', - 'SMILE_CONFIG' => 'Smilie configuration', - 'SMILE_IMAGE' => 'Smilie image', - 'SMILE_CODE' => 'Smilie code', - 'SMILE_URL' => 'Smilie image file', - 'SMILE_ORDER' => 'Smilie order', - 'SMILE_EMOTION' => 'Emotion', - 'SMILE_ADD' => 'Add a new Smilie', - 'SMILE_EDIT' => 'Edit Smilie', - 'SMILE_LOCATION'=> 'Smilie location', - 'ICONS_CONFIG' => 'Icon configuration', - 'ICONS_IMAGE' => 'Icon image', - 'ICONS_ORDER' => 'Icon order', - 'ICONS_LOCATION'=> 'Icon location', - 'ICONS_ADD' => 'Add a new Icon', - 'ICONS_EDIT' => 'Edit Icon', - 'EXPORT_SMILE_EXPLAIN' => 'To create a package of your currently installed smilies, click %sHERE%s to download the emoticons.pak file. Once downloaded create a zip or tgz file containing all of your smilies plus this .pak configuration file.', + + 'SMILIES_CONFIG' => 'Smiley configuration', + 'SMILIES_IMAGE' => 'Smiley image', + 'SMILIES_CODE' => 'Smiley code', + 'SMILIES_URL' => 'Smiley image file', + 'SMILIES_ORDER' => 'Smiley order', + 'SMILIES_EMOTION' => 'Emotion', + 'SMILIES_ADD' => 'Add a new Smiley', + 'SMILIES_EDIT' => 'Edit Smiley', + 'SMILIES_LOCATION' => 'Smiley location', + 'SMILIES_WIDTH' => 'Smiley width', + 'SMILIES_HEIGHT' => 'Smiley height', + + 'ICONS_CONFIG' => 'Icon configuration', + 'ICONS_IMAGE' => 'Icon image', + 'ICONS_LOCATION' => 'Icon location', + 'ICONS_URL' => 'Icon image file', + 'ICONS_ORDER' => 'Icon order', + 'ICONS_ADD' => 'Add a new Icon', + 'ICONS_EDIT' => 'Edit Icon', + 'ICONS_WIDTH' => 'Icon width', + 'ICONS_HEIGHT' => 'Icon height', + + 'EXPORT_SMILIES_EXPLAIN' => 'To create a package of your currently installed smilies, click %sHERE%s to download the smilies.pak file. Once downloaded create a zip or tgz file containing all of your smilies plus this .pak configuration file.', 'EXPORT_ICONS_EXPLAIN' => 'To create a package of your currently installed icons, click %sHERE%s to download the icons package file. Once downloaded create a zip or tgz file containing all of your icons plus this .pak configuration file.', - 'NO_SMILE_EXPORT' => 'You have no smilies with which to create a package.', + 'NO_SMILIES_EXPORT' => 'You have no smilies with which to create a package.', 'NO_ICONS_EXPORT' => 'You have no icons with which to create a package.', 'WRONG_PAK_TYPE' => 'The specified package does not contain the appropriate data.', 'SELECT_PACKAGE' => 'Select a package file', 'DELETE_ALL' => 'Delete all', 'KEEP_ALL' => 'Keep all', 'REPLACE_MATCHES' => 'Replace matches', - 'NO_SMILE_PAK' => 'No smilie packages found.', - 'CURRENT_SMILE' => 'Current smilies', - 'SMILE_IMPORT_SUCCESS' => 'The smilies pack was imported successfully', + 'NO_SMILIES_PAK' => 'No smiley packages found.', + 'CURRENT_SMILIES' => 'Current smilies', + 'SMILIES_IMPORT_SUCCESS' => 'The smilies pack was imported successfully', 'NO_ICONS_PAK' => 'No icon packages found.', 'CURRENT_ICONS' => 'Current icons', + 'DISPLAY_ON_POSTING' => 'Display on posting', + 'ICONS_IMPORT_SUCCESS' => 'The icons pack was imported successfully', - 'SMILE_DELETED' => 'The smilie has been removed successfully.', - 'SMILE_EDITED' => 'The smilie has been updated successfully.', - 'SMILE_ADDED' => 'The smilie has been added successfully.', - 'SMILE_IMPORTED' => 'The smilies pack has been installed successfully.', + 'SMILIES_DELETED' => 'The smiley has been removed successfully.', + 'SMILIES_EDITED' => 'The smiley has been updated successfully.', + 'SMILIES_ADDED' => 'The smiley has been added successfully.', + 'SMILIES_IMPORTED' => 'The smilies pack has been installed successfully.', 'ICONS_DELETED' => 'The icon has been removed successfully.', 'ICONS_EDITED' => 'The icon has been updated successfully.', 'ICONS_ADDED' => 'The icon has been added successfully.', diff --git a/phpBB/language/en/common.php b/phpBB/language/en/common.php index 8d5b8777f1..5fdaf1f94e 100644 --- a/phpBB/language/en/common.php +++ b/phpBB/language/en/common.php @@ -58,10 +58,15 @@ $lang += array( 'ASCENDING' => 'Ascending', 'ATTACHMENTS' => 'Attachments', 'AUTHOR' => 'Author', + 'AVATAR_DISALLOWED_EXTENSION' => 'The Extension %s is not allowed', + 'AVATAR_EMPTY_REMOTE_DATA' => 'Avatar could not be uploaded, please try uploading the file manually.', + 'AVATAR_INVALID_FILENAME' => '%s is an invalid filename', 'AVATAR_NOT_UPLOADED' => 'Avatar could not be uploaded.', 'AVATAR_NO_SIZE' => 'Could not obtain width or height of linked avatar, please enter them manually.', + 'AVATAR_PHP_SIZE_NA' => 'The avatar is too huge in filesize.
Could not determine the maximum size defined by PHP in php.ini.', + 'AVATAR_PHP_SIZE_OVERRUN' => 'The avatar is too huge in filesize, maximum upload size is %d MB.
Please note this is set in php.ini and cannot be overriden.', 'AVATAR_URL_INVALID' => 'The URL you specified is invalid.', - 'AVATAR_WRONG_FILESIZE' => 'The avatar must be between 0 and %d bytes.', + 'AVATAR_WRONG_FILESIZE' => 'The avatar must be between 0 and %1d %2s.', 'AVATAR_WRONG_SIZE' => 'The avatar must be at least %1$d pixels wide, %2$d pixels high and at most %3$d pixels wide and %4$d pixels high.', 'BACK_TO_TOP' => 'Top', diff --git a/phpBB/language/en/posting.php b/phpBB/language/en/posting.php index cd0406945d..4da1335136 100644 --- a/phpBB/language/en/posting.php +++ b/phpBB/language/en/posting.php @@ -34,9 +34,6 @@ $lang += array( 'ADD_POLL' => 'Add Poll', 'ADD_POLL_EXPLAIN' => 'If you do not want to add a poll to your topic leave the fields blank', 'ALREADY_DELETED' => 'Sorry but this message is already deleted.', - 'ATTACHMENT_PHP_SIZE_NA' => 'The attachment is too big.
Could not get determine the maximum size defined by PHP in php.ini.', - 'ATTACHMENT_PHP_SIZE_OVERRUN' => 'The attachment is too big, maximum upload size is %d MB.
Please note this is set in php.ini and cannot be overriden.', - 'ATTACHMENT_TOO_BIG' => 'The attachment is too big, maximum allowed size is %1d %2s', 'ATTACH_QUOTA_REACHED' => 'Sorry, the board attachment quota has been reached.', 'ATTACH_SIG' => 'Attach a signature (signatures can be altered via the UCP)', @@ -87,9 +84,9 @@ $lang += array( 'EDIT_POST' => 'Edit Post', 'EDIT_REASON' => 'Reason for editing this post', - 'EMOTICONS' => 'Emoticons', + 'SMILIES' => 'Smilies', 'EMPTY_MESSAGE' => 'You must enter a message when posting.', - 'ERROR_IMAGESIZE' => 'The Image you tried to attach is too big, maximum allowed dimensions are %1d px X %2d px.', + 'EMPTY_REMOTE_DATA' => 'File could not be uploaded, please try uploading the file manually.', 'FLASH_IS_OFF' => '[flash] is OFF', 'FLASH_IS_ON' => '[flash] is ON', @@ -119,14 +116,17 @@ $lang += array( 'MESSAGE_BODY_EXPLAIN' => 'Enter your message here, it may contain no more than %d characters.', 'MESSAGE_DELETED' => 'Your message has been deleted successfully', - 'MORE_EMOTICONS' => 'View more Emoticons', + 'MORE_SMILIES' => 'View more smilies', 'NOTIFY_REPLY' => 'Send me an email when a reply is posted', + 'NOT_UPLOADED' => 'File could not be uploaded.', 'NO_DELETE_POLL_OPTIONS' => 'You cannot delete existing poll options', 'NO_POLL_TITLE' => 'You have to enter a poll title', 'NO_POST' => 'The requested post does not exist.', 'NO_POST_MODE' => 'No post mode specified', + 'PHP_SIZE_NA' => 'The attachment is too big.
Could not determine the maximum size defined by PHP in php.ini.', + 'PHP_SIZE_OVERRUN' => 'The attachment is too big, maximum upload size is %d MB.
Please note this is set in php.ini and cannot be overriden.', 'PLACE_INLINE' => 'Place Inline', 'POLL_DELETE' => 'Delete Poll', 'POLL_FOR' => 'Run poll for', @@ -169,7 +169,7 @@ $lang += array( 'TOO_MANY_ATTACHMENTS' => 'Cannot add another attachment, %d is the maxmimum.', 'TOO_MANY_CHARS' => 'Your message contains too many characters.', 'TOO_MANY_POLL_OPTIONS' => 'You have tried to enter too many poll options', - 'TOO_MANY_SMILIES' => 'Your message contains too many emoticons. A maximum of %d emoticons are allowed.', + 'TOO_MANY_SMILIES' => 'Your message contains too many smilies. A maximum of %d smilies are allowed.', 'TOO_MANY_URLS' => 'Your message contains too many urls. A maximum of %d urls are allowed.', 'TOO_MANY_USER_OPTIONS' => 'You cannot specify more Options per User than existing poll options', 'TOPIC_BUMPED' => 'Topic has been bumped successfully', @@ -177,6 +177,7 @@ $lang += array( 'UNAUTHORISED_BBCODE' => 'You cannot use certain bbcodes: ', 'UPDATE_COMMENT' => 'Update comment', + 'URL_INVALID' => 'The URL you specified is invalid.', 'USER_CANNOT_BUMP' => 'You cannot bump topics in this forum', 'USER_CANNOT_DELETE' => 'You cannot delete posts in this forum', 'USER_CANNOT_EDIT' => 'You cannot edit posts in this forum', @@ -184,6 +185,9 @@ $lang += array( 'USER_CANNOT_REPLY' => 'You cannot reply in this forum', 'VIEW_MESSAGE' => 'Click %sHere%s to view your message', + + 'WRONG_FILESIZE' => 'The file is too big, maximum allowed size is %1d %2s', + 'WRONG_SIZE' => 'The image must be at least %1$d pixels wide, %2$d pixels high and at most %3$d pixels wide and %4$d pixels high.', ); ?> \ No newline at end of file diff --git a/phpBB/language/en/ucp.php b/phpBB/language/en/ucp.php index ffd5d7719c..0e2cee3c7f 100644 --- a/phpBB/language/en/ucp.php +++ b/phpBB/language/en/ucp.php @@ -99,7 +99,7 @@ $lang += array( 'DEFAULT_BBCODE' => 'Enable BBCode by default', 'DEFAULT_HTML' => 'Enable HTML by default', 'DEFAULT_NOTIFY' => 'Notify me upon replies by default', - 'DEFAULT_SMILE' => 'Enable smilies by default', + 'DEFAULT_SMILIES' => 'Enable smilies by default', 'DEFINED_RULES' => 'Defined Rules', 'DELETE_ALL' => 'Delete all', 'DELETE_ATTACHMENT' => 'Delete Attachment', @@ -320,29 +320,35 @@ $lang += array( 'UCP_EMAIL_ACTIVATE' => 'Please note that you will need to enter a valid email address before your account is activated. You will recieve an email at the address you provide that contains an account activation link.', 'UCP_ICQ' => 'ICQ Number', 'UCP_JABBER' => 'Jabber Address', + 'UCP_MAIN' => 'Overview', - 'UCP_BOOKMARKS' => 'Bookmarks', - 'UCP_DRAFTS' => 'Saved drafts', - 'UCP_FRONT' => 'Front page', - 'UCP_SUBSCRIBED' => 'Subscribed', + 'UCP_MAIN_BOOKMARKS' => 'Bookmarks', + 'UCP_MAIN_DRAFTS' => 'Saved drafts', + 'UCP_MAIN_FRONT' => 'Front page', + 'UCP_MAIN_SUBSCRIBED' => 'Subscribed', + 'UCP_MSNM' => 'MSN Messenger', 'UCP_NO_ATTACHMENTS' => 'You have posted no files', + 'UCP_PREFS' => 'Preferences', - 'UCP_PERSONAL' => 'Personal Settings', - 'UCP_POST' => 'Posting Messages', - 'UCP_VIEW' => 'Viewing Posts', + 'UCP_PREFS_PERSONAL' => 'Personal Settings', + 'UCP_PREFS_POST' => 'Posting Messages', + 'UCP_PREFS_VIEW' => 'Viewing Posts', + 'UCP_PM' => 'Private Messages', 'UCP_PM_COMPOSE' => 'Compose Message', 'UCP_PM_DRAFTS' => 'PM Drafts', 'UCP_PM_OPTIONS' => 'Options', 'UCP_PM_UNREAD' => 'Unread Messages', 'UCP_PM_VIEW_MESSAGES' => 'View Messages', + 'UCP_PROFILE' => 'Profile', - 'UCP_AVATAR' => 'Your avatar', - 'UCP_PROFILE_INFO' => 'Your Profile', - 'UCP_REG_DETAILS' => 'Registration details', - 'UCP_REGISTER_DISABLE' => 'Creating a new account is currently not possible.', - 'UCP_SIGNATURE' => 'Your signature', + 'UCP_PROFILE_AVATAR' => 'Your avatar', + 'UCP_PROFILE_PROFILE_INFO' => 'Your Profile', + 'UCP_PROFILE_REG_DETAILS' => 'Registration details', + 'UCP_PROFILE_SIGNATURE' => 'Your signature', + + 'UCP_REGISTER_DISABLE' => 'Creating a new account is currently not possible.', 'UCP_REMIND' => 'Send password', 'UCP_WATCHED' => 'Watched items', 'UCP_WELCOME' => 'Welcome to the User Control Panel. From here you can monitor, view and update your profile, preferences, subscribed forums and topics. You can also send messages to other users (if permitted). Please ensure you read any announcements before continuing.', diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index c9a5b3fb3d..3e0cffa1b8 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -135,7 +135,8 @@ switch ($mode) // Grab relevant data $sql = "SELECT user_id, username, user_email, user_lang, $sql_field FROM " . USERS_TABLE . " - WHERE user_id = $user_id"; + WHERE user_id = $user_id + AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')'; $result = $db->sql_query($sql); if (!($row = $db->sql_fetchrow($result))) @@ -227,9 +228,10 @@ switch ($mode) } // We left join on the session table to see if the user is currently online - $sql = 'SELECT username, user_id, user_colour, user_permissions, user_sig, user_sig_bbcode_uid, user_sig_bbcode_bitfield, user_allow_viewemail, user_posts, user_regdate, user_rank, user_from, user_occ, user_interests, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_avatar, user_avatar_width, user_avatar_height, user_avatar_type, user_lastvisit + $sql = 'SELECT username, user_id, user_type, user_colour, user_permissions, user_sig, user_sig_bbcode_uid, user_sig_bbcode_bitfield, user_allow_viewemail, user_posts, user_regdate, user_rank, user_from, user_occ, user_interests, user_website, user_email, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_avatar, user_avatar_width, user_avatar_height, user_avatar_type, user_lastvisit FROM ' . USERS_TABLE . " - WHERE user_id = $user_id"; + WHERE user_id = $user_id + AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')'; $result = $db->sql_query($sql); if (!($member = $db->sql_fetchrow($result))) @@ -358,7 +360,7 @@ switch ($mode) if ($member['user_sig']) { - $member['user_sig'] = censor_text(smilie_text($member['user_sig'])); + $member['user_sig'] = censor_text(smiley_text($member['user_sig'])); } $poster_avatar = ''; @@ -818,7 +820,7 @@ switch ($mode) { $sql = 'SELECT COUNT(u.user_id) AS total_users FROM ' . USERS_TABLE . " u$sql_from - WHERE u.user_type <> " . USER_IGNORE . " + WHERE u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ") $sql_where"; $result = $db->sql_query($sql); diff --git a/phpBB/posting.php b/phpBB/posting.php index 3933cc22a5..fe2f977630 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -238,7 +238,7 @@ if ($sql) if (!in_array($mode, array('quote', 'edit', 'delete'))) { $enable_sig = ($config['allow_sig'] && $user->optionget('attachsig')); - $enable_smilies = ($config['allow_smilies'] && $user->optionget('smile')); + $enable_smilies = ($config['allow_smilies'] && $user->optionget('smilies')); $enable_bbcode = ($config['allow_bbcode'] && $user->optionget('bbcode')); $enable_urls = true; } @@ -437,11 +437,9 @@ else if ($mode == 'bump') // Save Draft if ($save && $user->data['user_id'] != ANONYMOUS && $auth->acl_get('u_savedrafts')) { - $subject = preg_replace('#&(\#[0-9]+;)#', '&\1', request_var('subject', '')); + $subject = request_var('subject', '', true); $subject = (!$subject && $mode != 'post') ? $topic_title : $subject; - $message = (isset($_POST['message'])) ? htmlspecialchars(trim(str_replace(array('\\\'', '\\"', '\\0', '\\\\'), array('\'', '"', '\0', '\\'), $_POST['message']))) : ''; - $message = preg_replace('#&(\#[0-9]+;)#', '&\1', $message); -// $message = request_var('message', '', true, true); + $message = request_var('message', '', true); if ($subject && $message) { @@ -500,15 +498,14 @@ if ($load && $drafts) if ($submit || $preview || $refresh) { $topic_cur_post_id = request_var('topic_cur_post_id', 0); - $subject = preg_replace('#&(\#[0-9]+;)#', '&\1', request_var('subject', '')); + $subject = request_var('subject', '', true); if (strcmp($subject, strtoupper($subject)) == 0 && $subject) { $subject = strtolower($subject); } - $message_parser->message = (isset($_POST['message'])) ? htmlspecialchars(str_replace(array('\\\'', '\\"', '\\0', '\\\\'), array('\'', '"', '\0', '\\'), $_POST['message'])) : ''; - $message_parser->message = preg_replace('#&(\#[0-9]+;)#', '&\1', $message_parser->message); + $message_parser->message = request_var('message', '', true); $username = (isset($_POST['username'])) ? request_var('username', '') : $username; $post_edit_reason = (isset($_POST['edit_reason']) && !empty($_POST['edit_reason']) && $mode == 'edit' && $user->data['user_id'] != $poster_id) ? request_var('edit_reason', '') : ''; @@ -601,7 +598,7 @@ if ($submit || $preview || $refresh) } // Parse Attachments - before checksum is calculated - $message_parser->parse_attachments($mode, $post_id, $submit, $preview, $refresh); + $message_parser->parse_attachments('fileupload', $mode, $forum_id, $submit, $preview, $refresh); // Grab md5 'checksum' of new message $message_md5 = md5($message_parser->message); @@ -983,7 +980,7 @@ unset($message_parser); // Forum moderators? get_moderators($moderators, $forum_id); -// Generate smilie listing +// Generate smiley listing generate_smilies('inline', $forum_id); // Generate inline attachment select box @@ -1006,7 +1003,7 @@ if ($enable_icons) $html_checked = (isset($enable_html)) ? !$enable_html : (($config['allow_html']) ? !$user->optionget('html') : 1); $bbcode_checked = (isset($enable_bbcode)) ? !$enable_bbcode : (($config['allow_bbcode']) ? !$user->optionget('bbcode') : 1); -$smilies_checked = (isset($enable_smilies)) ? !$enable_smilies : (($config['allow_smilies']) ? !$user->optionget('smile') : 1); +$smilies_checked = (isset($enable_smilies)) ? !$enable_smilies : (($config['allow_smilies']) ? !$user->optionget('smilies') : 1); $urls_checked = (isset($enable_urls)) ? !$enable_urls : 0; $sig_checked = $enable_sig; $notify_checked = (isset($notify)) ? $notify : ((!$notify_set) ? (($user->data['user_id'] != ANONYMOUS) ? $user->data['user_notify'] : 0) : 1); @@ -1364,7 +1361,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u 'post_text' => $data['message'], 'post_checksum' => $data['message_md5'], 'post_encoding' => $user->lang['ENCODING'], - 'post_attachment' => (isset($data['filename_data']['physical_filename']) && sizeof($data['filename_data']['physical_filename'])) ? 1 : 0, // sizeof($data['filename_data']['physical_filename']) + 'post_attachment' => (isset($data['filename_data']) && sizeof($data['filename_data'])) ? 1 : 0, // sizeof($data['filename_data']['physical_filename']) 'bbcode_bitfield' => $data['bbcode_bitfield'], 'bbcode_uid' => $data['bbcode_uid'], 'post_edit_locked' => $data['post_edit_locked'] @@ -1416,7 +1413,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u 'post_edit_user' => (int) $data['post_edit_user'], 'post_checksum' => $data['message_md5'], 'post_encoding' => $user->lang['ENCODING'], - 'post_attachment' => (isset($data['filename_data']['physical_filename']) && sizeof($data['filename_data']['physical_filename'])) ? 1 : 0, + 'post_attachment' => (isset($data['filename_data']) && sizeof($data['filename_data'])) ? 1 : 0, 'bbcode_bitfield' => $data['bbcode_bitfield'], 'bbcode_uid' => $data['bbcode_uid'], 'post_edit_locked' => $data['post_edit_locked']) @@ -1444,7 +1441,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u 'topic_first_poster_name' => ($user->data['user_id'] == ANONYMOUS && $username) ? stripslashes($username) : $user->data['username'], 'topic_type' => $topic_type, 'topic_time_limit' => ($topic_type == POST_STICKY || $topic_type == POST_ANNOUNCE) ? ($data['topic_time_limit'] * 86400) : 0, - 'topic_attachment' => (isset($data['filename_data']['physical_filename']) && sizeof($data['filename_data']['physical_filename'])) ? 1 : 0 + 'topic_attachment' => (isset($data['filename_data']) && sizeof($data['filename_data'])) ? 1 : 0 ); if (isset($poll['poll_options']) && !empty($poll['poll_options'])) @@ -1497,7 +1494,7 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u 'poll_length' => ($poll['poll_options']) ? ($poll['poll_length'] * 86400) : 0, 'poll_vote_change' => $poll['poll_vote_change'], - 'topic_attachment' => ($post_mode == 'edit_topic') ? ((isset($data['filename_data']['physical_filename']) && sizeof($data['filename_data']['physical_filename'])) ? 1 : 0) : $data['topic_attachment'] + 'topic_attachment' => ($post_mode == 'edit_topic') ? ((isset($data['filename_data']) && sizeof($data['filename_data'])) ? 1 : 0) : $data['topic_attachment'] ); break; } @@ -1674,6 +1671,11 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u else { // insert attachment into db + if (!@file_exists($phpbb_root_path . $config['upload_path'] . '/' . basename($attach_row['physical_filename']))) + { + continue; + } + $attach_sql = array( 'post_msg_id' => $data['post_id'], 'topic_id' => $data['topic_id'], diff --git a/phpBB/search.php b/phpBB/search.php index ac3226372c..91877d98cd 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -139,7 +139,8 @@ if ($search_keywords || $search_author || $search_id) $sql_where = (strstr($search_author, '*') !== false) ? ' LIKE ' : ' = '; $sql = 'SELECT user_id FROM ' . USERS_TABLE . " - WHERE username $sql_where '" . $db->sql_escape(preg_replace('#\*+#', '%', $search_author)) . "'"; + WHERE username $sql_where '" . $db->sql_escape(preg_replace('#\*+#', '%', $search_author)) . "' + AND user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')'; $result = $db->sql_query($sql); if (!$row = $db->sql_fetchrow($result)) @@ -758,7 +759,7 @@ if ($search_keywords || $search_author || $search_id) // via php.net's annotated manual $row['post_text'] = str_replace('\"', '"', substr(preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "preg_replace('#\b(" . $hilit . ")\b#i', '\\\\1', '\\0')", '>' . $row['post_text'] . '<'), 1, -1)); - $row['post_text'] = smilie_text($row['post_text']); + $row['post_text'] = smiley_text($row['post_text']); $tpl_ary = array( 'POSTER_NAME' => ($row['poster_id'] == ANONYMOUS) ? ((!empty($row['post_username'])) ? $row['post_username'] : $user->lang['GUEST']) : $row['username'], diff --git a/phpBB/styles/subSilver/template/bbcode.html b/phpBB/styles/subSilver/template/bbcode.html index 914d685b79..2a4da372dd 100644 --- a/phpBB/styles/subSilver/template/bbcode.html +++ b/phpBB/styles/subSilver/template/bbcode.html @@ -65,4 +65,13 @@ {DESCRIPTION} - \ No newline at end of file + + + + + + + + + + diff --git a/phpBB/styles/subSilver/template/editor.js b/phpBB/styles/subSilver/template/editor.js index b2279c6d02..c9809bb7ed 100644 --- a/phpBB/styles/subSilver/template/editor.js +++ b/phpBB/styles/subSilver/template/editor.js @@ -47,7 +47,7 @@ function arraypop(thearray) { return retval; } -function emoticon(text) { +function smiley(text) { text = ' ' + text + ' '; if (document.forms[form_name].elements[text_name].createTextRange && document.forms[form_name].elements[text_name].caretPos) { var caretPos = document.forms[form_name].elements[text_name].caretPos; diff --git a/phpBB/styles/subSilver/template/posting_attach_body.html b/phpBB/styles/subSilver/template/posting_attach_body.html index a4b5707803..8d2e80d60d 100644 --- a/phpBB/styles/subSilver/template/posting_attach_body.html +++ b/phpBB/styles/subSilver/template/posting_attach_body.html @@ -10,24 +10,6 @@ //--> - - - - - -