"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/admin/inc/class_form.php" between
mybb_1821.zip and mybb_1822.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

class_form.php  (mybb_1821):class_form.php  (mybb_1822)
skipping to change at line 621 skipping to change at line 621
$select .= "<option value=\"{$group['gid']}\"{$selected_a dd}>".htmlspecialchars_uni($group['title'])."</option>"; $select .= "<option value=\"{$group['gid']}\"{$selected_a dd}>".htmlspecialchars_uni($group['title'])."</option>";
} }
$select .= "</select>"; $select .= "</select>";
return $select; return $select;
} }
/** /**
* Generate a prefix selection box.
*
* @param string $name The name of the selection box.
* @param array|string $selected Array/string of the selected items.
* @param array $options Array of options (class, id, multiple, size)
* @return string The built select box.
*/
function generate_prefix_select($name, $selected=array(), $options=array(
))
{
global $cache;
$select = "<select name=\"{$name}\"";
if(isset($options['multiple']))
{
$select .= " multiple=\"multiple\"";
}
if(isset($options['class']))
{
$select .= " class=\"{$options['class']}\"";
}
if(isset($options['id']))
{
$select .= " id=\"{$options['id']}\"";
}
if(isset($options['size']))
{
$select .= " size=\"{$options['size']}\"";
}
$select .= ">\n";
$prefix_cache = $cache->read('threadprefixes');
if(!is_array($selected))
{
$selected = array($selected);
}
foreach($prefix_cache as $prefix)
{
$selected_add = "";
if(in_array($prefix['pid'], $selected))
{
$selected_add = " selected=\"selected\"";
}
$select .= "<option value=\"{$prefix['pid']}\"{$selected_
add}>".htmlspecialchars_uni($prefix['prefix'])."</option>";
}
$select .= "</select>";
return $select;
}
/**
* Generate a submit button. * Generate a submit button.
* *
* @param string $value The value for the submit button. * @param string $value The value for the submit button.
* @param array $options Array of options for the submit button (class, i d, name, dsiabled, onclick) * @param array $options Array of options for the submit button (class, i d, name, dsiabled, onclick)
* @return string The generated submit button. * @return string The generated submit button.
*/ */
function generate_submit_button($value, $options=array()) function generate_submit_button($value, $options=array())
{ {
$input = "<input type=\"submit\" value=\"".htmlspecialchars_uni($ value)."\""; $input = "<input type=\"submit\" value=\"".htmlspecialchars_uni($ value)."\"";
 End of changes. 1 change blocks. 
0 lines changed or deleted 52 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)