| | |
| | | |
| | | if (strlen($this->scripts['foot'])) |
| | | $__page_footer .= sprintf($this->script_tag, $this->scripts['foot']); |
| | | |
| | | if ($this->footer) |
| | | $__page_footer .= "\n" . $this->footer; |
| | | |
| | | $__page_header .= $this->css->show(); |
| | | |
| | |
| | | |
| | | // find and add page footer |
| | | $output_lc = strtolower($output); |
| | | if(($fpos = strrpos($output_lc, '</body>')) || |
| | | ($fpos = strrpos($output_lc, '</html>'))) |
| | | { |
| | | $output = substr($output,0,$fpos) . "$__page_footer\n" . substr($output,$fpos,strlen($output)); |
| | | } |
| | | if(($fpos = strrstr($output_lc, '</body>')) || |
| | | ($fpos = strrstr($output_lc, '</html>'))) |
| | | $output = substr($output,0,$fpos) . "$__page_footer\n" . substr($output,$fpos); |
| | | else |
| | | $output .= "\n$__page_footer"; |
| | | |
| | |
| | | // send header with expire date 30 days in future |
| | | function send_future_expire_header() |
| | | { |
| | | if (!headers_sent()) |
| | | header("Expires: ".gmdate("D, d M Y H:i:s", mktime()+2600000)." GMT"); |
| | | if (headers_sent()) |
| | | return; |
| | | |
| | | header("Expires: ".gmdate("D, d M Y H:i:s", mktime()+2600000)." GMT"); |
| | | header("Cache-Control: "); |
| | | header("Pragma: "); |
| | | } |
| | | |
| | | |