Esempio n. 1
0
 static function slide($r, $p, $rid)
 {
     $j = $rid . '_class___toposlides_j_';
     $v = $r[$p];
     if ($v[0]) {
         $bt1 = lj('', $j . $v[0] . '_' . $rid . '_inp', pictxt('left', $v[0])) . ' ';
     }
     //parent
     if ($v[2]) {
         $bt3 = lj('', $j . $v[2] . '_' . $rid . '_inp', pictxt('down', $v[2])) . ' ';
     }
     //end
     foreach ($r as $ka => $va) {
         if ($va[2] == $p) {
             $bt2 = lj('', $j . $ka . '_' . $rid . '_inp', pictxt('up', $ka)) . ' ';
         }
         //begin
         if ($va[0] == $p) {
             $bt4 .= lj('', $j . $ka . '_' . $rid . '_inp', pictxt('right', $ka)) . ' ';
         }
     }
     $bt = divc('', $bt1 . $bt2 . $bt3 . $bt4 . $bt0);
     //$cell=div(atc('imgl').ats('width:36px'),$bt1.$bt2.$bt3.$bt4);
     $ret = nl2br(stripslashes_b($v[1]));
     $cell = div(ats('margin:auto;'), $ret);
     $ret = $bt . div(atc('book') . ats('display:flex; min-height:300px; width:94%;'), $cell);
     return $ret;
 }
Esempio n. 2
0
File: html.php Progetto: philum/cms
function html_menu($p, $o, $rid)
{
    $j = $rid . '_plug__2_html_html*j___inp';
    $sj = 'SaveJ(\'' . $j . '\')';
    $ret = divc('" onkeyup="' . $sj . '" onclick="' . $sj, txarea('inp', $p, 60, 10, atc('console'))) . ' ';
    //$ret.=lj('',$j,picto('reload'));
    return $ret;
}
Esempio n. 3
0
function environ_art($id)
{
    //return icoart($ib,'','icones');
    $lj = lj('', 'popup_plup___environ_environ*build_' . $id, picto('get'));
    $lk = lk(urlread($id), atc(''), picto('url'));
    $lp = popart($id, '', suj_of_id($id));
    //$ln=pane_art($id);
    return divc('', $lp . ' ' . $lk . ' ' . $lj);
}
Esempio n. 4
0
File: poll.php Progetto: philum/cms
function plug_poll($p, $o)
{
    if ($p == 'init') {
        poll_init();
    }
    if ($p) {
        $ret = poll_menu($p);
    }
    return span(atd('poll' . $p) . atc('small'), $ret);
}
Esempio n. 5
0
File: imtx.php Progetto: philum/cms
function plug_imtx($p, $o)
{
    $rid = 'plg' . randid();
    ses('out', '/plug/_data/imtx.png');
    $j = $rid . '_plug__2_imtx_imt*j_' . $w . '_' . $h . '_txtarec';
    $sj = 'SaveJ(\'' . $j . '\')';
    $ret .= txarea('txtarec', $p, 44, 14, atc('console') . atb('onkeyup', $sj) . atb('onclick', $sj));
    $ret .= lj('', $j, picto('reload')) . ' ';
    return $ret . divd($rid, image(root() . ses('out')));
}
Esempio n. 6
0
File: favs.php Progetto: philum/cms
function fav_render_cols($r)
{
    req('spe');
    if ($r) {
        foreach ($r as $id => $v) {
            $ret .= fav_art($id);
        }
    }
    return div(atc('cols') . ats('width:640px;'), $ret);
}
Esempio n. 7
0
function np_sav($d, $id)
{
    $ret = hidden('', 'cka', 'm' . $d);
    for ($i = 1; $i <= 7; $i++) {
        $c = $i == $d ? 'active' : '';
        $ret .= ljb($c . '" id="ckb' . $i, 'mem_storage', $id . '_m' . $i . '_1_1_ckb' . $i . '_memnu', $i);
    }
    $ret .= ljb('" id="ckc', 'mem_storage', $id . '_cka__1_ckc', 'save');
    return span(atc('nbp') . atd('memnu'), $ret) . hlpbt('memstorage');
}
Esempio n. 8
0
function plug_social($p, $o)
{
    $rid = 'plg' . randid();
    $j = $rid . '_plug__2_social_social*j___txtareb';
    $sj = 'SaveJ(\'' . $j . '\')';
    $ret .= input(1, 'search', $p, '') . ' ';
    $ret .= txarea('txtareb', $p, 61, 18, atc('console') . atb('onkeyup', $sj) . atb('onclick', $sj));
    $ret .= lj('', $j, picto('reload')) . ' ';
    //$ret.=msqlink('clients',ses('qb').'_social').' ';
    return $ret . divd($rid, social_j($p, $o));
}
Esempio n. 9
0
File: umtoa.php Progetto: philum/cms
function umtoa_build()
{
    $r = ummo_toa();
    $ratio = 10;
    foreach ($r as $k => $v) {
        list($aeon, $xee, $txt, $pos, $height, $year) = $v;
        $date = 'Ere ' . $aeon . ' / Xee ' . $xee . ' (' . $year . ') ';
        //$top='top:'.($pos/$ratio+40).'px; ';
        $sty = 'height:' . $height / $ratio . 'px;';
        $css = 'hline ' . ($txt == 'Nuit Noire' ? 'aeonblack' : 'aeon' . $aeon);
        $ret .= div(atc($css) . ats($sty), $date . $txt);
    }
    return div(atc('vline') . ats('height:' . (($pos + $height) / $ratio + 40) . 'px;'), $ret);
}
Esempio n. 10
0
 static function slide($r, $p, $rid)
 {
     $j = $rid . '_class___slides_j_';
     $v = $r[$p];
     if ($r[$p - 1]) {
         $bt1 = lj('', $j . ($p - 1) . '_' . $rid . '_inp', pictxt('left', $p - 1)) . ' ';
     }
     if ($r[$p + 1]) {
         $bt2 = lj('', $j . ($p + 1) . '_' . $rid . '_inp', pictxt('right', $p + 1)) . ' ';
     }
     $bt = divc('', $bt1 . $bt2);
     $ret = nl2br(stripslashes_b($v[0]));
     $cell = div(ats('margin:auto;'), $ret);
     $ret = $bt . div(atc('book') . ats('display:flex; min-height:300px; width:94%;'), $cell);
     return $ret;
 }
