Wiki: DebugInfo: PhpWikiAdministration


Detailed view of a page, which is probably more useful for debugging than anything else.

Querying backend directly for 'PhpWikiAdministration'

get_pagedata('PhpWikiAdministration')
 _cached_html 
transformedtext Object
(
    [_type] => pagetype_wikitext Object
        (
        )

    [_basepage] => PhpWikiAdministration
    [_content] => Array
        (
            [0] => <div class="wikitext"><p class="tightenable top"><i><b>Note:</b></i> <i>Most of the actions on this page require administrative
privileges. They won't work unless you have set an admin username and
password in the 
            [1] => cached_wikilink Object
                (
                    [_page] => PhpWiki
                )

            [2] =>  config file.</i></p>

            [3] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin CreateToc jshide||=1 with_toclink||=1 ?>
                    [_tightenable] => 0
                )

            [4] => <hr />
<h2>Page Explorer</h2>
<p class="tightenable">First select pages and then define the action:</p>

            [5] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin-form WikiAdminSelect s="*" ?>
                    [_tightenable] => 0
                )

            [6] => <p class="tightenable">or call the available WikiAdmin actions directly:</p>
<table class="wiki-dl-table" border="1" cellspacing="0" cellpadding="6"><tr class="tightenable"><th>
            [7] => cached_wikilink Object
                (
                    [_page] => /Remove
                )

            [8] => </th>
<th>
            [9] => cached_wikilink Object
                (
                    [_page] => /Rename
                )

            [10] => </th>
<th>
            [11] => cached_wikilink Object
                (
                    [_page] => /Replace
                )

            [12] => </th>
<th>
            [13] => cached_wikilink Object
                (
                    [_page] => /SetAcl
                )

            [14] => </th>
<td>
            [15] => cached_wikilink Object
                (
                    [_page] => /Chmod
                )

            [16] => </td>
</tr>
</table>
<hr />
<h2>User Management</h2>
<p class="tightenable">
            [17] => cached_interwikilink Object
                (
                    [_link] => PhpWiki:EmailVerification
                )

            [18] =>  is currently non-strict, leaving some possible holes, which can be administrated below.</p>
<blockquote class="tightenable"><p class="tightenable top">This button will show a list of all users with registered emails and buttons to set the verification status manually.</p>

            [19] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin WikiAdminUtils
         action=email-verification
         label="Email Verification"
 ?>
                    [_tightenable] => 2
                )

            [20] => </blockquote>
<p class="tightenable">To prevent from robots eating all possible ressources in a short time, blocking from certain IP's or not-well-behaving user agents can be defined below. See 
            [21] => cached_interwikilink Object
                (
                    [_link] => PhpWiki:HowToBlockRobots
                )

            [22] =>  and 
            [23] => cached_interwikilink Object
                (
                    [_link] => MeatBall:SurgeProtector
                )

            [24] => . <i>Note: Not yet enabled.</i></p>
<blockquote class="tightenable">
            [25] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin WikiAdminUtils
         action=access-restrictions
         label="Access Restrictions"
 ?>
                    [_tightenable] => 3
                )

            [26] => </blockquote>
<hr />
<h2>Cleanup</h2>
<p class="tightenable">A Wiki 
            [27] => cached_wikilink Object
                (
                    [_page] => SandBox
                )

            [28] =>  is very easy to clean. Here you can restore it to
pristine condition by loading the default from pgsrc.</p>
<blockquote class="tightenable"><p class="tightenable top bottom">
            [29] => cached_phpwikiurl Object
                (
                    [_url] => phpwiki:?action=loadfile&source=pgsrc/SandBox
                    [_label] => Rake the SandBox
                )

            [30] => .</p>
</blockquote>
<hr />
<h2>Making Snapshots or Backups</h2>
<h3>ZIP files of database</h3>
<p class="tightenable">These links lead to zip files, generated on the fly, which contain all
the pages in your Wiki. The zip file will be downloaded to your local
computer.</p>
<blockquote class="tightenable"><p class="tightenable top">This <strong>
            [31] => cached_phpwikiurl Object
                (
                    [_url] => phpwiki:?action=zip
                    [_label] => ZIP Snapshot
                )

            [32] => </strong> contains only the
latest versions of each page, while this <strong>
            [33] => cached_phpwikiurl Object
                (
                    [_url] => phpwiki:?action=zip&include=all
                    [_label] => ZIP Dump
                )

            [34] => </strong> contains all archived versions.</p>
<p class="tightenable bottom">(If the 
            [35] => cached_wikilink Object
                (
                    [_page] => PhpWiki
                )

            [36] =>  is configured to allow it, anyone can download a zip
file.)</p>
</blockquote>
<p class="tightenable">If your php has <em>zlib</em> support, the files in the archive will be
compressed, otherwise they will just be stored.</p>
<h3>Dump to directory</h3>
<p class="tightenable">Here you can dump pages of your Wiki into a directory of your choice.</p>
<blockquote class="tightenable">
            [37] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin WikiForm action=dumpserial?>
                    [_tightenable] => 3
                )

            [38] => </blockquote>
