From b7f6e5c53d64039b2ab1d2cfaff9f77bac0c9b89 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 23 Nov 2015 21:24:22 +0100 Subject: [PATCH 01/11] plop --- html/index.php | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 html/index.php diff --git a/html/index.php b/html/index.php new file mode 100644 index 0000000..e69de29 From 998ffc4d39f1988fbe7738e58b53a6ca2f359392 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Mon, 23 Nov 2015 21:54:25 +0100 Subject: [PATCH 02/11] . --- html/index.php | 62 +++++++++++++++++++++++++++++++++++++++++++++++ src/functions.php | 0 2 files changed, 62 insertions(+) create mode 100644 src/functions.php diff --git a/html/index.php b/html/index.php index e69de29..b9e2cb1 100644 --- a/html/index.php +++ b/html/index.php @@ -0,0 +1,62 @@ +root@mail2:~# cat /var/www/mail2.ch-boispetit.fr-https/moteur/inc/prepend.php + + + + + + + + + + + + + + + +
+
+
+
+
+
+ + \ No newline at end of file diff --git a/src/functions.php b/src/functions.php new file mode 100644 index 0000000..e69de29 From 2a1cb40b1201f13b767111aa35741bd6679b2d6d Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Nov 2015 22:09:11 +0100 Subject: [PATCH 03/11] . --- html/index.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/html/index.php b/html/index.php index b9e2cb1..8e34508 100644 --- a/html/index.php +++ b/html/index.php @@ -1,4 +1,3 @@ -root@mail2:~# cat /var/www/mail2.ch-boispetit.fr-https/moteur/inc/prepend.php - \ No newline at end of file + From e79db5adac4c9d0e6f3550f051c469ed87ec753a Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Nov 2015 22:10:22 +0100 Subject: [PATCH 04/11] . --- .htaccess | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..efe2226 --- /dev/null +++ b/.htaccess @@ -0,0 +1,3 @@ +php_flag display_startup_errors on +php_flag display_errors on +php_flag html_errors on From 06076bde36ffda4379092d0e344f570099411ef7 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Nov 2015 22:13:36 +0100 Subject: [PATCH 05/11] fix path --- html/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/index.php b/html/index.php index 8e34508..ec92244 100644 --- a/html/index.php +++ b/html/index.php @@ -12,7 +12,7 @@ //démmarrer une session php @session_start(); -require_once("../scr/functions.php"); +require_once("../src/functions.php"); From 2f812be4fddb9b25d4fea0b28796171c0bbf2b28 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Wed, 25 Nov 2015 22:24:41 +0100 Subject: [PATCH 06/11] arenas list --- src/arenas_lists.php | 8 ++++++++ src/functions.php | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/arenas_lists.php diff --git a/src/arenas_lists.php b/src/arenas_lists.php new file mode 100644 index 0000000..4c7e710 --- /dev/null +++ b/src/arenas_lists.php @@ -0,0 +1,8 @@ + "tictactoe", + 'url' => "/tictactoe" + ) + +); \ No newline at end of file diff --git a/src/functions.php b/src/functions.php index e69de29..bbde409 100644 --- a/src/functions.php +++ b/src/functions.php @@ -0,0 +1,13 @@ + Date: Wed, 25 Nov 2015 22:32:58 +0100 Subject: [PATCH 07/11] title --- html/index.php | 4 +++- src/arenas_lists.php | 10 ++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/html/index.php b/html/index.php index ec92244..ae4fcc6 100644 --- a/html/index.php +++ b/html/index.php @@ -1,7 +1,7 @@ +
+

diff --git a/src/arenas_lists.php b/src/arenas_lists.php index 4c7e710..71b4e4e 100644 --- a/src/arenas_lists.php +++ b/src/arenas_lists.php @@ -1,8 +1,14 @@ "tictactoe", - 'url' => "/tictactoe" + 'url' => "/tictactoe", + 'title' => "Tic Tac Toe" + ), + array( + 'id' => "Battleship", + 'url' => "/battleship", + 'title' => "bataille Navale" ) ); \ No newline at end of file From cadfcf602817edb87cf2d26531a75d014ea0d0a4 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Wed, 25 Nov 2015 22:43:34 +0100 Subject: [PATCH 08/11] language files --- lang/en.php | 5 +++++ lang/fr.php | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 lang/en.php create mode 100644 lang/fr.php diff --git a/lang/en.php b/lang/en.php new file mode 100644 index 0000000..59648a8 --- /dev/null +++ b/lang/en.php @@ -0,0 +1,5 @@ + 'Artificials Intelligences\' arena', + 'SITE_DESCRIPTION' => 'blah blah blah but english' +); \ No newline at end of file diff --git a/lang/fr.php b/lang/fr.php new file mode 100644 index 0000000..cb8fbfe --- /dev/null +++ b/lang/fr.php @@ -0,0 +1,5 @@ + 'Arène pour intelligences (ou persque) artificielles', + 'SITE_DESCRIPTION' => 'blah blah blah mais en francais' +); \ No newline at end of file From 666b1f3f83de655f175d9f2598c07ad4b7fc3578 Mon Sep 17 00:00:00 2001 From: Gnieark Date: Thu, 26 Nov 2015 19:38:09 +0100 Subject: [PATCH 09/11] language --- html/index.php | 4 +--- src/functions.php | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/html/index.php b/html/index.php index ae4fcc6..be64892 100644 --- a/html/index.php +++ b/html/index.php @@ -16,7 +16,7 @@ require_once("../src/functions.php"); -$arenas=arenas_get_list(); +$arenas=get_arenas_list(); //form submitting if (isset($_POST['xd_check'])) @@ -34,8 +34,6 @@ if (isset($_POST['xd_check'])) } } - - ?> diff --git a/src/functions.php b/src/functions.php index bbde409..c4198bb 100644 --- a/src/functions.php +++ b/src/functions.php @@ -1,5 +1,5 @@ Date: Thu, 26 Nov 2015 21:18:11 +0100 Subject: [PATCH 10/11] test eclipse --- html/index.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/html/index.php b/html/index.php index be64892..242fece 100644 --- a/html/index.php +++ b/html/index.php @@ -17,7 +17,7 @@ require_once("../src/functions.php"); $arenas=get_arenas_list(); - +$lang=get_language_array(); //form submitting if (isset($_POST['xd_check'])) { @@ -51,7 +51,13 @@ if (isset($_POST['xd_check']))
-

+ +

From 668c5b24796d9d712b9ad85a7cc93a0ab0f28719 Mon Sep 17 00:00:00 2001 From: gnieark Date: Thu, 26 Nov 2015 21:21:03 +0100 Subject: [PATCH 11/11] fix variable --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functions.php b/src/functions.php index c4198bb..b73107c 100644 --- a/src/functions.php +++ b/src/functions.php @@ -20,7 +20,7 @@ function get_language_array(){ $langsAvailable=array('fr','en'); $language=""; - if( $_GET['lang'] ){ + if( isset($_GET['lang']) ){ $lang = $_GET['lang']; setcookie( 'lang', $language, time() + 60*60*24*30 );