Skip to content

Kévin Dunglas

Founder of Les-Tilleuls.coop (worker-owned cooperative). Creator of API Platform, FrankenPHP, Mercure.rocks, Vulcain.rocks and of some Symfony components.

Menu
  • Talks
  • Resume
  • Sponsor me
  • Contact
Menu

Masquer les IPs dans DokuWiki

Posted on February 9, 2006 by Kévin Dunglas

DokuWiki est un excellent logiciel d’édition collaborative mais il a la facheuse tendance de laisser trainer les adresses IPs de ses utilisateurs.

Voici comment y remédier.

Ouvrez inc/template.php, à la ligne 628 dans la fonction tpl_pageinfo() commentez

    if($INFO['editor']){       print ' '.$lang['by'].' ';       print $INFO['editor'];     }     if($INFO['locked']){       print ' · ';       print $lang['lockedby'];       print ': ';       print $INFO['locked'];     }

comme ceci

    /*if($INFO['editor']){       print ' '.$lang['by'].' ';       print $INFO['editor'];     }     if($INFO['locked']){       print ' · ';       print $lang['lockedby'];       print ': ';       print $INFO['locked'];     }*/

Dans inc/common.php à la ligne 642 remplacez $recent['ip'] = $ip; par $recent['ip'] = /*$ip;*/.

Dans inc/html.php ligne 421 changez

    print ' <span class="user">';     print $INFO['editor'];     print '</span> ';

par

    /*print ' <span class="user">';     print $INFO['editor'];     print '</span> ';*/

et ligne 453 remplacez

else{       print $info['ip'];     }

par

/*else{       print $info['ip'];     }*/

Et voilà votre wiki un peu plus anonyme. En cas de besoin vous pouvez toujours consulter les IPs dans le fichier data/changes.log.

Related posts:

  1. Generate a Symfony password hash from the command line
  2. Internationalized Domain Name (IDN) and PHP
  3. Stack2Slack: a Slack bot written in Go to monitor StackOverflow tags
  4. PHP 7: Introducing a domain name validator and making the URL validator stricter

Leave a ReplyCancel reply

Social

  • Bluesky
  • GitHub
  • LinkedIn
  • Mastodon
  • X
  • YouTube

Links

  • API Platform
  • FrankenPHP
  • Les-Tilleuls.coop
  • Mercure.rocks
  • Vulcain.rocks

Subscribe to this blog

Top Posts & Pages

  • Windows Support for FrankenPHP: It’s Finally Alive!
  • Symfony's New Native Docker Support (Symfony World)
  • FrankenPHP: The Modern Php App Server, written in Go
  • Unleash the Monster: The FrankenPHP elePHPant is Born
  • Symfony 4: HTTP/2 Push and Preloading
  • JSON Columns and Doctrine DBAL 3 Upgrade
  • Plugin pour intégrer Scoopeo à votre blog Wordpress
  • Un thème Prestashop HTML5 optimisé pour le référencement avec Rich Snippets
  • FrankenPHP 1.3: Massive Performance Improvements, Watcher Mode, Dedicated Prometheus Metrics, and More
  • Nouvelle réalisation : la boutique Lost In The Supermarket

Tags

Apache API API Platform Buzz Caddy Docker Doctrine FrankenPHP Go Google GraphQL HTTP/2 Hydra hypermedia Hébergement Javascript JSON-LD Kubernetes La Coopérative des Tilleuls Les-Tilleuls.coop Lille Linux Mac Mercure Mercure.rocks MySQL performance PHP Punk Rock Python React REST Rock'n'Roll Schema.org Security SEO SEO Symfony Symfony Live Sécurité Ubuntu Web 2.0 webperf Wordpress XML

Archives

Categories

  • DevOps (85)
    • Ubuntu (68)
  • Go (21)
  • JavaScript (46)
  • Mercure (7)
  • Opinions (91)
  • PHP (177)
    • API Platform (80)
    • FrankenPHP (15)
    • Laravel (1)
    • Symfony (97)
    • Wordpress (6)
  • Python (14)
  • Security (15)
  • SEO (25)
  • Talks (46)
© 2026 Kévin Dunglas | Powered by Minimalist Blog WordPress Theme