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
00fb5562
Commit
00fb5562
authored
Jun 08, 2017
by
George Popoff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change base_url logic
parent
8ea37099
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
config.php
cp/application/config/config.php
+1
-3
index.php
cp/index.php
+7
-0
No files found.
cp/application/config/config.php
View file @
00fb5562
...
...
@@ -23,9 +23,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own.
|
*/
$protocol
=
(
!
empty
(
$_SERVER
[
'HTTPS'
])
&&
$_SERVER
[
'HTTPS'
]
!==
'off'
||
$_SERVER
[
'SERVER_PORT'
]
==
443
)
?
"https://"
:
"http://"
;
$config
[
'base_url'
]
=
$protocol
.
'eterfund.ru/api/typos/cp/'
;
$config
[
'base_url'
]
=
APP_URL
;
/*
|--------------------------------------------------------------------------
...
...
cp/index.php
View file @
00fb5562
...
...
@@ -313,3 +313,10 @@ switch (ENVIRONMENT)
* And away we go...
*/
require_once
BASEPATH
.
'core/CodeIgniter.php'
;
/**
* Define APP_URL Dynamically
*
* Automatic base url
*/
define
(
'APP_URL'
,
(
$_SERVER
[
'SERVER_PORT'
]
==
443
?
'https'
:
'http'
)
.
"://
{
$_SERVER
[
'SERVER_NAME'
]
}
"
.
str_replace
(
basename
(
$_SERVER
[
'SCRIPT_NAME'
]),
""
,
$_SERVER
[
'SCRIPT_NAME'
]));
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