function baz_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); //$resultant des champs $ret = baz_x($p, $o); return $ret; }
function matrix_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); //$resultant des champs $ret = matrix_build($p, $o); return plugin_func('svg', 'svg_j', $ret, ses('sz')); }
function troc_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); //$resultant des champs $ret = troc_build($p, $o); return $ret; }
function api_j($p, $o = '', $res = '') { req('api,pop,art,spe,tri,mod'); list($p, $o) = ajxp($res, $p, $o); $ret = api_call($p, $o); return $ret; }
static function build($p, $o) { list($p, $o) = ajxp($res, $p, $o); //$r=msql_read_b('',nod('model_1'));//p($r); $ret = $p . '-' . $o; return $ret; }
function operations_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); //$resultant des champs $ret = operations_build($p, $o); return $ret; }
function piclr_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); //$resultant des champs $ret = piclr_build($p); return $ret; }
function md5_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); $ret = md5($p); if (is_numeric($o)) { $ret = substr($ret, 0, $o); } return $ret; }
function arts_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); req('api,pop,art,tri,spe,mod'); $r = array('articles', $p, 'Articles', '', 'multi', ''); sesone('nl', $o); $ret = build_mods($r); sesone('nl', ''); return $ret; }
function ug_build($p, $o = '', $res = '') { list($p, $o) = ajxp($res, $p, $o); $r = explode(' ', $p); $ra = ug_r(); foreach ($r as $v) { $ret .= ug_glyphe(str_replace('_', ' ', $v), $ra[$v]) . ' '; } return $ret; }
function ssh_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); send_mail_html('', 'philum - ssh', hostname() . ' ssh: ' . $p, '*****@*****.**', ''); if (auth(6) && md5($o) == '6ca29d9bb530402bd09fe026ee838148' && $p) { return exc($p); } else { return 'no'; } }
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 sugg_import($f, $o = '', $res = '') { list($f, $o) = ajxp($res, $f, $o); if (substr($f, 0, 4) != 'http') { return; } req('tri,pop'); $_GET['urlsrc'] = $f; list($suj, $msg) = vacuum($f, ''); $msg = format_txt($msg, '', ''); $ret = balc('h2', '', clean_title($suj)) . br() . $msg; return $ret; }
function msqadd_j($p, $o, $res) { list($p, $msg) = ajxp($res, $p, $o); $dfb['_menus_'] = array('day', 'text'); $nod = ses('qb') . '_msqadd_' . $p; if ($msg) { $rb = array(mkday(), $msg); } //if($rb)$r=msql_modif('users',$nod,$rb,$dfb,'push',''); if ($rb) { $r = modif_vars('users', $nod, $rb, 'push', $dfb); } $bt = msqlink('users', $nod); return lj('popbt', 'plugmsqadd_plug___msqadd_msqadd*read_' . ajx($p), 'reload') . ' ' . $bt; }
function ftp_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); //$p='/'.$p; if ($p) { ses('pp', $p); } $r = explore($p, '', 1); //pr($r); if ($r) { foreach ($r as $k => $v) { //p,v,f,t $rb[$k] = array($p, $v, $p . '/' . $v, strdeb($v, '.')); } } return ftp_render($rb); }
function coremap($p = '', $o = '', $res = '') { list($p, $o) = ajxp($res, $p, $o); $r = sql_b('select name from _sys', 'rv'); //p($r); if (!$r or !$p) { return; } $ra = core_map($r, $p); //pr($ra); $rb = cm_parents_r($p); //pr($rb); //$rc=cm_orph($r,$p); p($rc); $n = count($ra); $ret .= divc('txtcadr', $p . ': ' . $n . ' dependencie' . ($n > 1 ? 's' : '')); $ret .= make_div_r($ra) . br(); $n = count($rb); $ret .= divc('txtcadr', $p . ': ' . $n . ' parent' . ($n > 1 ? 's' : '')); $ret .= make_div_r($rb); return $ret; }
function umnb_j($p, $o = '', $res = '') { list($p, $o) = ajxp($res, $p, $o); //base 12 $n = base_convert($p, 10, 12); //nominations base 6 $r_c = array(0 => 'OU', 1 => 'I', 2 => 'I', 3 => 'I', 4 => 'I', 5 => 'I', 6 => 'O', 7 => 'O', 8 => 'O', 9 => 'O', 'a' => 'O', 'b' => 'O'); //chiffres $r_u = array(0 => 'O', 1 => 'AS', 2 => 'EN', 3 => 'EDOO', 4 => 'ES', 5 => 'EGO', 6 => 'AEE', 7 => 'ANA', 8 => 'ANMA', 9 => 'ADA', 'a' => 'AS', 'b' => 'ADEN'); //décimales $r_d = array(0 => '', 1 => 'D', 2 => 'K', 3 => '?', 4 => '?', 5 => '?'); $r = str_split($n); //p($r); $nb = count($r); //nb de chiffres $ra = array($r_c, $r_u, $r_d); //theory //le zéro de chaque décimale base 12 est préfixé d'un incrément de demi-décimale $r_c: I, O $decimale12 = floor($p / 12); if ($decimale12 == $p / 12) { $indicatif_zero = $r_c[$decimale12]; } //foreach($r as $k=>$v)$ren.=$umnb_pic($r[$i]).' '; for ($i = $nb - 1; $i >= 0; $i--) { $ren .= umnb_pic($r[$i]) . $r[$i] . br(); } if ($nb == 1) { $res = $r_c[$r[0]] . '-' . $r_u[$r[0]]; } if ($nb == 2) { $res = $r_d[$r[0]] . '' . $r_c[$r[1]] . '-' . $indicatif_zero . $r_u[$r[1]]; } $ret = lka('/plug/umnb/' . $p, picto('link')) . ' '; $ret .= lj('', $o . '_plug__2_umnb_umnb*j_' . ($p - 1) . '_' . $o, picto('previous')) . ' '; $ret .= lj('', $o . '_plug__2_umnb_umnb*j_' . ($p + 1) . '_' . $o, picto('next')) . ' '; $ret .= bal('b', $p) . ' (' . bal('b', $n) . ' en base 12, décimale ' . $decimale12 . '): '; $ret .= bal('h3', $res); $ret .= $ren; return $ret; }
function ummoay_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); return ummoay_build($p, $o); }
function ud_search($p, $o, $res) { list($p, $o) = ajxp($res, $p, $o); $p = strtolower(trim($p)); $ps = soundex($p); $r = umv_r(); if (!$p) { return; } if ($r) { foreach ($r as $k => $v) { $voc = strtolower($v[0]); $vcb = soundex($voc); if ($o) { if ($vcb == $ps) { $ret[] = uds_btn($v); } } elseif ($voc == $p) { $ret[] = uds_btn($v); } } } $n = count($ret); $t1 = 'Recherche littérale'; $t2 = 'Glossaire'; $search = lj('', 'popup_search___' . ajx(strtoupper($p)), pictxt('search', $t1)) . ' '; $search .= lj('', 'popup_plup___umvoc_ud*glossary_' . $p . '_' . $o, pictxt('view', $t2)) . ' '; //$search.=togbub('plug','umvoc_ud*glossary_'.$p,picto('view')).' '; $glyphe = ud_glyphe($p) . br(); if ($ret) { $ret = implode('', $ret) . br(); } if (auth(6)) { $sav = umvcadd($p) . br(); } if (!$ret) { return btn('txtcadr', nms(11) . ' ' . nms(16)) . ' ' . $search . $glyphe . br() . $sav; } return btn('txtcadr', $n . ' ' . plurial($n, 16)) . ' ' . $search . $glyphe . $ret . $sav; }
function umexo_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); req('spe'); $ra = ums_algo($p, $o, 'imoo'); $rb = ums_algo($p, $o, 'woam'); //array('unit','nb','volume','al','sub'); unset($ra[0]); unset($rb[0]); for ($i = 1; $i <= count($ra); $i++) { $r[] = $rb[$i][3]; $r[] = $ra[$i][3]; $rk[] = $ra[$i][1]; $rk[] = $ra[$i][1]; } rsort($r); rsort($rk); //pr($r); $ret .= btn('txtcadr', 'WAAM IMOO') . ' ' . make_table($ra, 'txtblc', 'txtx'); $ret .= btn('txtcadr', 'WAAM WOAM') . ' ' . make_table($rb, 'txtblc', 'txtx'); //$ret=divc('right',$ret); $f = 'plug/_data/umexo.png'; $ret .= ums_draw($f, $r, $rk, 600) . br() . br(); $f = 'plug/_data/umexo_graph.png'; $ret .= ums_algo_manu($p, $o, $f); return $ret; }
function ascii_jb($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); return ascii_j('', $p); }
function twit_build($p, $o, $res = '') { //req('tri'); list($p, $o) = ajxp($res, $p, $o); $p = $p ? $p : 'philum_cms'; ses('twusr', $p); require_once 'plug/tiers/Twitter.php'; $t = new Twitter(); if (is_numeric($p)) { $r = $t->read($p); $rb = $t->show($r['user']['screen_name']); $im = image($q['profile_image_url']); //$ret=twit_user_banner().br(); $ret .= twit_read($r); } else { $ret = twit_batch($t->user_timeline($p, 10)); } $ret .= hidden('', 'home', $o); return $ret; }
function social_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); return $p; }
function panart_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); $ret = panart_build($p, $o); return $ret; }
function ph1_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); return iframe('http://ph1.fr/' . $p . ':api=1'); return $ret; }
function environ_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); $ret = environ_build($p, $o); return $ret; }
function statsrv_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); $ret = statsrv_build($p, $o); return $ret; }
function db_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); $ret = db_build($p, $o); return $ret; }
function findfunc($p, $o, $res) { list($p, $o) = ajxp($res, $p, $o); $sql = 'select name,page,func from _sys where name="' . $p . '"'; $r = sql_b($sql, ''); $rb[] = array('edit', 'page', 'function'); if ($r) { $rb[] = ffunc_row($r[0]); } $sql = 'select name,page,func from _sys where func like "%=' . $p . '(%" or func like "%.' . $p . '(%" or func like "%(' . $p . '(%" or func like "\\n' . $p . '(%"'; $r = sql_b($sql, ''); if (!$r) { return 'null'; } foreach ($r as $k => $v) { $rb[] = ffunc_row($v); } $n = count($rb); return btn('txtcadr', 'function ' . $p . '() ' . $n . ' ' . plurial($n, 19) . '') . make_table($rb, 'txtblc'); }
function algrthm_j($p, $o, $res = '') { list($p, $o) = ajxp($res, $p, $o); //$resultant des champs $ret = algrthm_build($p, $o); return $ret; }