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; ?> SimplyGest Cloud. Inicio de sesión '; echo ''; } ?> ["Pixabay","https://www.pexels.com/@pixabay"], 1 => ["Pixabay","https://www.pexels.com/@pixabay"], 2 => ["Pixabay","https://www.pexels.com/@pixabay"], 3 => ["Rachel Xiao","https://www.pexels.com/@rachel-xiao-253850"], 4 => ["Pok Rie","https://www.pexels.com/@pok-rie-33563"], 5 => ["Pixabay","https://www.pexels.com/@pixabay"], 6 => ["Pixabay","https://www.pexels.com/@pixabay"], 7 => ["eberhard grossgasteiger","https://www.pexels.com/@eberhardgross"], 8 => ["Inge Wallumrød","https://www.pexels.com/@ingewallu"], 9 => ["Pixabay","https://www.pexels.com/@pixabay"], 10 => ["André Cook","https://www.pexels.com/@andrejcook"], 11 => ["Lisa Fotios","https://www.pexels.com/@fotios-photos"], 12 => ["Christian Heitz","https://www.pexels.com/@christian-heitz-285904"], 13 => ["Pixabay","https://www.pexels.com/@pixabay"], 14 => ["Nuno Obey","https://www.pexels.com/@nuno-obey-34504"], 15 => ["Pixabay","https://www.pexels.com/@pixabay"], 16 => ["Lukas Medvedevas","https://www.pexels.com/@lukas-medvedevas-6228921/"], 17 => ["Marek Piwnicki","https://www.pexels.com/@marek-piwnicki-3907296/"], 18 => ["roberto nickson","https://www.pexels.com/@rpnickson/"], 19 => ["roberto shumski","https://www.pexels.com/@pixabay"], 20 => ["snapwire","https://www.pexels.com/@snapwire/"], 21 => ["Valdemaras D.","https://www.pexels.com/@valdemaras-d-784301/"], 22 => ["Luis C.",""], 23 => ["Luis C.",""] ]; $foto = "/img/login/$random.jpg"; $autor = $fotosarray[$random][0]; $linkautor = $fotosarray[$random][1]; ?>
" style="background-image: url(''); background-repeat: no-repeat; background-size: cover;">
">
format('Y-m-d H:i:s'); $consulta = "SELECT * FROM noticias where TIPO = 'login' and (IDCUSTOMER = 0) and (('$userdatetime' <= HASTA) or (HASTA is Null)) and (('$userdatetime' >= DESDE) or (DESDE is Null))"; $noticiasresult = mysqli_query($linksgweb,$consulta); $notiftitle=""; if ($rownoticias2 = mysqli_fetch_array($noticiasresult)) { $notiftitle = $rownoticias2['TITULO']; $notifdescr = $rownoticias2['DESCR']; $notificon = $rownoticias2['ICONO']; $notifimagen = $rownoticias2['IMAGEN']; $notiflink = $rownoticias2['LINK']; $notifid = $rownoticias2['ID']; $notifbuttontext = $rownoticias2["MODALLINKTITLE"]; $notifbuttonicon = $rownoticias2["MODALLINKICON"]; $notiftarget = $rownoticias2["TARGET"]; if (!$notifbuttonicon) $notifbuttonicon=''; else $notifbuttonicon=""; $notiftarget="target='_new'"; if (!$notifbuttontext) $notifbuttontext="Más Información"; } if ($notiftitle) { echo ""; } } ?>
>

">Inicio de sesión

">SimplyGest Cloud TPV

$customDomainCompany"; ?>
">

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

" alt="" height="65">
" >
>
"> >
">o bien, inicia sesión con
">

$autor";?>