Esempio n. 1
0
File: ajax.php Progetto: philum/cms
     $t = 'gallery';
     break;
 case "photo":
     $ret = photo_screen($id, $va, $opt, $optb);
     break;
 case "chat":
     $ret = plugin_func($n, $id, $va, $opt, $res);
     break;
 case "chatxml":
     $ret = plugin_func($n, $id, $va, $opt, $res);
     break;
     //tags
 //tags
 case "editag":
     req('meta');
     $ret = editag($id, $va, $opt);
     break;
 case "addtag":
     req('meta');
     $ret = addtag($id, $va, $opt, $optb);
     break;
 case "deltag":
     req('meta');
     $ret = deltag($id, $va, $opt, $optb);
     break;
 case "slctag":
     req('meta');
     $ret = slctag($id, $va, $opt);
     break;
 case "savtag":
     req('meta');
Esempio n. 2
-1
File: meta.php Progetto: philum/cms
function meta_all($id, $prw)
{
    $r['tag'] = 'tag';
    $bt = lj('', $id . '_artin___' . $id . '_' . $prw, picto('valid')) . ' ';
    $re = sql('re', 'qda', 'v', 'id=' . $id);
    $bt .= btd('rdbt' . $id, prior_edit($re, $id)) . ' ';
    //priority
    $ica = explode(' ', prmb(18));
    $ico = explode(' ', prmb(19));
    $r += array_combine($ica, $ico);
    foreach ($r as $cat => $ico) {
        if ($cat) {
            $ret .= editag($id, $cat, $ico);
        }
    }
    $bt .= ljb('', 'SaveJc', implode(';', $_POST['opall']), picto('down')) . br();
    //$arl=explode(' ',prmb(26)); $lang=sql('msg','qdd','v','ib="'.$id.'" and val="lang"');
    //$ret.=radiobtj($arl,$lang,'lang'.$id);
    return divs('min-width:340px;', $bt . $ret);
}