Nutzung:

Ich nutze derzeit zwei Pmwikis produktiv:

  • Privat
    • Vorteil: Da eine Webanwendung, immer und überall präsent, zuhause, in der Firma, bei Schwiegermutter in Paderborn
    • Notizblock
    • Tagebuch
    • Adressliste
    • Linkliste
    • ToDo-Liste
  • beruflich
    • Notizenblock
    • ToDo
    • Dokumentation (Serverhardware, IP-bereiche, Konfiguration, Standartinstallitionen, Passwörter, ...
    • Das Wiki ist nur aus dem Intranet erreichbar(!), aber von jedem Client in gesamten Extranet.

Beide Wiki sind in einer Website eingebunden.


Vorgehen:
1) Installation des Wiki
...
2) Inhalte planen und Navigation vorbereiten
3) Anpassung des Layoutes mit externer Navigation
Entwickeln eines Layout der Website mit Netscape Composer, Dreamweaver, per Hand, ...
Zerschneiden des Layout, passend auf die Variablen der pmwiki.php
Erstellen der local.php mit den neuen Variablen
...
4) Upload freischalten (optional)
Auch dies wird in der local.php festgelegt
...
5) Kalenderfunktion implementieren (optional)
...
6) Rechte vergeben/beschneiden
...

Beispiel local.php eines einfachen Testwikis

 <?php

 $WikiTitle = 'Ingos Wiki';

 $ScriptUrl = 'http://wiki.domain.local/pmwiki.php';

 $DefaultPasswords['admin'] = '$1$psTZ8ZF3$.QB17Oi7zoFVfsFTU8EPY0';
 $DefaultPasswords['read'] = '$1$psTZ8ZF3$.QB17Oi7zoFVfsFTU8EPY0';
 $DefaultPasswords['edit'] = '$1$psTZ8ZF3$.QB17Oi7zoFVfsFTU8EPY0';
 $DefaultPasswords['attr'] = '$1$psTZ8ZF3$.QB17Oi7zoFVfsFTU8EPY0';

 $WikiImgUrl = "$ScriptDir/ingo.jpg";

 $HTMLBodyFmt = "</head><body text='#FFFF00' bgcolor='#000099' link='#FF0000' vlink='#FF0000' alink='#FF0000'><div class='wikibody'>";

 $PageHeaderFmt = "
   <center><table BORDER=0 CELLSPACING=3 CELLPADDING=0 WIDTH='90%' >
   <tr><td ALIGN=LEFT VALIGN=BOTTOM>\$WikiImg</td>
   <td ALIGN=LEFT VALIGN=BOTTOM><a href='\$ScriptUrl/\$Group'>$Group</a>
   <br><span class='wikiheader'><a href='\$PageUrl?action=search&amp;text=\$Title_'>\$Title</a></span></td>
   <td ALIGN=RIGHT VALIGN=BOTTOM class='wikiops'><a href='\$ScriptUrl/$[Main]'>$[Home]</a>
   <br><a href='\$ScriptUrl/$[Main/SearchWiki]'>$[Suchen]</a>
   <br><a href='\$ScriptUrl/$[\$Group/RecentChanges]'>\$Group.$[Letzte Bearbeitung]</a>
   <br><a href='\$PageUrl?action=edit'>$[Bearbeiten]</a>
   <br><a href='\$PageUrl?action=diff'>$[Revision]</a></td></tr>
   <tr><td COLSPAN=3><hr WIDTH='100%'></td></tr>
   <tr><td ALIGN=LEFT VALIGN=TOP>
   <a href='\$ScriptUrl/Main/LinKs'>LinKs</a>
   <br><a href='\$ScriptUrl/Tagebuch/TagebUch'>TagebUch</a>
   <br><a href='\$ScriptUrl/ToDo/ToDo'>ToDo</a>
   <br><a href='\$ScriptUrl/Main/AdresseN'>AdresseN</a>
   <br><a href='\$ScriptUrl/Notizen/NotiZen'>NotiZen</a>
   <br><a href='\$ScriptUrl/Main/WichtiG'>WichtiG</a>
   <br><a href='\$ScriptUrl/Main/DownloaD'>DownloaD</a></td>
   <td ALIGN=LEFT VALIGN=TOP COLSPAN=2>";

 $PageFooterFmt = "</td></tr>
   <tr><td ALIGN=LEFT VALIGN=TOP COLSPAN=3>
   <hr><font size=-1><a href='\$ScriptUrl/$[Main]'>$[Home]</a>
   - <a href='\$PageUrl?action=edit'>$[Bearbeiten]</a>
   - <a href='\$PageUrl?action=diff'>$[Revisions]</a>
   - <a href='\$ScriptUrl/$[PmWiki/WikiHelp]'>$[Hilfe]</a>
   - <a href='\$ScriptUrl/$[Main/SearchWiki]'>$[Suchen]</a>
   - <a href='\$ScriptUrl/$[\$Group/RecentChanges]'>\$Group.$[Revision]</a></font>
   <p><font size=-1>Diese wurde zuletzt bearbeitet am \$LastModified</font></td></tr>
   <tr><td><img SRC='leer.gif' height=1 width=100></td>
   <td><img SRC='leer.gif' height=1 width=400></td>
   <td><img SRC='leer.gif' height=1 width=250></td></tr>
   </table></center>";

 ?>

