function plug_slides($p, $o) { $rid = randid('tpo'); $p = $p ? $p : 1; $_SESSION['nodslid'] = nod('slides_' . $p); Head::add('csscode', '.book a, .book:hover .philum{color:white;}'); $ret = slides::build($o, $rid); return divd($rid, delbr($ret, "\n")); }
function clean_internaltag($msg) { return correct_txt($msg, '', 'delconn'); $msg = str_replace("\n", " \n", delbr($msg, "\n")); $re = explode(' ', $msg); foreach ($re as $k) { if (strpos($k, '§') !== false) { list($lin, $txt) = explode('§', $k); $ret .= $lin . ' ' . $txt . ' '; } else { $ret .= $k . ' '; } } $msg = str_replace(" \n", "\n", $msg); return stripconn($ret); }
function progcode($d) { $d = delbr($d, "\n"); //$d=str_replace(array('{{','}}'),array('{ {','} }'),$d); $d = highlight_string('<' . '?php' . "\n" . $d . "\n" . '?' . '>', true); $d = str_replace(array('<span style="color: #0000BB"><?<br /></span>', '<span style="color: #0000BB">?></span>', "\n</span>", " ", ' </span>', ' '), array('', '', '</span>', ' ', '</span>', "  "), $d); return divs('overflow:auto; wrap:true; font-size:12px;', $d); }
function parse_output($msg) { $msg = str_replace($_SESSION['qb'] . '_', host() . '/img/' . $_SESSION['qb'] . '_', $msg); $msg = clean_internaltag($msg); //correct_txt($msg,'','delconn') if (strpos($msg, "\n") === false) { $msg = delbr($msg, "\n"); } else { $msg = str_replace("<br>", " ", $msg); } //$msg=trim($msg,"\x00..\x1F"); $msg = html_entity_decode($msg); $msg = stripslashes($msg); return $msg; }
function seesrc($f) { //return $d=highlight_file($f,true); $d = @file_get_contents($f); $enc = mb_detect_encoding($d); if ($enc == 'UTF-8') { $d = utf8_decode($d); } $d = delbr($d, "\n"); $d = substr($d, strpos($d, '<body')); //$d=addslashes($d); $d = highlight_string($d, true); //$d=entities($d); //$d=nl2br($d); return $d; }