选择语言 :

 Core_Controller_OpenDebugger::action_login

null Core_Controller_OpenDebugger::action_login( )
File: ./core/controllers/opendebugger.controller.php
public function action_login()
{
    $debug_user = $_POST['debug_user'];
    $debug_hash = $_POST['debug_hash'];
    if (isset($this->password[$debug_user]) && $this->password[$debug_user]==md5($debug_hash))
    {
        Core::cookie()->set('_debug_open', Core::get_debug_hash($debug_user, $this->password[$debug_user]), null, '/');

        if (isset($_POST['forward']) && $_POST['forward'])
        {
            $this->redirect(HttpIO::POST('forward', HttpIO::PARAM_TYPE_URL));
        }
        else
        {
            $this->redirect('/opendebugger');
        }
    }
    else
    {
        $this->redirect('/opendebugger' . (isset($_POST['forward']) && $_POST['forward']?'?forward='.urlencode(HttpIO::POST('forward', HttpIO::PARAM_TYPE_URL)):''));
    }
}