示例#1
0
function MG_massDeleteAlbums($aid)
{
    global $_TABLES, $_MG_CONF, $_CONF, $MG_albums, $_POST;
    $children = $MG_albums[$aid]->getChildren();
    $numItems = count($children);
    for ($x = 0; $x < $numItems; $x++) {
        $i = $MG_albums[$children[$x]]->id;
        if (isset($_POST['album'][$i]) && $_POST['album'][$i] == 1) {
            MG_MassdeleteAlbum($MG_albums[$children[$x]]->id);
        } else {
            MG_massDeleteAlbums($MG_albums[$children[$x]]->id);
        }
    }
}
示例#2
0
function MG_massDeleteAlbums($aid)
{
    global $_MG_CONF;
    $children = MG_getAlbumChildren($aid);
    $numItems = count($children);
    for ($x = 0; $x < $numItems; $x++) {
        $i = $children[$x];
        if ($_POST['album'][$i] == 1) {
            MG_MassdeleteAlbum($children[$x]);
        } else {
            MG_massDeleteAlbums($children[$x]);
        }
    }
    echo COM_refresh($_MG_CONF['admin_url'] . 'index.php?msg=15');
}