obj = & get_instance(); } //-------------------------------------------------- //Redirect to https if in the account area without it function index() { if (empty($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] !== 'on') { $this->obj = & get_instance(); $current = current_url(); $current = parse_url($current); if ((stripos($current['path'], "/account/") !== false)) { $current['scheme'] = 'https'; redirect(http_build_url('', $current), 'refresh'); } } } } ?>