  TwEaKeR
icq: 447149
mail: thetwek@gmail.com

  2.1.7 

: 

1.   sources\classes\post\class_post_new.php  :
----------------------------------------------------------------------------
		//-----------------------------------------
		// Redirect them back to the topic
		//-----------------------------------------
		
		$this->ipsclass->boink_it($this->ipsclass->base_url."showtopic={$this->topic['tid']}");
----------------------------------------------------------------------------
   :
----------------------------------------------------------------------------
		//-----------------------------------------
		// Mod: POST BOT MSG FOR CHAT BY TWEAKER
		//-----------------------------------------
		$this->ipsclass->DB->simple_construct( array( 'select' => '*', 'from'   => 'conf_settings', 'where'  => "conf_key='post_bot_vkl'") );
		$this->ipsclass->DB->simple_exec();
		while ( $row = $this->ipsclass->DB->fetch_row() ){$onl_load = $row['conf_value'] ? $row['conf_value'] : $row['conf_default'];}
 		
 		$this->ipsclass->DB->simple_construct( array( 'select' => '*','from'   => 'conf_settings','where'  => "conf_key='post_bot_msg'") );
		$this->ipsclass->DB->simple_exec();
		while ( $row = $this->ipsclass->DB->fetch_row() ){$onl_msg = $row['conf_value'] ? $row['conf_value'] : $row['conf_default'];}
 		
 		$this->ipsclass->DB->simple_construct( array( 'select' => '*','from'   => 'conf_settings','where'  => "conf_key='post_bot_date_format'") );
		$this->ipsclass->DB->simple_exec();
		while ( $row = $this->ipsclass->DB->fetch_row() ){$onl_date_format = $row['conf_value'] ? $row['conf_value'] : $row['conf_default'];}
		
		$this->ipsclass->DB->simple_construct( array( 'select' => '*','from'   => 'conf_settings','where'  => "conf_key='post_bot_name'") );
		$this->ipsclass->DB->simple_exec();
		while ( $row = $this->ipsclass->DB->fetch_row() ){$onl_bot_name = $row['conf_value'] ? $row['conf_value'] : $row['conf_default'];}
		
		$this->ipsclass->DB->simple_construct( array( 'select' => '*','from'   => 'conf_settings','where'  => "conf_key='post_bot_chattxt'") );
		$this->ipsclass->DB->simple_exec();
		while ( $row = $this->ipsclass->DB->fetch_row() ){$onl_bot_chattxt = $row['conf_value'] ? $row['conf_value'] : $row['conf_default'];}
		
 		$date_old = date("$onl_date_format");
 		$onl_msg = str_replace('{user}',$this->topic['starter_name'],$onl_msg);
 		$onl_msg = str_replace('{title}',$this->topic['title'],$onl_msg);
 		$onl_msg = str_replace('{desc}',$this->topic['description'],$onl_msg);
 		$onl_msg = str_replace('{date}',$date_old,$onl_msg);
 		$onl_msg = str_replace('{url_go_post}',"<a href={$this->ipsclass->base_url}showtopic={$this->topic[tid]} target=_blank></a>",$onl_msg);
        
        $save_post_bot_ipb = "*  <script>_i(\"q_allmsg\",".time().",\"\",\"$onl_bot_name\",\"|||||||||\",\"\",\"$onl_msg\")</script>";
        
        if($onl_load==1)
        {
         $open=fopen($onl_bot_chattxt,"a+");
         fwrite($open,"$save_post_bot_ipb\n");
         fclose($open); 			
        }	
		//-----------------------------------------
		// Mod: POST BOT MSG FOR CHAT BY TWEAKER
		//-----------------------------------------
----------------------------------------------------------------------------

2.    :  >>>   >>>    >>>    (XML)
       ipb_settings_partial.xml.

3.       - .

 ;)
