Changeset 8247 for trunk/include/functions_html.inc.php
- Timestamp:
- Dec 23, 2010, 6:22:19 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r6993 r8247 44 44 $output = ''; 45 45 $is_first=true; 46 46 47 47 foreach ($cat_informations as $cat) 48 48 { … … 186 186 * @return string 187 187 */ 188 function parse_comment_content($content) 189 { 188 function render_comment_content($content) 189 { 190 $content = htmlspecialchars($content); 190 191 $pattern = '/(https?:\/\/\S*)/'; 191 192 $replacement = '<a href="$1" rel="nofollow">$1</a>'; … … 368 369 $title = 'Piwigo encountered a non recoverable error'; 369 370 } 370 371 371 372 $btrace_msg = ''; 372 373 if ($show_trace and function_exists('debug_backtrace')) … … 441 442 ); 442 443 } 443 444 444 445 $title.= 445 446 '<a href="'.$remove_url.'" style="border:none;" title="' … … 479 480 $protocol = 'HTTP/1.0'; 480 481 481 if ( version_compare( phpversion(), '4.3.0', '>=' ) ) 482 { 483 header( "$protocol $code $text", true, $code ); 484 } 485 else 486 { 487 header( "$protocol $code $text" ); 488 } 482 header( "$protocol $code $text", true, $code ); 489 483 trigger_action('set_status_header', $code, $text); 490 484 } … … 496 490 { 497 491 return strip_tags($desc, '<span><p><a><br><b><i><small><big><strong><em>'); 498 }499 500 /** returns the argument_ids array with new sequenced keys based on related501 * names. Sequence is not case sensitive.502 * Warning: By definition, this function breaks original keys503 */504 function order_by_name($element_ids,$name)505 {506 $ordered_element_ids = array();507 foreach ($element_ids as $k_id => $element_id)508 {509 $key = strtolower($name[$element_id]) .'-'. $name[$element_id] .'-'. $k_id;510 $ordered_element_ids[$key] = $element_id;511 }512 ksort($ordered_element_ids);513 return $ordered_element_ids;514 492 } 515 493
Note: See TracChangeset
for help on using the changeset viewer.