ssl security

viriisxp
Sr. Bludit
Posts: 33
Joined: Sat Jul 02, 2016 6:01 pm

hi, no specific change, for delete eventually an error, i send you again the zip file


for the second request, i would like to have an specific theme for my ip, to not interrupt the original theme and for me to work on my V2 theme.
i see on dbsite.class.php the request to the file parent::__construct(PATH_DATABASES.'site.php'); but i would like to have something like

if ($ip = **.**.**.**){
parent::__construct(PATH_DATABASES.'v2.php');
}else
{parent::__construct(PATH_DATABASES.'site.php');
}
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

viriisxp wrote:for the second request, i would like to have an specific theme for my ip, to not interrupt the original theme and for me to work on my V2 theme.
Why not work with a duplicate of the installation instead of modifying the core?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
viriisxp
Sr. Bludit
Posts: 33
Joined: Sat Jul 02, 2016 6:01 pm

i don't know, just because i'm curious. ;)

and for my first request ?
viriisxp
Sr. Bludit
Posts: 33
Joined: Sat Jul 02, 2016 6:01 pm

you don't have a solution for me ?
viriisxp
Sr. Bludit
Posts: 33
Joined: Sat Jul 02, 2016 6:01 pm

ok, i found it :

my .htaccess config :

Code: Select all

# Enable rewrite rules
RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*) https://www.mywebsite.fr/$1 [QSA,L,R]
Header set Strict-Transport-Security "max-age=15811200" env=HTTPS
and my code into home.php :

Code: Select all

<?php
$url = 'http://www.mywebsite.fr:443/api/show/page/mypagename';
$jsonData = file_get_contents($url);
$data = json_decode($jsonData, true);
echo $data['content'];
?>
Post Reply