Пример #1
0
 function draw($condense = false)
 {
     // get buffer
     $txt = funx::inc(DIR_KIT . 'html/header.html') . ob_get_contents() . funx::inc(DIR_KIT . 'html/footer.html');
     // replace buffer contents
     ob_clean();
     $out = self::replace($txt);
     if ($condense) {
         $out = self::condense($out);
     }
     echo $out;
 }
Пример #2
0
 static function parse($fname, $args)
 {
     $msg = explode("\n", funx::inc($fname, $args));
     $subject = trim(array_shift($msg));
     $body = ra::condense($msg, '<br />');
     return array($subject, $body);
 }