roundcubemail/plugins/enigma/lib/enigma_ui.php
private function key_info()
    {
        $this->enigma->load_engine();

        $id  = rcube_utils::get_input_value('_id', rcube_utils::INPUT_GET);
        $res = $this->enigma->engine->get_key($id);

        if ($res instanceof enigma_key) {
            $this->data = $res;
        }
        else { // error
            $this->rc->output->show_message('enigma.keyopenerror', 'error');
            $this->rc->output->command('parent.enigma_loadframe');
            $this->rc->output->send('iframe');
        }

        $this->rc->output->add_handlers(array(
            'keyname' => array($this, 'tpl_key_name'),
            'keydata' => array($this, 'tpl_key_data'),
        ));

        $this->rc->output->set_pagetitle($this->enigma->gettext('keyinfo'));
        $this->rc->output->send('enigma.keyinfo');
    }
private function key_info()
    {
        $this->enigma->load_engine();

        $id  = rcube_utils::get_input_value('_id', rcube_utils::INPUT_GET);
        $res = $this->enigma->engine->get_key($id);

        if ($res instanceof enigma_key) {
            $this->data = $res;
        }
        else { // error
            $this->rc->output->show_message('enigma.keyopenerror', 'error');
            $this->rc->output->command('parent.enigma_loadframe');
            $this->rc->output->send('iframe');
        }

        $this->rc->output->add_handlers(array(
            'keyname' => array($this, 'tpl_key_name'),
            'keydata' => array($this, 'tpl_key_data'),
        ));

        $this->rc->output->set_pagetitle($this->enigma->gettext('keyinfo'));
        $this->rc->output->send('enigma.keyinfo');
    }
private function key_info ( ) { $ this -> enigma -> load_engine ( ) ; $ id = rcube_utils :: get_input_value ( '_id' , rcube_utils :: INPUT_GET ) ; $ res = $ this -> enigma -> engine -> get_key ( $ id ) ; if ( $ res instanceof enigma_key ) { $ this -> data = $ res ; } else { // error $ this -> rc -> output -> show_message ( 'enigma.keyopenerror' , 'error' ) ; $ this -> rc -> output -> command ( 'parent.enigma_loadframe' ) ; $ this -> rc -> output -> send ( 'iframe' ) ; } $ this -> rc -> output -> add_handlers ( array ( 'keyname' => array ( $ this , 'tpl_key_name' ) , 'keydata' => array ( $ this , 'tpl_key_data' ) , ) ) ; $ this -> rc -> output -> set_pagetitle ( $ this -> enigma -> gettext ( 'keyinfo' ) ) ; $ this -> rc -> output -> send ( 'enigma.keyinfo' ) ; }
Key information page handler
Key information page handler