Skip to content
Snippets Groups Projects
Commit c2e2b983 authored by SASSU Thomas's avatar SASSU Thomas
Browse files

update of master

parent a10e351d
No related branches found
No related tags found
No related merge requests found
Showing
with 1586 additions and 0 deletions
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/GamePedia/src" isTestSource="false" packagePrefix="gp\" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/composer" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/doctrine/inflector" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/illuminate/container" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/illuminate/contracts" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/illuminate/database" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/illuminate/pagination" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/illuminate/support" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/kylekatarnls/update-helper" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/nesbot/carbon" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/psr/container" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/psr/simple-cache" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/slim/slim" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/symfony/polyfill-mbstring" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/symfony/translation" />
<excludeFolder url="file://$MODULE_DIR$/GamePedia/vendor/symfony/translation-contracts" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/bdappli_laurent_vonderscher_sassu_percin.iml" filepath="$PROJECT_DIR$/.idea/bdappli_laurent_vonderscher_sassu_percin.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PhpIncludePathManager">
<include_path>
<path value="$PROJECT_DIR$/GamePedia/vendor/symfony/translation" />
<path value="$PROJECT_DIR$/GamePedia/vendor/symfony/polyfill-mbstring" />
<path value="$PROJECT_DIR$/GamePedia/vendor/psr/container" />
<path value="$PROJECT_DIR$/GamePedia/vendor/composer" />
<path value="$PROJECT_DIR$/GamePedia/vendor/kylekatarnls/update-helper" />
<path value="$PROJECT_DIR$/GamePedia/vendor/symfony/translation-contracts" />
<path value="$PROJECT_DIR$/GamePedia/vendor/psr/simple-cache" />
<path value="$PROJECT_DIR$/GamePedia/vendor/nesbot/carbon" />
<path value="$PROJECT_DIR$/GamePedia/vendor/illuminate/support" />
<path value="$PROJECT_DIR$/GamePedia/vendor/illuminate/pagination" />
<path value="$PROJECT_DIR$/GamePedia/vendor/illuminate/database" />
<path value="$PROJECT_DIR$/GamePedia/vendor/doctrine/inflector" />
<path value="$PROJECT_DIR$/GamePedia/vendor/illuminate/contracts" />
<path value="$PROJECT_DIR$/GamePedia/vendor/slim/slim" />
<path value="$PROJECT_DIR$/GamePedia/vendor/illuminate/container" />
</include_path>
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="7" />
<component name="PhpUnit">
<phpunit_settings>
<PhpUnitSettings load_method="CUSTOM_LOADER" custom_loader_path="$PROJECT_DIR$/GamePedia/vendor/autoload.php" />
</phpunit_settings>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="60ac4dc7-bbe6-46a5-a1c8-be4c0b2f3197" name="Default Changelist" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ComposerSettings" doNotAsk="true" synchronizationState="SYNCHRONIZE">
<pharConfigPath>$PROJECT_DIR$/GamePedia/composer.json</pharConfigPath>
<execution>
<executable path="composer" />
</execution>
</component>
<component name="PhpWorkspaceProjectConfiguration">
<include_path>
<path value="$PROJECT_DIR$/GamePedia/vendor/symfony/translation" />
<path value="$PROJECT_DIR$/GamePedia/vendor/symfony/polyfill-mbstring" />
<path value="$PROJECT_DIR$/GamePedia/vendor/psr/container" />
<path value="$PROJECT_DIR$/GamePedia/vendor/composer" />
<path value="$PROJECT_DIR$/GamePedia/vendor/kylekatarnls/update-helper" />
<path value="$PROJECT_DIR$/GamePedia/vendor/symfony/translation-contracts" />
<path value="$PROJECT_DIR$/GamePedia/vendor/psr/simple-cache" />
<path value="$PROJECT_DIR$/GamePedia/vendor/nesbot/carbon" />
<path value="$PROJECT_DIR$/GamePedia/vendor/illuminate/support" />
<path value="$PROJECT_DIR$/GamePedia/vendor/illuminate/pagination" />
<path value="$PROJECT_DIR$/GamePedia/vendor/illuminate/database" />
<path value="$PROJECT_DIR$/GamePedia/vendor/doctrine/inflector" />
<path value="$PROJECT_DIR$/GamePedia/vendor/illuminate/contracts" />
<path value="$PROJECT_DIR$/GamePedia/vendor/slim/slim" />
<path value="$PROJECT_DIR$/GamePedia/vendor/illuminate/container" />
</include_path>
</component>
<component name="ProjectId" id="1YebJtum5ybwVlDa4Gw0dPRJnNt" />
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="nodejs_package_manager_path" value="npm" />
</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="C:\wamp64\www\bdappli_laurent_vonderscher_sassu_percin\GamePedia\src\modeles" />
<recent name="C:\wamp64\www\bdappli_laurent_vonderscher_sassu_percin\GamePedia\php" />
</key>
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
</project>
\ No newline at end of file
RewriteEngine On
#
# RewriteBase indispensable sur webetu :
#RewriteBase /www/percin4u/php/s3c_s12_krell_percin_sassu_spick/Fridgie/
#
# Pour interdire l'accès aux répertoires contenant du code
RewriteRule ^sql(/.*|)$ - [NC,F]
RewriteRule ^src(/.*|)$ - [NC,F]
RewriteRule ^vendor(/.*|)$ - [NC,F]
RewriteRule ^conf(/.*|)$ - [NC,F]
#
# réécriture pour slim
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" packagePrefix="gp\" />
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/inflector" />
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/container" />
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/contracts" />
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/database" />
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/pagination" />
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/support" />
<excludeFolder url="file://$MODULE_DIR$/vendor/kylekatarnls/update-helper" />
<excludeFolder url="file://$MODULE_DIR$/vendor/nesbot/carbon" />
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/container" />
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/simple-cache" />
<excludeFolder url="file://$MODULE_DIR$/vendor/slim/slim" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-mbstring" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/translation" />
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/translation-contracts" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/bdappli_laurent_vonderscher_sassu_percin.iml" filepath="$PROJECT_DIR$/.idea/bdappli_laurent_vonderscher_sassu_percin.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PhpIncludePathManager">
<include_path>
<path value="$PROJECT_DIR$/vendor/symfony/translation" />
<path value="$PROJECT_DIR$/vendor/illuminate/support" />
<path value="$PROJECT_DIR$/vendor/psr/simple-cache" />
<path value="$PROJECT_DIR$/vendor/illuminate/container" />
<path value="$PROJECT_DIR$/vendor/psr/container" />
<path value="$PROJECT_DIR$/vendor/illuminate/database" />
<path value="$PROJECT_DIR$/vendor/illuminate/contracts" />
<path value="$PROJECT_DIR$/vendor/composer" />
<path value="$PROJECT_DIR$/vendor/doctrine/inflector" />
<path value="$PROJECT_DIR$/vendor/slim/slim" />
<path value="$PROJECT_DIR$/vendor/kylekatarnls/update-helper" />
<path value="$PROJECT_DIR$/vendor/nesbot/carbon" />
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
<path value="$PROJECT_DIR$/vendor/symfony/translation-contracts" />
<path value="$PROJECT_DIR$/vendor/illuminate/pagination" />
</include_path>
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="7" />
<component name="PhpUnit">
<phpunit_settings>
<PhpUnitSettings load_method="CUSTOM_LOADER" custom_loader_path="$PROJECT_DIR$/vendor/autoload.php" />
</phpunit_settings>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="e6413cbe-f340-42b0-bbdc-ab01bda17ea9" name="Default Changelist" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ComposerSettings" doNotAsk="true" synchronizationState="SYNCHRONIZE">
<pharConfigPath>$PROJECT_DIR$/composer.json</pharConfigPath>
<execution>
<executable path="composer" />
</execution>
</component>
<component name="PhpWorkspaceProjectConfiguration">
<include_path>
<path value="$PROJECT_DIR$/vendor/symfony/translation" />
<path value="$PROJECT_DIR$/vendor/illuminate/support" />
<path value="$PROJECT_DIR$/vendor/psr/simple-cache" />
<path value="$PROJECT_DIR$/vendor/illuminate/container" />
<path value="$PROJECT_DIR$/vendor/psr/container" />
<path value="$PROJECT_DIR$/vendor/illuminate/database" />
<path value="$PROJECT_DIR$/vendor/illuminate/contracts" />
<path value="$PROJECT_DIR$/vendor/composer" />
<path value="$PROJECT_DIR$/vendor/doctrine/inflector" />
<path value="$PROJECT_DIR$/vendor/slim/slim" />
<path value="$PROJECT_DIR$/vendor/kylekatarnls/update-helper" />
<path value="$PROJECT_DIR$/vendor/nesbot/carbon" />
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
<path value="$PROJECT_DIR$/vendor/symfony/translation-contracts" />
<path value="$PROJECT_DIR$/vendor/illuminate/pagination" />
</include_path>
</component>
<component name="ProjectId" id="1YZnwHBGIq5WUeuZ60J5Be6nrvO" />
<component name="PropertiesComponent">
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
</component>
<component name="RecentsManager">
<key name="MoveFile.RECENT_KEYS">
<recent name="C:\wamp64\www\bdappli_laurent_vonderscher_sassu_percin" />
</key>
</component>
<component name="RunDashboard">
<option name="ruleStates">
<list>
<RuleState>
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
</RuleState>
<RuleState>
<option name="name" value="StatusDashboardGroupingRule" />
</RuleState>
</list>
</option>
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="1" />
</component>
</project>
\ No newline at end of file
# BDAPPLI_LAURENT_VONDERSCHER_SASSU_PERCIN
{
"require":{
"illuminate/database": "5.5.*",
"illuminate/pagination": ">=5.0",
"php": ">=7.0",
"slim/slim": "2.*"
},
"autoload":{
"psr-4": {
"gp\\" : "src/"
}
}
}
This diff is collapsed.
driver=mysql
username=moi
password=3173
host=localhost
database=appli_bd
charset=utf8
collation=utf8_unicode_ci
\ No newline at end of file
html {
font: 400 12px/1.667 "Open Sans", sans-serif;
}
.menu {
background-color: white;
left: 0;
overflow: hidden;
padding: 0;
position: fixed;
top: 0;
-webkit-transition: all 0.2s linear;
transition: all 0.2s linear;
width: 100%;
height: 50px;
z-index: 100;
border: 0px;
border-bottom: 2px;
border-style: solid;
border-color: #AAA;
}
#logo > a > img {
margin: 0;
padding: 0;
height: 50px;
float: left;
}
#menu_button{
position: relative;
float: right;
margin: 0;
padding:0;
height: 100%;
}
#menu_button > ul {
position: relative;
display: flex;
list-style: none;
margin: auto;
height: 100%;
}
.bouton {
display: block;
font-size: 18px;
text-decoration: none;
transition: all 0.3s linear;
border: 10px;
border-style: solid; border-color: #3BC;
background:#3BC;
text-align: center;
color: white;
padding: 0;
margin: auto;
}
.bouton:hover {
border-color: #39C;
background:#39C;
}
body {
background-image: url(../img/accueil00.png);
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
#first{
font: 400 24px/1.667 "Open Sans", sans-serif;
background-color: white;
padding: 10px;
margin: auto;
position: fixed;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
align-content: center;
margin-top: 25%;
width: 50%;
z-index: 10;
}
#first > a {
width: 30%;
}
#arrow01 {
display: block;
background-image: url("../img/arrow01.gif");
background-size: cover;
background-repeat: no-repeat;
position: fixed;
padding: 10px;
transform: translate(-50px, 0px);
left: 50%;
bottom: -4%;
width: 80px;
height: 80px;
z-index: 10;
}
#second{
font-size: 20px;
background-color: white;
padding: 10px;
margin: auto;
position: absolute;
left: 0px;
text-align: center;
top: 100%;
width: 100%;
box-sizing: border-box;
z-index: 50;
border-top: solid;
}
.center {
font-size: 24px;
background-color: white;
padding: 10px;
margin: auto;
position: relative;
text-align: center;
align-content: center;
margin-top: 15%;
width: 50%;
min-width: 500px;
z-index: 10;
}
.exception {
color: red;
font-size: 15px;
}
fieldset {
border-radius: 5px;
}
fieldset > legend{
font-size: 24px;
}
label {
font-size: 20px;
float: left;
text-align: right;
}
input:not([type=submit]):focus {
border-color:#333;
}
input:not([type=submit]) {
border-radius: 5px;
float: right;
text-align: left;
font-size: 18px;
width: 50%;
}
input[type=submit], button {
font: 400 18px/1.667 "Open Sans", sans-serif;
padding:5px 15px;
background:#ccc;
border:0 none;
cursor:pointer;
-webkit-border-radius: 5px;
border-radius: 5px;
}
.list {
font-size: 24px;
background-color: white;
padding: 10px;
margin: auto;
position: absolute;
left: 50%;
transform: translate(-50%, -0px);
text-align: center;
align-content: center;
margin-top: 70px;
width: 90%;
min-width: 100px;
min-height: 80%;
z-index: 10;
}
.element {
padding: 2px;
background: #DDD;
margin: 0;
border: 1px;
border-style: solid;
border-color: #AAA;
height: 15%;
overflow: hidden;
margin: 5px;
}
.element > .title{
margin: 0;
padding:0;
position: absolute;
text-align: left;
text-decoration: none;
left: 180px;
font-size: 28px;
}
.element > .desc{
display: flex;
position: absolute;
text-align: left;
text-justify: inter-character;
transform: translate(-0%, +26px);
left: 170px;
height: 10%;
width: 45%;
font-size: 16px;
overflow: hidden;
}
.element > a >img {
float: left;
left: 0;
height: 138px;
overflow: hidden
}
.choixRecette {
font-size: 24px;
background-color: white;
padding: 10px;
margin: auto;
position: fixed;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
align-content: center;
margin-top: 25%;
width: 50%;
z-index: 10;
}
.choixEvent {
font-size: 24px;
background-color: white;
padding: 10px;
margin: auto;
position: fixed;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
align-content: center;
margin-top: 25%;
width: 50%;
z-index: 10;
}
.creationEvenement {
font-size: 24px;
background-color: white;
padding: 10px;
margin: auto;
position: relative;
text-align: center;
align-content: center;
margin-top: 12.5%;
width: 50%;
min-width: 500px;
z-index: 10;
}
#con {
font-size: 24px;
background-color: white;
padding: 10px;
margin: auto;
position: relative;
text-align: center;
align-content: center;
margin-top: 12.5%;
width: 50%;
min-width: 500px;
z-index: 10;
}
.conPadding {
align-content: center;
padding: 50px;
padding-bottom: 100px;
}
.labelCon {
float: left;
text-align: right;
}
.inputCon {
float: right;
text-align: left;
font-size: 18px;
width: 50%;
}
#ins {
font-size: 24px;
background-color: white;
padding: 10px;
margin: auto;
position: relative;
text-align: center;
align-content: center;
margin-top: 12.5%;
width: 50%;
min-width: 600px;
z-index: 10;
}
.labelIns {
font-size: 20px;
float: left;
text-align: right;
}
.inputIns {
float: right;
text-align: left;
font-size: 18px;
width: 50%;
}
input[type=search] {
float: right;
text-align: left;
font-size: 18px;
width: 80%;
}
.searchDiv {
padding: 2px;
background-color: white;
margin: 0;
border: 1px;
border-style: solid;
border-color: #AAA;
height: 15%;
overflow: hidden;
margin: 5px;
}
.searchEvent {
width: 50%;
}
.form {
font-size: 24px;
background-color: white;
padding: 10px;
margin: auto;
position: relative;
text-align: center;
align-content: center;
margin-top: 12.5%;
width: 60%;
min-width: 500px;
z-index: 10;
}
.labelForm {
float: left;
text-align: right;
}
.inputForm {
float: right;
text-align: left;
font-size: 18px;
width: 50%;
}
\ No newline at end of file
<?php
require_once __DIR__ . '/vendor/autoload.php';
session_start();
use \Slim\Slim as Slim;
use Illuminate\Database\Capsule\Manager as DB;
use \gp\controleurs\ControleurPrincipal as ControleurPrincipal;
use \gp\controleurs\ControleurScript as ControleurScript;
$db = new DB();
$db->addConnection(parse_ini_file('./conf/conf.ini'));
$db->setAsGlobal();
$db->bootEloquent();
$app = new \Slim\Slim();
$app->get('/',function () {
$c = new ControleurPrincipal();
// $c->afficherAccueil();
});
$app->get('/script_TD1/',function () {
$c = new ControleurScript();
$c->td1();
});
$app->run();
\ No newline at end of file
<?php
require_once dirname (__DIR__) . '/vendor/autoload.php';
session_start();
use \Slim\Slim as Slim;
use Illuminate\Database\Capsule\Manager as DB;
use \gp\controleurs\ControleurPrincipal as ControleurPrincipal;
use \gp\controleurs\ControleurScript as ControleurScript;
$db = new DB();
$db->addConnection(parse_ini_file('../conf/conf.ini'));
$db->setAsGlobal();
$db->bootEloquent();
echo ("<!DOCTYPE html>
<html>
<body>
<div>
<h1> Script TD2 </h1>
<h2> Consignes : </h2>
<p> Pour chaque requête, mettre le paramètre dans l'url ?requete='Numero de la requete'</p>
</div>");
if(isset($_GET['requete']) && $_GET['requete']>0 && $_GET['requete']<=6) {
echo "<div><center>";
$nb = $_GET['requete'];
$c = new ControleurScript();
$c->setLog(true);
$function = 'td3_q'. $nb .'b';
$res = $c->$function();
if($res != null) {
foreach ($res as $item) {
if($nb!=6)
echo "<p>$item->name</p>";
else
echo "<p>$item</p>";
}
} else echo "<p>Aucun résultat</p>";
echo "</center></div>";
echo "<div>";
echo $c->getLog();
echo "</div>";
}
echo ("</body> </html>");
\ No newline at end of file
<?php
require_once dirname (__DIR__) . '/vendor/autoload.php';;
session_start();
use \Slim\Slim as Slim;
use Illuminate\Database\Capsule\Manager as DB;
use \gp\controleurs\ControleurPrincipal as ControleurPrincipal;
use \gp\controleurs\ControleurScript as ControleurScript;
$db = new DB();
$db->addConnection(parse_ini_file('../conf/conf.ini'));
$db->setAsGlobal();
$db->bootEloquent();
$c = new ControleurScript();
$c->td1();
<?php
require_once dirname (__DIR__) . '/vendor/autoload.php';
session_start();
use \Slim\Slim as Slim;
use Illuminate\Database\Capsule\Manager as DB;
use \gp\controleurs\ControleurPrincipal as ControleurPrincipal;
use \gp\controleurs\ControleurScript as ControleurScript;
$db = new DB();
$db->addConnection(parse_ini_file('../conf/conf.ini'));
$db->setAsGlobal();
$db->bootEloquent();
echo ("<!DOCTYPE html>
<html>
<body>
<div>
<h1> Script TD2 </h1>
<h2> Consignes : </h2>
<p> Pour chaque requête, mettre le paramètre dans l'url ?requete='Numero de la requete'</p>
</div>");
if(isset($_GET['requete']) && $_GET['requete']>0 && $_GET['requete']<=9) {
$nb = $_GET['requete'];
$c = new ControleurScript();
$function = 'td2_q'. $nb;
$c->$function();
}
echo ("</body> </html>");
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment