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