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

アールメカブ


Wiki_認証 のバックアップソース(No.2)

* vi pukiwiki.ini.php [#q20675c2]

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


//User definition
 $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',
 );