コード例 #1
0
ファイル: sav.php プロジェクト: 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"]);
    }
}
コード例 #2
0
ファイル: ajax.php プロジェクト: philum/cms
     $t = 'folder';
     $s = 440;
     break;
 case "addArt":
     req('art,tri,spe');
     $_GET['continue'] = '';
     $p = 1;
     $ret = f_inp("", $id);
     if ($va == 1) {
         $t = 'Article';
     }
     $s = 550;
     break;
 case "saveart":
     req('tri,pop,spe,sav');
     $msg = modif_art($va, $id);
     if ($opt != 'no') {
         $ret = txarea1($msg);
     }
     break;
 case "newart":
     req('art,pop,tri,spe,mod,sav');
     $ret = addart_new($id, $va, $res);
     break;
 case "addurlsav":
     req('pop,art,tri,spe');
     $ret = addart_sav($id, $va, $opt, $optb);
     break;
 case "placeim":
     $ret = placeim($id);
     break;
コード例 #3
0
ファイル: ajxf.php プロジェクト: philum/cms
function art_import($res)
{
    $f = ajx(trim($res), 1);
    $f = utmsrc($f);
    $f = http($f);
    $_GET['urlsrc'] = $f;
    $fb = nohttp($f);
    if (!$_GET['ti']) {
        list($sujb, $msg, $rec, $current, $defid) = vacuum($f, $suj);
        $msg = embed_links($msg);
        $ret = $msg;
        $_SESSION['vacti'][$f] = $sujb;
    } else {
        $ret = clean_title($_SESSION['vacti'][$f]);
        $_SESSION['vacti'][$f] = '';
    }
    if ($_GET['import'] && $sujb) {
        $wh = 'WHERE id = "' . $_GET['import'] . '" LIMIT 1;';
        $sq = 'suj="' . clean_title($sujb) . '", mail="' . $f . '", img="" ';
        //ib="0",
        msquery('UPDATE ' . $_SESSION['qda'] . ' SET ' . $sq . $wh . '');
        req('sav,pop');
        modif_art($_GET['import'], $msg);
    }
    if ($_SESSION['vacuum'][$fb]) {
        unset($_SESSION['vacuum'][$fb]);
    }
    return $ret;
}