battles/index.php

9 lines
181 B
PHP

<?php
if(session_status() !== PHP_SESSION_ACTIVE) {
session_start();
}
if ($_SESSION['uid']) {
header('Location: fight.php');
exit;
}
require_once 'views/index.html';