ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 730


Ignore:
Timestamp:
Nov 14, 2006, 5:05:18 PM (14 years ago)
Author:
maruyama
Message:

設定ファイルサンプル修正など

Location:
OpenPNE/branches/maruyama/prj_ext_auth
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/maruyama/prj_ext_auth/config.php.sample

    r655 r730  
    433433        'password' => '',
    434434        'hostspec' => 'localhost',
    435         'database' => 'maru_auth',
     435        'database' => '',
    436436        'new_link' => true,
    437437        ),
  • OpenPNE/branches/maruyama/prj_ext_auth/webapp_ext/modules/ktai/auth.inc

    r715 r730  
    66
    77if (empty($_REQUEST['ksid'])) {
    8     openpne_forward('ktai', 'page', "o_login");
    9     exit;
     8    __logout();
    109}
    1110
     
    2625    $auth->logout();
    2726   
    28     if ($u) {
    29         $c_member_secure = db_common_c_member_secure4c_member_id($u);
    30         $_REQUEST['kad'] = t_encrypt(db_member_username4c_member_id($u, true));
    31     }
    32    
    33     $_REQUEST['login_params'] = $_SERVER['QUERY_STRING'];
    34     openpne_forward('ktai', 'page', "o_login");
    35     exit;   
     27    __logout();
    3628}
    3729
     
    5345}
    5446
     47function __logout($msg = 0, $c_member_id = 0)
     48{
     49    @session_destroy();
     50
     51    if ($msg) {
     52        $_REQUEST['msg'] = $msg;
     53    }
     54    if ($c_member_id) {
     55        $_REQUEST['kad'] = t_encrypt(db_member_username4c_member_id($c_member_id, true));
     56    }
     57    $_REQUEST['login_params'] = $_SERVER['QUERY_STRING'];
     58    openpne_forward('ktai', 'page', 'o_login');
     59    exit;
     60}
     61
    5562?>
Note: See TracChangeset for help on using the changeset viewer.