Changeset 10039 for temp/trunk/html/test
- Timestamp:
- 2006/12/01 14:09:50 (20 years ago)
- Location:
- temp/trunk/html/test/kakinaka
- Files:
-
- 2 edited
-
auth_http.php (modified) (1 diff)
-
pear/Auth_HTTP.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/test/kakinaka/auth_http.php
r10037 r10039 5 5 require_once($include_dir . "/pear/Auth_HTTP.php"); 6 6 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 }24 7 25 8 define("DEFAULT_DSN", "pgsql://kakinaka_db_user:[email protected]/kakinaka_db"); -
temp/trunk/html/test/kakinaka/pear/Auth_HTTP.php
r10038 r10039 22 22 // 23 23 24 require_once "Auth .php";24 require_once "Auth/Auth.php"; 25 25 26 26 define('AUTH_HTTP_NONCE_TIME_LEN', 16);
Note: See TracChangeset
for help on using the changeset viewer.
