[insert_php]
$uploads = wp_upload_dir();
$iip_src_address = ‘http://mitra.brain.riken.jp:81/fcgi-bin/iipsrv.fcgi?FIF=/var/www/html/wp-content/uploads/’;
$iip_link = ‘http://mitra.brain.riken.jp:81/index.html?pid=’;
$iip_folder = ‘mouseCTBtesting/JP2’;
$new_images = array();
$scan = scandir($uploads[‘basedir’].’/’.$iip_folder.’/’);
foreach($scan as $file){
if (!is_dir($file)){
$new_images[] = $file;
}
}
sort($new_images, SORT_NATURAL | SORT_FLAG_CASE);
$leg_image = count($new_images);
echo do_shortcode(“
JP2000 Images
foreach($new_images as $image) {
echo ‘‘;
echo ‘‘;
}
[/insert_php]
Leave a Reply
Want to join the discussion?Feel free to contribute!