Mercurial > hg > rc2
comparison program/include/rcmail_output_html.php @ 5:3a5f959af5ae
debugging aids, all commented out
| author | Charlie Root |
|---|---|
| date | Thu, 30 Aug 2018 16:15:17 -0400 |
| parents | 4681f974d28b |
| children | b631c1c7a3ce |
comparison
equal
deleted
inserted
replaced
| 4:1ab920879b88 | 5:3a5f959af5ae |
|---|---|
| 603 } | 603 } |
| 604 else { | 604 else { |
| 605 $path = false; | 605 $path = false; |
| 606 } | 606 } |
| 607 } | 607 } |
| 608 #rcube::write_log('mail',"skin: $skin_path $realname $path"); | |
| 608 | 609 |
| 609 // read template file | 610 // read template file |
| 610 if (!$path || ($templ = @file_get_contents($path)) === false) { | 611 if (!$path || ($templ = @file_get_contents($path)) === false) { |
| 611 rcube::raise_error(array( | 612 rcube::raise_error(array( |
| 612 'code' => 404, | 613 'code' => 404, |
| 631 } | 632 } |
| 632 | 633 |
| 633 // parse for specialtags | 634 // parse for specialtags |
| 634 $output = $this->parse_conditions($templ); | 635 $output = $this->parse_conditions($templ); |
| 635 $output = $this->parse_xml($output); | 636 $output = $this->parse_xml($output); |
| 637 #rcube::write_log('mail',"px: ".strlen($output)); | |
| 636 | 638 |
| 637 // trigger generic hook where plugins can put additional content to the page | 639 // trigger generic hook where plugins can put additional content to the page |
| 638 $hook = $this->app->plugins->exec_hook("render_page", array('template' => $realname, 'content' => $output)); | 640 $hook = $this->app->plugins->exec_hook("render_page", array('template' => $realname, 'content' => $output)); |
| 639 | 641 |
| 640 // save some memory | 642 // save some memory |
| 1043 // execute command | 1045 // execute command |
| 1044 switch ($command) { | 1046 switch ($command) { |
| 1045 // return a button | 1047 // return a button |
| 1046 case 'button': | 1048 case 'button': |
| 1047 if ($attrib['name'] || $attrib['command']) { | 1049 if ($attrib['name'] || $attrib['command']) { |
| 1048 return $this->button($attrib); | 1050 #rcube::write_log('lab',"button in: ".print_r($attrib,true)); |
| 1051 $but = $this->button($attrib); | |
| 1052 #rcube::write_log('lab',"button out:\n$but"); | |
| 1053 return $but; | |
| 1054 | |
| 1049 } | 1055 } |
| 1050 break; | 1056 break; |
| 1051 | 1057 |
| 1052 // frame | 1058 // frame |
| 1053 case 'frame': | 1059 case 'frame': |
