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
790cde0d
Commit
790cde0d
authored
Jun 08, 2017
by
George Popoff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change to relative path in auth controller. Remove dynamic base_url changing
parent
00fb5562
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
config.php
cp/application/config/config.php
+2
-1
Authorization.php
cp/application/controllers/Authorization.php
+1
-1
index.php
cp/index.php
+9
-8
No files found.
cp/application/config/config.php
View file @
790cde0d
...
...
@@ -23,7 +23,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own.
|
*/
$config
[
'base_url'
]
=
APP_URL
;
$config
[
'base_url'
]
=
'http://eterfund.ru/api/typos/cp/'
;
/*
|--------------------------------------------------------------------------
...
...
cp/application/controllers/Authorization.php
View file @
790cde0d
...
...
@@ -19,7 +19,7 @@ class Authorization extends CI_Controller {
function
__construct
()
{
parent
::
__construct
();
$this
->
data
[
'auth_url'
]
=
$this
->
config
->
base_url
()
.
"authorization/check"
;
$this
->
data
[
'auth_url'
]
=
"authorization/check"
;
$this
->
view_name
=
'authorization/index'
;
$this
->
load
->
model
(
'userHelper'
);
...
...
cp/index.php
View file @
790cde0d
...
...
@@ -179,6 +179,13 @@ switch (ENVIRONMENT)
// $assign_to_config['name_of_config_item'] = 'value of config item';
/**
* 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'
]));
// --------------------------------------------------------------------
// END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT BELOW THIS LINE
...
...
@@ -312,11 +319,4 @@ 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'
]));
require_once
BASEPATH
.
'core/CodeIgniter.php'
;
\ No newline at end of file
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