function radio_r($r) { foreach ($r as $k => $v) { if (is_array($v)) { $rt = radio_r($v); if ($rt) { $ret .= balc('ul', 'pubart', $rt); } } elseif ($v) { $ret .= llj('popbt', 'popup_radioedit__x__' . ajx($v) . '', $v); } } return $ret; }
function m_system() { $auth = $_SESSION['auth']; $id = ses('read'); $top = rstr(69) ? '' : 'd'; $hv = 1; $ra = array(0 => 'phi2', 1 => 'loading', 2 => 'admin', 3 => 'apps', 4 => 'download', 5 => 'search', 6 => 'articles', 7 => 'add', 8 => 'link', 9 => 'flag', 10 => 'time', 11 => 'phi', 12 => 'phi1', 13 => 'list', 14 => 'user', 15 => 'menu'); foreach ($ra as $k => $v) { $ico[$k] = picto($v); } $ret['home'] = popbub('home', '', $ico[0], $top, $hv); //if(rstr(20)) if (rstr(94)) { $ret['menuB'] = popbub('menubub', '', $ico[15], $top, $hv); } if (rstr(95)) { $ret['menuO'] = popbub('overcat', '', $ico[15], $top, $hv); } if (rstr(51)) { $ret['apps'] = popbub('apps', '', $ico[3], $top, $hv); } if ($auth > 4) { $ret['admin'] = popbub('fadm', 'fastmenu', $ico[2], $top, $hv); } if (rstr(75)) { if ($top) { $ret['search'] = search_btn(nms(24), 'right', '', 1); } else { $ret['search'] = popbub('call', 'search', $ico[5], $top, $hv); } } if ($auth > 1) { if (rstr(83)) { $ret['ucom'] = popbub('call', 'ucom', $ico[8], $top, $hv); } if ($auth > 3 && rstr(76)) { $ret['batch'] = popbub('call', 'batch', $ico[4], $top, $hv); } } if ($auth > 2) { if (rstr(79)) { $ret['addurl'] = popbub('call', 'addart', $ico[7], $top, $hv); } else { $ret['addart'] = li(lja('', sj('popup_addArt____1') . ' closebub(this);', $ico[7])); } } if (rstr(81)) { $ret['favs'] = llj('', 'popup_modpop___favs:plug', picto('like')); } //favs if (rstr(80)) { $ret['arts'] = popbub('', 'arts', $ico[6], $top, $hv); } //arts if ($_SESSION['lang'] != 'all' or rstr(82)) { $ret['lang'] = popbub('lang', 'lang', $ico[9], $top, $hv); } //lang if (abs(ses('dayx') - ses('daya')) > 86400 or rstr(84)) { //back_in_time $ret['time'] = popbub('timetravel', '', $ico[10], $top, $hv); } //archives if (rstr(48)) { if ($top) { $nm = ' ' . btn('small', ses('USE')); } //usr $ret['user'] = popbub('user', '', $ico[14], $top, $hv); } if ($id && rstr(89)) { $ret['seek'] = popbub('seek', '', $ico[13], $top, $hv); } //metas if ($id && auth(6)) { $ret['edit'] = li(lj('', 'popup_metall___' . $id . '_3', picto('tag'))) . li(lj('', 'popup_tit___' . $id . '_3', picto('localize'))) . li(lj('', 'popup_artedit___' . $id . '___autosize', picto('edit'))); } //edit if (auth(6) or $_SESSION['dev']) { $ret['dev'] = popbub('dev', 'dev', $_SESSION['dev'] ? $ico[11] : $ico[12], $top, $hv); } //dev $ret['fixit'] = btd('fixtit', ' '); //$ret['alert']=' '; $_POST['popadm'] = array_merge_b($_POST['popadm'], $ret); }
function popbub($d, $j, $v, $c = '', $o = '') { $id = randid(); //apps+dir or call+predir//j=pre-rendered if ($d == 'call' or $c) { $id = ($c ? $c : 'c') . $id; } $j = 'bubble_popbub__' . $id . '_' . $d . '_' . $j; return llj('', $j, $v, 'bb' . $id, $o); }