Compare commits
2 Commits
85a5073bf8
...
670ce57a12
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
670ce57a12 | ||
|
|
9a5784d8c1 |
8
.idea/.gitignore
generated
vendored
Normal file
8
.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# Default ignored files
|
||||||
|
/shelf/
|
||||||
|
/workspace.xml
|
||||||
|
# Editor-based HTTP Client requests
|
||||||
|
/httpRequests/
|
||||||
|
# Datasource local storage ignored files
|
||||||
|
/dataSources/
|
||||||
|
/dataSources.local.xml
|
||||||
9
.idea/coursBTSciel.iml
generated
Normal file
9
.idea/coursBTSciel.iml
generated
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module type="JAVA_MODULE" version="4">
|
||||||
|
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$" />
|
||||||
|
<orderEntry type="inheritedJdk" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
||||||
6
.idea/misc.xml
generated
Normal file
6
.idea/misc.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectRootManager">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
8
.idea/modules.xml
generated
Normal file
8
.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ProjectModuleManager">
|
||||||
|
<modules>
|
||||||
|
<module fileurl="file://$PROJECT_DIR$/.idea/coursBTSciel.iml" filepath="$PROJECT_DIR$/.idea/coursBTSciel.iml" />
|
||||||
|
</modules>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
6
.idea/vcs.xml
generated
Normal file
6
.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
FROM php:8.2-apache
|
||||||
|
LABEL authors="matthieulmr"
|
||||||
|
|
||||||
|
COPY . /var/www/html
|
||||||
|
WORKDIR /var/www/html
|
||||||
|
|
||||||
|
RUN docker-php-ext-install pdo pdo_mysql
|
||||||
|
|
||||||
|
EXPOSE 80
|
||||||
57
Index.php
Normal file
57
Index.php
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="fr">
|
||||||
|
<head>
|
||||||
|
<title>Ma super bibliothèque</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">-->
|
||||||
|
<!-- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>-->
|
||||||
|
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">-->
|
||||||
|
<!-- <link href="style.css" rel="stylesheet" type="text/css">-->
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<?php include("sql/pdo.php"); ?>
|
||||||
|
|
||||||
|
<header class="main-content">
|
||||||
|
<H1>Bibliothèque</H1>
|
||||||
|
<ul class="nav nav-tabs">
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link active" aria-current="page" href="/">Accueil</a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item">
|
||||||
|
<a class="nav-link" href="/">Ajouter un livre</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
|
||||||
|
<main class="main-content">
|
||||||
|
<?php include("view/view_books.php"); ?>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<footer class="fixed-bottom d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top p-4">
|
||||||
|
<div>
|
||||||
|
<i class="bi bi-c-circle"></i> 2025 - LM I-Manager
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
Version : 1.0.0
|
||||||
|
</div>
|
||||||
|
<div class="d-flex align-items-center d-flex-row">
|
||||||
|
Connexion BDD :
|
||||||
|
<?php
|
||||||
|
if ($GLOBALS['BddIsConnected']) {
|
||||||
|
echo "<p class='m-1' style='color:green;'>✅</p>";
|
||||||
|
} else {
|
||||||
|
echo "<p class='m-1' style='color:red;'>❌</p>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
15
LEAKWARS.js
Normal file
15
LEAKWARS.js
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
setWeapon(WEAPON_PISTOL)
|
||||||
|
|
||||||
|
|
||||||
|
var enemy = getNearestEnemy()
|
||||||
|
useChip(CHIP_SHOCK, enemy);
|
||||||
|
useChip(CHIP_PEBBLE, enemy);
|
||||||
|
|
||||||
|
moveToward(enemy)
|
||||||
|
|
||||||
|
|
||||||
|
useWeapon(enemy)
|
||||||
|
useWeapon(enemy)
|
||||||
|
useWeapon(enemy)
|
||||||
|
useChip(CHIP_BANDAGE, );
|
||||||
|
useChip(CHIP_PROTEIN, );
|
||||||
17
PDO.php
Normal file
17
PDO.php
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?php
|
||||||
|
$HOST = "Base-bibli";
|
||||||
|
$db = "bibli";
|
||||||
|
$user = "root";
|
||||||
|
$pass = "YUIOP5236*wqa";
|
||||||
|
$charset = "utf8mb4";
|
||||||
|
|
||||||
|
$dsn = "mysql:host=$HOST;dbname=$db;charset=$charset";
|
||||||
|
|
||||||
|
try {
|
||||||
|
$pdo = new PDO($dsn, $user, $pass);
|
||||||
|
$GLOBALS['BddIsConnected'] = true;
|
||||||
|
} catch (PDOException $e) {
|
||||||
|
$GLOBALS['BddIsConnected'] = false;
|
||||||
|
echo "<script>console.log('Error PDD : " . $e->getMessage() , "');</script>";
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user