]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/PhpWikiAdministration
(from Patrick Henry) New function to dump html files into a zip file.
[SourceForge/phpwiki.git] / pgsrc / PhpWikiAdministration
1 Date: Mon, 25 Feb 2002 11:04:00 -0500
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.3-jeffs-hacks)
3 X-Rcs-Id: $Id: PhpWikiAdministration,v 1.18 2002-02-25 16:07:36 carstenklapp Exp $
4 Content-Type: application/x-phpwiki;
5   pagename=PhpWikiAdministration;
6   flags=PAGE_LOCKED;
7   pgsrc_version="2 $Revision: 1.18 $";
8   markup=2;
9   charset=iso-8859-1
10 Content-Transfer-Encoding: binary
11
12 __Note__: Most of the actions on this page require administrative privileges.
13 They won't work unless you have set an admin username and password in the PhpWiki config file.
14
15 ----------
16 !! Cleanup
17 A Wiki SandBox is very easy to clean. Here you can restore it to pristine condition by loading the default from pgsrc:
18
19 [ Rake the SandBox | phpwiki:?action=loadfile&source=pgsrc/SandBox ].
20
21 ----------
22 !! Making Snapshots or Backups
23
24 ! ZIP files of database
25
26 These links lead to zip files, generated on the fly, which contain all
27 the  pages in your Wiki.  The zip file will be downloaded to your local computer.
28
29 This __[ZIP Snapshot | phpwiki:?action=zip]__ contains only the latest versions
30 of each page, while this __[ZIP Dump | phpwiki:?action=zip&include=all]__ contains all
31 archived versions.
32
33 (If the PhpWiki is configured to allow it,) anyone can download a zip file.
34
35 If your php has ''zlib'' support, the files in the archive will be compressed,
36 otherwise they will just be stored.
37
38 ! Dump to directory
39
40 Here you can dump pages of your Wiki into a directory of your choice.
41
42 <?plugin WikiForm action=dumpserial?>
43
44 The most recent version of each page will written out to the
45 directory, one page per file.
46 Your server must have write permissions to the directory!
47
48 -----------
49 !! Restoring
50
51 If you have dumped a set of pages from PhpWiki, you can reload them here.
52 Note that pages in your database will be overwritten; thus, if you dumped
53 your HomePage when you load it from this form it will overwrite the one
54 in your database now. If you want to be selective just delete
55 the pages from the directory (or zip file) which you don't want to load.
56
57 ! Upload File
58
59 Here you can upload ZIP archives, or individual files from
60 your (client) machine.
61
62 <?plugin WikiForm action=upload?>
63
64 ! Load File
65
66 Here you can load ZIP archives, individual files or entire directories.
67 The file or directory must be local to the http server.
68 You can also use this form to load from an http: or ftp: URL.
69
70 <?plugin WikiForm action=loadfile?>
71
72 -----------
73 !! Format of the files
74
75 Currently the pages are stored, one per file, as MIME (RFC:2045)
76 e-mail (RFC:822) messages.
77 The content-type ''application/x-phpwiki'' is used, and page meta-data
78 is encoded in the content-type parameters.
79 (If the file contains several versions of a page, it will have
80 type ''multipart/mixed'', and contain several sub-parts, each
81 with type ''application/x-phpwiki''.)
82 The message body contains the page text.
83
84 ! Old Formats
85
86 __Serialized Files__
87
88 The dump to directory command used to dump the pages as
89 php ''serialized()'' strings.  For humans, this made the files very hard
90 to read, and nearly impossible to edit.
91
92 __Plain Files__
93
94 Before that the page text was just dumped to a file--this means
95 that all page meta-data was lost. Note that when loading
96 ''plain files'', the page name is deduced from the file name.
97
98 The upload and load functions will automatically recognize each of these
99 three types of files, and handle them accordingly.
100 ----
101 !! Dump pages as XHTML
102 <?plugin WikiForm action=dumphtml?>
103
104 This will generate a directory of static pages suitable for distribution on disk where no web server is available. The various links for page editing functions and navigation are removed from the pages.
105
106 The XHTML file collection can also be downloaded as an __[XHTML ZIP Snapshot | phpwiki:?action=ziphtml]__.
107 ----
108 PhpWikiDocumentation