Skip to content

Kévin Dunglas

Founder of Les-Tilleuls.coop (worker-owned cooperative). Creator of API Platform, 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 Reply Cancel reply

Follow me on Twitter

My Tweets

Subscribe to this blog

Recent Posts

  • Symfony ImportMaps: Manage Your JavaScript Dependencies Without Node
  • Read the Linux Manual Pages on Mac and BSD, Directly From the Terminal
  • Ne vous lamentez pas, organisez-vous !
  • FrankenPHP: The Modern Php App Server, written in Go
  • API Platform 3 Is Released!

Top Posts & Pages

  • Symfony ImportMaps: Manage Your JavaScript Dependencies Without Node
  • Securely Access Private Git Repositories and Composer Packages in Docker Builds
  • JSON Columns and Doctrine DBAL 3 Upgrade
  • Goroutines, threads, and thread IDs
  • Preventing CORS Preflight Requests Using Content Negotiation
  • Generate a Symfony password hash from the command line
  • Symfony's New Native Docker Support (Symfony World)
  • API Platform 3 Is Released!
  • Symfony UX Turbo: Do You Still Need JavaScript?! (SymfonyWorld)
  • Using Next.js and Material UI Together

Persistence in PHP with the Doctrine ORM

Persistence in PHP with the Doctrine ORM

Tags

Apache API API Platform Buzz Caddy Docker Doctrine 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 PHP Punk Rock Python React REST Rock'n'Roll RSS Schema.org Security SEO SEO Symfony Symfony Live Sécurité Twitter Ubuntu Web 2.0 Wordpress XHTML XML

Archives

Categories

  • DevOps (25)
  • Mercure (4)
  • Opinions (91)
  • Programming (186)
    • Android (5)
    • Go (13)
    • JavaScript (44)
    • PHP (144)
      • API Platform (65)
      • Symfony (90)
    • Python (14)
      • Django (5)
  • Security (15)
  • SEO (24)
  • Talks (39)
  • Ubuntu (68)
  • Wordpress (6)

Social

  • Mastodon
  • Twitter
  • LinkedIn
  • YouTube
  • GitHub

Links

  • API Platform
  • Les-Tilleuls.coop
  • Mercure.rocks
  • Vulcain.rocks
© 2023 Kévin Dunglas | Powered by Minimalist Blog WordPress Theme