logo STOPCLOP - page - Sbibou Cms ;) => Aller en bas?
mercredi 17 mai 2023, 00:00 était un mercredi
lundi 29 avril 2024, 20:25

Ça y est, c' est fait !!

Je ne fume plus depuis le mercredi 17 mai 2023, 00:00

C était donc il y a 348 jours 18 heures 25 minutes 23 secondes

C' est donc une economie nette de 7672.89 € ( en 348.768 jours )

	 _____   _____   _   _____   _____   _   _  
	/  ___/ |  _  \ | | |  _  \ /  _  \ | | | | 
	| |___  | |_| | | | | |_| | | | | | | | | | 
	\___  \ |  _  { | | |  _  { | | | | | | | | 
	 ___| | | |_| | | | | |_| | | |_| | | |_| | 
	/_____/ |_____/ |_| |_____/ \_____/ \_____/ 


   Trop Méchant :) !



sbibou.com © 2024

Le code php de cette page

Allez, c est décidé, je vous offre le code de cette page :)

Sans aucune pretention, il n est pas optimisé, mais il fonctionne!

Comme on dit, il fait le taf!

Si ça peut vous motiver pour arreter de fumer comme moi ;)



<?php
$eco_par_jour 
'22';
setlocale(LC_TIME'fr_FR.UTF-8');
date_default_timezone_set('Europe/Paris');
$date_courante strftime('%A %d %B %Y, %H:%M');

$date_debut mktime(0005172023);
$date_arret date("d M Y", (int)$date_debut);

function 
time2string($timeline) {
$ret '';
    
$periods = array(
'jour' => 86400
'heure' => 3600
'minute' => 60
'seconde' => 1);

    foreach(
$periods AS $name => $secondes){
        
$num floor($timeline $secondes);
        
$timeline -= ($num $secondes);
        
$ret .= $num.' '.$name.(($num 1) ? 's' '').' ';
    }

    return 
trim($ret);
}

$combien_de_temps =  time2string(time()-$date_debut);
$le_jour strftime('%A',strtotime($date_arret));
// Affiche : July 1, 2000 is on a Saturday
echo 'Le 17 mai 2023 était un ' $le_jour;


    
///////////////////
       //
      //        ///////////////////
     //                         // 
    //                         //
   ///////////////            //
                             //
            //////////////////         




##


#############

echo '

<style>
body {
    position: relative;
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-size: 1.85em; 
    font-family: "Droid Serif", Georgia, Times, serif;
    background: #000000;
    color: yellow;
}
.blanc_sur_noir{
    background:black;
    color: white;
}
.gros_rouge{
    background:red;
    color: white;
    font-size: 2.85em;
}

.page{
    font-family: "Droid Sans", Georgia, Times, sans serif;

    background: #232323;
    color:#c08f73;
    margin:20px 22px 2em 20px;
    padding:2px 22px;

}

.bas_de_page {
    clear: both;
    background: #666999;
    font-style: italic;
    color: #000000;
    font-family: "Tangerine", serif;
    font-size: 48px;
    text-shadow: 4px 4px 4px #aaa;
    
    border-radius: 32px / 22px;
    margin-left : auto;
    margin-right : auto;
    
    position: fixed;
    bottom: 5px;
    height: 38px;
    width: 100%;
    text-align : center;
}

.bas_de_page a:link {
    color: red;
    }


.bas_de_page a:visited {
    background-color: #000000;
    color: black;

    padding: 14px 25px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    }


.bas_de_page a:hover {
    color: orange;
    }

/* selected link */
.bas_de_page a:active {
    color: blue;
    }



.tete{
float: right;
}

.blink {
  animation: blink-animation 1s steps(5, start) infinite;
  -webkit-animation: blink-animation 1s steps(5, start) infinite;
}
@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}
@-webkit-keyframes blink-animation {
  to {
    visibility: hidden;
  }
}
</style>


'
;



    

    
 
$nowtime mktime((int)date('H, i, s'));
$oldtime $date_debut;
$difftime $nowtime-$oldtime;
$jours $difftime/86400;
$jour_arr round($jours3);
if(
$jours >1){$accord 's';}else{$accord '';}
$eco = ($jours $eco_par_jour);
$eco_arr round($eco2);


echo 
'
<div class="blanc_sur_noir">'
.$date_courante.'</div>

<div class="tete">
<img src="http://sbibou.com/sb_cm/IMG/favi.png" width="122" height="168" />
</div>
<div class="page">
<h3>Ça y est, c est fait  !!</h3>
<p>Je ne fume plus depuis le
 <span class="blanc_sur_noir">'
.$date_arret.'</span></p> 
<p>C était donc il y a 
<span class="blanc_sur_noir"><b>'
.$combien_de_temps.'</b></span></p> 
<p>C est donc une economie nette de
 <a class="gros_rouge" title="'
.$eco.'">'.$eco_arr.'</a> €  
( en <span class="blink">
<a title="'
.$jours.'">'.$jour_arr.' jour'.$accord.'</a></span> )</p>
</div>

<div class="font-effect-3d-float">
<pre>
     _____   _____   _   _____   _____   _   _  
    /  ___/ |  _  \ | | |  _  \ /  _  \ | | | | 
    | |___  | |_| | | | | |_| | | | | | | | | | 
    \___  \ |  _  { | | |  _  { | | | | | | | | 
     ___| | | |_| | | | | |_| | | |_| | | |_| | 
    /_____/ |_____/ |_| |_____/ \_____/ \_____/ 


</pre>
&nbsp;&nbsp; Trop Méchant :) !<div>
<br /><br /><br />

<!-- ### Bas de page ### -->
<div class="bas_de_page">
<a class="font-effect-shadow-multiple" href="http://sbibou.com">
sbibou.com</a> &copy; '
.date('Y').'</div>
<!-- ### Bas de page ### -->
'
;



?>