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
3d5036af
Commit
3d5036af
authored
Mar 21, 2018
by
Георгий Попов
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Задача 11805] Установил протокол https для ссылки на личный кабинет
parent
402cabe3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
functions.php
functions.php
+1
-2
No files found.
functions.php
View file @
3d5036af
...
...
@@ -44,7 +44,6 @@ function toEmail($data) {
}
function
getControlPanelUrl
()
{
$protocol
=
isset
(
$_SERVER
[
'HTTPS'
])
?
"https"
:
"http"
;
$path
=
explode
(
"/"
,
$_SERVER
[
"REQUEST_URI"
]);
// Убираем скрипт из пути
...
...
@@ -52,7 +51,7 @@ function getControlPanelUrl() {
$path
=
implode
(
"/"
,
$path
);
return
"
$protocol
://
$_SERVER[HTTP_HOST]$path
/cp/"
;
return
"
https
://
$_SERVER[HTTP_HOST]$path
/cp/"
;
}
/*Проверяем хэдеры на "человечость"*/
...
...
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