Changeset 10039 for temp/trunk/html/test


Ignore:
Timestamp:
2006/12/01 14:09:50 (20 years ago)
Author:
kakinaka
Message:

blank

Location:
temp/trunk/html/test/kakinaka
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/html/test/kakinaka/auth_http.php

    r10037 r10039  
    55require_once($include_dir . "/pear/Auth_HTTP.php"); 
    66 
    7  
    8 $params = Array("../../.htpasswd","authType"=>"basic","cryptType"=>"MD5"); 
    9  
    10 $objAuth = new Auth_HTTP("File",$params); 
    11  
    12 // realmÎΰè̾ 
    13 $objAuth->setRealm('Please Enter Your Password'); 
    14  
    15 // ǧ¾Ú¤ò¥­¥ã¥ó¥»¥ë¤äǧ¾Ú¥¨¥é¡¼¤·¤¿ºÝ¤Ëɽ¼¨¤µ¤ì¤ë¥á¥Ã¥»¡¼¥¸ 
    16 $objAuth->setCancelText('<h2>Authorization Required</h2>'); 
    17  
    18 // ǧ¾Ú¥×¥í¥»¥¹¤Î³«»Ï 
    19 $objAuth->start(); 
    20  
    21 if($objAuth->getAuth()) { 
    22     echo $objAuth->username . "¤Îǧ¾Ú¤ËÀ®¸ù!"; 
    23 } 
    247 
    258define("DEFAULT_DSN", "pgsql://kakinaka_db_user:[email protected]/kakinaka_db"); 
  • temp/trunk/html/test/kakinaka/pear/Auth_HTTP.php

    r10038 r10039  
    2222// 
    2323 
    24 require_once "Auth.php"; 
     24require_once "Auth/Auth.php"; 
    2525 
    2626define('AUTH_HTTP_NONCE_TIME_LEN', 16); 
Note: See TracChangeset for help on using the changeset viewer.