Esempio n. 11
0
File: ajax.php Progetto: philum/cms
function popup($t, $d, $w = '', $p = '')
{
    if ($w) {
        $s = 'max-width:' . ($w + 16) . 'px;';
    }
    if ($p == 1) {
        $p = lj('', 'page_deskbkg', picto('desktop')) . ' ';
    }
    if ($p == 2) {
        $p = ljb('', 'pagrepos()', '', picto('expand')) . ' ';
    }
    $popa = popa($t, $p, $s);
    $_SESSION['popm'] = '';
    // onresize="poprepos()"
    return div(atc('popup') . ats($s) . atb('onmouseup', 'stop_drag(event)'), $popa . div(atd('popu') . atc('popu'), $d));
}
Esempio n. 12
0
function plug_gallery($q)
{
    if ($q == "gl") {
        $q = "";
    }
    $img_d = sql('img', 'qda', 'v', 'id="' . $_SESSION['read'] . '"');
    $img_d = substr($img_d, 0, 1) == '/' ? substr($img_d, 1) : $img_d;
    $img_d = str_replace("/", ",", $img_d);
    if ($q == "auto") {
        $s = "";
    } elseif ($q == "manual") {
        $s = $q;
        $imgs = str_replace(",", ",\n", $img_d);
    } elseif ($q == "dir") {
        $s = $q;
        $dirs = br() . plugin('dsnav', 'gl', 'users/' . $_SESSION['qb']);
    } else {
        $s = $q;
    }
    $ret .= bal("b", "source:") . ' ';
    if (!$q) {
        //gallerygl
        if ($img_d) {
            $ret .= lj('popbt', 'popup_gallery__x_auto', "auto") . ' ';
            $ret .= lj('popbt', 'popup_gallery__x_manual', "manual") . ' ';
        }
        $ret .= lj('popbt', 'popup_gallery__x_dir', "user/directory");
    } else {
        $ret .= lj("popbt", 'popup_gallery', $q == "dir" ? "user_directory" : $q);
    }
    if ($imgs) {
        $ret .= br() . txarea('dpl', $imgs, 40, 10, atd('source') . atc('popw') . ats('border:1px solid black'));
    }
    //pb name=src
    if ($dirs) {
        $ret .= $dirs;
    }
    if ($q != "dir" && $q) {
        $ret .= br() . bal("b", "type:") . ' ';
        $ret .= ljb("popbt", "insert_photo", $s . '\',\'', "Thumbnails") . ' ';
        $ret .= ljb("popbt", "insert_photo", $s . '\',\'2', "Ajax") . ' ';
        $ret .= ljb("popbt", "insert_photo", $s . '\',\'1', "Flash") . ' ';
        $ret .= lj("popbt", 'popup_slider_' . ($s == 'manual' ? 'source' : '') . '_3x_' . $s . '_' . $_SESSION['read'], "Slider") . ' ';
    }
    return $ret;
}
Esempio n. 13
0
File: spe.php Progetto: philum/cms
function mini_empty($prm)
{
    list($w, $h) = split("/", prmb(27));
    $out = 'imgc/' . ses('qb') . '_empty.jpg';
    $clr = $_SESSION['clrs'][$_SESSION['prmd']][1];
    if (!$prm or $prm == 'nl') {
        $c = atc('imgl');
    }
    if (!file_exists($out) or $_GET['rebuild_img']) {
        graphics($out, $w, $h, '', $clr, '');
    }
    return image($out, '', '', $c);
}
Esempio n. 14
0
function plug_converts($p)
{
    $rid = 'plg' . randid();
    $bt = conv_menu($p, $o, $rid);
    $ret = conv_j($p, $o);
    return $bt . div(atd($rid) . atc(''), $ret);
}
Esempio n. 15
0
File: twit.php Progetto: philum/cms
function twit_share($p, $o, $res = '')
{
    $rid = 'plg' . randid();
    list($p, $o) = ajxp($res, $p, $o);
    req('spe');
    require_once 'plug/tiers/Twitter.php';
    $t = new Twitter();
    $suj = suj_of_id($p);
    $author = sql_inner('tag', 'qdt', 'qdta', 'idtag', 'v', 'where cat="auteurs" and idart="' . $p . '"');
    if ($author) {
        $suj .= ', ' . ucfirst(nms(88)) . ' ' . $author;
    }
    $url = host() . urlread($p);
    $j = atj('strcount', 'twpost');
    $s = atb('onclick', $j) . atb('onkeypress', $j) . atc('console');
    $ret = balise('textarea', atd('twpost') . atb('cols', 50) . atb('rows', 5) . $s, $suj . ' ' . $url) . br();
    $ret .= lj('popbt', $rid . '_plug___twit_twit*post___twpost', picto('get')) . ' ';
    $ret .= span(atd('strcount') . atc('txtsmall'), '');
    return divd($rid, $ret);
}
Esempio n. 16
0
File: admin.php Progetto: philum/cms
function clpreview($v)
{
    $r = decompact_conn_b($v);
    if ($r[0]) {
        $ret .= divc('txtx', btn('txtblc', 'value') . ' ' . $r[0]);
    }
    if ($r[1]) {
        $ret .= divc('txtx', btn('txtblc', 'option') . ' ' . $r[1]);
    }
    $ret .= divc('txtx', btn('txtblc', 'connector') . ' ' . $r[2]);
    return div(atc('txtbox') . ats('margin:4px;'), $ret);
}
Esempio n. 17
0
File: art.php Progetto: philum/cms
function play_arts($frm, $prw, $tp)
{
    $prw = slct_media($prw);
    $page = $_SESSION['page'];
    $npg = $_SESSION['prmb'][6];
    $min = ($page - 1) * $npg;
    $r = load_arts($frm, $prw);
    //pr($r);
    $nbarts = count($r);
    if (!$r) {
        return;
    }
    //$rb=req_load($r);
    foreach ($r as $k => $v) {
        $i++;
        if ($prw == 'auto') {
            $prw = $rb[$k]['re'] >= 2 ? 2 : 1;
        }
        if ($i >= $min && $i < $npg * $page && $v) {
            $ret .= batch_load($v, $prw, $tp);
        } elseif (rstr(39)) {
            $ret .= div(atd($k) . atc($prw), '');
        }
    }
    if (!rstr(39)) {
        $nbpg = nb_page($nbarts, $npg, $page);
    }
    return $nbpg . $ret . $nbpg;
}
Esempio n. 18
0
File: exec.php Progetto: philum/cms
function plug_exec()
{
    exc_js();
    $rid = 'plg' . randid();
    $j = $rid . '_plug__2_exec_exc*run___txtarea';
    $sj = 'SaveJ(\'' . $j . '\')';
    if ($_SESSION["auth"] < 6) {
        $btn .= btn('txtalert', 'need auth>=7');
    } else {
        $btn .= lj('', $j, picto('reload')) . ' ';
        $btn .= lj('txtx', "popup_plup___exec_exc*lib", "lib") . ' ';
        $btn .= lj('txtx', "popup_plup___exec_exc*fast", "fast") . ' ';
        $btn .= msqlink('system', 'program_core') . ' ';
        $btn .= lj('txtx', "exec", "x") . ' ';
        $btn .= lj('popsav', $j, 'exec') . br();
    }
    $ret .= txarea('txtarea', $p, 61, 18, atc('console'));
    //atb('onkeyup',$sj)..atb('onclick',$sj)
    return $btn . divc('row', $ret) . div(atd($rid) . atc('row'), '');
}
Esempio n. 19
0
File: bazx.php Progetto: philum/cms
function baz_m($p, $o, $rid)
{
    $ret .= txarea('tx', $p, 44, 11, atc('console')) . ' ';
    $ret .= lj('', $rid . '_plug__2_bazx_baz*j___tx', picto('reload')) . ' ';
    return $ret;
}
Esempio n. 20
0
File: styl.php Progetto: philum/cms
function f_inp_facilities($defs, $k)
{
    if (!$defs[$k]) {
        return;
    }
    $val = stripslashes($defs[$k][6]);
    //freecss
    $nc = name_classe($defs[$k]);
    $url = '/?admin=css&edit_css=' . $k;
    $end = divc('clear', '');
    $ret .= btn("txtcadr", trim($nc)) . ' ' . btn('txtsmall2', '#' . $k . '') . ' ';
    $rt['classe'] = facil_css($k, $url, $val) . $end;
    //css_free
    $rt['colors'] = facil_colors($defs, $k, $url) . $end;
    //colors
    $rt['default'] = facil_reset($k, $nc) . $end;
    //reset
    $rt['global'] = facil_globalc($k, $nc) . $end;
    //global
    if ($nc == "@font-face ") {
        $ret .= facil_fonts($defs, $k, $url) . $end;
    }
    //fonts
    $rt['images'] = facil_images($k, $url, $val) . $end;
    //images
    $rt['name'] = facil_names($defs, $k);
    //classname
    $rt['tools'] = facil_pos($defs, $k) . $end;
    //pos
    //$ret.=divc('imgr',facil_pos($defs,$k));
    $ret .= make_tabs($rt, 'csf' . $k);
    return div(atc('clear') . ats('padding:10px; width:550px;'), $ret);
}
Esempio n. 21
0
File: meta.php Progetto: philum/cms
function prior_edit($va, $id)
{
    $css = 'popbt';
    $r = array(2 => picto('s1'), 3 => picto('s2'), 4 => picto('s3'));
    //0=>nms(30),1=>nms(29),
    if ($va == 0) {
        $ret .= lkc($css, '/?read=' . $id . '&trash_art=' . $id, picto('trash')) . '';
    }
    if ($va == 0) {
        $ret .= lkc($css . ' active" title="' . nms(43), '/?read=' . $id . '&delete_art=' . $id, picto('del')) . '';
    }
    $ret .= ljc($css, 'rdbt' . $id, 'meta_prior*sav_' . ($va == 0 ? 1 : 0) . '_' . $id, offon($va)) . ' ';
    foreach ($r as $k => $v) {
        $c = $k == $va ? 'active' : '';
        $j = 'rdbt' . $id . '_call___meta_prior*sav_' . ($k == $va ? 1 : $k) . '_' . $id;
        $js = ' var ob=document.getElementById(\'art\'+' . $id . '); ';
        if ($k) {
            $js .= 'ob.className=ob.className.replace(\'tab hide\',\'tab\');';
        } else {
            $js .= 'ob.className=ob.className.replace(\'tab\',\'tab hide\');';
        }
        $ret .= balb('a', atc($css . ' ' . $c) . atb('onclick', sj($j) . $js), $v) . '';
    }
    return $ret;
}
Esempio n. 22
0
File: mod.php Progetto: philum/cms
function search_btn($va, $o, $id = '', $d = '')
{
    if ($id) {
        $di = 'ada';
    } else {
        $id = 'srch';
    }
    $t = $va != 1 ? $va : nms(24);
    if ($o > 1) {
        $s = $o;
    } else {
        $s = 10;
        if ($o) {
            if (strpos($o, ';') === false) {
                $c = atc($o);
            } else {
                $c = ats($o);
            }
        }
    }
    $j = 'SearchT(\'' . $id . '\')';
    $js = 'onClick="' . $j . '" onkeyup="' . $j . '" onContextMenu="' . $j;
    $ret = autoclic($id . '" ' . $js, $t, $s, '100', '');
    if (!$d) {
        $ret = div(atd($di . '"' . $c), $ret);
    }
    return $ret;
}
Esempio n. 23
0
File: ajax.php Progetto: philum/cms
function pagup($t, $d, $p = '')
{
    $popa = div(atd('popa') . atc('popa') . ats('margin:auto; display:inline-block;'), ljb('', 'Close', 'popup', picto('close')) . $p . bal('small', $t));
    return div(ats(''), $popa . div(atd('popu') . atc('') . ats('margin:auto;'), $d));
}
Esempio n. 24
0
File: art.php Progetto: philum/cms
function prepare_thumb($d, $id)
{
    if ($_SESSION['rstr'][30] == '1') {
        return;
    }
    if ($_SESSION['nl']) {
        $pr = 'nl';
    }
    if (rstr(93)) {
        $mg = best_img_s($d, $id);
        if ($mg) {
            $im = make_thumb_css($mg);
        }
        if ($im) {
            return div(ats('background:url(/imgc/' . $im . ') center;') . atc('thumb'), '');
        }
    }
    return minimg($d, $pr);
}
Esempio n. 25
0
File: pop.php Progetto: philum/cms
function ajxlink($d, $id, $o, $pop)
{
    static $i;
    $i++;
    $here = 'here' . $id . $i;
    $d = str_replace("\n", '', $d);
    $ik = 0;
    if (strin($o, 'notcloseable')) {
        $clb = 1;
    }
    if (strin($o, 'closed')) {
        $cld = 1;
    }
    $cs = 'nbp';
    if ($pop == 'togup') {
        $cld = 1;
    }
    if (strpos($d, ",") !== false) {
        $r = explode(",", $d);
        if (!$_SESSION[$here] && !$cld) {
            $_SESSION[$here] = str_extract('§', $r[0], 1, 0);
        }
        foreach ($r as $k => $v) {
            $hid = strprm($v, 5);
            if ($v && !$hid) {
                if ($pop == 'popup') {
                    $ret .= poplk($v, $here) . ' ';
                } elseif ($pop == 'togup') {
                    $ret .= toglk($v) . ' ';
                } else {
                    $ret .= ajxlk(trim($v), $here, $clb, $ik) . ' ';
                }
                $ik++;
            }
        }
    } else {
        if ($pop == 'popup') {
            $ret .= poplk($d, $here) . ' ';
        } elseif ($pop == 'togup') {
            $ret .= poplk($d, $here) . ' ';
        } else {
            $ret = ajxlk($d, $here, $clb, $ik);
        }
    }
    $ret = div(atd('mnu' . $here) . atc($cs), $ret);
    //$ret=balb('li',atd('mnu'.$here).atc($cs),$ret);
    if ($pop != 'popup' && $_SESSION[$here]) {
        $ter = build_mod_r($_SESSION[$here]);
    }
    $ter = str_replace("\n", " ", $ter);
    return $ret . btd($here, $ter);
}
Esempio n. 26
0
function finder_flap($r, $p, $rb)
{
    $o = mkprm($rb, 'alone', 5);
    $reta = finder_flap_dirs($r, $p, $o);
    $rb = finder_data($r, $p, $rb);
    $retb = finder_flap_files($rb, $o, $p);
    $csa = atc('flap') . ats('width:140px;"');
    $csb = atc('flapf') . ats('width:390px;"');
    return div($csa, divd('fdirs', $reta)) . div($csb, divd('ffils', $retb));
}
Esempio n. 27
0
File: meta.php Progetto: philum/cms
function langslct($r, $vrf, $id)
{
    $rid = randid('rdio');
    //$r=explode(' ',prmb(26));
    if (is_array($r)) {
        foreach ($r as $k => $v) {
            $c = $v == $vrf ? 'active' : '';
            $ret .= ljb($c, 'radioj', $rid . '\',\'' . $id . '\',\'' . ajx($v) . '\',\'' . $k, flag($v));
        }
    }
    return span(atd($rid) . atc('nbp'), $ret) . hidden($id, $id, $vrf);
}
Esempio n. 28
0
function trk_redit($id)
{
    $msg = sql('msg', 'qdi', 'v', 'id=' . $id);
    $ret = lj('popsav', 'trk' . $id . '_trkedit_trkedit_x_' . $id . '', 'save') . btd('bts', '') . ' ';
    $ret .= micro_connedit('trkedit') . br() . txarea('trkedit', $msg, 80, 16, atc('console')) . br();
    return $ret;
}
Esempio n. 29
0
File: stats.php Progetto: philum/cms
function canvas($d, $w, $h)
{
    return balb('canvas', atd('myCanvas') . atb('width', $w) . atb('height', $h) . atc(''), 'error') . bal('script', 'var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d"); ctx.font="12px Arial"; ' . $d);
}
Esempio n. 30
0
function txareacb($d, $c)
{
    $ret .= btd('edtc" style="display:none;', txareac_btns());
    $ret .= div(atb('contenteditable', 'false') . atd('txtareb') . atc($c) . atb('onclick', 'editab(1)'), $d) . br();
    return $ret;
}