]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FFileInfoPlugin
function _PageList_Column* are not private
[SourceForge/phpwiki.git] / pgsrc / Help%2FFileInfoPlugin
1 Date: Fri, 11 Jan 2013 11:16:51 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FFileInfoPlugin;
5   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
6   markup=2;
7   charset=UTF-8
8 Content-Transfer-Encoding: binary
9
10 The **~FileInfo** [[Help:WikiPlugin|plugin]] displays the version, date, size,
11 perms of an uploaded file.  Only files relative and below to the uploads path
12 can be handled.
13
14 For exe files the **version** argument might work to display the VERSIONINFO ressource string. (highly experimental).
15
16 == Typical Usage ==
17
18 {{{
19 <<FileInfo file=uploads/setup.exe display=version,date>>
20 <<FileInfo file=uploads/setup.exe display=name,version,date
21                                   format="%s (version: %s, date: %s)">>
22 }}}
23
24 == Arguments ==
25
26 {| class="bordered"
27 |-
28 ! Argument
29 ! Description
30 ! Default value
31 |-
32 | **file**
33 | Relative path from PHPWIKI_DIR.
34 | //None// (required argument)
35 |-
36 | **display**
37 | Comma-separated string of version, size, phonysize, date, mtime, owner, name, path, dirname, link, mime-typ, magic.
38 | //None// (required argument)
39 |-
40 | **format**
41 | printf format string with %s only, all display modes from above vars return strings
42 | (optional)
43 |-
44 | **quiet**
45 | print no error if file not found
46 | false
47 |}
48
49 == Examples ==
50
51 This wiki was installed at <<FileInfo file=config/config.ini display=date>>.
52
53 <noinclude>
54 ----
55 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
56 </noinclude>