Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
retypos-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eterfund
retypos-server
Commits
8ea37099
Commit
8ea37099
authored
Jun 08, 2017
by
George Popoff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make protocol dynamicly changing in base_url
parent
bc7e727d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
config.php
cp/application/config/config.php
+3
-1
Authorization.php
cp/application/controllers/Authorization.php
+1
-1
No files found.
cp/application/config/config.php
View file @
8ea37099
...
...
@@ -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/'
;
/*
|--------------------------------------------------------------------------
...
...
cp/application/controllers/Authorization.php
View file @
8ea37099
...
...
@@ -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'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment