function __construct($id, $method = 'post', $attributes = null, $trackSubmit = false) { if (!isset($attributes['action'])) { $attributes['action'] = Core_Url::getCurrentQueryString(); } if (!isset($attributes['name'])) { $attributes['name'] = $id; } parent::__construct($id, $method, $attributes, $trackSubmit); $this->init(); }
/** * Check force_ssl_login and redirect if connection isn't secure and not using a reverse proxy * * @param none * @return void */ protected function checkForceSslLogin() { $forceSslLogin = Zend_Registry::get('config')->General->force_ssl_login; if ($forceSslLogin) { $reverseProxy = Zend_Registry::get('config')->General->reverse_proxy; if (!(Core_Url::getCurrentScheme() == 'https' || $reverseProxy)) { $url = 'https://' . Core_Url::getCurrentHost() . Core_Url::getCurrentScriptName() . Core_Url::getCurrentQueryString(); Core_Url::redirectToUrl($url); } } }