Get current Blog ID in Tinymce Plugin Dialog Window in WPMU

Try this:

global $current_blog;
$blog = get_blog_details($current_blog->blog_id);

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)