framework/Mvc/Extensions/Ckfinder/lib/core/ckfinder_php5.php
public function SetupFCKeditorObject( &$editorObj, $imageType = null, $flashType = null )
	{
		$url = $this->BasePath ;

		// If it is a path relative to the current page.
		if ( isset($url[0]) && $url[0] != '/' && strpos($url, "://") === false )
		{
			$url = substr( $_SERVER[ 'REQUEST_URI' ], 0, strrpos( $_SERVER[ 'REQUEST_URI' ], '/' ) + 1 ) . $url ;
		}

		$url = $this->_BuildUrl( $url ) ;
		$qs = ( strpos($url, "?") !== false ) ? "&" : "?" ;

		if ( $this->Width !== '100%' && is_numeric( str_ireplace( "px", "", $this->Width ) ) )
		{
			$width = intval( $this->Width );
			$editorObj->Config['LinkBrowserWindowWidth'] = $width ;
			$editorObj->Config['ImageBrowserWindowWidth'] = $width ;
			$editorObj->Config['FlashBrowserWindowWidth'] = $width ;
		}
		if ( $this->Height !== 400 && is_numeric( str_ireplace( "px", "", $this->Height ) ) )
		{
			$height = intval( $this->Height );
			$editorObj->Config['LinkBrowserWindowHeight'] = $height ;
			$editorObj->Config['ImageBrowserWindowHeight'] = $height ;
			$editorObj->Config['FlashBrowserWindowHeight'] = $height ;
		}

		$editorObj->Config['LinkBrowserURL'] = $url ;
		$editorObj->Config['ImageBrowserURL'] = $url . $qs . 'type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
		$editorObj->Config['FlashBrowserURL'] = $url . $qs . 'type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;

		$dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
		$editorObj->Config['LinkUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ;
		$editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ;
		$editorObj->Config['FlashUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
	}
public function SetupFCKeditorObject( &$editorObj, $imageType = null, $flashType = null )
	{
		$url = $this->BasePath ;

		// If it is a path relative to the current page.
		if ( isset($url[0]) && $url[0] != '/' && strpos($url, "://") === false )
		{
			$url = substr( $_SERVER[ 'REQUEST_URI' ], 0, strrpos( $_SERVER[ 'REQUEST_URI' ], '/' ) + 1 ) . $url ;
		}

		$url = $this->_BuildUrl( $url ) ;
		$qs = ( strpos($url, "?") !== false ) ? "&" : "?" ;

		if ( $this->Width !== '100%' && is_numeric( str_ireplace( "px", "", $this->Width ) ) )
		{
			$width = intval( $this->Width );
			$editorObj->Config['LinkBrowserWindowWidth'] = $width ;
			$editorObj->Config['ImageBrowserWindowWidth'] = $width ;
			$editorObj->Config['FlashBrowserWindowWidth'] = $width ;
		}
		if ( $this->Height !== 400 && is_numeric( str_ireplace( "px", "", $this->Height ) ) )
		{
			$height = intval( $this->Height );
			$editorObj->Config['LinkBrowserWindowHeight'] = $height ;
			$editorObj->Config['ImageBrowserWindowHeight'] = $height ;
			$editorObj->Config['FlashBrowserWindowHeight'] = $height ;
		}

		$editorObj->Config['LinkBrowserURL'] = $url ;
		$editorObj->Config['ImageBrowserURL'] = $url . $qs . 'type=' . ( empty( $imageType ) ? 'Images' : $imageType ) ;
		$editorObj->Config['FlashBrowserURL'] = $url . $qs . 'type=' . ( empty( $flashType ) ? 'Flash' : $flashType ) ;

		$dir = substr( $url, 0, strrpos( $url, "/" ) + 1 ) ;
		$editorObj->Config['LinkUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ;
		$editorObj->Config['ImageUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $imageType ) ? 'Images' : $imageType ) ;
		$editorObj->Config['FlashUploadURL'] = $dir . urlencode( 'core/connector/php/connector.php?command=QuickUpload&type=') . ( empty( $flashType ) ? 'Flash' : $flashType ) ;
	}
public function SetupFCKeditorObject ( & $ editorObj , $ imageType = null , $ flashType = null ) { $ url = $ this -> BasePath ; // If it is a path relative to the current page. if ( isset ( $ url [ 0 ] ) && $ url [ 0 ] != '/' && strpos ( $ url , "://" ) === false ) { $ url = substr ( $ _SERVER [ 'REQUEST_URI' ] , 0 , strrpos ( $ _SERVER [ 'REQUEST_URI' ] , '/' ) + 1 ) . $ url ; } $ url = $ this -> _BuildUrl ( $ url ) ; $ qs = ( strpos ( $ url , "?" ) !== false ) ? "&" : "?" ; if ( $ this -> Width !== '100%' && is_numeric ( str_ireplace ( "px" , "" , $ this -> Width ) ) ) { $ width = intval ( $ this -> Width ) ; $ editorObj -> Config [ 'LinkBrowserWindowWidth' ] = $ width ; $ editorObj -> Config [ 'ImageBrowserWindowWidth' ] = $ width ; $ editorObj -> Config [ 'FlashBrowserWindowWidth' ] = $ width ; } if ( $ this -> Height !== 400 && is_numeric ( str_ireplace ( "px" , "" , $ this -> Height ) ) ) { $ height = intval ( $ this -> Height ) ; $ editorObj -> Config [ 'LinkBrowserWindowHeight' ] = $ height ; $ editorObj -> Config [ 'ImageBrowserWindowHeight' ] = $ height ; $ editorObj -> Config [ 'FlashBrowserWindowHeight' ] = $ height ; } $ editorObj -> Config [ 'LinkBrowserURL' ] = $ url ; $ editorObj -> Config [ 'ImageBrowserURL' ] = $ url . $ qs . 'type=' . ( empty ( $ imageType ) ? 'Images' : $ imageType ) ; $ editorObj -> Config [ 'FlashBrowserURL' ] = $ url . $ qs . 'type=' . ( empty ( $ flashType ) ? 'Flash' : $ flashType ) ; $ dir = substr ( $ url , 0 , strrpos ( $ url , "/" ) + 1 ) ; $ editorObj -> Config [ 'LinkUploadURL' ] = $ dir . urlencode ( 'core/connector/php/connector.php?command=QuickUpload&type=Files' ) ; $ editorObj -> Config [ 'ImageUploadURL' ] = $ dir . urlencode ( 'core/connector/php/connector.php?command=QuickUpload&type=' ) . ( empty ( $ imageType ) ? 'Images' : $ imageType ) ; $ editorObj -> Config [ 'FlashUploadURL' ] = $ dir . urlencode ( 'core/connector/php/connector.php?command=QuickUpload&type=' ) . ( empty ( $ flashType ) ? 'Flash' : $ flashType ) ; }
Non-static method of attaching CKFinder to FCKeditor
Non - static method of attaching CKFinder to FCKeditor