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

  • Front-end application development, Symfony-style(s)
  • Interview de Dominique Grange sur Rue 89
  • API Platform 2.0 released: creating powerful web APIs has never been so easy
  • Say Hello to Mercure 0.10!
  • Connection to a MS SQL Server from Symfony / Doctrine on Mac or Linux
  • Mastering the Symfony Serializer (PHP Tour)
  • Le profiling commercial, kézako
  • Symfony's New Native Docker Support (Symfony World)
  • Encore des nouvelles de Easy Ubuntu
  • Dive Into Symfony 4 (slides)

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 Messagerie Instantanée MySQL performance PHP Punk Rock Python React REST Rock'n'Roll Schema.org Security SEO SEO Symfony Sécurité Ubuntu Web 2.0 webperf Wordpress XML

Archives

Categories

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