fix js insertion
This commit is contained in:
parent
70a6708366
commit
834db5df20
|
@ -9,17 +9,14 @@
|
|||
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||
#
|
||||
# -- END LICENSE BLOCK -----------------------------------------
|
||||
//démmarrer une session php
|
||||
|
||||
@session_start();
|
||||
|
||||
require_once("../src/functions.php");
|
||||
|
||||
|
||||
|
||||
$arenas=get_arenas_list();
|
||||
$lang=get_language_array();
|
||||
|
||||
|
||||
if(isset($_GET['arena'])){
|
||||
//check if arena is list
|
||||
$currentArena = false;
|
||||
|
@ -65,9 +62,7 @@ if($currentArena == ""){
|
|||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="ROBOTS" content="INDEX, FOLLOW" />
|
||||
|
@ -78,17 +73,15 @@ if($currentArena == ""){
|
|||
@import url(/style.css);
|
||||
</style>
|
||||
<?php
|
||||
//script js de l'arene
|
||||
//arena specific script js (if needed)
|
||||
if(isset($currentArenaArr['jsFile'])){
|
||||
echo '<script type="text/javascript"><!--';
|
||||
echo '<script type="text/javascript"><!--'."\n";
|
||||
echo file_get_contents("../src/arenas/".$currentArena."/".$currentArenaArr['jsFile']);
|
||||
echo '--></script>';
|
||||
}
|
||||
?>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<h1><?php echo $siteTitle; ?></h1>
|
||||
<nav id="languages"><a href="-fr">fr</a> <a href="-en">en</a></nav>
|
||||
|
|
Loading…
Reference in New Issue
Block a user