Posted June 15, 200718 yr 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 DebugThanx in advance for the info. :)
June 15, 200718 yr It is probably so they can track issues related to the recent changes in that area (ala support ticket)
June 15, 200718 yr 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).
June 15, 200718 yr I think they released the new version to early. They even "forgot" to update the SSI.php.
June 15, 200718 yr I think they released the new version to early. They even "forgot" to update the SSI.php.What should be updated in ssi.php?
June 15, 200718 yr It only exports the newest topic... I think that's caused by the newest BBCode change, but I'm not sure on this.
June 15, 200718 yr Community Expert Management Regarding the debug mode: Feel free to turn it off. I've updated the main download zip so that it's off by default.
June 15, 200718 yr 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.
June 15, 200718 yr Regarding the debug mode: Feel free to turn it off. I've updated the main download zip so that it's off by default.Thanx for the reply.
Archived
This topic is now archived and is closed to further replies.