license
This commit is contained in:
parent
1f46ff6a43
commit
96fd220315
11
lang/en.php
11
lang/en.php
|
@ -1,5 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
$lang = array(
|
$lang = array(
|
||||||
'lang' => 'en',
|
'lang' => 'en',
|
||||||
|
|
||||||
|
|
11
lang/fr.php
11
lang/fr.php
|
@ -1,5 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
$lang = array(
|
$lang = array(
|
||||||
'lang' => 'fr',
|
'lang' => 'fr',
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,16 @@
|
||||||
<article>
|
<article>
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
echo '<h2>A props de '.htmlentities($_GET['params']).'</h2><p>Inscrit le '.$theBot['date_inscription'].'</p><p>'.$theBot['description'].'</p>
|
echo '<h2>A props de '.htmlentities($_GET['params']).'</h2><p>Inscrit le '.$theBot['date_inscription'].'</p><p>'.$theBot['description'].'</p>
|
||||||
<p><i><a href="/p/editBot/'.$theBot['id'].'">Si vous êtes le propriétaire de ce bot, vous pouvez le modifier</a></i></p>';
|
<p><i><a href="/p/editBot/'.$theBot['id'].'">Si vous êtes le propriétaire de ce bot, vous pouvez le modifier</a></i></p>';
|
||||||
?>
|
?>
|
||||||
|
|
10
src/act.php
10
src/act.php
|
@ -1,4 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
//Del unvalidated bots
|
//Del unvalidated bots
|
||||||
mysqli_query($lnMysql, "DELETE FROM bots WHERE active='0' AND TIMESTAMPDIFF(DAY, NOW(), date_inscription) > 2");
|
mysqli_query($lnMysql, "DELETE FROM bots WHERE active='0' AND TIMESTAMPDIFF(DAY, NOW(), date_inscription) > 2");
|
||||||
|
|
|
@ -1,6 +1,17 @@
|
||||||
<article>
|
<article>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
//<?php echo xd_check_input(0);<input type="hidden" name="act" value="addBot"/>
|
//<?php echo xd_check_input(0);<input type="hidden" name="act" value="addBot"/>
|
||||||
|
|
||||||
if((isset($_POST['xd_check'])) && ($_POST['act'] == "addBot")){
|
if((isset($_POST['xd_check'])) && ($_POST['act'] == "addBot")){
|
||||||
|
|
|
@ -239,7 +239,11 @@ switch ($_POST['act']){
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "fight":
|
case "fight":
|
||||||
|
if($_POST['fullLogs'] == 'true'){
|
||||||
|
$fullLogs = true;
|
||||||
|
}else{
|
||||||
|
$fullLogs = false;
|
||||||
|
}
|
||||||
if(count($_SESSION['strikes'][1]) == count($_SESSION['strikes'][2])){
|
if(count($_SESSION['strikes'][1]) == count($_SESSION['strikes'][2])){
|
||||||
//player 1 has to fight
|
//player 1 has to fight
|
||||||
$currentPlayer=1;
|
$currentPlayer=1;
|
||||||
|
|
|
@ -4,6 +4,17 @@
|
||||||
|
|
||||||
</article>-->
|
</article>-->
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
|
|
||||||
require_once(__DIR__."/functions.php");
|
require_once(__DIR__."/functions.php");
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
require_once(__DIR__."/functions.php");
|
require_once(__DIR__."/functions.php");
|
||||||
$bots=get_Bots_Array('connectFou');
|
$bots=get_Bots_Array('connectFou');
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
function get_Post_Params($botsCount){
|
function get_Post_Params($botsCount){
|
||||||
$keysBots=array('bot1','bot2');
|
$keysBots=array('bot1','bot2');
|
||||||
foreach($keysBots as $botKey){
|
foreach($keysBots as $botKey){
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
require_once(__DIR__."/functions.php");
|
require_once(__DIR__."/functions.php");
|
||||||
$bots=get_Bots_Array('connectFou');
|
$bots=get_Bots_Array('connectFou');
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,4 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
require_once(__DIR__."/functions.php");
|
require_once(__DIR__."/functions.php");
|
||||||
switch ($_POST['act']){
|
switch ($_POST['act']){
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
function get_Post_Params($botsCount){
|
function get_Post_Params($botsCount){
|
||||||
$keysBots=array('bot1','bot2');
|
$keysBots=array('bot1','bot2');
|
||||||
foreach($keysBots as $botKey){
|
foreach($keysBots as $botKey){
|
||||||
|
@ -15,22 +26,3 @@ function get_Post_Params($botsCount){
|
||||||
}
|
}
|
||||||
return array('bot1' => $_POST['bot1'],'bot2' => $_POST['bot2']);
|
return array('bot1' => $_POST['bot1'],'bot2' => $_POST['bot2']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
function get_Bots_Array(){
|
|
||||||
//Recupérer la liste des Bots
|
|
||||||
$bots=array();
|
|
||||||
$botsList=explode("\n",file_get_contents(__DIR__."/listOfBots.txt"));
|
|
||||||
|
|
||||||
foreach($botsList as $botLigne){
|
|
||||||
if(preg_match("/\ (http|https):\/\//", $botLigne)){
|
|
||||||
list($name,$url)=explode(" ",$botLigne);
|
|
||||||
$bots[]=array("name" => $name, "url" =>$url);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $bots;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
require_once(__DIR__."/functions.php");
|
require_once(__DIR__."/functions.php");
|
||||||
|
|
||||||
$bots=get_Bots_Array('tictactoe');
|
$bots=get_Bots_Array('tictactoe');
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
$arenas=array(
|
$arenas=array(
|
||||||
array(
|
array(
|
||||||
'id' => "tictactoe",
|
'id' => "tictactoe",
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
$siteParam=array("BASEURL" => "http://botsarena.tinad.fr/");
|
$siteParam=array("BASEURL" => "http://botsarena.tinad.fr/");
|
||||||
$mysqlParams=array(
|
$mysqlParams=array(
|
||||||
'host' => 'localhost',
|
'host' => 'localhost',
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
if(isset($_POST['xd_check'])){
|
if(isset($_POST['xd_check'])){
|
||||||
//un formulaire a été soumis
|
//un formulaire a été soumis
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
function get_arenas_list(){
|
function get_arenas_list(){
|
||||||
include (__DIR__."/arenas_lists.php");
|
include (__DIR__."/arenas_lists.php");
|
||||||
return $arenas;
|
return $arenas;
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
$hist=get_battles_history($currentArena);
|
$hist=get_battles_history($currentArena);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,15 @@
|
||||||
<?php
|
<?php
|
||||||
|
#- BEGIN LICENSE BLOCK ---------------------------------------
|
||||||
|
#
|
||||||
|
# This file is part of botsArena.
|
||||||
|
#
|
||||||
|
# Copyright (C) Gnieark et contributeurs
|
||||||
|
# Licensed under the GPL version 3.0 license.
|
||||||
|
# See LICENSE file or
|
||||||
|
# http://www.gnu.org/licenses/gpl-3.0-standalone.html
|
||||||
|
#
|
||||||
|
# -- END LICENSE BLOCK -----------------------------------------
|
||||||
|
|
||||||
$rs=mysqli_query($lnMysql,"SELECT 1 FROM bots_modifs WHERE validate_secret='".mysqli_real_escape_string($lnMysql,$_GET['params'])."';");
|
$rs=mysqli_query($lnMysql,"SELECT 1 FROM bots_modifs WHERE validate_secret='".mysqli_real_escape_string($lnMysql,$_GET['params'])."';");
|
||||||
if(!$r=mysqli_fetch_row($rs)){
|
if(!$r=mysqli_fetch_row($rs)){
|
||||||
error(404,"Page doesn't exist");
|
error(404,"Page doesn't exist");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user