Wiki_認証 のバックアップ(No.3) - アールメカブ

アールメカブ


Wiki_認証 のバックアップ(No.3)


_ vi pukiwiki.ini.php

パスワード生成 $ echo -n 'pass' | md5sum

$auth_users = array(
       // Username => password
//      'foo'   => 'foo_passwd', // Cleartext
//      'bar'   => '{x-php-md5}pass', // PHP md5() '
        'usrs'      => '{x-php-md5}pass', // PHP md5()  
                  
// Edit auth (0:Disable, 1:Enable)
$edit_auth = 1;

$edit_auth_pages = array(
       // Regex                   Username
       '/.*/'  => 'users',
      // '#BarDiary#'            => 'bar',
      // '#HogeHoge#'            => 'hoge',
      // '#(NETABARE|NetaBare)#' => 'foo,bar,hoge',
);

一部閲覧の制限も行った.

read_auth = 1;

$read_auth_pages = array(
       // Regex                   Username
       '#^hogehoge#'             => 'users',
//      '#HogeHoge#'            => 'hoge',
//      '#(NETABARE|NetaBare)#' => 'foo,bar,hoge',
);