10800, 'path' => '/', 'secure' => true, 'httponly' => true, 'samesite' => 'Lax' ]); session_start(); $originaldomain = 'simplygest.cloud'; $allowedDomains = [$originaldomain,'www.simplygest.cloud','stampby.me','www.stampby.me']; $customdomain = ''; $currentdomain = strtolower($_SERVER['HTTP_HOST']); if (!in_array($currentdomain, $allowedDomains)) $customdomain = $currentdomain; $_SESSION['customDomainTenant'] = ''; if ($customdomain) { if ($currentdomain=="stampby.me" || $currentdomain=="www.stampby.me") { if (strtolower($_SERVER['REQUEST_URI']) === '/' || strtolower($_SERVER['REQUEST_URI']) === '') { $_SESSION['stampbymetoken'] = ''; $_SESSION['tenant'] = ''; $_SESSION['csrf'] = ''; include_once("enviardoc.php"); exit; } } //SI ya hay una sesión iniciada en este navegador/pestaña, entramos directamente if ($_SESSION['tenant'] && $_SESSION['csrf']) { header('Location: /inicio'); exit; } include __DIR__ . "/checkcustomdomains.php"; if ($customDomainType == "P") { include __DIR__ . '/portal/index.html'; exit; } else if ($customDomainType == "C") { include __DIR__ . '/catalogo/index.html'; exit; } else if ($customDomainType == "X") { include __DIR__ . '/projects/index.html'; exit; } } include_once __DIR__ . "/dosgwconn.php"; $csrf = bin2hex(random_bytes(32)); $_SESSION['csrf'] = $csrf; $inputEmail = $_COOKIE["sgwebinputEmail"] ?? ''; $_SESSION['tenant'] = ""; if (!$_SESSION['jsrandom']) $_SESSION["jsrandom"] = rand(); $jsrandom = $_SESSION['jsrandom']; $origin = $_GET['origin'] ?? ''; $_SESSION['origin'] = $origin; $donde = $_GET['donde'] ?? ''; $_SESSION['donde'] = $donde; $platform = $_GET['platform'] ?? ''; $_SESSION['platform'] = $platform; $then = $_GET['then'] ?? ''; $_SESSION['then'] = $then; $thenaction = $_GET['action'] ?? ''; $_SESSION['thenaction'] = $thenaction; $thenshop = $_GET['shop'] ?? ''; $_SESSION['thenshop'] = $thenshop; ?>
$notifdescr"; echo "
"; if ($notifimagen) echo "Indica tu email y contraseña de acceso a SimplyGest Cloud
">
¿Aún no eres cliente?
Prueba gratis SimplyGest Cloud durante 30 días
"> Registrarme
$autor";?>