mirror of
https://github.com/beestat/app.git
synced 2025-05-24 02:14:03 -04:00
Fixed the cookie-portion of the demo for #182
This commit is contained in:
parent
d0ff64098a
commit
ff7e378132
10
index.php
10
index.php
@ -10,16 +10,18 @@
|
||||
'd31d3ef451fe65885928e5e1bdf4af321f702009',
|
||||
4294967295,
|
||||
'/',
|
||||
null,
|
||||
'demo.beestat.io',
|
||||
$setting->get('force_ssl'),
|
||||
true
|
||||
);
|
||||
|
||||
// Just so I can make some simpler assumptions in app.php since the
|
||||
// superglobal is not updated when calling setcookie().
|
||||
$_COOKIE['session_key'] = 'd31d3ef451fe65885928e5e1bdf4af321f702009';
|
||||
}
|
||||
|
||||
// var_dump($_COOKIE);
|
||||
// Skip this page entirely if you're logged in.
|
||||
// if(isset($_COOKIE['session_key']) === true) {
|
||||
if(preg_match('/app\.beestat\.io/', $_SERVER['HTTP_HOST']) !== 0) {
|
||||
if($setting->is_demo() === true || preg_match('/app\.beestat\.io/', $_SERVER['HTTP_HOST']) !== 0) {
|
||||
require 'app.php';
|
||||
} else {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user