measuring jack themes technologies tooltips linux measuring jack themes technologies tooltip linux limejack claim limejack limejack

Start | Sprache  de en fr | Menü | Übersicht | Suche

Sie befinden sich hier: start » de » tooltips » dokuwiki

Dokuwiki

Dokuwiki only as rendering machine

Thinks like login or register should be disabled by adding the following line into doku.php:

    if( $ACT != 'search' ) { $ACT = 'show'; }

Looking for this block:

if(isset($_SERVER['HTTP_X_DOKUWIKI_DO'])) {
    $ACT = trim(strtolower($_SERVER['HTTP_X_DOKUWIKI_DO']));
} elseif(!empty($_REQUEST['idx'])) {
    $ACT = 'index';
} elseif(isset($_REQUEST['do'])) {
    $ACT = $_REQUEST['do'];
} else {
    $ACT = 'show';
}

Add the line:

if(isset($_SERVER['HTTP_X_DOKUWIKI_DO'])) {
    $ACT = trim(strtolower($_SERVER['HTTP_X_DOKUWIKI_DO']));
} elseif(!empty($_REQUEST['idx'])) {
    $ACT = 'index';
} elseif(isset($_REQUEST['do'])) {
    $ACT = $_REQUEST['do'];
    if( $ACT != 'search' ) { $ACT = 'show'; }
} else {
    $ACT = 'show';
}

Disable cache

  • set $conf['cachetime'] = -1; in conf/local.php
  • set public $_nocache = true; in inc/cache.php

Dokuwiki Farm

  Farmer
   |
   +--- Animal 1
   +--- Animal 2
   +--- Animal 3
  • mkdir /path/to/farmer
  • mkdir /path/to/animal
  • Install Farmer wiki as normal DokuWiki in RootDirectory /path/to/farmer
  • cp inc/preload.php.dist inc/preload.php
  • edit inc/preload.php
// set this to your farm directory
if(!defined('DOKU_FARMDIR')) define('DOKU_FARMDIR', '/path/to/animals');

// include this after DOKU_FARMDIR if you want to use farms
include(fullpath(dirname(__FILE__)).'/farm.php');
* Download ''https://www.dokuwiki.org/_media/dokuwiki_farm_animal.zip'' to /path/to/animals and unpack
* rename directory to **cow**
* ''mkdir /path/to/animals/animal/cow/data/log''
Disclaimer | Impressum | Privacy | Copyleft