Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
fpdf /
Delete
Unzip
Name
Size
Permission
Date
Action
cache
[ DIR ]
drwxr-sr-x
2017-05-29 10:14
classes
[ DIR ]
drwxr-sr-x
2013-05-22 07:48
data
[ DIR ]
drwxr-sr-x
2013-05-22 07:49
demo
[ DIR ]
drwxr-sr-x
2017-10-25 14:17
destinations
[ DIR ]
drwxr-sr-x
2013-05-22 07:51
features
[ DIR ]
drwxr-sr-x
2013-05-22 07:52
fonts
[ DIR ]
drwxr-sr-x
2013-05-22 07:54
fpdf
[ DIR ]
drwxr-sr-x
2013-05-22 07:55
help
[ DIR ]
drwxr-sr-x
2013-05-22 07:55
out
[ DIR ]
drwxr-sr-x
2013-05-22 07:56
postscript
[ DIR ]
drwxr-sr-x
2013-05-22 07:57
samples
[ DIR ]
drwxr-sr-x
2013-05-22 07:57
temp
[ DIR ]
drwxr-sr-x
2017-05-29 18:53
templates
[ DIR ]
drwxr-sr-x
2013-05-22 07:58
unittest
[ DIR ]
drwxr-sr-x
2013-05-22 07:59
.cvsignore
181
B
-rw-r--r--
2013-05-22 07:29
ChangeLog
52.56
KB
-rw-r--r--
2013-05-22 07:48
LICENSE
25.82
KB
-rw-r--r--
2013-05-22 07:56
TODO
894
B
-rw-r--r--
2013-05-22 07:58
autofix.url.php
1.8
KB
-rw-r--r--
2013-05-22 07:29
background.image.php
7.33
KB
-rw-r--r--
2013-05-22 07:29
background.position.php
2.17
KB
-rw-r--r--
2013-05-22 07:29
box.block.inline.php
5.24
KB
-rw-r--r--
2013-05-22 07:29
box.block.php
16.2
KB
-rw-r--r--
2013-05-22 07:29
box.body.php
894
B
-rw-r--r--
2013-05-22 07:29
box.br.php
6.07
KB
-rw-r--r--
2013-05-22 07:29
box.button.php
4.03
KB
-rw-r--r--
2013-05-22 07:29
box.button.reset.php
965
B
-rw-r--r--
2013-05-22 07:29
box.button.submit.php
2.86
KB
-rw-r--r--
2013-05-22 07:29
box.checkbutton.php
6.5
KB
-rw-r--r--
2013-05-22 07:29
box.container.php
33.85
KB
-rw-r--r--
2013-05-22 07:29
box.field.pageno.php
2.16
KB
-rw-r--r--
2013-05-22 07:29
box.field.pages.php
2.26
KB
-rw-r--r--
2013-05-22 07:29
box.form.php
842
B
-rw-r--r--
2013-05-22 07:29
box.frame.php
10.75
KB
-rw-r--r--
2013-05-22 07:29
box.generic.formatted.php
33.63
KB
-rw-r--r--
2013-05-22 07:29
box.generic.inline.php
3.72
KB
-rw-r--r--
2013-05-22 07:29
box.generic.php
11.08
KB
-rw-r--r--
2013-05-22 07:29
box.iframe.php
2.21
KB
-rw-r--r--
2013-05-22 07:29
box.img.php
9.76
KB
-rw-r--r--
2013-05-22 07:29
box.inline.control.php
3.15
KB
-rw-r--r--
2013-05-22 07:29
box.inline.php
14.46
KB
-rw-r--r--
2013-05-22 07:29
box.inline.simple.php
893
B
-rw-r--r--
2013-05-22 07:29
box.input.img.php
3.79
KB
-rw-r--r--
2013-05-22 07:29
box.input.password.php
2.05
KB
-rw-r--r--
2013-05-22 07:29
box.input.text.php
2.35
KB
-rw-r--r--
2013-05-22 07:29
box.input.textarea.php
1.91
KB
-rw-r--r--
2013-05-22 07:29
box.legend.php
1.55
KB
-rw-r--r--
2013-05-22 07:29
box.list-item.php
6.77
KB
-rw-r--r--
2013-05-22 07:29
box.note-call.class.php
6.23
KB
-rw-r--r--
2013-05-22 07:29
box.null.php
959
B
-rw-r--r--
2013-05-22 07:29
box.page.margin.class.php
18.82
KB
-rw-r--r--
2013-05-22 07:30
box.page.php
1.05
KB
-rw-r--r--
2013-05-22 07:30
box.php
18.32
KB
-rw-r--r--
2013-05-22 07:30
box.radiobutton.php
3.5
KB
-rw-r--r--
2013-05-22 07:30
box.select.php
4.3
KB
-rw-r--r--
2013-05-22 07:30
box.table.cell.fake.php
1.23
KB
-rw-r--r--
2013-05-22 07:30
box.table.cell.php
9.92
KB
-rw-r--r--
2013-05-22 07:30
box.table.php
43.15
KB
-rw-r--r--
2013-05-22 07:30
box.table.row.php
6.08
KB
-rw-r--r--
2013-05-22 07:30
box.table.section.php
1.52
KB
-rw-r--r--
2013-05-22 07:30
box.text.php
20.09
KB
-rw-r--r--
2013-05-22 07:30
box.text.string.php
1.41
KB
-rw-r--r--
2013-05-22 07:30
box.utils.text-align.inc.php
2.87
KB
-rw-r--r--
2013-05-22 07:30
box.whitespace.php
3.21
KB
-rw-r--r--
2013-05-22 07:30
config.inc.php
5.78
KB
-rw-r--r--
2013-05-22 07:48
config.parse.php
7.61
KB
-rw-r--r--
2013-05-22 07:48
content_type.class.php
506
B
-rw-r--r--
2013-05-22 07:48
converter.class.php
1.4
KB
-rw-r--r--
2013-05-22 07:48
css.background.attachment.inc.php
788
B
-rw-r--r--
2013-05-22 07:48
css.background.color.inc.php
1.98
KB
-rw-r--r--
2013-05-22 07:48
css.background.image.inc.php
1021
B
-rw-r--r--
2013-05-22 07:48
css.background.inc.php
2.13
KB
-rw-r--r--
2013-05-22 07:48
css.background.position.inc.php
3.56
KB
-rw-r--r--
2013-05-22 07:48
css.background.repeat.inc.php
1.47
KB
-rw-r--r--
2013-05-22 07:48
css.border.bottom.color.inc.php
753
B
-rw-r--r--
2013-05-22 07:48
css.border.bottom.inc.php
469
B
-rw-r--r--
2013-05-22 07:48
css.border.bottom.style.inc.php
726
B
-rw-r--r--
2013-05-22 07:48
css.border.bottom.width.inc.php
920
B
-rw-r--r--
2013-05-22 07:48
css.border.collapse.inc.php
812
B
-rw-r--r--
2013-05-22 07:48
css.border.color.inc.php
2.74
KB
-rw-r--r--
2013-05-22 07:48
css.border.inc.php
6.41
KB
-rw-r--r--
2013-05-22 07:48
css.border.left.color.inc.php
718
B
-rw-r--r--
2013-05-22 07:48
css.border.left.inc.php
459
B
-rw-r--r--
2013-05-22 07:48
css.border.left.style.inc.php
712
B
-rw-r--r--
2013-05-22 07:48
css.border.left.width.inc.php
904
B
-rw-r--r--
2013-05-22 07:48
css.border.right.color.inc.php
725
B
-rw-r--r--
2013-05-22 07:48
css.border.right.inc.php
464
B
-rw-r--r--
2013-05-22 07:48
css.border.right.style.inc.php
719
B
-rw-r--r--
2013-05-22 07:48
css.border.right.width.inc.php
912
B
-rw-r--r--
2013-05-22 07:48
css.border.style.inc.php
3.04
KB
-rw-r--r--
2013-05-22 07:49
css.border.top.color.inc.php
711
B
-rw-r--r--
2013-05-22 07:49
css.border.top.inc.php
455
B
-rw-r--r--
2013-05-22 07:49
css.border.top.style.inc.php
705
B
-rw-r--r--
2013-05-22 07:49
css.border.top.width.inc.php
896
B
-rw-r--r--
2013-05-22 07:49
css.border.width.inc.php
2.77
KB
-rw-r--r--
2013-05-22 07:49
css.bottom.inc.php
1.62
KB
-rw-r--r--
2013-05-22 07:49
css.cache.class.php
1018
B
-rw-r--r--
2013-05-22 07:49
css.clear.inc.php
903
B
-rw-r--r--
2013-05-22 07:49
css.color.inc.php
610
B
-rw-r--r--
2013-05-22 07:49
css.colors.inc.php
9.09
KB
-rw-r--r--
2013-05-22 07:49
css.constants.inc.php
6.32
KB
-rw-r--r--
2013-05-22 07:49
css.content.inc.php
3.39
KB
-rw-r--r--
2013-05-22 07:49
css.counter.collection.php
378
B
-rw-r--r--
2013-05-22 07:49
css.counter.php
419
B
-rw-r--r--
2013-05-22 07:49
css.direction.inc.php
685
B
-rw-r--r--
2013-05-22 07:49
css.display.inc.php
1
KB
-rw-r--r--
2013-05-22 07:49
css.float.inc.php
737
B
-rw-r--r--
2013-05-22 07:49
css.font-family.inc.php
1.22
KB
-rw-r--r--
2013-05-22 07:49
css.font-size.inc.php
1.51
KB
-rw-r--r--
2013-05-22 07:49
css.font-style.inc.php
531
B
-rw-r--r--
2013-05-22 07:49
css.font-weight.inc.php
671
B
-rw-r--r--
2013-05-22 07:49
css.font.inc.php
6.67
KB
-rw-r--r--
2013-05-22 07:49
css.frame.inc.php
100
B
-rw-r--r--
2013-05-22 07:49
css.height.inc.php
1.04
KB
-rw-r--r--
2013-05-22 07:49
css.html2ps.html.content.inc.php
984
B
-rw-r--r--
2013-05-22 07:49
css.html2ps.pixels.php
496
B
-rw-r--r--
2013-05-22 07:49
css.html2ps.pseudoelements.inc.php
755
B
-rw-r--r--
2013-05-22 07:49
css.inc.php
4.3
KB
-rw-r--r--
2013-05-22 07:49
css.left.inc.php
693
B
-rw-r--r--
2013-05-22 07:49
css.letter-spacing.inc.php
829
B
-rw-r--r--
2013-05-22 07:49
css.line-height.inc.php
1.88
KB
-rw-r--r--
2013-05-22 07:49
css.list-style-image.inc.php
1.06
KB
-rw-r--r--
2013-05-22 07:49
css.list-style-position.inc.php
695
B
-rw-r--r--
2013-05-22 07:49
css.list-style-type.inc.php
3.66
KB
-rw-r--r--
2013-05-22 07:49
css.list-style.inc.php
1.3
KB
-rw-r--r--
2013-05-22 07:49
css.margin.inc.php
2.87
KB
-rw-r--r--
2013-05-22 07:49
css.max-height.inc.php
1.3
KB
-rw-r--r--
2013-05-22 07:49
css.min-height.inc.php
1.22
KB
-rw-r--r--
2013-05-22 07:49
css.min-width.inc.php
521
B
-rw-r--r--
2013-05-22 07:49
css.orphans.inc.php
407
B
-rw-r--r--
2013-05-22 07:49
css.overflow.inc.php
910
B
-rw-r--r--
2013-05-22 07:49
css.padding.inc.php
2.96
KB
-rw-r--r--
2013-05-22 07:49
css.page-break-after.inc.php
351
B
-rw-r--r--
2013-05-22 07:49
css.page-break-before.inc.php
360
B
-rw-r--r--
2013-05-22 07:49
css.page-break-inside.inc.php
360
B
-rw-r--r--
2013-05-22 07:49
css.page-break.inc.php
813
B
-rw-r--r--
2013-05-22 07:49
css.page.inc.php
484
B
-rw-r--r--
2013-05-22 07:49
css.parse.inc.php
9.29
KB
-rw-r--r--
2013-05-22 07:49
css.parse.media.inc.php
805
B
-rw-r--r--
2013-05-22 07:49
css.parse.properties.php
1.92
KB
-rw-r--r--
2013-05-22 07:49
css.position.inc.php
1.06
KB
-rw-r--r--
2013-05-22 07:49
css.property.collection.php
2.99
KB
-rw-r--r--
2013-05-22 07:49
css.property.declaration.php
1.45
KB
-rw-r--r--
2013-05-22 07:49
css.property.handler.class.php
2.39
KB
-rw-r--r--
2013-05-22 07:49
css.property.stringset.class.php
783
B
-rw-r--r--
2013-05-22 07:49
css.property.sub.class.php
1.69
KB
-rw-r--r--
2013-05-22 07:49
css.property.sub.field.class.php
455
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.add.margin.inc.php
9
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.align.inc.php
1.75
KB
-rw-r--r--
2013-05-22 07:49
css.pseudo.cellpadding.inc.php
587
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.cellspacing.inc.php
587
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.form.action.inc.php
441
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.form.radiogroup.inc.php
477
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.link.destination.inc.php
484
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.link.target.inc.php
955
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.listcounter.inc.php
567
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.localalign.inc.php
588
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.nowrap.inc.php
532
B
-rw-r--r--
2013-05-22 07:49
css.pseudo.table.border.inc.php
2.24
KB
-rw-r--r--
2013-05-22 07:49
css.right.inc.php
702
B
-rw-r--r--
2013-05-22 07:49
css.rules.inc.php
1.98
KB
-rw-r--r--
2013-05-22 07:49
css.rules.page.inc.php
11.19
KB
-rw-r--r--
2013-05-22 07:49
css.ruleset.class.php
9.87
KB
-rw-r--r--
2013-05-22 07:49
css.selectors.inc.php
7.4
KB
-rw-r--r--
2013-05-22 07:49
css.size.inc.php
1.54
KB
-rw-r--r--
2013-05-22 07:49
css.state.class.php
5.15
KB
-rw-r--r--
2013-05-22 07:49
css.table-layout.inc.php
734
B
-rw-r--r--
2013-05-22 07:49
css.text-align.inc.php
1.22
KB
-rw-r--r--
2013-05-22 07:49
css.text-decoration.inc.php
1.54
KB
-rw-r--r--
2013-05-22 07:49
css.text-indent.inc.php
845
B
-rw-r--r--
2013-05-22 07:49
css.text-transform.inc.php
1.1
KB
-rw-r--r--
2013-05-22 07:49
css.top.inc.php
685
B
-rw-r--r--
2013-05-22 07:49
css.utils.inc.php
4.95
KB
-rw-r--r--
2013-05-22 07:49
css.vertical-align.inc.php
4.91
KB
-rw-r--r--
2013-05-22 07:49
css.visibility.inc.php
941
B
-rw-r--r--
2013-05-22 07:49
css.white-space.inc.php
1.02
KB
-rw-r--r--
2013-05-22 07:49
css.widows.inc.php
394
B
-rw-r--r--
2013-05-22 07:49
css.width.inc.php
1.76
KB
-rw-r--r--
2013-05-22 07:49
css.word-spacing.inc.php
817
B
-rw-r--r--
2013-05-22 07:49
css.z-index.inc.php
473
B
-rw-r--r--
2013-05-22 07:49
default.css
7.31
KB
-rw-r--r--
2013-05-22 07:50
destination._http.class.php
618
B
-rw-r--r--
2013-05-22 07:51
destination._interface.class.php
518
B
-rw-r--r--
2013-05-22 07:51
destination.browser.class.php
377
B
-rw-r--r--
2013-05-22 07:50
destination.download.class.php
540
B
-rw-r--r--
2013-05-22 07:50
destination.file.class.php
622
B
-rw-r--r--
2013-05-22 07:51
dispatcher.class.php
713
B
-rw-r--r--
2013-05-22 07:51
doc.anchor.class.php
1.07
KB
-rw-r--r--
2013-05-22 07:51
dom.activelink.inc.php
2.81
KB
-rw-r--r--
2013-05-22 07:51
dom.php4.inc.php
1.5
KB
-rw-r--r--
2013-05-22 07:51
dom.php5.inc.php
1.88
KB
-rw-r--r--
2013-05-22 07:51
encoding.cp1251.inc.php
10.38
KB
-rw-r--r--
2013-05-22 07:51
encoding.cp866.inc.php
10.89
KB
-rw-r--r--
2013-05-22 07:51
encoding.dingbats.inc.php
11.71
KB
-rw-r--r--
2013-05-22 07:51
encoding.entities.inc.php
25.8
KB
-rw-r--r--
2013-05-22 07:51
encoding.glyphs.inc.php
101.68
KB
-rw-r--r--
2013-05-22 07:51
encoding.inc.php
1.61
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-1.inc.php
10.49
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-10.inc.php
10.92
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-11.inc.php
9.63
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-13.inc.php
10.6
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-14.inc.php
10.98
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-15.inc.php
10.55
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-2.inc.php
16.24
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-3.inc.php
15.74
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-4.inc.php
10.71
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-5.inc.php
10.36
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-6.inc.php
8.88
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-7.inc.php
10.22
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-8.inc.php
5.96
KB
-rw-r--r--
2013-05-22 07:51
encoding.iso-8859-9.inc.php
10.49
KB
-rw-r--r--
2013-05-22 07:51
encoding.koi8-r.inc.php
11.09
KB
-rw-r--r--
2013-05-22 07:51
encoding.symbol.inc.php
10.04
KB
-rw-r--r--
2013-05-22 07:51
encoding.windows-1250.inc.php
17
KB
-rw-r--r--
2013-05-22 07:52
encoding.windows-1251.inc.php
10.39
KB
-rw-r--r--
2013-05-22 07:52
encoding.windows-1252.inc.php
16.32
KB
-rw-r--r--
2013-05-22 07:52
error.php
191
B
-rw-r--r--
2013-05-22 07:52
favicon.ico
1
B
-rw-r--r--
2013-05-22 07:52
fetched_data._html.class.php
405
B
-rw-r--r--
2013-05-22 07:52
fetched_data._interface.class.php
286
B
-rw-r--r--
2013-05-22 07:52
fetched_data.file.class.php
688
B
-rw-r--r--
2013-05-22 07:52
fetched_data.url.class.php
1.31
KB
-rw-r--r--
2013-05-22 07:52
fetcher._interface.class.php
995
B
-rw-r--r--
2013-05-22 07:52
fetcher.local.class.php
357
B
-rw-r--r--
2013-05-22 07:52
fetcher.memory.class.php
600
B
-rw-r--r--
2013-05-22 07:52
fetcher.url.class.php
14.88
KB
-rw-r--r--
2013-05-22 07:52
fetcher.url.curl.class.php
2.6
KB
-rw-r--r--
2013-05-22 07:52
filter.data._interface.class.php
138
B
-rw-r--r--
2013-05-22 07:52
filter.data.doctype.class.php
1.98
KB
-rw-r--r--
2013-05-22 07:52
filter.data.encoding.class.php
889
B
-rw-r--r--
2013-05-22 07:52
filter.data.html2xhtml.class.php
211
B
-rw-r--r--
2013-05-22 07:52
filter.data.ucs2.class.php
283
B
-rw-r--r--
2013-05-22 07:52
filter.data.utf8.class.php
284
B
-rw-r--r--
2013-05-22 07:52
filter.data.xhtml2xhtml.class.php
169
B
-rw-r--r--
2013-05-22 07:52
filter.output._interface.class.php
249
B
-rw-r--r--
2013-05-22 07:52
filter.output.gzip.class.php
391
B
-rw-r--r--
2013-05-22 07:52
filter.output.ps2pdf.class.php
1.28
KB
-rw-r--r--
2013-05-22 07:52
filter.post._interface.class.php
142
B
-rw-r--r--
2013-05-22 07:52
filter.post.positioned.class.php
806
B
-rw-r--r--
2013-05-22 07:52
filter.post.postponed.class.php
765
B
-rw-r--r--
2013-05-22 07:52
filter.pre._interface.class.php
160
B
-rw-r--r--
2013-05-22 07:52
filter.pre.fields.class.php
1.7
KB
-rw-r--r--
2013-05-22 07:52
filter.pre.footnotes.class.php
1.16
KB
-rw-r--r--
2013-05-22 07:52
filter.pre.headfoot.class.php
1.05
KB
-rw-r--r--
2013-05-22 07:52
filter.pre.height-constraint.class.php
1.2
KB
-rw-r--r--
2013-05-22 07:52
flow_context.class.inc.php
11.75
KB
-rw-r--r--
2013-05-22 07:52
flow_viewport.class.inc.php
829
B
-rw-r--r--
2013-05-22 07:52
font.class.php
6.15
KB
-rw-r--r--
2013-05-22 07:52
font.constants.inc.php
228
B
-rw-r--r--
2013-05-22 07:52
font.resolver.class.php
7.41
KB
-rw-r--r--
2013-05-22 07:52
font_factory.class.php
1.51
KB
-rw-r--r--
2013-05-22 07:55
globals.inc.php
51
B
-rw-r--r--
2013-05-22 07:55
globals.php
119
B
-rw-r--r--
2013-05-22 07:55
height.php
7.25
KB
-rw-r--r--
2013-05-22 07:55
html.attrs.inc.php
31.84
KB
-rw-r--r--
2013-05-22 07:56
html2ps.config
7.99
KB
-rw-r--r--
2013-05-22 07:56
html2ps.config.recommended
8.94
KB
-rw-r--r--
2013-05-22 07:56
image.class.php
5.3
KB
-rw-r--r--
2013-05-22 07:56
index.php
185
B
-rw-r--r--
2013-05-22 07:56
inline.content.builder.factory.php
1.03
KB
-rw-r--r--
2013-05-22 07:56
inline.content.builder.normal.php
1.65
KB
-rw-r--r--
2013-05-22 07:56
inline.content.builder.nowrap.php
632
B
-rw-r--r--
2013-05-22 07:56
inline.content.builder.php
53.41
KB
-rw-r--r--
2013-05-22 07:56
inline.content.builder.pre.line.php
1.09
KB
-rw-r--r--
2013-05-22 07:56
inline.content.builder.pre.php
938
B
-rw-r--r--
2013-05-22 07:56
inline.content.builder.pre.wrap.php
1.18
KB
-rw-r--r--
2013-05-22 07:56
layout._interface.class.php
149
B
-rw-r--r--
2013-05-22 07:56
layout.default.class.php
3.25
KB
-rw-r--r--
2013-05-22 07:56
layout.page.breaks.php
21.75
KB
-rw-r--r--
2013-05-22 07:56
layout.vertical.php
1.46
KB
-rw-r--r--
2013-05-22 07:56
list-style.image.php
335
B
-rw-r--r--
2013-05-22 07:56
logger.php
424
B
-rw-r--r--
2013-05-22 07:56
manager.encoding.php
8.57
KB
-rw-r--r--
2013-05-22 07:56
media.layout.inc.php
3.6
KB
-rw-r--r--
2013-05-22 07:56
observer.class.php
89
B
-rw-r--r--
2013-05-22 07:56
ot.class.php
27.21
KB
-rw-r--r--
2013-05-22 07:56
output._generic.class.php
8.72
KB
-rw-r--r--
2013-05-22 07:56
output._generic.pdf.class.php
582
B
-rw-r--r--
2013-05-22 07:56
output._generic.ps.class.php
851
B
-rw-r--r--
2013-05-22 07:56
output._interface.class.php
2.78
KB
-rw-r--r--
2013-05-22 07:56
output.fastps.class.php
12.54
KB
-rw-r--r--
2013-05-22 07:56
output.fastps.l2.class.php
2.95
KB
-rw-r--r--
2013-05-22 07:56
output.fpdf.class.php
11.46
KB
-rw-r--r--
2013-05-22 07:56
output.pcl.class.php
8.35
KB
-rw-r--r--
2013-05-22 07:56
output.pdflib.1.6.class.php
7.66
KB
-rw-r--r--
2013-05-22 07:56
output.pdflib.class.php
12.68
KB
-rw-r--r--
2013-05-22 07:56
output.pdflib.old.class.php
959
B
-rw-r--r--
2013-05-22 07:56
output.png.class.php
15.33
KB
-rw-r--r--
2013-05-22 07:56
parser._interface.class.php
134
B
-rw-r--r--
2013-05-22 07:56
parser.xhtml.class.php
3.24
KB
-rw-r--r--
2013-05-22 07:56
path.php
3.3
KB
-rw-r--r--
2013-05-22 07:56
path.point.php
187
B
-rw-r--r--
2013-05-22 07:56
path.rectangle.php
566
B
-rw-r--r--
2013-05-22 07:56
pdf.fpdf.makefont.php
13.08
KB
-rw-r--r--
2013-05-22 07:56
pdf.fpdf.php
86.35
KB
-rw-r--r--
2013-05-22 07:56
pipeline.class.php
43.81
KB
-rw-r--r--
2013-05-22 07:56
pipeline.factory.class.php
1.17
KB
-rw-r--r--
2013-05-22 07:56
ps.image.encoder.inc.php
8
B
-rw-r--r--
2013-05-22 07:57
ps.image.encoder.simple.inc.php
7.07
KB
-rw-r--r--
2013-05-22 07:57
ps.image.encoder.stream.inc.php
657
B
-rw-r--r--
2013-05-22 07:57
ps.l2.image.encoder.stream.inc.php
1.13
KB
-rw-r--r--
2013-05-22 07:57
ps.l3.image.encoder.stream.inc.php
7.92
KB
-rw-r--r--
2013-05-22 07:57
ps.unicode.inc.php
3.07
KB
-rw-r--r--
2013-05-22 07:57
ps.utils.inc.php
344
B
-rw-r--r--
2013-05-22 07:57
ps.whitespace.inc.php
103
B
-rw-r--r--
2013-05-22 07:57
render.queue.class.php
275
B
-rw-r--r--
2013-05-22 07:57
render.stacking.context.class.php
589
B
-rw-r--r--
2013-05-22 07:57
render.stacking.level.class.php
246
B
-rw-r--r--
2013-05-22 07:57
strategy.link.rendering.normal.php
929
B
-rw-r--r--
2013-05-22 07:57
strategy.page.break.simple.php
370
B
-rw-r--r--
2013-05-22 07:57
strategy.page.break.smart.php
395
B
-rw-r--r--
2013-05-22 07:57
strategy.position.absolute.php
3.07
KB
-rw-r--r--
2013-05-22 07:57
strategy.table.layout.auto.php
10.07
KB
-rw-r--r--
2013-05-22 07:57
strategy.table.layout.fixed.php
381
B
-rw-r--r--
2013-05-22 07:57
strategy.width.absolute.positioned.php
7.54
KB
-rw-r--r--
2013-05-22 07:58
strategy.width.max.natural.php
2.55
KB
-rw-r--r--
2013-05-22 07:58
strategy.width.max.php
2.14
KB
-rw-r--r--
2013-05-22 07:58
strategy.width.min.nowrap.php
1.36
KB
-rw-r--r--
2013-05-22 07:58
strategy.width.min.php
2.01
KB
-rw-r--r--
2013-05-22 07:58
stubs._.inc.php
48
B
-rw-r--r--
2013-05-22 07:58
stubs.common.inc.php
615
B
-rw-r--r--
2013-05-22 07:58
stubs.file_get_contents.inc.php
253
B
-rw-r--r--
2013-05-22 07:58
stubs.file_put_contents.inc.php
133
B
-rw-r--r--
2013-05-22 07:58
stubs.is_executable.inc.php
54
B
-rw-r--r--
2013-05-22 07:58
stubs.memory_get_usage.inc.php
854
B
-rw-r--r--
2013-05-22 07:58
tag.body.inc.php
97
B
-rw-r--r--
2013-05-22 07:58
tag.font.inc.php
97
B
-rw-r--r--
2013-05-22 07:58
tag.frame.inc.php
3.59
KB
-rw-r--r--
2013-05-22 07:58
tag.img.inc.php
98
B
-rw-r--r--
2013-05-22 07:58
tag.input.inc.php
156
B
-rw-r--r--
2013-05-22 07:58
tag.select.inc.php
100
B
-rw-r--r--
2013-05-22 07:58
tag.span.inc.php
97
B
-rw-r--r--
2013-05-22 07:58
tag.table.inc.php
99
B
-rw-r--r--
2013-05-22 07:58
tag.td.inc.php
97
B
-rw-r--r--
2013-05-22 07:58
tag.utils.inc.php
98
B
-rw-r--r--
2013-05-22 07:58
tree.navigation.inc.php
1.68
KB
-rw-r--r--
2013-05-22 07:58
treebuilder.class.php
2.25
KB
-rw-r--r--
2013-05-22 07:58
utils_array.php
1.95
KB
-rw-r--r--
2013-05-22 07:59
utils_graphic.php
1.46
KB
-rw-r--r--
2013-05-22 07:59
utils_number.php
451
B
-rw-r--r--
2013-05-22 07:59
utils_text.php
182
B
-rw-r--r--
2013-05-22 07:59
utils_units.php
1.84
KB
-rw-r--r--
2013-05-22 07:59
utils_url.php
2.22
KB
-rw-r--r--
2013-05-22 07:59
value.background.php
4.81
KB
-rw-r--r--
2013-05-22 07:59
value.border.class.php
5.64
KB
-rw-r--r--
2013-05-22 07:59
value.border.color.class.php
483
B
-rw-r--r--
2013-05-22 07:59
value.border.edge.class.php
7.44
KB
-rw-r--r--
2013-05-22 07:59
value.border.style.class.php
451
B
-rw-r--r--
2013-05-22 07:59
value.border.width.class.php
483
B
-rw-r--r--
2013-05-22 07:59
value.bottom.php
314
B
-rw-r--r--
2013-05-22 07:59
value.color.php
1.14
KB
-rw-r--r--
2013-05-22 07:59
value.content.item.php
5
KB
-rw-r--r--
2013-05-22 07:59
value.content.php
1.01
KB
-rw-r--r--
2013-05-22 07:59
value.font.class.php
1.57
KB
-rw-r--r--
2013-05-22 07:59
value.generic.length.php
2.44
KB
-rw-r--r--
2013-05-22 07:59
value.generic.percentage.php
1.77
KB
-rw-r--r--
2013-05-22 07:59
value.generic.php
294
B
-rw-r--r--
2013-05-22 07:59
value.height.php
314
B
-rw-r--r--
2013-05-22 07:59
value.left.php
308
B
-rw-r--r--
2013-05-22 07:59
value.line-height.class.php
909
B
-rw-r--r--
2013-05-22 07:59
value.list-style.class.php
1.25
KB
-rw-r--r--
2013-05-22 07:59
value.margin.class.php
3.43
KB
-rw-r--r--
2013-05-22 07:59
value.max-height.php
323
B
-rw-r--r--
2013-05-22 07:59
value.min-height.php
323
B
-rw-r--r--
2013-05-22 07:59
value.padding.class.php
3.29
KB
-rw-r--r--
2013-05-22 07:59
value.right.php
311
B
-rw-r--r--
2013-05-22 07:59
value.text-indent.class.php
845
B
-rw-r--r--
2013-05-22 07:59
value.top.php
305
B
-rw-r--r--
2013-05-22 07:59
width.constraint.php
909
B
-rw-r--r--
2013-05-22 07:59
width.php
2.16
KB
-rw-r--r--
2013-05-22 07:59
xhtml.autoclose.inc.php
2.31
KB
-rw-r--r--
2013-05-22 07:59
xhtml.comments.inc.php
240
B
-rw-r--r--
2013-05-22 07:59
xhtml.deflist.inc.php
854
B
-rw-r--r--
2013-05-22 07:59
xhtml.entities.inc.php
2.88
KB
-rw-r--r--
2013-05-22 07:59
xhtml.lists.inc.php
982
B
-rw-r--r--
2013-05-22 07:59
xhtml.p.inc.php
1.16
KB
-rw-r--r--
2013-05-22 07:59
xhtml.script.inc.php
211
B
-rw-r--r--
2013-05-22 07:59
xhtml.selects.inc.php
727
B
-rw-r--r--
2013-05-22 07:59
xhtml.style.inc.php
1.18
KB
-rw-r--r--
2013-05-22 07:59
xhtml.tables.inc.php
4.49
KB
-rw-r--r--
2013-05-22 07:59
xhtml.utils.inc.php
15.36
KB
-rw-r--r--
2013-05-22 07:59
xml.validation.inc.php
326
B
-rw-r--r--
2013-05-22 07:59
Save
Rename
<?php // $Header: /cvsroot/html2ps/html.attrs.inc.php,v 1.63 2007/03/15 18:37:32 Konstantin Exp $ global $g_tag_attrs; $g_tag_attrs = array( /** * Attribute handlers applicable to all tags */ '*' => array( 'id' => 'attr_id', ), /** * Tag-specific attribute handlers */ 'a' => array( 'href' => 'attr_href', 'name' => 'attr_name' ), 'body' => array( 'background' => 'attr_background', 'bgcolor' => 'attr_bgcolor', 'dir' => 'attr_dir', 'text' => 'attr_body_text', 'link' => 'attr_body_link', 'topmargin' => 'attr_body_topmargin', 'leftmargin' => 'attr_body_leftmargin', 'marginheight' => 'attr_body_marginheight', 'marginwidth' => 'attr_body_marginwidth' ), 'div' => array( 'align' => 'attr_align' ), 'font' => array( 'size' => 'attr_font_size', 'color' => 'attr_font_color', 'face' => 'attr_font_face' ), 'form' => array( 'action' => 'attr_form_action' ), 'frame' => array( 'frameborder' => 'attr_frameborder', 'marginwidth' => 'attr_iframe_marginwidth', 'marginheight' => 'attr_iframe_marginheight' ), 'frameset'=> array( 'frameborder' => 'attr_frameborder' ), 'h1' => array( 'align' => 'attr_align' ), 'h2' => array( 'align' => 'attr_align' ), 'h3' => array( 'align' => 'attr_align' ), 'h4' => array( 'align' => 'attr_align' ), 'h5' => array( 'align' => 'attr_align' ), 'h6' => array( 'align' => 'attr_align' ), 'hr' => array( 'align' => 'attr_self_align', 'width' => 'attr_width', 'color' => 'attr_hr_color' ), 'input' => array( 'name' => 'attr_input_name', 'size' => 'attr_input_size' ), 'iframe' => array( 'frameborder' => 'attr_frameborder', 'marginwidth' => 'attr_iframe_marginwidth', 'marginheight' => 'attr_iframe_marginheight', 'height' => 'attr_height_required', 'width' => 'attr_width' ), 'img' => array( 'width' => 'attr_width', 'height' => 'attr_height_required', 'border' => 'attr_border', 'hspace' => 'attr_hspace', 'vspace' => 'attr_vspace', 'align' => 'attr_img_align' ), 'marquee' => array( 'width' => 'attr_width', 'height' => 'attr_height_required' ), 'object' => array( 'width' => 'attr_width', 'height' => 'attr_height' ), 'ol' => array( 'start' => 'attr_start', 'type' => 'attr_ol_type' ), 'p' => array( 'align' => 'attr_align' ), 'table' => array( 'border' => 'attr_table_border', 'bordercolor' => 'attr_table_bordercolor', 'align' => 'attr_table_float_align', 'bgcolor' => 'attr_bgcolor', 'width' => 'attr_width', 'background' => 'attr_background', 'height' => 'attr_height', 'cellspacing' => 'attr_cellspacing', 'cellpadding' => 'attr_cellpadding', 'rules' => 'attr_table_rules' // NOTE that 'rules' should appear _after_ 'border' handler! ), 'td' => array( 'align' => 'attr_align', 'valign' => 'attr_valign', 'height' => 'attr_height', 'background' => 'attr_background', 'bgcolor' => 'attr_bgcolor', 'nowrap' => 'attr_nowrap', 'width' => 'attr_width' ), 'textarea'=> array( 'rows' => 'attr_textarea_rows', 'cols' => 'attr_textarea_cols' ), 'th' => array( 'align' => 'attr_align', 'valign' => 'attr_valign', 'height' => 'attr_height', 'background' => 'attr_background', 'bgcolor' => 'attr_bgcolor', 'nowrap' => 'attr_nowrap', 'width' => 'attr_width' ), 'tr' => array( 'align' => 'attr_align', 'bgcolor' => 'attr_bgcolor', 'valign' => 'attr_row_valign', 'height' => 'attr_height' ), 'ul' => array( 'start' => 'attr_start', 'type' => 'attr_ul_type' ) ); function execute_attrs_before($root, &$pipeline) { execute_attrs($root, '_before', $pipeline); } function execute_attrs_after($root, &$pipeline) { execute_attrs($root, '_after', $pipeline); } function execute_attrs_after_styles($root, &$pipeline) { execute_attrs($root, '_after_styles', $pipeline); } function execute_attrs(&$root, $suffix, &$pipeline) { global $g_tag_attrs; foreach ($g_tag_attrs['*'] as $attr => $fun) { if ($root->has_attribute($attr)) { $fun = $fun.$suffix; $fun($root, $pipeline); }; }; if (array_key_exists($root->tagname(), $g_tag_attrs)) { foreach ($g_tag_attrs[$root->tagname()] as $attr => $fun) { if ($root->has_attribute($attr)) { $fun = $fun.$suffix; $fun($root, $pipeline); }; }; }; }; // ========= Handlers // A NAME function attr_name_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_HTML2PS_LINK_DESTINATION); $handler->css($root->get_attribute('name'), $pipeline); } function attr_name_after_styles(&$root, &$pipeline) {}; function attr_name_after(&$root, &$pipeline) {}; // A ID function attr_id_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_HTML2PS_LINK_DESTINATION); $handler->css($root->get_attribute('id'), $pipeline); } function attr_id_after_styles(&$root, &$pipeline) {}; function attr_id_after(&$root, &$pipeline) {}; // A HREF function attr_href_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_HTML2PS_LINK_TARGET); $handler->css($root->get_attribute('href'), $pipeline); } function attr_href_after_styles(&$root, &$pipeline) {}; function attr_href_after(&$root, &$pipeline) {}; // IFRAME function attr_frameborder_before(&$root, &$pipeline) { $css_state =& $pipeline->get_current_css_state(); $handler =& CSS::get_handler(CSS_BORDER); switch ($root->get_attribute('frameborder')) { case '1': $handler->css('inset black 1px', $pipeline); break; case '0': $handler->css('none', $pipeline); break; }; } function attr_frameborder_after_styles(&$root, &$pipeline) {}; function attr_frameborder_after(&$root, &$pipeline) {}; function attr_iframe_marginheight_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_PADDING_TOP); $handler->css((int)$root->get_attribute('marginheight').'px',$pipeline); $handler =& CSS::get_handler(CSS_PADDING_BOTTOM); $handler->css((int)$root->get_attribute('marginheight').'px',$pipeline); } function attr_iframe_marginheight_after_styles(&$root, &$pipeline) {}; function attr_iframe_marginheight_after(&$root, &$pipeline) {}; function attr_iframe_marginwidth_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_PADDING_RIGHT); $handler->css((int)$root->get_attribute('marginwidth').'px',$pipeline); $handler =& CSS::get_handler(CSS_PADDING_LEFT); $handler->css((int)$root->get_attribute('marginwidth').'px',$pipeline); } function attr_iframe_marginwidth_after_styles(&$root, &$pipeline) {}; function attr_iframe_marginwidth_after(&$root, &$pipeline) {}; // BODY-specific function attr_body_text_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_COLOR); $handler->css($root->get_attribute('text'),$pipeline); } function attr_body_text_after_styles(&$root, &$pipeline) {}; function attr_body_text_after(&$root, &$pipeline) {}; function attr_body_link_before(&$root, &$pipeline) { $color = $root->get_attribute('link'); // -1000 means priority modifier; so, any real CSS rule will have more priority than // this fake rule $collection = new CSSPropertyCollection(); $collection->add_property(CSSPropertyDeclaration::create(CSS_COLOR, $color, $pipeline)); $rule = array(array(SELECTOR_SEQUENCE, array(array(SELECTOR_TAG, 'a'), array(SELECTOR_PSEUDOCLASS_LINK_LOW_PRIORITY))), $collection, '', -1000); $css =& $pipeline->get_current_css(); $css->add_rule($rule, $pipeline); } function attr_body_link_after_styles(&$root, &$pipeline) {}; function attr_body_link_after(&$root, &$pipeline) {}; function attr_body_topmargin_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_MARGIN_TOP); $handler->css((int)$root->get_attribute('topmargin').'px',$pipeline); } function attr_body_topmargin_after_styles(&$root, &$pipeline) {}; function attr_body_topmargin_after(&$root, &$pipeline) {}; function attr_body_leftmargin_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_MARGIN_LEFT); $handler->css((int)$root->get_attribute('leftmargin').'px',$pipeline); } function attr_body_leftmargin_after_styles(&$root, &$pipeline) {}; function attr_body_leftmargin_after(&$root, &$pipeline) {}; function attr_body_marginheight_before(&$root, &$pipeline) { $css_state =& $pipeline->get_current_css_state(); $h_top =& CSS::get_handler(CSS_MARGIN_TOP); $h_bottom =& CSS::get_handler(CSS_MARGIN_BOTTOM); $top = $h_top->get($css_state->getState()); $h_bottom->css(((int)$root->get_attribute('marginheight') - $top->value).'px',$pipeline); } function attr_body_marginheight_after_styles(&$root, &$pipeline) {}; function attr_body_marginheight_after(&$root, &$pipeline) {}; function attr_body_marginwidth_before(&$root, &$pipeline) { $css_state =& $pipeline->get_current_css_state(); $h_left =& CSS::get_handler(CSS_MARGIN_LEFT); $h_right =& CSS::get_handler(CSS_MARGIN_RIGHT); $left = $h_left->get($css_state->getState()); $h_right->css(((int)$root->get_attribute('marginwidth') - $left->value).'px',$pipeline); } function attr_body_marginwidth_after_styles(&$root, &$pipeline) {}; function attr_body_marginwidth_after(&$root, &$pipeline) {}; // === nowrap function attr_nowrap_before(&$root, &$pipeline) { $css_state =& $pipeline->get_current_css_state(); $css_state->set_property(CSS_HTML2PS_NOWRAP, NOWRAP_NOWRAP); } function attr_nowrap_after_styles(&$root, &$pipeline) {} function attr_nowrap_after(&$root, &$pipeline) {} // === hspace function attr_hspace_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_PADDING_LEFT); $handler->css((int)$root->get_attribute('hspace').'px',$pipeline); $handler =& CSS::get_handler(CSS_PADDING_RIGHT); $handler->css((int)$root->get_attribute('hspace').'px',$pipeline); } function attr_hspace_after_styles(&$root, &$pipeline) {} function attr_hspace_after(&$root, &$pipeline) {} // === vspace function attr_vspace_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_PADDING_TOP); $handler->css((int)$root->get_attribute('vspace').'px',$pipeline); $handler =& CSS::get_handler(CSS_PADDING_BOTTOM); $handler->css((int)$root->get_attribute('vspace').'px',$pipeline); } function attr_vspace_after_styles(&$root, &$pipeline) {} function attr_vspace_after(&$root, &$pipeline) {} // === background function attr_background_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_BACKGROUND_IMAGE); $handler->css('url('.$root->get_attribute('background').')',$pipeline); } function attr_background_after_styles(&$root, &$pipeline) {} function attr_background_after(&$root, &$pipeline) {} // === align function attr_table_float_align_before(&$root, &$pipeline) {} function attr_table_float_align_after_styles(&$root, &$pipeline) { if ($root->get_attribute('align') === 'center') { $margin_left =& CSS::get_handler(CSS_MARGIN_LEFT); $margin_left->css('auto',$pipeline); $margin_right =& CSS::get_handler(CSS_MARGIN_RIGHT); $margin_right->css('auto',$pipeline); } else { $float =& CSS::get_handler(CSS_FLOAT); $css_state =& $pipeline->get_current_css_state(); $float->replace($float->parse($root->get_attribute('align')), $css_state); }; } function attr_table_float_align_after(&$root, &$pipeline) {} function attr_img_align_before(&$root, &$pipeline) { if (preg_match('/left|right/', $root->get_attribute('align'))) { $float =& CSS::get_handler(CSS_FLOAT); $css_state =& $pipeline->get_current_css_state(); $float->replace($float->parse($root->get_attribute('align')), $css_state); } else { $handler =& CSS::get_handler(CSS_VERTICAL_ALIGN); $css_state =& $pipeline->get_current_css_state(); $handler->replace($handler->parse($root->get_attribute('align')), $css_state); }; } function attr_img_align_after_styles(&$root, &$pipeline) {} function attr_img_align_after(&$root, &$pipeline) {} function attr_self_align_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_HTML2PS_LOCALALIGN); $css_state =& $pipeline->get_current_css_state(); switch ($root->get_attribute('align')) { case 'left': $handler->replace(LA_LEFT, $css_state); break; case 'center': $handler->replace(LA_CENTER, $css_state); break; case 'right': $handler->replace(LA_RIGHT, $css_state); break; default: $handler->replace(LA_LEFT, $css_state); break; }; } function attr_self_align_after_styles(&$root, &$pipeline) {} function attr_self_align_after(&$root, &$pipeline) {} // === bordercolor function attr_table_bordercolor_before(&$root, &$pipeline) { $color = parse_color_declaration($root->get_attribute('bordercolor')); $css_state =& $pipeline->get_current_css_state(); $border =& $css_state->get_property(CSS_HTML2PS_TABLE_BORDER); $border =& $border->copy(); $border->left->color = $color; $border->right->color = $color; $border->top->color = $color; $border->bottom->color = $color; // $css_state->pushState(); // $css_state->set_property(CSS_HTML2PS_TABLE_BORDER, $border); // $css_state->pushState(); // $css_state->set_property(CSS_BORDER, $border); } function attr_table_bordercolor_after_styles(&$root, &$pipeline) { // $css_state =& $pipeline->get_current_css_state(); // $css_state->popState(); } function attr_table_bordercolor_after(&$root, &$pipeline) { // $css_state =& $pipeline->get_current_css_state(); // $css_state->popState(); } // === border function attr_border_before(&$root, &$pipeline) { $width = (int)$root->get_attribute('border'); $css_state =& $pipeline->get_current_css_state(); $border =& $css_state->get_property(CSS_BORDER); $border =& $border->copy(); $border->left->width = Value::fromData($width, UNIT_PX); $border->right->width = Value::fromData($width, 'px'); $border->top->width = Value::fromData($width, 'px'); $border->bottom->width = Value::fromData($width, 'px'); $border->left->style = BS_SOLID; $border->right->style = BS_SOLID; $border->top->style = BS_SOLID; $border->bottom->style = BS_SOLID; $css_state->set_property(CSS_BORDER, $border); } function attr_border_after_styles(&$root, &$pipeline) {} function attr_border_after(&$root, &$pipeline) {} // === rules (table) function attr_table_rules_before(&$root, &$pipeline) { /** * Handle 'rules' attribute */ $rules = $root->get_attribute('rules'); $css_state =& $pipeline->get_current_css_state(); $border = $css_state->get_property(CSS_HTML2PS_TABLE_BORDER); switch ($rules) { case 'none': $border->left->style = BS_NONE; $border->right->style = BS_NONE; $border->top->style = BS_NONE; $border->bottom->style = BS_NONE; break; case 'groups': // Not supported break; case 'rows': $border->left->style = BS_NONE; $border->right->style = BS_NONE; break; case 'cols': $border->top->style = BS_NONE; $border->bottom->style = BS_NONE; break; case 'all': break; }; $css_state->set_property(CSS_HTML2PS_TABLE_BORDER, $border); } function attr_table_rules_after_styles(&$root, &$pipeline) {} function attr_table_rules_after(&$root, &$pipeline) {} // === border (table) function attr_table_border_before(&$root, &$pipeline) { $width = (int)$root->get_attribute('border'); $css_state =& $pipeline->get_current_css_state(); $border =& $css_state->get_property(CSS_HTML2PS_TABLE_BORDER); $border =& $border->copy(); $border->left->width = Value::fromData($width, UNIT_PX); $border->right->width = Value::fromData($width, UNIT_PX); $border->top->width = Value::fromData($width, UNIT_PX); $border->bottom->width = Value::fromData($width, UNIT_PX); $border->left->style = BS_SOLID; $border->right->style = BS_SOLID; $border->top->style = BS_SOLID; $border->bottom->style = BS_SOLID; $css_state->set_property(CSS_BORDER, $border); $css_state->pushState(); $border =& $border->copy(); $css_state->set_property(CSS_HTML2PS_TABLE_BORDER, $border); } function attr_table_border_after_styles(&$root, &$pipeline) {} function attr_table_border_after(&$root, &$pipeline) { $css_state =& $pipeline->get_current_css_state(); $css_state->popState(); } // === dir function attr_dir_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_TEXT_ALIGN); switch (strtolower($root->get_attribute('dir'))) { case 'ltr': $handler->css('left',$pipeline); return; case 'rtl': $handler->css('right',$pipeline); return; }; } function attr_dir_after_styles(&$root, &$pipeline) {} function attr_dir_after(&$root, &$pipeline) {} // === align function attr_align_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_TEXT_ALIGN); $handler->css($root->get_attribute('align'),$pipeline); $handler =& CSS::get_handler(CSS_HTML2PS_ALIGN); $handler->css($root->get_attribute('align'),$pipeline); } function attr_align_after_styles(&$root, &$pipeline) {} function attr_align_after(&$root, &$pipeline) {} // valign // 'valign' attribute value for table rows is inherited function attr_row_valign_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_VERTICAL_ALIGN); $handler->css($root->get_attribute('valign'),$pipeline); } function attr_row_valign_after_styles(&$root, &$pipeline) {} function attr_row_valign_after(&$root, &$pipeline) {} // 'valign' attribute value for boxes other than table rows is not inherited function attr_valign_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_VERTICAL_ALIGN); $handler->css($root->get_attribute('valign'), $pipeline); } function attr_valign_after_styles(&$root, &$pipeline) {} function attr_valign_after(&$root, &$pipeline) {} // bgcolor function attr_bgcolor_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_BACKGROUND_COLOR); $handler->css($root->get_attribute('bgcolor'), $pipeline); } function attr_bgcolor_after_styles(&$root, &$pipeline) {} function attr_bgcolor_after(&$root, &$pipeline) {} // width function attr_width_before(&$root, &$pipeline) { $width =& CSS::get_handler(CSS_WIDTH); $value = $root->get_attribute('width'); if (preg_match('/^\d+$/', $value)) { $value .= 'px'; }; $width->css($value,$pipeline); } function attr_width_after_styles(&$root, &$pipeline) {} function attr_width_after(&$root, &$pipeline) {} // height // Difference between 'attr_height' and 'attr_height_required': // attr_height sets the minimal box height so that is cal be expanded by it content; // a good example is table rows and cells; on the other side, attr_height_required // sets the fixed box height - it is useful for boxes which content height can be greater // that box height - marquee or iframe, for example function attr_height_required_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_HEIGHT); $value = $root->get_attribute('height'); if (preg_match('/^\d+$/', $value)) { $value .= 'px'; }; $handler->css($value,$pipeline); } function attr_height_required_after_styles(&$root, &$pipeline) {} function attr_height_required_after(&$root, &$pipeline) {} function attr_height_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_MIN_HEIGHT); $value = $root->get_attribute('height'); if (preg_match('/^\d+$/', $value)) { $value .= 'px'; }; $handler->css($value,$pipeline); } function attr_height_after_styles(&$root, &$pipeline) {} function attr_height_after(&$root, &$pipeline) {} // FONT attributes function attr_font_size_before(&$root, &$pipeline) { $size = $root->get_attribute('size'); /** * Check if attribute value is empty; no actions will be taken in this case */ if ($size == '') { return; }; if ($size{0} == '-') { $koeff = 1; $repeats = (int)substr($size,1); for ($i=0; $i<$repeats; $i++) { $koeff *= 1/1.2; }; $newsize = sprintf('%.2fem', round($koeff, 2)); } else if ($size{0} == '+') { $koeff = 1; $repeats = (int)substr($size,1); for ($i=0; $i<$repeats; $i++) { $koeff *= 1.2; }; $newsize = sprintf('%.2fem', round($koeff, 2)); } else { switch ((int)$size) { case 1: $newsize = BASE_FONT_SIZE_PT/1.2/1.2; break; case 2: $newsize = BASE_FONT_SIZE_PT/1.2; break; case 3: $newsize = BASE_FONT_SIZE_PT; break; case 4: $newsize = BASE_FONT_SIZE_PT*1.2; break; case 5: $newsize = BASE_FONT_SIZE_PT*1.2*1.2; break; case 6: $newsize = BASE_FONT_SIZE_PT*1.2*1.2*1.2; break; case 7: $newsize = BASE_FONT_SIZE_PT*1.2*1.2*1.2*1.2; break; default: $newsize = BASE_FONT_SIZE_PT; break; }; $newsize = $newsize . 'pt'; }; $handler =& CSS::get_handler(CSS_FONT_SIZE); $handler->css($newsize, $pipeline); } function attr_font_size_after_styles(&$root, &$pipeline) {} function attr_font_size_after(&$root, &$pipeline) {} function attr_font_color_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_COLOR); $handler->css($root->get_attribute('color'),$pipeline); } function attr_font_color_after_styles(&$root, &$pipeline) {} function attr_font_color_after(&$root, &$pipeline) {} function attr_font_face_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_FONT_FAMILY); $handler->css($root->get_attribute('face'), $pipeline); } function attr_font_face_after_styles(&$root, &$pipeline) {} function attr_font_face_after(&$root, &$pipeline) {} function attr_form_action_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_HTML2PS_FORM_ACTION); if ($root->has_attribute('action')) { $handler->css($pipeline->guess_url($root->get_attribute('action')),$pipeline); } else { $handler->css(null,$pipeline); }; } function attr_form_action_after_styles(&$root, &$pipeline) {} function attr_form_action_after(&$root, &$pipeline) {} function attr_input_name_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_HTML2PS_FORM_RADIOGROUP); if ($root->has_attribute('name')) { $handler->css($root->get_attribute('name'),$pipeline); }; } function attr_input_name_after_styles(&$root, &$pipeline) {} function attr_input_name_after(&$root, &$pipeline) {} function attr_input_size_before(&$root, &$pipeline) { // Check if current node has 'size' attribute if (!$root->has_attribute('size')) { return; }; $size = $root->get_attribute('size'); // Get the exact type of the input node, as 'size' has // different meanings for different input types $type = 'text'; if ($root->has_attribute('type')) { $type = strtolower($root->get_attribute('type')); }; switch ($type) { case 'text': case 'password': $handler =& CSS::get_handler(CSS_WIDTH); $width = sprintf('%.2fem', INPUT_SIZE_BASE_EM + $size*INPUT_SIZE_EM_KOEFF); $handler->css($width, $pipeline); break; }; }; function attr_input_size_after_styles(&$root, &$pipeline) {} function attr_input_size_after(&$root, &$pipeline) {} // TABLE function attr_cellspacing_before(&$root, &$pipeline) { $css_state =& $pipeline->get_current_css_state(); $handler =& CSS::get_handler(CSS_HTML2PS_CELLSPACING); $handler->replace(Value::fromData((int)$root->get_attribute('cellspacing'), UNIT_PX), $css_state); } function attr_cellspacing_after_styles(&$root, &$pipeline) {} function attr_cellspacing_after(&$root, &$pipeline) {} function attr_cellpadding_before(&$root, &$pipeline) { $css_state =& $pipeline->get_current_css_state(); $handler =& CSS::get_handler(CSS_HTML2PS_CELLPADDING); $handler->replace(Value::fromData((int)$root->get_attribute('cellpadding'), UNIT_PX), $css_state); } function attr_cellpadding_after_styles(&$root, &$pipeline) {} function attr_cellpadding_after(&$root, &$pipeline) {} // UL/OL 'start' attribute function attr_start_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_HTML2PS_LIST_COUNTER); $css_state =& $pipeline->get_current_css_state(); $handler->replace((int)$root->get_attribute('start'), $css_state); } function attr_start_after_styles(&$root, &$pipeline) {} function attr_start_after(&$root, &$pipeline) {} // UL 'type' attribute // // For the UL element, possible values for the type attribute are // disc, square, and circle. The default value depends on the level of // nesting of the current list. These values are case-insensitive. // // How each value is presented depends on the user agent. User agents // should attempt to present a "disc" as a small filled-in circle, a // "circle" as a small circle outline, and a "square" as a small // square outline. // function attr_ul_type_before(&$root, &$pipeline) { $type = (string)$root->get_attribute('type'); $handler =& CSS::get_handler(CSS_LIST_STYLE_TYPE); $css_state =& $pipeline->get_current_css_state(); switch (strtolower($type)) { case 'disc': $handler->replace(LST_DISC, $css_state); break; case 'circle': $handler->replace(LST_CIRCLE, $css_state); break; case 'square': $handler->replace(LST_SQUARE, $css_state); break; }; } function attr_ul_type_after_styles(&$root, &$pipeline) {} function attr_ul_type_after(&$root, &$pipeline) {} // OL 'type' attribute // // For the OL element, possible values for the type attribute are summarized in the table below (they are case-sensitive): // Type Numbering style // 1 arabic numbers 1, 2, 3, ... // a lower alpha a, b, c, ... // A upper alpha A, B, C, ... // i lower roman i, ii, iii, ... // I upper roman I, II, III, ... // function attr_ol_type_before(&$root, &$pipeline) { $type = (string)$root->get_attribute('type'); $handler =& CSS::get_handler(CSS_LIST_STYLE_TYPE); $css_state =& $pipeline->get_current_css_state(); switch ($type) { case '1': $handler->replace(LST_DECIMAL, $css_state); break; case 'a': $handler->replace(LST_LOWER_LATIN, $css_state); break; case 'A': $handler->replace(LST_UPPER_LATIN, $css_state); break; case 'i': $handler->replace(LST_LOWER_ROMAN, $css_state); break; case 'I': $handler->replace(LST_UPPER_ROMAN, $css_state); break; }; } function attr_ol_type_after_styles(&$root, &$pipeline) {} function attr_ol_type_after(&$root, &$pipeline) {} // Textarea function attr_textarea_rows_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_HEIGHT); $handler->css(sprintf('%dem', (int)$root->get_attribute('rows')*1.40),$pipeline); } function attr_textarea_rows_after_styles(&$root, &$pipeline) {} function attr_textarea_rows_after(&$root, &$pipeline) {} function attr_textarea_cols_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_WIDTH); $handler->css(sprintf('%dem', (int)$root->get_attribute('cols')*0.675),$pipeline); } function attr_textarea_cols_after_styles(&$root, &$pipeline) {} function attr_textarea_cols_after(&$root, &$pipeline) {} /** * HR-specific attributes */ function attr_hr_color_before(&$root, &$pipeline) { $handler =& CSS::get_handler(CSS_BORDER_COLOR); $handler->css($root->get_attribute('color'), $pipeline); } function attr_hr_color_after_styles(&$root, &$pipeline) {} function attr_hr_color_after(&$root, &$pipeline) {} ?>