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