<p class="tightenable">The most recent version of each page will written out to the
directory, one page per file. Your server must have write permissions
to the directory!</p>
<hr />
<h2>Restoring</h2>
<p class="tightenable">If you have dumped a set of pages from 
            [39] => cached_wikilink Object
                (
                    [_page] => PhpWiki
                )

            [40] => , you can reload them
here. Note that pages in your database will be overwritten; thus, if
you dumped your 
            [41] => cached_wikilink Object
                (
                    [_page] => HomePage
                )

            [42] =>  when you load it from this form it will
overwrite the one in your database now. If you want to be selective
just delete the pages from the directory (or zip file) which you don't
want to load.</p>
<h3>Upload File</h3>
<p class="tightenable">Here you can upload ZIP archives, or individual files from your
(client) machine.</p>
<blockquote class="tightenable">
            [43] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin WikiForm action=upload?>
                    [_tightenable] => 3
                )

            [44] => </blockquote>
<h3>Load File</h3>
<p class="tightenable">Here you can load ZIP archives, individual files or entire
directories. The file or directory must be local to the http
server. You can also use this form to load from an http: or ftp: URL.</p>
<blockquote class="tightenable">
            [45] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin WikiForm action=loadfile?>
                    [_tightenable] => 3
                )

            [46] => </blockquote>
<hr />
<h2>Format of the files</h2>
<p class="tightenable">Currently the pages are stored, one per file, as MIME (
            [47] => cached_interwikilink Object
                (
                    [_link] => RFC:2045
                )

            [48] => )
e-mail (
            [49] => cached_interwikilink Object
                (
                    [_link] => RFC:822
                )

            [50] => ) messages. The content-type <em>application/x-phpwiki</em>
is used, and page meta-data is encoded in the content-type
parameters. (If the file contains several versions of a page, it will
have type <em>multipart/mixed</em>, and contain several sub-parts, each
with type <em>application/x-phpwiki</em>.)  The message body contains the
page text.</p>
<h3>Old Formats</h3>
<p class="tightenable"><strong>Serialized Files</strong></p>
<blockquote class="tightenable"><p class="tightenable top bottom">The dump to directory command used to dump the pages as PHP
<em>serialized()</em> strings. For humans, this made the files very hard
to read, and nearly impossible to edit.</p>
</blockquote>
<p class="tightenable"><strong>Plain Files</strong></p>
<blockquote class="tightenable"><p class="tightenable top bottom">Before that the page text was just dumped to a file--this means that
all page meta-data was lost. Note that when loading <em>plain files</em>,
the page name is deduced from the file name.</p>
</blockquote>
<p class="tightenable">The upload and load functions will automatically recognize each of
these three types of files, and handle them accordingly.</p>
<hr />
<h2>Dump pages as XHTML</h2>
<blockquote class="tightenable">
            [51] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin WikiForm action=dumphtml?>
                    [_tightenable] => 3
                )

            [52] => </blockquote>
<p class="tightenable">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.</p>
<blockquote class="tightenable"><p class="tightenable top bottom">The XHTML file collection can also be downloaded as an
<strong>
            [53] => cached_phpwikiurl Object
                (
                    [_url] => phpwiki:?action=ziphtml
                    [_label] => XHTML ZIP Snapshot
                )

            [54] => </strong>.</p>
</blockquote>
<hr />
<h2>Phpwiki Internals</h2>
<p class="tightenable">These are here mostly for debugging purposes (at least, that's the
hope.)</p>
<p class="tightenable">In normal use, you shouldn't need to use these, though, then again,
they shouldn't really do any harm.</p>
<h3>Purge Markup Cache</h3>
<p class="tightenable">(If your wiki is so configured,) the transformed (almost-HTML) content
of the most recent version of each page is cached. This speeds up page
rendering since parsing of the wiki-text takes a fair amount of juice.</p>
<blockquote class="tightenable"><p class="tightenable top">Hitting this button will delete all cached transformed
content. (Each pages content will be transformed and re-cached next
time someone views it.)</p>

            [55] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin WikiAdminUtils
         action=purge-cache
         label="Purge Cache"
 ?>
                    [_tightenable] => 2
                )

            [56] => </blockquote>
<h3>Clean WikiDB of Illegal Filenames</h3>
<p class="tightenable">Page names beginning with the subpage-separator, usually a slash
(<tt>/</tt>), are not allowed. Sometimes though an errant plugin or something
might create one....</p>
<blockquote class="tightenable"><p class="tightenable top">This button will delete any pages with illegal page names.</p>

            [57] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin WikiAdminUtils
         action=purge-bad-pagenames
         label="Exorcise WikiDB"
 ?>
                    [_tightenable] => 2
                )

            [58] => </blockquote>
<hr />
<p class="tightenable top bottom">
            [59] => cached_wikilink Object
                (
                    [_page] => PhpWikiDocumentation
                )

            [60] => </p>
</div>

        )

    [_description] => Note: Most of the actions on this page require administrative privileges. They won't work unless you have set an admin username and password in the PhpWiki config file.
)
 hits  1935
 locked  yes
get_versiondata('PhpWikiAdministration',1)
 %content  _*Note:*_ _Most of the actions on this p ...
 author  The PhpWiki programming team
 author_id  The PhpWiki programming team
 is_minor_edit   
 markup  2
 mtime  1082385964
 pagetype  wikitext

Copyright © 2007 RobertMelton.com