Commit 8ea37099 authored by George Popoff's avatar George Popoff

make protocol dynamicly changing in base_url

parent bc7e727d
......@@ -23,7 +23,9 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own.
|
*/
$config['base_url'] = 'http://eterfund.ru/api/typos/cp/';
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
$config['base_url'] = $protocol . 'eterfund.ru/api/typos/cp/';
/*
|--------------------------------------------------------------------------
......
......@@ -19,7 +19,7 @@ class Authorization extends CI_Controller {
function __construct() {
parent::__construct();
$this->data['auth_url'] = "/authorization/check";
$this->data['auth_url'] = $this->config->base_url()."authorization/check";
$this->view_name = 'authorization/index';
$this->load->model('userHelper');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment