예제 #1
0
파일: site.php 프로젝트: NatWeiss/JankyPHP
 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
파일: email.php 프로젝트: NatWeiss/JankyPHP
 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);
 }