-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathprint.php
executable file
·85 lines (84 loc) · 1.85 KB
/
print.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
/**
* @package Flatnux
* @author Alessandro Vernassa <[email protected]>
* @copyright Copyright (c) 2011
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License
*/
ob_start();
global $_FN;
require_once "include/flatnux.php";
if ( $_FN['enable_mod_rewrite'] > 0 )
{
header("Cache-Control: no-cache");
header("Pragma: no-cache");
}
header("Content-Type: text/html; charset={$_FN['charset_page']}");
//accesskey ----->
$sections = FN_GetSections("sections", true);
//accesskey -----<
//scripts ----->
if ( file_exists("include/autoexec.d/") && false != ($handle = opendir('include/autoexec.d/')) )
{
$filestorun = array();
while ( false !== ($file = readdir($handle)) )
if ( FN_GetFileExtension($file) == "php" && !preg_match("/^none_/si", $file) )
$filestorun[] = $file;
closedir($handle);
FN_NatSort($filestorun);
foreach ( $filestorun as $runfile )
{
include ("include/autoexec.d/$runfile");
}
}
//scripts -----<
echo "<html>
<header>
<style type=\"text/css\">
*{
color:#000000;
}
body,p,td,div{
font-size: 10pt;
line-height: 14pt;
font:\"serif\";
text-align: justify
}
h1{
font-size: 20pt;
line-height: 20pt;
}
h2{
font-size: 18pt;
line-height: 19pt;
}
h3{
font-size: 16pt;
line-height: 16pt;
}
h4{
font-size: 14pt;
line-height: 14pt;
}
a{
text-decoration:none
}
</style>
<title>{$_FN['site_title']}</title>
</header>
<body>";
echo FN_HtmlSection();
$str = ob_get_contents();
$str .= "<!-- Page generated in " . FN_GetExecuteTimer() . " seconds. -->";
ob_end_clean();
$str .="\n</body>\n</html>";
if ( $_FN['enable_compress_gzip'] )
{
header("Content-Encoding: gzip");
print gzencode($str);
}
else
{
print ($str);
}
?>