| 0641 |
| 0642 public function _get_clear_path($cid) |
| 0643 { |
| 0644 $path = urlencode(Request::getPhpSelf() . '?' . $cid); |
| 0645 strlen($path) % 80 or $path .= '@ff'; |
| 0646 |
| 0647 return '/%' . substr(chunk_split($path, 80, '/'), 3, -1); |
| 0648 } |
| 0649 |
| 0650 public function exit_($type, $msg) |
| 0651 { |
| 0652 throw new RuntimeException(sprintf('%s,%s', $type, $msg)); |
| 0653 } |
| 0654 |
| 0655 // About xprint() and xfetch(), refer http://www.xtac.net/bbs/?prc=read&idx=1091 |
| 0656 public function xprint($file, $type = 'tpl') |
| 0657 { |
| 0658 $this->define(($type == 'txt' ? '!*' : '*'), $file); |
| 0659 $this->print_('*'); |
| 0660 } |
| 0661 |
| 0662 public function xfetch($file, $type = 'tpl') |
| 0663 { |
| 0664 $this->define(($type == 'txt' ? '!*' : '*'), $file); |