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

  • FrankenPHP’s New Features: Thread Autoscaling, Mostly Static Binaries, deb and RPM Packages, Caddy 2.10…
  • FrankenPHP: The Modern Php App Server, written in Go
  • JSON Columns and Doctrine DBAL 3 Upgrade
  • FrankenPHP Is Now Officially Supported by The PHP Foundation
  • FrankenPHP 1.3: Massive Performance Improvements, Watcher Mode, Dedicated Prometheus Metrics, and More
  • Symfony's New Native Docker Support (Symfony World)
  • 6x faster Docker builds for Symfony and API Platform projects
  • Running Laravel Apps With FrankenPHP (Laracon EU)
  • Securely Access Private Git Repositories and Composer Packages in Docker Builds
  • Develop Faster With FrankenPHP

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 Messagerie Instantanée 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 XHTML XML

Archives

Categories

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