Changeset 14335

Show
Ignore:
Timestamp:
01/09/08 17:07:17 (9 months ago)
Author:
flack
Message:

PHPdoc fixes for @see tags on some warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/com.magnettechnologies.contactgrabber/lib/gmail/libgmailer.php

    r14329 r14335  
    11<?php 
     2/** 
     3 * @package com.magnettechnologies.contactgrabber 
     4 */ 
    25 
    36/** 
  • trunk/midcom/com.magnettechnologies.contactgrabber/lib/hotmail/msn_contact_grab.class.php

    r11471 r14335  
    11<?php 
     2/** 
     3 * @package com.magnettechnologies.contactgrabber 
     4 */ 
    25 
    36/* 
  • trunk/midcom/com.magnettechnologies.contactgrabber/lib/myspace/grabMyspace.class.php

    r14328 r14335  
    11<?php 
     2/** 
     3 * @package com.magnettechnologies.contactgrabber 
     4 */ 
    25 
    36/** 
  • trunk/midcom/com.magnettechnologies.contactgrabber/lib/orkut/grabOrkut.class.php

    r14328 r14335  
    11<?php 
     2/** 
     3 * @package com.magnettechnologies.contactgrabber 
     4 */ 
    25 
    36/** 
  • trunk/midcom/com.magnettechnologies.contactgrabber/lib/rediff/grabRediff.class.php

    r14328 r14335  
    11<?php 
     2/** 
     3 * @package com.magnettechnologies.contactgrabber 
     4 */ 
    25 
    36/** 
  • trunk/midcom/com.magnettechnologies.contactgrabber/lib/yahoo/class.GrabYahoo.php

    r14328 r14335  
    11<?php 
     2/** 
     3 * @package com.magnettechnologies.contactgrabber 
     4 */ 
    25 
    36/** 
  • trunk/midcom/com.magnettechnologies.contactgrabber/lib/yahoo/config.php

    r14328 r14335  
    11<?php 
     2/** 
     3 * @package com.magnettechnologies.contactgrabber 
     4 */ 
    25 
    36/** 
  • trunk/midcom/de.bitfolge.feedcreator/feedcreator.php

    r14328 r14335  
    11<?php 
     2/** 
     3 * @package de.bitfolge.feedcreator 
     4 */ 
    25/*************************************************************************** 
    36 
     
    113116 
    114117 
    115 @package de.bitfolge.feedcreator 
     118 
    116119***************************************************************************/ 
    117120 
  • trunk/midcom/midcom.admin.styleeditor/admin.php

    r14329 r14335  
    1616        /** 
    1717         * the current topic we are in 
    18          *  
     18         * 
    1919         * @var current_topic 
    2020         * @access public 
    2121         */ 
    2222        var $_current_topic = 0; 
    23          
     23 
    2424    /** 
    25      * pointer to midcom_session_object  
     25     * pointer to midcom_session_object 
    2626     */ 
    2727    var $_session = null; 
     
    312312     * This overrides the basic show method of the class to include the ais style around the component. 
    313313     * 
    314      * @see _on_show(); 
     314     * @see _on_show() 
    315315     */ 
    316316    function show() 
  • trunk/midcom/midcom.core/midcom/application.php

    r14329 r14335  
    368368     * @var string 
    369369     * @access private 
    370      * @see midcom_application::get_host_prefix(); 
     370     * @see get_host_prefix() 
    371371     */ 
    372372    private $_cached_host_prefix = ''; 
     
    377377     * @var string 
    378378     * @access private 
    379      * @see midcom_application::get_page_prefix(); 
     379     * @see get_page_prefix() 
    380380     */ 
    381381    private $_cached_page_prefix = ''; 
     
    386386     * @var string 
    387387     * @access private 
    388      * @see midcom_application::get_host_name(); 
     388     * @see get_host_name() 
    389389     */ 
    390390    private $_cached_host_name = ''; 
     
    545545     * This function must be called before any output starts. 
    546546     * 
    547      * @see midcom_application::_process() 
     547     * @see _process() 
    548548     */ 
    549549    public function codeinit() 
     
    10111011            if (!$path) 
    10121012            { 
    1013                 $path = 'midcom.core.nullcomponent';         
     1013                $path = 'midcom.core.nullcomponent'; 
    10141014                debug_add("No component defined for this node.", MIDCOM_LOG_ERROR); 
    10151015                debug_print_r("Root node:",$object,MIDCOM_LOG_DEBUG); 
     
    15691569     * @param int $param1    See get_context_data() 
    15701570     * @param int $param2    See get_context_data() 
    1571      * @see midcom_application::get_context_data() 
     1571     * @see get_context_data() 
    15721572     * @access private 
    15731573     */ 
     
    16381638     * @param mixed $value    The value to store. (This is stored by-reference!) 
    16391639     * @param int $contextid    The context to associated this data with (defaults to the current context) 
    1640      * @see midcom_application::get_custom_context_data() 
     1640     * @see get_custom_context_data() 
    16411641     */ 
    16421642    function set_custom_context_data ($key, &$value, $contextid = null) { 
     
    16651665     * @param int $param2    See get_context_data() 
    16661666     * @return mixed        The requested value, which is returned by Reference! 
    1667      * @see midcom_application::get_context_data() 
    1668      * @see midcom_application::set_custom_context_data() 
     1667     * @see get_context_data() 
     1668     * @see set_custom_context_data() 
    16691669     */ 
    16701670    function & get_custom_context_data($param1, $param2 = null) 
     
    17331733     * 
    17341734     * @param string $newsub The substyle to append. 
    1735      * @see midcom_application::substyle_prepend() 
     1735     * @see substyle_prepend() 
    17361736     */ 
    17371737    function substyle_append ($newsub) 
     
    17671767     * 
    17681768     * @param string $newsub The substyle to prepend. 
    1769      * @see midcom_application::substyle_append() 
     1769     * @see substyle_append() 
    17701770     */ 
    17711771    function substyle_prepend($newsub) 
     
    25512551     * @param string $url    The URL to the file to-be referenced. 
    25522552     * @param boolean $prepend Whether to add the JS include to beginning of includes 
    2553      * @see midcom_application::add_jscript(); 
    2554      * @see midcom_application::add_jsonload(); 
    2555      * @see midcom_application::print_jscripts(); 
    2556      * @see midcom_application::print_jsonload(); 
     2553     * @see add_jscript() 
     2554     * @see add_jsonload() 
     2555     * @see print_jscripts() 
     2556     * @see print_jsonload() 
    25572557     */ 
    25582558    function add_jsfile($url, $prepend = false) 
     
    26052605     * 
    26062606     * @param string $script    The code to be included directly in the page. 
    2607      * @see midcom_application::add_jsfile(); 
    2608      * @see midcom_application::add_jsonload(); 
    2609      * @see midcom_application::print_jscripts(); 
    2610      * @see midcom_application::print_jsonload(); 
     2607     * @see add_jsfile() 
     2608     * @see add_jsonload() 
     2609     * @see print_jscripts() 
     2610     * @see print_jsonload() 
    26112611     */ 
    26122612    function add_jscript($script, $defer = '', $prepend = false) 
     
    26342634     * @param string $script    The code to be included in the state. 
    26352635     * @param string $state    The state where to include the code to. Defaults to document.ready 
    2636      * @see midcom_application::print_jquery_statuses(); 
     2636     * @see print_jquery_statuses() 
    26372637     */ 
    26382638    function add_jquery_state_script($script, $state = 'document.ready') 
     
    26582658     * @param  string $script    The input between the <object></object> tags. 
    26592659     * @param  array  $attributes Array of attribute=> value pairs to be placed in the tag. 
    2660      * @see midcom_application::print_head(); 
     2660     * @see print_head() 
    26612661     * 
    26622662     */ 
     
    26772677     * 
    26782678     *  @param  array  $attributes Array of attribute=> value pairs to be placed in the tag. 
    2679      *  @see midcom_application::print_head(); 
     2679     *  @see print_head() 
    26802680     */ 
    26812681    function add_meta_head($attributes = null) 
     
    26962696     * @param  string $script    The input between the <style></style> tags. 
    26972697     * @param  array  $attributes Array of attribute=> value pairs to be placed in the tag. 
    2698      * @see midcom_application::print_head(); 
     2698     * @see print_head() 
    26992699     */ 
    27002700    function add_style_head($script, $attributes = null) 
     
    27202720     * 
    27212721     *  @param  array  $attributes Array of attribute=> value pairs to be placed in the tag. 
    2722      *  @see midcom_application::print_head(); 
     2722     *  @see print_head() 
    27232723     */ 
    27242724    function add_link_head( $attributes = null ) 
     
    27912791     * 
    27922792     * @param string $method    The name of the method to be called on page startup, including parameters but excluding the ';'. 
    2793      * @see midcom_application::add_jsfile(); 
    2794      * @see midcom_application::add_jscript(); 
    2795      * @see midcom_application::print_jscripts(); 
    2796      * @see midcom_application::print_jsonload(); 
     2793     * @see add_jsfile() 
     2794     * @see add_jscript() 
     2795     * @see print_jscripts() 
     2796     * @see print_jsonload() 
    27972797     */ 
    27982798    function add_jsonload($method) 
     
    28312831     * </code> 
    28322832     * 
    2833      * @see midcom_application::add_jsfile(); 
    2834      * @see midcom_application::add_jscript(); 
    2835      * @see midcom_application::add_jsonload(); 
    2836      * @see midcom_application::print_jscripts(); 
     2833     * @see add_jsfile() 
     2834     * @see add_jscript() 
     2835     * @see add_jsonload() 
     2836     * @see print_jscripts() 
    28372837     */ 
    28382838    function print_jsonload() 
     
    28592859     * cases. 
    28602860     * 
    2861      * @see midcom_application::add_link_head 
    2862      * @see midcom_application::add_object_head 
    2863      * @see midcom_application::add_style_head 
    2864      * @see midcom_application::add_meta_head 
    2865      * @see midcom_application::add_jsfile(); 
    2866      * @see midcom_application::add_jscript(); 
     2861     * @see add_link_head 
     2862     * @see add_object_head 
     2863     * @see add_style_head 
     2864     * @see add_meta_head 
     2865     * @see add_jsfile() 
     2866     * @see add_jscript() 
    28672867     */ 
    28682868    function print_head_elements() 
     
    29362936     * This method is called from print_head_elements method. 
    29372937     * 
    2938      * @see midcom_application::add_jquery_state_script 
    2939      * @see midcom_application::print_head_elements 
     2938     * @see add_jquery_state_script 
     2939     * @see print_head_elements 
    29402940     */ 
    29412941    function print_jquery_statuses() 
  • trunk/midcom/midcom.core/midcom/baseclasses/components/request.php

    r14329 r14335  
    636636     * @param Array $argv The argument list 
    637637     * @return boolean Indicating whether the request was handled successfully. 
    638      * @see _on_handle(); 
     638     * @see _on_handle() 
    639639     */ 
    640640    public function handle($argc, $argv) 
     
    770770     * handler will not be called. 
    771771     * 
    772      * @see _on_show(); 
     772     * @see _on_show() 
    773773     */ 
    774774    public function show() 
  • trunk/midcom/midcom.core/midcom/exec/about.php

    r6116 r14335  
    7171                    && class_exists('midgard_quota')) 
    7272                { 
    73                     $qb = new midgard_query_builder('midgard_quota'); 
     73                    $qb = new MidgardQueryBuilder('midgard_quota'); 
    7474                    $qb->add_constraint('tablename', '=', 'wholesg'); 
    7575                    $qb->add_constraint('typename', '=', ''); 
  • trunk/midcom/midcom.core/midcom/exec/config-test.php

    r14130 r14335  
    147147 
    148148// Some helpers 
    149 $i18n =& $_MIDCOM->get_service('i18n'); 
     149$i18n =& $GLOBALS['midcom']->get_service('i18n'); 
     150 
     151// Check the PHP Version and PHP_Compat availability 
    150152 
    151153$version = phpversion(); 
    152 if (version_compare($version, '5.1.0', '<')) 
    153 
    154     println('PHP Version', ERROR, 'PHP 5.1.0 or greater is required for MidCOM, 4.3.0 or greater is recommended.'); 
     154if (version_compare($version, '4.1.0', '<')) 
     155
     156    println('PHP Version', ERROR, 'PHP 4.1.0 or greater is required for MidCOM, 4.3.0 or greater is recommended.'); 
     157
     158else if (version_compare($version, '4.3.0', '<')) 
     159
     160    println('PHP Version', WARNING, 'PHP 4.3.0 or greater is recommended for MidCOM.'); 
     161    println_check_for_include_file('PHP/Compat.php', 'PEAR Package: PHP_Compat',  
     162        ERROR, 'The PEAR Package PHP_Compat is required for pre-4.3.0 installations.'); 
    155163} 
    156164else 
     
    301309        if ($overload != '7') 
    302310        { 
    303                 println('Multi-Byte String functions', WARNING, 'The Multi-Byte String functions are available, but this is a UTF-8 site and Function overloading is disabled, this is not recommended since string operations are erronous then.'); 
     311                println('Multi-Byte String functions', WARNING, 'The Multi-Byte String functions are available, but this is an UTF-8 site and Function overloading is disabled, this is not recommended since string operations are erronous then.'); 
    304312        } 
    305313        else 
     
    387395if ($result != 0) 
    388396{ 
    389     println('External Utility: ImageMagick', ERROR, 'The existence ImageMagick toolkit could not be verified, it is required for all kinds of image processing in MidCOM.');  
     397    println('External Utility: ImageMagick', ERROR, 'The existance ImageMagick toolkit could not be verified, it is required for all kinds of image processing in MidCOM.');  
    390398} 
    391399else 
  • trunk/midcom/midcom.core/midcom/exec/convert_legacy_metadata.php

    r14328 r14335  
    2323if (! $midgard->admin) 
    2424{ 
    25     $_MIDCOM->generate_error(MIDCOM_ERRAUTH, "This script requires admin privileges to run."); 
     25    $GLOBALS['midcom']->generate_error(MIDCOM_ERRAUTH, "This script requires admin privileges to run."); 
    2626    // This will exit. 
    2727} 
     
    7979                if (! $person) 
    8080                { 
    81                     status ("<span style='color:red;'>        Article {$article->id} had a broken approver id {$person->approver} (using current user as fallback): " . mgderrstr() . '</span>'); 
     81                    status ("<span style='color:red;'>        Article {$article->id} had an broken approver id {$person->approver} (using current user as fallback): " . mgderrstr() . '</span>'); 
    8282                    $person = mgd_get_person($midgard->user); 
    8383                } 
     
    342342    { 
    343343        echo "</pre>\n"; 
    344         $_MIDCOM->generate_error(MIDCOM_ERRCRIT, "Failed to list the child nodes of {$nodeid}. Aborting."); 
     344        $GLOBALS['midcom']->generate_error(MIDCOM_ERRCRIT, "Failed to list the child nodes of {$nodeid}. Aborting."); 
    345345    }  
    346346    $nodes = array_merge($nodes, $childs); 
     
    352352echo "\n\nData Conversion complete.\n\n"; 
    353353echo "\n\nInvalidating the Content Cache...\n\n"; 
    354 $_MIDCOM->cache->invalidate_all(); 
     354$GLOBALS['midcom']->cache->invalidate_all(); 
    355355echo '</pre>'; 
    356356 
  • trunk/midcom/midcom.core/midcom/exec/convert_legacy_topics.php

    r4908 r14335  
    1414 */ 
    1515$_MIDCOM->auth->require_admin_user(); 
     16 
     17@ini_set('max_execution_time', 0); 
    1618 
    1719$qb = midcom_db_topic::new_query_builder(); 
  • trunk/midcom/midcom.core/midcom/exec/cron.php

    r13403 r14335  
    1919} 
    2020 
     21$_MIDCOM->cache->content->enable_live_mode(); 
     22 
    2123header('Content-Type: text/plain');  
    2224 
    2325require(MIDCOM_ROOT . '/midcom/services/cron.php'); 
    24  
    25 $_MIDCOM->cache->content->enable_live_mode(); 
    2626 
    2727// Ensure cron doesn't timeout 
  • trunk/midcom/midcom.core/midcom/exec/index-legacy-attachments.php

    r14084 r14335  
    1111 *   varibales, recognized by their data_ name prefix. 
    1212 * - Any blob/image type attachments, recognized by some of their parameters. 
    13  * - Any leaves associated with net.siriux.photos topics are skipped completely. 
     13 * - Any leaves accociated with net.siriux.photos topics are skipped completly. 
    1414 *  
    1515 * NAP will used to traverse the registered topic tree, indexing all attachments 
     
    2020 * <i>Handle with care!</i> This handler unconditionally indexes all attachments  
    2121 * found and not filtered along the above conditions. This might lead to attachments 
    22  * being indexed accidentially or, which is even worse, already indexed attachments 
    23  * being overwritten, loosing additional information that might be present. 
     22 * beeing indexed accidentially or, which is even worse, already indexed attachments 
     23 * beeing overwritten, loosing additional information that might be present. 
    2424 *  
    2525 * @package midcom 
     
    119119                if (is_null($leaf[MIDCOM_NAV_OBJECT])) 
    120120                { 
    121                     debug_add("The leaf {$leafid} does not have an associated MidgardObject, skipping it.", MIDCOM_LOG_INFO); 
     121                    debug_add("The leaf {$leafid} does not have an accociated MidgardObject, skipping it.", MIDCOM_LOG_INFO); 
    122122                    debug_print_r('Leaf strucuture dump:', $leaf);  
    123123                    continue; 
  • trunk/midcom/midcom.core/midcom/helper/metadata.php

    r14329 r14335  
    153153     * slightly post-processed metadata values. See _retrieve_value for post processing. 
    154154     * 
    155      * @see midcom_helper_metdata::_retrieve_value(); 
     155     * @see midcom_helper_metdata::_retrieve_value() 
    156156     * @param string $key The key to retrieve 
    157157     * @return mixed The key's value. 
  • trunk/midcom/midcom.core/midcom/request.php

    r14328 r14335  
    5858/** 
    5959 * This one is thrown if the url does not map to anything 
     60 * 
     61 * @package midcom 
    6062 */ 
    6163class midcom_url_notfound_exception extends Exception {    } 
     
    6668 * 
    6769 * 
     70 * @package midcom 
    6871 */ 
    6972class midcom_urlparserfactory { 
     
    101104/** 
    102105 * Implements a simple representation of the url as a stack 
     106 * 
     107 * @package midcom 
    103108 */ 
    104109class midcom_url_urlstack 
     
    128133 * This class is used to collect information to be used when executing the 
    129134 * request 
     135 * 
     136 * @package midcom 
    130137 */ 
    131138class midcom_url_paramcollector { 
     
    214221 * The parser will get in the url where its work starts and will work greedily on that 
    215222 * until it gets nothing and returns. 
     223 * 
     224 * @package midcom 
    216225 */ 
    217226abstract class midcom_url_parser { 
     
    241250 * variable above. 
    242251 * 
     252 * @package midcom 
    243253 */ 
    244254class midcom_url_nullparser  extends midcom_url_parser 
     
    247257} 
    248258 
     259/** 
     260 * @package midcom 
     261 */ 
    249262class midcom_url_topicgetter { 
    250263    public function get_topic($topic_name, $up) { 
     
    255268/** 
    256269 * This class parses any part of the url that is deemed to be related to topics 
     270 * 
     271 * @package midcom 
    257272 */ 
    258273class midcom_url_topic extends midcom_url_parser 
     
    296311 * /midcom-substyle 
    297312 * etc 
     313 * 
     314 * @package midcom 
    298315 */ 
    299316class midcom_url_midcom extends midcom_url_parser { 
  • trunk/midcom/midcom.core/midcom/services/auth.php

    r14329 r14335  
    434434     * @var int 
    435435     * @access private 
    436      * @see request_sudo(); 
    437      * @see drop_sudo(); 
     436     * @see request_sudo() 
     437     * @see drop_sudo() 
    438438     */ 
    439439    var $_component_sudo = 0; 
     
    14011401            $sitegroup->name = 'SG0'; 
    14021402        } 
    1403          
     1403 
    14041404        if (!isset($_SERVER['PHP_AUTH_USER'])) 
    14051405        { 
  • trunk/midcom/midcom.core/support/importStyle.php

    r4470 r14335  
    2424                'default' => 'midgard', 
    2525        ); 
    26          
    27          
     26 
     27 
    2828 
    2929        $args = Console_Getargs::factory($opts_config); 
     
    4646        mgd_config_init($args->getValue('configuration')); 
    4747    } 
    48      
     48 
    4949    function run () { 
    5050        $dir = $this->args->getValue(CONSOLE_GETARGS_PARAMS); 
     
    5252            die("$dir is not a directory.Exiting...\n"); 
    5353        } 
    54          
     54 
    5555        $name = basename($dir); 
    5656        $style_name = "template_{$name}"; 
     
    8282 
    8383        echo "Installing template: " . $style->name ; 
    84          
     84 
    8585        $files = dir($dir); 
    8686        $elements = array(); 
     
    8989            $path = pathinfo($file); 
    9090            if ($path['extension'] == 'php') { 
    91                  
     91 
    9292                $elements[] = str_replace('.php', '', $path['basename']); 
    9393            } else { 
     
    101101 
    102102        echo "Remember that you have to clear the midgard pagecache to see effects!\n"; 
    103          
     103 
    104104    } 
    105105 
     
    109109        $file = $dir . "/" . $element_name . ".php"; 
    110110        if (!is_file($file) || ! is_readable($file)) { 
    111             die("$file is not accessable!\n"); 
     111            die("$file is not accessible!\n"); 
    112112        } 
    113113 
     
    133133        else 
    134134        { 
    135              
     135 
    136136            $element = $elements[0]; 
    137137            // check if there is a newer version in the db. 
    138138            $date = strtotime ( $element->metadata->revised ) ; 
    139                  
    140             //YYYY-MM-DDThh:mm:ss  
     139 
     140            //YYYY-MM-DDThh:mm:ss 
    141141            $file_date = filemtime($file); 
    142142            if ($date > $file_date && !$this->pompt("Do you want to overwrite the current $element_name element?", false ) ) { 
     
    163163            } 
    164164            $fp = fopen('php://stdin', 'r'); 
    165              
     165 
    166166            while (true) { 
    167167                echo $question, " ", $defaultStr, ": "; 
    168168                $response = trim(fgets($fp, 8192)); 
    169                  
     169 
    170170                if (!is_null($default) AND $response == '') { 
    171171                    return $default; 
    172172                } 
    173      
     173 
    174174                switch (strtolower($response)) { 
    175175                    case 'y': 
     
    178178                    case 'true': 
    179179                        return true; 
    180                      
     180 
    181181                    case 'n': 
    182182                    case '0': 
     
    184184                    case 'false': 
    185185                        return false; 
    186                      
     186 
    187187                    default: 
    188188                        continue; 
    189189                } 
    190             }   
     190            } 
    191191    } 
    192192 
  • trunk/midcom/midcom.helper.datamanager/datatype.php

    r14329 r14335  
    345345     * @return mixed The default ("empty") value for the widget. 
    346346     * @access private 
    347      * @see midcom_helper_datamanager_datatype::_get_empty_value(); 
     347     * @see midcom_helper_datamanager_datatype::_get_empty_value() 
    348348     */ 
    349349    function _get_default_value() 
  • trunk/midcom/midcom.helper.datamanager/lib_markdown.php

    r666 r14335  
    11<?php 
    2  
     2/** 
     3 * @package midcom.helper.datamanager 
     4 * @author The Midgard Project, http://www.midgard-project.org 
     5 * @copyright The Midgard Project, http://www.midgard-project.org 
     6 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License 
     7 */ 
     8 
     9/** 
     10 * 
     11 */ 
    312# 
    413# Markdown  -  A text-to-HTML conversion tool for web writers 
    514# 
    6 # Copyright (c) 2004 John Gruber   
     15# Copyright (c) 2004 John Gruber 
    716# <http://daringfireball.net/projects/markdown/> 
    817# 
    9 # Copyright (c) 2004 Michel Fortin - PHP Port   
     18# Copyright (c) 2004 Michel Fortin - PHP Port 
    1019# <http://www.michelf.com/projects/php-markdown/> 
    1120# 
     
    1423global  $MarkdownPHPVersion, $MarkdownSyntaxVersion, 
    1524                $md_empty_element_suffix, $md_tab_width, 
    16                 $md_nested_brackets_depth, $md_nested_brackets,  
    17                 $md_escape_table, $md_backslash_escape_table,  
     25                $md_nested_brackets_depth, $md_nested_brackets, 
     26                $md_escape_table, $md_backslash_escape_table, 
    1827                $md_list_level; 
    1928 
     
    92101 
    93102# Regex to match balanced [brackets]. 
    94 # Needed to insert a maximum bracked depth while converting to PHP. 
     103# Needed to insert a maximum bracket depth while converting to PHP. 
    95104$md_nested_brackets_depth = 6; 
    96 $md_nested_brackets =  
     105$md_nested_brackets = 
    97106        str_repeat('(?>[^\[\]]+|\[', $md_nested_brackets_depth). 
    98107        str_repeat('\])*', $md_nested_brackets_depth); 
     
    279288                                        <(hr)                           # start tag = $2 
    280289                                        \b                                      # word break 
    281                                         ([^<>])*?                       #  
     290                                        ([^<>])*?                       # 
    282291                                        /?>                                     # the matching end tag 
    283292                                        [ \t]* 
     
    334343                          '{^[ ]{0,2}([ ]? -[ ]?){3,}[ \t]*$}mx', 
    335344                          '{^[ ]{0,2}([ ]? _[ ]?){3,}[ \t]*$}mx'), 
    336                 "\n<hr$md_empty_element_suffix\n",  
     345                "\n<hr$md_empty_element_suffix\n", 
    337346                $text); 
    338347 
     
    486495                        $title = $md_titles[$link_id]; 
    487496                        $title = str_replace(array('*',     '_'), 
    488                                                                  array($md_escape_table['*'],  
     497                                                                 array($md_escape_table['*'], 
    489498                                                                           $md_escape_table['_']), $title); 
    490499                        $result .=  " title=\"$title\""; 
     
    506515        # We've got to encode these to avoid conflicting with italics/bold. 
    507516        $url = str_replace(array('*', '_'), 
    508                                            array($md_escape_table['*'], $md_escape_table['_']),  
     517                                           array($md_escape_table['*'], $md_escape_table['_']), 
    509518                                           $url); 
    510519        $result = "<a href=\"$url\""; 
     
    516525                $result .=  " title=\"$title\""; 
    517526        } 
    518          
     527 
    519528        $result .= ">$link_text</a>"; 
    520529 
     
    544553 
    545554                ) 
    546                 }xs',  
     555                }xs', 
    547556                '_DoImages_reference_callback', $text); 
    548557 
     
    594603                        $title = $md_titles[$link_id]; 
    595604                        $title = str_replace(array('*', '_'), 
    596                                                                  array($md_escape_table['*'],  
     605                                                                 array($md_escape_table['*'], 
    597606                                                                           $md_escape_table['_']), $title); 
    598607                        $result .=  " title=\"$title\"";