示例#1
0
文件: slides.php 项目: philum/cms
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"));
}
示例#2
0
文件: tri.php 项目: philum/cms
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);
}
示例#3
0
文件: pop.php 项目: philum/cms
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">&lt;?<br /></span>', '<span style="color: #0000BB">?&gt;</span>', "\n</span>", "&nbsp;", '  </span>', '  '), array('', '', '</span>', ' ', '</span>', "&nbsp;&nbsp"), $d);
    return divs('overflow:auto; wrap:true; font-size:12px;', $d);
}
示例#4
0
文件: tri.php 项目: philum/cms
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;
}
示例#5
0
文件: ajxf.php 项目: philum/cms
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;
}