$src  = $obj->src;

 

if (current_user_can('administrator')) {

$cdn_page = STATIC_CDN_ADMIN;

}else{

$cdn_page = 'https://statics.tudong.pro';

// $cdn_page = 'https://js.upload-cdn.com';

}

$js_static = JS_STATIC;

// $blog_id = get_current_blog_id();

// $list_blog_using = array('1');

// if (in_array($blog_id, $list_blog_using)) {

// $cdn_page = 'https://js.upload-cdn.com';

// $js_static = true; 

 

// }

if($js_static != true){}else{

$src= $cdn_page.$obj->src; 

 

$mystring = $cdn_page.$obj->src;

 

 

$findme   = 'plugin';

$pos = strpos($mystring, $findme);

 

if ($pos === false) {

 

}else{

 

$src= $obj->src; 

}

 

 

$findme   = 'cloudflare';

$pos = strpos($mystring, $findme);

 

if ($pos === false) {

 

}else{

 

$src= $obj->src; 

}

 

 

$findme   = 'goo';

$pos = strpos($mystring, $findme);

 

if ($pos === false) {

 

}else{

 

$src= $obj->src; 

}

 

$findme   = 'tinymce';

$pos = strpos($mystring, $findme);

 

if ($pos === false) {

 

}else{

 

$src= $obj->src; 

}

}