ssl security
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');
}
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');
}
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
Why not work with a duplicate of the installation instead of modifying the core?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.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
ok, i found it :
my .htaccess config :
and my code into home.php :
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
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'];
?>