]> git.r.bdr.sh - rbdr/r.bdr.sh/blob - jekyll/esposario/index.php
Updates wording in the audio-guestbook
[rbdr/r.bdr.sh] / jekyll / esposario / index.php
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
3 <head>
4 <title>Pequeño Esposario Ilustrado</title>
5
6 <link rel="stylesheet" type="text/css" href="./style.css" title="default" />
7
8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
9 </head>
10 <body>
11 <div id="wrapper">
12 <?php
13 $time = time()-(7*60*60);
14 $esposos = array( array("Nadie","default.png"),
15 array("Ash Stymest","ash-stymest.png"),
16 array("Thin Man","thin-man.png"),
17 array("El Residente","el-residente.png"),
18 array("Brandon Reilly","brandon-reilly.png"),
19 array("Spock","spock.png"),
20 array("Devendra Banhart","devendra-banhart.png"),
21 array("Julio Cortázar","julio-cortazar.png"));
22
23 if(isset($_GET['today'])){
24 $day = intval($_GET['today']);
25 }else{
26 $day = date("N",$time);
27 }
28 if($day < 1 || $day > 7){
29 $day = 0;
30 }
31 ?>
32 <p>El esposo de Gaby del día es:</p>
33 <h1><?php echo $esposos[$day][0]; ?>.</h1>
34 <img src="img/<?php echo $esposos[$day][1]; ?>" alt="<?php echo $esposos[$day][0]; ?>" />
35 </div>
36 </body>
37 </html>