Exemplo n.º 1
0
function build_mod_subname($v)
{
    list($m, $p, $t, $c, $e, $g, $ch, $h) = $v;
    $t = str_extract(':', $t, 0, 0);
    if (strpos($p, '§')) {
        $p = str_extract('§', $p, 0, 1);
    }
    if (strpos($p, '__')) {
        $p = str_extract('__', $p, 0, 1);
    }
    $p = str_extract(':', $p, 0, 0);
    $p = str_extract(',', $p, 0, 0);
    $p = str_extract(' ', $p, 0, 0);
    $mb = mimes($m, $t ? $t : $p);
    return ($mb ? $mb . ' ' : '') . $m;
}
Exemplo n.º 2
0
Arquivo: spe.php Projeto: philum/cms
function app_list($r, $c, $cl = '')
{
    if ($r) {
        foreach ($r as $k => $v) {
            $ic = desk_icon($k, $v);
            $ico = mimes($k, $ic, '');
            $ret .= lj($cl . '" title="' . $k, $v, $ico, $c) . ' ';
        }
    }
    return $ret;
}
    exit;
}
if (isset($_GET["import-search"])) {
    parse_examples();
    exit;
}
if (isset($_GET["bodies"])) {
    bodies();
    exit;
}
if (isset($_GET["import-bodies"])) {
    bodies_import();
    exit;
}
if (isset($_GET["mimes"])) {
    mimes();
    exit;
}
if (isset($_GET["import-mime"])) {
    mimes_import();
    exit;
}
if (isset($_GET["ID-ACTION"])) {
    regex_rule_action();
    exit;
}
if (isset($_GET["ID"])) {
    regex_rule();
    exit;
}
if (isset($_POST["ID"])) {
Exemplo n.º 4
0
Arquivo: bubs.php Projeto: philum/cms
function bub_adm_user_fast()
{
    if (ses('USE')) {
        $ret = popbub('user', '', mimes('login') . ' ' . ses('USE'), '', 1);
    }
    return $ret;
}
Exemplo n.º 5
0
function finder_flap_files($r, $o, $p)
{
    $jc = fi_droot();
    foreach ($r as $k => $v) {
        if (!$v['r']) {
            $furl = $jc . $v['url'];
            if ($v['img']) {
                list($w, $h) = fi_sizes($furl);
                $ico = ljb('', 'SaveBf', 'photo_users(slash)' . $v['j'] . '' . $w . '_' . $h, $v['img']) . ' ';
            } else {
                $ico = mimes($v['xt'], '', 18) . ' ';
            }
            $op = lkt('txtsmall', $furl, picto('url')) . ' ';
            if ($v['xt'] == '.mp3') {
                $mp3 = 1;
            }
            if ($v['xt'] == '.jpg') {
                $jpg = 1;
            }
            $lk = lj('', 'popup_fifunc___fi*reader*pop_' . $v['j'] . $v['dist'], etc($v['f'], 40)) . ' ';
            if (!auth(4)) {
                $sh = lkc('', 'plug/download.php?file=' . $furl, fi_pic('download'));
            } elseif ($v['prop'] == $_SESSION['qb']) {
                $sh = fi_info_shared($v['url'], randid());
            }
            $ret .= divc('', $ico . $op . $sh . $lk);
        }
    }
    $dir = '../' . str_extract('/', $furl, 1, 0);
    if ($mp3) {
        $rt = lj('', 'popup_callp___pop_jukebox_' . $dir . '_autosize', picto('play'));
    }
    if ($jpg) {
        $rt = lj('', 'popup_callp___pop_gallery*j_' . $dir . '_autosize', picto('play'));
    }
    return $rt . $ret;
}