Example #1
0
File: sav.php Project: philum/cms
function sav_actions($read)
{
    if ($_GET['insert'] == 'ok') {
        save_art();
    }
    if ($_GET['continue'] == "ok" && $read) {
        modif_art($read, $_POST['msg']);
    }
    if ($_GET['trash_art']) {
        trash_art();
    }
    if ($_GET['delete_art']) {
        delete_art();
    }
    if ($_GET['im'] == 'on') {
        $im = save_img();
    }
    if ($_GET['publish'] && $_GET['idy']) {
        publish_art($_GET['publish'], $_GET['idy'], 'qdi');
    } elseif ($_GET['publish'] && $read) {
        publish_art($_GET['publish'], $read, "qda");
    }
    if ($_GET['deploy']) {
        req('ajxf');
        alert($_GET['deploy']);
    }
    if ($_GET['idy_hide'] or $_GET['idy_erase']) {
        edit_tracks($_GET["idy_hide"], $_GET["idy_erase"]);
    }
}
Example #2
0
function trk_publish($id, $o)
{
    req('spe,pop,art,tri,sav');
    if ($o) {
        publish_art($o, $id, 'qdi');
    }
    return tracks_read($id, '', '');
}