コード例 #1
0
ファイル: getData.php プロジェクト: nuxsmin/sysMonDash
    ?>
    <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 
}
コード例 #2
0
ファイル: Request.class.php プロジェクト: nuxsmin/sysMonDash
 /**
  * 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();
     }
 }