Example #1
0
File: admin.php Project: philum/cms
function clean_code($d)
{
    if (strpos($d, '<') !== false) {
        $d = parse($d);
    }
    return stripslashes_b($d);
}
Example #2
0
 static function slide($r, $p, $rid)
 {
     $j = $rid . '_class___toposlides_j_';
     $v = $r[$p];
     if ($v[0]) {
         $bt1 = lj('', $j . $v[0] . '_' . $rid . '_inp', pictxt('left', $v[0])) . ' ';
     }
     //parent
     if ($v[2]) {
         $bt3 = lj('', $j . $v[2] . '_' . $rid . '_inp', pictxt('down', $v[2])) . ' ';
     }
     //end
     foreach ($r as $ka => $va) {
         if ($va[2] == $p) {
             $bt2 = lj('', $j . $ka . '_' . $rid . '_inp', pictxt('up', $ka)) . ' ';
         }
         //begin
         if ($va[0] == $p) {
             $bt4 .= lj('', $j . $ka . '_' . $rid . '_inp', pictxt('right', $ka)) . ' ';
         }
     }
     $bt = divc('', $bt1 . $bt2 . $bt3 . $bt4 . $bt0);
     //$cell=div(atc('imgl').ats('width:36px'),$bt1.$bt2.$bt3.$bt4);
     $ret = nl2br(stripslashes_b($v[1]));
     $cell = div(ats('margin:auto;'), $ret);
     $ret = $bt . div(atc('book') . ats('display:flex; min-height:300px; width:94%;'), $cell);
     return $ret;
 }
Example #3
0
 static function slide($r, $p, $rid)
 {
     $j = $rid . '_class___slides_j_';
     $v = $r[$p];
     if ($r[$p - 1]) {
         $bt1 = lj('', $j . ($p - 1) . '_' . $rid . '_inp', pictxt('left', $p - 1)) . ' ';
     }
     if ($r[$p + 1]) {
         $bt2 = lj('', $j . ($p + 1) . '_' . $rid . '_inp', pictxt('right', $p + 1)) . ' ';
     }
     $bt = divc('', $bt1 . $bt2);
     $ret = nl2br(stripslashes_b($v[0]));
     $cell = div(ats('margin:auto;'), $ret);
     $ret = $bt . div(atc('book') . ats('display:flex; min-height:300px; width:94%;'), $cell);
     return $ret;
 }
Example #4
0
File: lib.php Project: philum/cms
function msq_data($d, $o = '')
{
    $d = stripslashes_b($d);
    if (strpos($d, '<') !== false or strpos($d, '>') !== false) {
        $d = entities($d);
    }
    //$d=parse($d);
    if ($o) {
        $d = nl2br($d);
    }
    return $d;
}