function codeline($v, $p, $c) { //v§p:c //v:c switch ($c) { //elements case 'br': return br(); break; case 'hr': return hr(); break; case 'balise': if ($p) { @(list($bal, $id, $css, $sty) = explode('|', $p)); if ($v) { return balise($bal, array(5 => $css, 3 => $id, 16 => $sty), $v); } } break; case 'html': if ($p && $v) { return bal($p, $v); } break; case 'span': if (trim($v)) { return span($p, $v); } break; case 'div': if (trim($v)) { return div($p, $v); } break; case 'css': if (trim($v)) { return btn($p, $v); } break; case 'clear': return divc($c, $v); break; //attributs //attributs case 'id': return atd($c, $v); break; case 'class': return atb($c, $v); break; case 'style': return atb($c, $v); break; case 'name': return atb($c, $v); break; case 'font-size': return atb($c, $v); break; case 'font-family': return atb($c, $v); break; //apps //apps case 'text': return $v ? $v : $p; break; case 'url': return lka($v, $p ? $p : preplink($v)); break; case 'jurl': return lj('', $v, $p); break; case 'link': return special_link($v . '§' . $p); break; case 'ajx': return lj('', 'popup', '_' . $p, $v); break; case 'anchor': return '<a name="' . $v . '"></a>'; break; case 'date': return mkday(is_numeric($p) ? $p : '', $v); break; case 'title': return suj_of_id($v); break; case 'read': return read_msg($p, 3); break; case 'image': return image($v); break; case 'thumb': return make_thumb_d($v, $p); break; case 'picto': return picto($v, $p); break; //high_level //high_level case 'cut': list($s, $e) = split("/", $p); return embed_detect($v, $s, $e, ''); break; case 'split': return explode($p, $v); break; case 'conn': return connectors($v . ':' . $p, 3, ''); break; case 'exec': if (auth(5)) { $data = $p; eval($v); return $output; } break; case 'core': if (is_array($v)) { return call_user_func($p, $v, '', ''); } else { $vb = explode('/', $v); return call_user_func($p, $vb[0], $vb[1], $vb[2], $vb[3]); } break; case 'plug': return plugin($v, $p); break; case 'foreach': foreach ($v as $va) { $ret .= cbasic_exec($va, '', '', $o); } return $ret; break; default: return $v; } }
function user_menu($p) { if (!$p) { $p = 'home hubs plan'; } $r = explode(' ', $p); $n = count($r); for ($i = 0; $i < $n; $i++) { $ret .= special_link($r[$i], '') . ' '; } return $ret; }