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