Jump to content

BBcode debug mode activated?


Guest Darken

Recommended Posts

Hi all,

Why in latest IP.Board build (v2.3.0) the debug mode is activated? >>

    function post_editorswitch()
    {
        //-----------------------------------------
        // INIT
        //-----------------------------------------

        $to_rte = intval( $this->ipsclass->input['to_rte'] );
        $post   = $this->class_ajax->convert_unicode( $_POST['Post'] );
        $post   = $this->ipsclass->txt_stripslashes($post);
        $post   = $this->class_ajax->convert_html_entities( $post );
        
        $_debug = 1;
        
        //-----------------------------------------
        // Load BBCode
        //-----------------------------------------
        
        require_once( ROOT_PATH . 'sources/classes/bbcode/class_bbcode_core.php' );
        require_once( ROOT_PATH . 'sources/classes/bbcode/class_bbcode.php' );

IP.Board 2.2.x (not activated) >>

    function post_editorswitch()
    {
        //-----------------------------------------
        // INIT
        //-----------------------------------------

        $to_rte = intval( $_REQUEST['to_rte'] );
        $post   = $this->class_ajax->convert_unicode( $_POST['Post'] );
        $post   = $this->ipsclass->txt_stripslashes($post);
        $post   = $this->class_ajax->convert_html_entities( $post );
        
        $_debug = 0;
        
        //-----------------------------------------
        // Load BBCode
        //-----------------------------------------
        
        require_once( ROOT_PATH . 'sources/classes/bbcode/class_bbcode_core.php' );
        require_once( ROOT_PATH . 'sources/classes/bbcode/class_bbcode.php' );

The result is a file created in the root of cache folder >>

        if ( $_debug )
        {
            $FH = @fopen( ROOT_PATH . '/cache/debug_bbcode.php', 'a+' );
            @fwrite( $FH, $debug_string );
            @fclose( $FH );
        }

debug_bbcode.php >>

====================================================
 TO RTE opera
 Thu, 14 Jun 2007 12:10:11 +0000
====================================================
ORIGINAL POST
blablabla blablabla blabla
====================================================
 BEFORE clean_ipb_html / pre_db_parse
blablabla blablabla blabla

blablabla blablabla blabla
====================================================
 AFTER clean_ipb_html / pre_db_parse
blablabla blablabla blabla
<br />
<br />-- blablabla blablabla blabla.
====================================================
 BBCODE Debug


Thanx in advance for the info. :)

Link to comment
Share on other sites

I think they released the new version to early. They even "forgot" to update the SSI.php.



SSI.php has been outdated for a long time. It's been superseded by RSS, they just provide it as a freebie that hasn't been removed form the download pack for legacy purposes.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...