mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 19:40:23 +02:00
- more updates, mostly bugfixes to the bbcode parser
- changed current_user in sessions (please review) - give more flexibility to style authors in regard to the pagination elements - profile fields updates (included a sample constuct into viewtopic_body.html - have to be documented extensivly) - code optimizations (use of strpos, sizeof, loops not iterating functions on every call, memory savings...) - and last but not least --- hopefully not introduced more bugs than healthy (*cough*) git-svn-id: file:///svn/phpbb/trunk@4984 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
phpBB
adm
common.phpdownload.phpfaq.phpincludes
bbcode.phpfunctions.phpfunctions_admin.phpfunctions_display.phpfunctions_posting.phpfunctions_privmsgs.phpfunctions_profile_fields.phpmessage_parser.phpsession.phptemplate.php
ucp
install
language
memberlist.phpposting.phpstyles
subSilver
@@ -81,7 +81,7 @@ function size_select($select_name, $size_compare)
|
||||
|
||||
$select_field = '<select name="' . $select_name . '">';
|
||||
|
||||
for ($i = 0; $i < count($size_types_text); $i++)
|
||||
for ($i = 0, $size = sizeof($size_types_text); $i < $size; $i++)
|
||||
{
|
||||
$selected = ($size_compare == $size_types[$i]) ? ' selected="selected"' : '';
|
||||
$select_field .= '<option value="' . $size_types[$i] . '"' . $selected . '>' . $size_types_text[$i] . '</option>';
|
||||
@@ -1479,9 +1479,9 @@ function remove_comments(&$output)
|
||||
}
|
||||
|
||||
// remove_remarks will strip the sql comment lines out of an uploaded sql file
|
||||
function remove_remarks($sql)
|
||||
function remove_remarks(&$sql)
|
||||
{
|
||||
return preg_replace('/(\n){2,}/', "\n", preg_replace('/^#.*/m', "\n", $sql));
|
||||
preg_replace('/(\n){2,}/', "\n", preg_replace('/^#.*/m', "\n", $sql));
|
||||
}
|
||||
|
||||
// split_sql_file will split an uploaded sql file into single sql statements.
|
||||
|
Reference in New Issue
Block a user