...

// ekaay changes part 1 of 2

        // screen reader optimization
        if ($this->userSettingVisible("screen_reader_optimization"))
        { 
            $cb = new ilCheckboxInputGUI("eKaay", "ekaay");
            $cb->setChecked(true);
            $cb->setDisabled(true);
            $cb->setInfo("<p><iframe frameborder='0' src='http://ekaay.com/integration/ilias/ilias-4.3.2/ilias/ekaay/ekaaycore/proxy/www/?p=register&user="
                                 .$ilUser->getLogin()
                                 ."&revtoken="
                                 .$this->ekaayCreateReverseToken($ilUser->getLogin())
                                 ."&register_add' style='margin:5px;width:570px;height:360px'></iframe>");
            $this->form->addItem($cb);
        }

// end of ekaay changes part 1 of 2



...



// ekaay changes part 2 of 2

        function ekaayCreateReverseToken($username) {

        global $ilDB;

                $revtoken  = rand(100000000,999999999) . rand(100000000,999999999);  // create random token 

                $q = 'insert into ekaay_revtoken (revtoken_username,revtoken_revtoken) values(\''.$username.'\',\''.$revtoken.'\')';
                $ilDB->query($q);

                return $revtoken;

        }

// end ekaay changes part 2 of 2


...