How to get _list of all hidden albums and pictures_

joe7rocks
joe7rocks's picture

Joined: 2004-10-07
Posts: 560
Posted: Mon, 2005-09-19 22:49

Hi!

Would SomeOne please tell me how to get list of all hidden albums and pictures in the gallery?
I definitely need a php script or something..so something like this, just dunno th e right variables/functions:

<?php
require("init.php");
$list=$gallery->albumDB->getVisibleAlbums("admin");
foreach ($list as $i) {
print($i);
}
?>

I need this because i would like to migrate my g1 into g2, but hidden albums and pictures can't be simply viewable after that..(so i have to change permission on them manually or so)

thanks