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

Changeset 1978


Ignore:
Timestamp:
Mar 1, 2007, 1:37:20 PM (14 years ago)
Author:
takanashi
Message:

ログイン処理を挟んだ画像の表示を修正

Location:
OpenPNE/branches/develop/2_7_2/webapp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/develop/2_7_2/webapp/lib/auth.inc

    r1856 r1978  
    1919        client_redirect_absolute(get_login_url());
    2020    } else {
     21        $_REQUEST['target_script'] = $_SERVER['SCRIPT_NAME'];
    2122        $_REQUEST['login_params'] = $_SERVER['QUERY_STRING'];
    2223        openpne_forward('pc', 'page', "o_login");
  • OpenPNE/branches/develop/2_7_2/webapp/modules/pc/do/o_login.php

    r1856 r1978  
    1010    var $_lc;
    1111    var $_login_params;
     12    var $_target_script;
    1213
    1314    function isSecure()
     
    1920    {
    2021        $this->_login_params = $requests['login_params'];
     22        $this->_target_script = $requests['target_script'];
    2123        $auth_config = get_auth_config();
    2224        $auth = new OpenPNE_Auth($auth_config['storage'], $auth_config['options']);
     
    5254        db_api_update_token($auth->uid());
    5355        $url = OPENPNE_URL;
     56        if ($this->_target_script) {
     57            $this->_target_script = str_replace("/","",$this->_target_script);
     58            $url .= $this->_target_script;
     59        }
    5460        if ($this->_login_params) {
    5561            $url .= '?' . $this->_login_params;
  • OpenPNE/branches/develop/2_7_2/webapp/modules/pc/templates/o_login.tpl

    r1380 r1978  
    2525({t_form _attr='name="login" id="login"' m=pc a=do_o_login})
    2626<input type="hidden" name="login_params" value="({$requests.login_params})">
     27<input type="hidden" name="target_script" value="({$requests.target_script})">
    2728<input type="text" tabindex="1" name="username" id="username" class="text">
    2829<input type="password" tabindex="2" name="password" id="password" class="text">
  • OpenPNE/branches/develop/2_7_2/webapp/modules/pc/validate/do/o_login.ini

    r241 r1978  
    66type = "string"
    77default = 0
     8
     9[target_script]
     10type = "string"
  • OpenPNE/branches/develop/2_7_2/webapp/modules/pc/validate/page/o_login.ini

    r241 r1978  
    11[login_params]
    22type = "string"
     3
     4[target_script]
     5type = "string"
Note: See TracChangeset for help on using the changeset viewer.