[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?pid=’;
$iip_folder = ‘brain_data’;

if ($dir = opendir($uploads[‘basedir’].’/’.$iip_folder)) {
$images = array();
while (false !== ($file = readdir($dir))) {
if ($file != “.” && $file != “..”) {
$images[] = $file;
sort($images);
}
}
closedir($dir);
}

setcookie(“MitraLabCookie”, $images, (time()+3600), “/”);

foreach($images as $image) {
echo ‘‘;
echo ‘
‘;
}

[/insert_php]

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *