[Moved render_download_applet from Enrollment to SIP settings Adrian Georgescu **20100808123442 Ignore-this: 2743306dabc25cf6a9f1afcf420583b7 ] hunk ./library/sip_settings.php 1792 - } else if ($this->show_download_tab) { - //$this->render_download_applet(); hunk ./library/sip_settings.php 2751 - $_account=array('sip_address' => $this->account, - 'password' => $this->password, - 'email' => $this->email, - 'passport' => $_passport, - 'download_url'=> $this->blink_download_url - ); + $_account['sip_address'] = $this->account; + $_account['password'] = $this->password; + $_account['email'] = $this->email; + $_account['outbound_proxy'] = $this->sip_proxy; + $_account['xcap_root'] = $this->xcap_root; + $_account['msrp_relay'] = $this->msrp_relay; + $_account['settings_url'] = $this->blink_settings_page; + $_account['passport'] = $_passport; + + print ""; + + print ""; + print ""; + print ""; + print ""; + print "
"; + + printf (_("Download and install Blink preconfigured with your SIP account:")); + print "
"; + + printf (" + + + + + + ", + rand(), + $this->blink_download_url, + urlencode(json_encode($_account)) + ); + + print "
"; + + printf (_("If you have already installed Blink, you can configure it to use your SIP account:")); + + print "
"; + + printf (" + + + + + + ", + rand(), + urlencode(json_encode($_account)) + ); hunk ./library/sip_settings.php 2799 - $Enrollment = new Enrollment(); - $Enrollment->render_download_applet($_account); + print "
"; + + print "

"; + printf ("Notes. "); + print _("Java Runtime Environment (JRE) must be activated in the web browser. "); hunk ./library/sip_settings.php 8965 - function render_download_applet($_account) { - // render a java client applet that start Blink download with SIP account information - - if ($_account['email']) { - $email = $_account['email']; - } else { - $email = $_account['sip_address']; - } - - if ($_account['download_url']) { - $blink_download_url=$_account['download_url']; - } else if ($this->enrollment['download_url']) { - $blink_download_url=$this->enrollment['download_url']; - } else { - print "No download URL defined"; - return false; - } - - $_account['outbound_proxy'] = $this->enrollment['outbound_proxy']; - $_account['xcap_root'] = $this->enrollment['xcap_root']; - $_account['msrp_relay'] = $this->enrollment['msrp_relay']; - $_account['settings_url'] = $this->enrollment['settings_url']; - - print ""; - - print ""; - print ""; - print ""; - print ""; - print "
"; - - printf (_("Download and install Blink preconfigured with your SIP account:")); - print "
"; - - printf (" - - - - - - ", - rand(), - $blink_download_url, - urlencode(json_encode($_account)) - ); - - print "
"; - - printf (_("If you have already installed Blink, you can configure it to use your SIP account:")); - - print "
"; - - printf (" - - - - - - ", - rand(), - urlencode(json_encode($_account)) - ); - - print "
"; - - print "

"; - printf ("Notes. "); - print _("Java Runtime Environment (JRE) must be activated in the web browser. "); - - } -