function plug_menu($d, $p, $o, $dr) { if ($dr) { $dr = '/' . $dr; } //$ret.=li(lien('txtsmall','/plug/index',picto('phi'))); $ret .= popbub('plug', 'plugin', picto('phi2'), 'd', 1); //$ret.=llj('','popup_plup___plug_plug*slct',picto('list')); $ret .= li(lkc('txtsmall', host() . '/plug/' . $d . ($p ? '/' . $p : '' . ($o ? '/' . $o : '')), picto('reload'))); $ret .= li(call_plug('txtsmall', 'popup', 'codeview', 'plug' . $dr . '_' . ajx($d), picto('conn'))); //source if (auth(3)) { $ret .= msqlink('system', 'program_plugs') . ' '; } $ret .= plug_hlp($d); if (auth(4)) { $ret .= lj('', 'popup_editmsql___system/program*plugs_' . ajx($d) . '__1', picto('edit')) . ' '; $ret .= lj('', 'popup_editmsql___lang/fr/program*plugs_' . ajx($d) . '__1', picto('flag')) . ' '; } return mkbub($ret, 'inline', '', 'this.style.zIndex=popz+1;') . divc('admnu', ''); }
function bub_apps($r, $d, $dir, $cond) { //$r,,dir,cond if ($dir == 'zero') { $dir = ''; $dd = 'd'; } $dr = explode('/', $dir); $nd = $dir ? count($dr) : 0; if ($r) { foreach ($r as $k => $v) { $rc = array_flip(explode(' ', ' ' . $v[5])); if ($rc[$cond ? $cond : 'menu'] or !$v[5]) { $t = $v[0]; $rv = explode('/', $v[6]); $nv = $v[6] ? count($rv) : 0; $ico = $v[7] ? picto($v[7], 'min-width:20px;') . ' ' : ''; $rvb = $rv[$nv - 1]; if ($dir == $v[6]) { $is = true; } else { $is = match_vdir($dr, $nd, $rv); } if ($is && $nv >= $nd + 1 && !$v[8] && auth($v[9])) { $root = $v[6]; //dirs if ($nv >= $nd + 1) { $rvb = $rv[$nd]; $rot = ''; for ($i = 0; $i <= $nd; $i++) { $rot[] = $rv[$nd - $i]; } $rot = array_reverse($rot); if ($rot) { $root = implode('/', $rot); } } $pc = picto('kright', '20px') . ' ' . $rvb; if ($dd) { $pc = $rvb; } $rb[$rvb] = popbub($v[4] ? $v[4] : $d, ajx($root), $pc, $dd, 1); } if ($is && $nv > $nd) { $is = false; } if ($is && !$v[8] && (!$v[9] or auth($v[9]))) { //noj if ($v[1] == 'link') { $rb[$t] = ljbub($ico . $t, $v[3], '', '', '', ''); } elseif ($v[1] == 'linkt') { $rb[$t] = ljbub($ico . $t, $v[3], '', '', '', '1'); } elseif ($v[1] == 'js') { $rb[$t] = ljbub($ico . $t, '', atj($v[2], $v[3])); } elseif ($v[1] == 'bub') { $rb[$t] = popbub($v[2], $v[3], $ico . $t, 'c', 1); } elseif ($v[1] == 'module') { req('mod'); $rb[$t] = build_mod_r($v[2]); } else { $j = read_apps($v); $rb[$t] = ljbub($ico . $t, '', sj($j)); } } } } } if ($rb) { $ret = implode('', $rb); } //if($d=='arts')//$ret=desktop_build_ico($rb,'icones'); //$ret=scroll($rb,$ret,19); return $ret; }
function bubble_menus($t, $inl = '') { //mods/submenus if (!$t) { return; } $nbo = 0; $n = "\n"; $r = explode("\n", $t . $n); foreach ($r as $n => $k) { $nb = substr_count(substr($k, 0, 9), '-'); $tit = substr($k, $nb); $tit = trim($tit); if ($tit) { list($lk, $d) = submn_t($tit); $cat[$nb] = $tit; $ct = ''; $ct = $cat[0]; for ($i = 2; $i <= $nb; $i++) { $ct .= '/' . $cat[$i - 1]; } $isdir = substr($r[$n + 1], 0, 1) == '-' ? 1 : 0; if ($nb == 0 && $isdir) { $ret .= popbub('bubses', ajx($d), $d, 'd'); } elseif ($nb == 0) { $ret .= li(lkc('', $lk, $d)); } else { $ra[] = array($d, 'link', '', $lk, '', '', $ct, ''); } } } $_SESSION['bubses'] = $ra; return mkbub($ret, $inl, 1, ''); }
function bub_apps($r, $d, $dir, $cond) { //$r,,dir,cond//p($r); echo 'oo'; $dr = explode('/', $dir); $nd = $dir ? count($dr) : 0; if ($r) { foreach ($r as $k => $v) { $rc = array_flip(explode(' ', ' ' . $v[5])); if ($rc[$cond ? $cond : 'menu'] or !$v[5]) { $rv = explode('/', $v[6]); $nv = $v[6] ? count($rv) : 0; $t = $v[0]; $ico = $v[7] ? picto($v[7]) . ' ' : ''; $rvb = $rv[$nv - 1]; if ($dir == $v[6]) { $is = true; } else { $is = match_vdir($dr, $nd, $rv); } if ($is && $nv == $nd + 1 && !$v[8] && auth($v[9])) { //dirs $rb[$rvb] = popbub($v[4] ? $v[4] : $d, $v[6], picto('kright') . ' ' . $rvb, $dd, 1); } if ($is && $nv > $nd) { $is = false; } if ($is && !$v[8] && (!$v[9] or auth($v[9]))) { //noj if ($v[1] == 'link') { $rb[$t] = ljbub($ico . $t, $v[3], '', '', '', ''); } elseif ($v[1] == 'linkt') { $rb[$t] = ljbub($ico . $t, $v[3], '', '', '', '1'); } elseif ($v[1] == 'js') { $rb[$t] = ljbub($ico . $t, '', atj($v[2], $v[3])); } elseif ($v[1] == 'bub') { $rb[$t] = popbub($v[2], $v[3], $ico . $t, 'c', 1); } else { $j = read_apps($v); $rb[$t] = ljbub($ico . $t, '', sj($j)); } } } } } if ($rb) { $ret = implode('', $rb); } //if($d=='arts')//$ret=desktop_build_ico($rb,'icones'); $ret = scroll($rb, $ret, 19); return $ret; }
function msql_menus_j($ra) { $top = rstr(69) ? '' : 'd'; list($b, $d, $p, $t, $ver, $def) = $_SESSION['murl']; if ($d) { $bdr = '/' . $d; } $tn = $t; if ($ver) { $tn .= '_' . $ver; } $ret .= popbub('admsq', '', picto('msql'), $top, 1); if ($d) { $ret .= popbub('admsq', $b . $bdr, $d, $top, 1); } else { $ret .= popbub('admsq', $b . $bdr, $b, $top, 1); } if ($p) { $ret .= popbub('admsq', $b . $bdr . '/' . $p, $p, $top, 1); } if ($t) { $ret .= popbub('admsq', $b . $bdr . '/' . $p . '/' . $t, $tn, $top, 1); } return $ret; }
function admin_menus() { $top = rstr(69) ? '' : 'd'; $rico = array('Global' => 'admin', 'Articles' => 'articles', 'User' => 'user', 'Builders' => 'builders', 'Microsql' => 'server', 'Actions' => 'like'); $r = sesmk('adminauthes'); foreach ($r as $k => $v) { if ($rico[$k]) { $ret .= popbub('admn', $k, picto($rico[$k]), $top, 1); } } return $ret; }
function bubslct($j, $t) { $j = str_replace('_', '.', $j); $ret = popbub($j, 'bub', $t, 'd'); return mkbub($ret, '', '1', 'popz+=1; this.style.zIndex=popz;'); }
function bubble_menus($t, $inl = '') { //mods/submenus if (!$t) { return; } $nbo = 0; $n = "\n"; $r = explode("\n", $t . $n); //$id=randid(); foreach ($r as $k) { $nb = substr_count($k, "-"); $tit = substr($k, $nb); $tit = trim($tit); if ($tit) { list($lk, $d) = submn_t($tit); $cat[$nb] = $tit; $ct = ''; $ct = $cat[0]; for ($i = 2; $i <= $nb; $i++) { $ct .= '/' . $cat[$i - 1]; } if ($nb == 0) { $ret .= popbub('bubses', ajx($d), $d, 'd'); } else { $ra[] = array($d, 'link', '', $lk, '', '', $ct, ''); } } } $_SESSION['bubses'] = $ra; return div(atc($inl) . atd('bub') . ats('position:relative; text-decoration:none;'), ul($ret)); }