Maintenant, tout dans le executor.php. Fin de tempPreMega.
Ajout d'un super simulateur de tours de Monoï dans la page 404.
This commit is contained in:
Submodule
+1
Submodule includes/MathJax added at be11806df1
+4
-4
@@ -1,8 +1,8 @@
|
||||
<?php
|
||||
try{
|
||||
//$bdd = new PDO('mysql:host=localhost;dbname=bernard.com;charset=utf8', 'root', '');
|
||||
$GLOBALS['bdd'] = new PDO('mysql:host=mysql.hostinger.fr;dbname=u890869027_bcom;charset=utf8', 'u890869027_bcom', '*******************');
|
||||
$GLOBALS['bdd'] = new PDO('mysql:host=127.0.0.1;dbname=u890869027_bcom;charset=utf8', 'u890869027', '*******************');
|
||||
//$GLOBALS['bdd'] = new PDO('mysql:host=mysql.hostinger.fr;dbname=u890869027_bcom;charset=utf8', 'u890869027_bcom', '*******************');
|
||||
}catch(Exception $e){
|
||||
die ('Erreur : ' . $e->getMessage());
|
||||
die ('Erreur : ' . $e->getMessage() . "\n");
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
+6
-1
@@ -10,14 +10,19 @@
|
||||
|
||||
<a href="" id="haut_de_page">Haut de page</a>
|
||||
</footer>
|
||||
|
||||
<?php
|
||||
if(isset($_SESSION['current_error'])){
|
||||
?>
|
||||
|
||||
<div class="fullscreen opaque">
|
||||
<div class="screen-vertical-centered">
|
||||
<div class="screen-horizontal-centered"><?php echo $_SESSION['current_error'];?></div>
|
||||
<div class="screen-horizontal-centered">
|
||||
<?php echo $_SESSION['current_error'];?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$('.fullscreen').on('click',function(){
|
||||
|
||||
+41
-39
@@ -1,54 +1,56 @@
|
||||
<?php include_once 'clazz/Zincluder.php'; ?>
|
||||
<header>
|
||||
<!--
|
||||
000000000000000800000000000000000000000000000000000000000000000000000
|
||||
000000000000008000000000000000000000000000000000000000000000000000000
|
||||
000000000000080000000000000888000000000000000000000000000000000000000
|
||||
000000000000800000000000088000880000000000000000000000000000000000000
|
||||
000000000008008000000000000000080000000000000000000000000000000000000
|
||||
000000000080008000000000000000800000000000000000000000000000000000000
|
||||
000000000888888888000000000008000000000000000000000000000000000000000
|
||||
000000000000008000000000000080000000000000000000000000000000000000000
|
||||
000000000000008000000000000800000000000000000000000000000000000000000
|
||||
000000000000008000000000088888880000000000000000000000000000000000000
|
||||
000000000000000000000000000000000000000000000000000000000000000000000
|
||||
000000000000000000000000000000000000000000000000000000000000000000000
|
||||
000000000000000000000000000000000000000000000000000000000000000000000
|
||||
-->
|
||||
|
||||
<!--
|
||||
000000000000000800000000000000000000000000000000000000000000000000000
|
||||
000000000000008000000000000000000000000000000000000000000000000000000
|
||||
000000000000080000000000000888000000000000000000000000000000000000000
|
||||
000000000000800000000000088000880000000000000000000000000000000000000
|
||||
000000000008008000000000000000080000000000000000000000000000000000000
|
||||
000000000080008000000000000000800000000000000000000000000000000000000
|
||||
000000000888888888000000000008000000000000000000000000000000000000000
|
||||
000000000000008000000000000080000000000000000000000000000000000000000
|
||||
000000000000008000000000000800000000000000000000000000000000000000000
|
||||
000000000000008000000000088888880000000000000000000000000000000000000
|
||||
000000000000000000000000000000000000000000000000000000000000000000000
|
||||
000000000000000000000000000000000000000000000000000000000000000000000
|
||||
000000000000000000000000000000000000000000000000000000000000000000000
|
||||
-->
|
||||
|
||||
<?php
|
||||
include_once('includes/inter.php');
|
||||
if(isConnected()){
|
||||
if($me = Membre::me()){
|
||||
?>
|
||||
|
||||
<div id="bienvenue">Bienvenue à toi, <?php echo getPseudo(); ?>
|
||||
<form id="headDisconnectForm" method="post" action="disconnect.php">
|
||||
<input type="submit" value="Se déconnecter" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="bienvenue">Bienvenue à toi, <?php echo $me->getPseudo(); ?>
|
||||
<form id="headDisconnectForm" method="post" action="disconnect.php">
|
||||
<input type="submit" value="Se déconnecter" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php }else{ ?>
|
||||
|
||||
<form id="headLoginForm" method="post" action="logging.php">
|
||||
<label for="pseudo">Pseudo :</label>
|
||||
<input type="text" name="pseudo" id="pseudo" placeholder="Ex:Bernard" />
|
||||
<label for="mdp">Mot de passe :</label>
|
||||
<input type="password" name="mdp" id="mdp" placeholder="Votre mot de passe" />
|
||||
<input type="submit" value="Se connecter" />
|
||||
</form>
|
||||
<form id="headLittleLoginForm" method="post" action="login.php">
|
||||
<input type="submit" value="Se connecter" />
|
||||
</form>
|
||||
<form id="headRegisterForm" method="post" action="register.php">
|
||||
<input type="submit" value="S'inscrire" />
|
||||
</form>
|
||||
<form id="headLoginForm" method="post" action="executor.php?action=login">
|
||||
<label for="pseudo">Pseudo :</label>
|
||||
<input type="text" name="pseudo" id="pseudo" placeholder="Ex:Bernard" />
|
||||
<label for="mdp">Mot de passe :</label>
|
||||
<input type="password" name="mdp" id="mdp" placeholder="Votre mot de passe" />
|
||||
<input type="submit" value="Se connecter" />
|
||||
</form>
|
||||
<form id="headLittleLoginForm" method="post" action="login.php">
|
||||
<input type="submit" value="Se connecter" />
|
||||
</form>
|
||||
<form id="headRegisterForm" method="post" action="register.php">
|
||||
<input type="submit" value="S'inscrire" />
|
||||
</form>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<img id="bande" src="pictures/<?php if(rand()*31415 < 110*42)echo "lucas_president.png";else echo "bande.png";?>" alt="Erreur d'affichage de l'image" width=1000 height="89" />
|
||||
<img id="bande" src="pictures/<?php if(rand(0,314159) < 110*42)echo "lucas_president.png";else echo "bande.png";?>" alt="Erreur d'affichage de l'image" width=1000 height="89" />
|
||||
<nav id="navLinks">
|
||||
<a href="index.php">Accueil</a><br class="navV"/>
|
||||
<a href="projets.php">Mes Projets</a><br class="nav2x2"/>
|
||||
<a href="projets.php">Mes Projets</a><br class="nav3x2 navV"/>
|
||||
<a href="others.php">Tous les projets</a><br class="navV"/>
|
||||
<a href="discuts.php">Discussions</a><br class="navV"/>
|
||||
<a href="profile.php">Mon profil</a><br class="navV"/>
|
||||
</nav>
|
||||
</header>
|
||||
</header>
|
||||
|
||||
+6
-2
@@ -2,8 +2,12 @@
|
||||
include_once 'includes/bdd.php';
|
||||
function isConnected($sid = NULL, $mdp = NULL) {
|
||||
if (! isset ( $sid ) or ! isset ( $mdp )) {
|
||||
$sid = $_SESSION ['session_id'];
|
||||
$mdp = $_SESSION ['session_mdp'];
|
||||
if(isset($_SESSION ['session_id']) and isset($_SESSION ['session_mdp'])){
|
||||
$sid = $_SESSION ['session_id'];
|
||||
$mdp = $_SESSION ['session_mdp'];
|
||||
}else{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
$req = $GLOBALS ['bdd']->prepare ( 'SELECT * FROM users WHERE ID=?' );
|
||||
$req->execute ( array (
|
||||
|
||||
+28
-4
@@ -3,9 +3,16 @@
|
||||
<meta name="keywords" lang="fr" content="cercloid officiel, zeidhyx project" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="stylesheet" href="css/style.css" />
|
||||
<script type="text/x-mathjax-config"> MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}}); </script>
|
||||
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML"> </script>
|
||||
|
||||
<script type="text/x-mathjax-config"> MathJax.Hub.Config({
|
||||
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]},
|
||||
CommonHTML: { linebreaks: { automatic: true }, scale: ((window.innerWidth || document.body.clientWidth)<600)?70:100},
|
||||
"HTML-CSS": { linebreaks: { automatic: true } },
|
||||
SVG: { linebreaks: { automatic: true } }});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var headBloc = document.getElementsByTagName("head")[0];
|
||||
//Load css according to the browser
|
||||
var link = document.createElement( "link" );
|
||||
link.type = "text/css";
|
||||
link.rel = "stylesheet";
|
||||
@@ -15,5 +22,22 @@
|
||||
}else{
|
||||
link.href = "css/noFirefoxStyle.css";
|
||||
}
|
||||
document.getElementsByTagName("head")[0].appendChild( link );
|
||||
</script>
|
||||
headBloc.appendChild( link );
|
||||
|
||||
//Load server jQuery if not loaded
|
||||
var jQuerySrc = 'https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_CHTML'
|
||||
var mathJaxSrc = 'http://code.jquery.com/jquery-latest.min.js'
|
||||
if(!navigator.onLine){
|
||||
jQuerySrc = 'includes/jquery-latest.min.js';
|
||||
mathJaxSrc = "includes/MathJax/MathJax.js?config=TeX-AMS_CHTML";
|
||||
}
|
||||
var script = document.createElement("script");
|
||||
script.type = "text/javascript";
|
||||
script.src = jQuerySrc;
|
||||
headBloc.appendChild(script);
|
||||
script = document.createElement("script");
|
||||
script.type = "text/javascript";
|
||||
script.src = mathJaxSrc;
|
||||
headBloc.appendChild(script);
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user