Pastoid

The page you are looking at now is at this URL: http://pastoid.com/atw

This paste was last updated on March 23, 2009 at 9:35 pm.

Pasted Coderaw

	public function connect( $connect_string, $db_user, $db_pass )
	{
		list( $type, $file )= explode( ':', $connect_string, 2 );
		if( $file == basename( $file ) ) {
			if( file_exists( HABARI_PATH . '/' . $file ) ) {
				$file = HABARI_PATH . '/' . $file;
			}
			else {
				$file = HABARI_PATH . '/' . Site::get_path( 'user', TRUE ) . $file;
			}
			$connect_string = implode( ':', array( $type, $file ) );
		}
//		return parent::connect( $connect_string, $db_user, $db_pass );
		$conn = parent::connect( $connect_string, $db_user, $db_pass );
		DB::exec( 'PRAGMA synchronous = OFF' );
		DB::exec( 'PRAGMA temp_store = MEMORY' );
		return $conn;
	}
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 4
search.live.com 1
mibbit.com 1
Is this paste spam?
<Hide