?> <div class="title"><?php echo Language::t('Errores'); ?> </div> <?php foreach ($SMD->getErrors() as $error) { ?> <div id="nomessages" class="full error"> <?php echo Language::t($error); ?> </div> <?php } } ?> <?php ob_end_flush(); ?> <?php if (Util::checkRefreshSession()) { ?> <script> console.info('RELOAD'); window.location.href = "index.php"; </script> <?php }
/** * Comprobar si es necesario enviar las cabeceras CORS */ public static function checkCORS() { $clientURL = Config::getConfig()->getClientURL(); if (!empty($clientURL)) { header('Access-Control-Allow-Origin: ' . $clientURL); header('Access-Control-Request-Method: GET'); Util::checkRefreshSession(); } }