データ形式のメモ

  • $userid:ユーザ名.0-9a-zA-Z-@_ からなる文字列.
  • $password:パスワード.上記に加えて # % & ( ‘ ) * + ” . / : ; < = > ? [ ] ^ ` { | } \ を利用可能.最大8文字→crypt().
  • $usergroupname:ユーザグループ名.utf-8で定義される全ての文字.
  • $usergroupnameenc:URLエンコードされたユーザグループ名.
  • $pageid:ページid(ディレクトリ名).日付+ランダム英字2文字.060717aB
  • $pagetitle:ページタイトル.utf-8

  • authentication.cgi : 認証データ.Storableによる以下の%hashのダンプ.
    $hash{$userid}{‘password’} = crypt($password);
  • usergroup_$usergroupnameenc.cgi : $usergroupname におけるユーザリスト.Storableによる以下の%hashのダンプ.
    $hash{$userid} = 1;
  • usergrouplist.cgi : 全ユーザグループリスト.Storableによる以下の%hashのダンプ.
    $hash{$usergroupname} = 1;

データベースにURLエンコード後の値を入れてしまうと,検索とか後々面倒になるということに留意.

疏水太郎