Пример #1
0
} elseif ($action == 'prev') {
    prev_();
} elseif ($action == 'next') {
    next_();
} elseif ($action == 'playSelect') {
    playSelect();
} elseif ($action == 'addSelect') {
    addSelect();
} elseif ($action == 'insertSelect') {
    insertSelect();
} elseif ($action == 'seekImageMap') {
    seekImageMap();
} elseif ($action == 'playIndex') {
    playIndex();
} elseif ($action == 'deleteIndex') {
    deleteIndex();
} elseif ($action == 'deleteIndexAjax') {
    deleteIndexAjax();
} elseif ($action == 'deletePlayed') {
    deletePlayed();
} elseif ($action == 'volumeImageMap') {
    volumeImageMap();
} elseif ($action == 'toggleMute') {
    toggleMute();
} elseif ($action == 'toggleShuffle') {
    toggleShuffle();
} elseif ($action == 'toggleRepeat') {
    toggleRepeat();
} elseif ($action == 'loopGain') {
    loopGain();
} elseif ($action == 'playlistStatus') {
function deletelink($fl_id, $relationship_id)
{
    global $xoopsDB;
    $success = true;
    $sql = "SELECT fl_key1,fl_key2 FROM " . $xoopsDB->prefix("formulize_framework_links") . " WHERE fl_id='{$fl_id}'";
    if (!($res = $xoopsDB->query($sql))) {
        // do nothing
    } else {
        $elementIDs = $xoopsDB->fetchArray($res);
        deleteIndex($elementIDs['fl_key1']);
        deleteIndex($elementIDs['fl_key2']);
    }
    $deleteq = "DELETE FROM " . $xoopsDB->prefix("formulize_framework_links") . " WHERE fl_id='{$fl_id}'";
    if (!($res = $xoopsDB->queryF($deleteq))) {
        print "Error: link deletion unsuccessful";
        $success = false;
    }
    return $success;
}