Jump to content

BBcode debug mode activated?


Guest Darken

Recommended Posts

Posted

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. :)

Posted

Hummm, no support ticket submitted for my board since 2002. :unsure: This debug mode is activated by default on fresh new installation (IP.Board 2.3.0).

  • Management
Posted

Regarding the debug mode: Feel free to turn it off. I've updated the main download zip so that it's off by default.

Posted

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.

Archived

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

  • Recently Browsing   0 members

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