Ignore:
Timestamp:
Sep 14, 2005, 11:57:05 PM (19 years ago)
Author:
plg
Message:
  • improvement: long localized messages are in HTML files instead of $lang array. This is the case of admin/help and about pages.
  • deletion: of unused functions (ts_to_mysqldt, is_image, TN_exists, check_date_format, date_convert, get_category_directories, get_used_metadata_list, array_remove, pwg_write_debug, get_group_restrictions, get_all_group_restrictions, is_group_allowed, style_select, deprecated_getAttribute).
  • new: many new contextual help pages to replace descriptions previously included in pages.
  • modification: reorganisation of language files. Deletion of unused language keys, alphabetical sort. No faq.lang.php anymore (replaced by help.html). Only done for en_UK.iso-8859-1.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_xml.inc.php

    r675 r862  
    5757  else return '';
    5858}
    59 
    60 function deprecated_getAttribute( $element, $attribute )
    61 {
    62   // Retrieving string with tag name and all attributes
    63   $regex = '/^<\w+( '.ATT_REG.'="'.VAL_REG.'")*/';
    64   preg_match( $regex, $element, $out );
    65 
    66   // Splitting string for retrieving separately attributes
    67   // and corresponding values
    68   $regex = '/('.ATT_REG.')="('.VAL_REG.')"/';
    69   preg_match_all( $regex, $out[0], $out );
    70 
    71   // Searching and returning the value of the requested attribute
    72   for ( $i = 0; $i < sizeof( $out[0] ); $i++ )
    73   {
    74     if ( $out[1][$i] == $attribute )
    75     {
    76       return $out[2][$i];
    77     }
    78   }
    79   return '';
    80 }
    8159       
    8260// The function getChild returns the first child
Note: See TracChangeset for help on using the changeset viewer.