function mq_tables($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); $r = lstrc(rcptb($p)); if ($r) { foreach ($r as $v) { $ret .= lj('', 'mqm_plug___mysqm_mq*cols_' . ajx($v) . '_' . ajx($p), $v); } } //$ret=walkeach($r,'mqt_w',$p);implode('',) return btn('list', $ret); }
function adm_nodes($auth, $goto) { connect(); $valu = autoclic('qd', 'node', '15', '255', '') . ' '; $valu .= submitj('txtbox', 'create_node', 'create_node'); $ret .= form($goto . '&node=install" id="create_node', btn('panel', $valu)) . br(); $ret .= 'this will create a new Node of Hubs, at url: /?qd=node' . br(); $ret .= 'write $qd="pub"; in _connectx to assign a domaine name to this node' . br() . br(); $dblist = lstrc(rcptb($db)); //p($dblist); if (is_array($dblist) && auth(7)) { foreach ($dblist as $k) { $qds[substr($k, 0, strpos($k, '_'))] += 1; } foreach ($qds as $k => $b) { $csb = $k == $_SESSION['qd'] ? 'active' : ''; if ($k) { $ret .= lkc($csb, '/?qd=' . $k, $k) . br(); } } } if ($_GET['node'] == 'install') { $_SESSION['first'] = 1; $ret .= plugin('install', $_POST['qd']); } return $ret; }