Beispiel local.php der Testwiki-Seite
Es sieht komplizierter aus als es ist und es geht auch noch einfacher!

 <?

 $HTMLDoctypeFmt =
   "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"
     \"http://www.w3.org/TR/html40/loose.dtd\">
   <html><head>";

 $ScriptUrl = 'http://www.lugrudo.dyndns.org/pmwiki/pmwiki.php';
 $WikiTitle = "Ingos LUGruDo-Test-Wiki";
 $Url = "http://www.lugrudo.dyndns.org/pmwiki/";

 if ( $wiki == "no" ) {
 	$HTMLTitleFmt = "<title>$WikiTitle</title>";
 	} else {
 	$HTMLTitleFmt = "<title>\$WikiTitle - \$HTMLTitle</title>";
 	}

 if($layout==""){
 	$layout= "3";
 }

 $css="vorlage".$layout.".css";

 $HTMLHeaderFmt = "
    <meta name=\"Author\" content=\"Ingo Roessler\">
    <!-- <META http-equiv=\"Pragma\" content=\"no-cache\"> -->
    <META http-equiv=\"Content-Type\" content=\"text/html\; charset=iso-8859-1\">
    <link rel=stylesheet type=\"text/css\" href=\"".$Url.$css."\">
    <!-- <LINK REL=\"SHORTCUT ICON\" HREF=\"/favicon.ico\"> -->
    ";

 [=$HTMLBodyFmt = "</head><body>";

 if ( $wiki == "no" ) {
 	$PageHeaderFmt_wiki_navi = "<td valign='top' align='right'>
 	<a href='http://www.heise.de' target='_blank'><img src='http://www.heise.de/icons/ho/newsad_234.gif' alt='Heise Newsticker' border='0' /></a>
 	</td>";
 	} else {
 	$PageHeaderFmt_wiki_navi = "<td valign='bottom' align='right' class='wikiops'>
       <a href='\$ScriptUrl/$[Main/SearchWiki]'>$[Suche]</a><br />
       <a href='\$ScriptUrl/$[\$Group/RecentChanges]'>\$Group.$[RecentChanges]</a><br />
       <a href='\$PageUrl?action=edit'>$[Bearbeiten]</a><br />
       <a href='\$PageUrl?action=diff'>$[Page Revisions]</a></td>";
     }

 require("navi.php");

 if ( $wiki == "no" ) {
 	$PageHeaderFmt_wiki_div ="";
 	} else {
 	$PageHeaderFmt_wiki_div ="<div class='wikibody'>";
 	}

 if ( $wiki == "no" ) {
 	$PageHeaderFmt_wiki_titel = "<font size=+2>Ingos LUGruDo-Testseite</font>";
 	} else {
 	$PageHeaderFmt_wiki_titel = "<a href='\$ScriptUrl/\$Group'>\$Group</a> /<br />
       <span class='wikiheader'><a href='\$PageUrl?action=search&amp;text=\$Title_'>\$Title</a></span>";
 	}

 $PageHeaderFmt = "
 <center><table BORDER=0 CELLSPACING=0 CELLPADDING=3 WIDTH=700 >
 <tr><td ALIGN=LEFT VALIGN=TOP><a href='".$Url."pmwiki.php/Main/HomePage'><img src='".$Url."ingo.jpg' alt='Ingos LUGruDo-Test-Wiki' border='0' /></a></td>
 <td ALIGN=LEFT VALIGN=TOP>".$PageHeaderFmt_wiki_titel."</td>".$PageHeaderFmt_wiki_navi."</tr>
 <tr><td ALIGN=CENTER VALIGN=TOP COLSPAN=\"3\"><a href=\"".$Url."index.php?wiki=no&site=".$site."&layout=1\">Farbe1</a> - <a href=\"".$Url."index.php?wiki=no&site=".$site."&layout=2\">Farbe2</a> - <a href=\"".$Url."index.php?wiki=no&site=".$site."&layout=3\">Farbe3</a><br></td></tr>
 <tr><td ALIGN=LEFT VALIGN=TOP>$PageHeaderFmt_wiki_local</td>
 <td ALIGN=LEFT VALIGN=TOP COLSPAN=\"2\">".$PageHeaderFmt_wiki_div;

 if ( $wiki == "no" ) {
 	$PageFooterFmt_wiki = "";
 	} else {
 	$PageFooterFmt_wiki = "<hr /><small>
   <a href='\$PageUrl?action=edit'>$[Bearbeiten]</a> -
   <a href='\$PageUrl?action=diff'>$[Page Revisions]</a> -
   <a href='\$ScriptUrl/$[PmWiki/WikiHelp]'>$[Hilfe]</a> -
   <a href='\$ScriptUrl/$[Main/SearchWiki]'>$[Suche]</a> -
   <a href='\$ScriptUrl/$[\$Group/RecentChanges]'>$[RecentChanges]</a><br />
   $[Seite zuletzt bearbeitet am \$LastModified]</small></div>";
	}
 $PageFooterFmt ="</td></tr>
 <tr><td><img SRC='".$Url."leer.gif' height=1 width=100></td><td ALIGN=CENTER VALIGN=TOP COLSPAN=\"2\">".$PageFooterFmt_wiki."</td></tr>
 <tr><td ALIGN=RIGHT VALIGN=TOP COLSPAN=\"3\"><hr WIDTH=\"100%\">
   <font size=-1><b>Linux User Group Dortmund</b>
   <br><a href=\"mailto:roessler@gmx.de\">roessler@gmx.de</a>
   <br><a href=\"".$Url."\">".$Url."</a></font>
   <br>&nbsp;</td></tr>
   <tr><td><img SRC='".$Url."leer.gif' height=1 width=100></td>
   <td><img SRC='".$Url."leer.gif' height=1 width=400></td>
   <td><img SRC='".$Url."leer.gif' height=1 width=250></td></tr>
 </table></center>";

 $HTMLEndFmt = "</body></html>";

 $DefaultPasswords['admin'] = '$1$jaP4MrpI$NUYm.ZbOSsYgP1ti/eAlq0';
 // $DefaultPasswords['read'] = '$1$jaP4MrpI$NUYm.ZbOSsYgP1ti/eAlq0';
 $DefaultPasswords['edit'] = '$1$jaP4MrpI$NUYm.ZbOSsYgP1ti/eAlq0';
 $DefaultPasswords['attr'] = '$1$jaP4MrpI$NUYm.ZbOSsYgP1ti/eAlq0';

 $EnableUpload = 1;
 $UploadDir = "/home/roessler/lugrudo/www/pmwiki";
 $UploadUrlFmt = "http://www.lugrudo.dyndns.org/pmwiki";
 $DefaultPasswords['upload'] = '$1$jaP4MrpI$NUYm.ZbOSsYgP1ti/eAlq0';

 if ( $wiki =! "no" ) {
     SDV($UploadExts,array(
       'gif','jpg','jpeg','png','bmp','ico','wbmp',          # images
       'mp3','au','wav',                                     # audio
       'mpg','mpeg','wmf','mov','qt','avi',                  # video
       'zip','gz','tgz','tar','rpm','hqx',                   # archives
       'doc','ppt','xls','exe','mdb',                        # MSOffice?
       'sdw',
       'pdf','psd','ps','ai','eps',                          # Adobe
       'htm','html','fla','swf',                             # web stuff
       'txt','rtf','exe','tex','dvi',''));                   # misc
 	}
 ?>