PerlaHM commited on
Commit
f0964ea
·
1 Parent(s): c741c73

se agrego password

Browse files
Files changed (3) hide show
  1. app/compras.php +3 -3
  2. app/inc/header.php +3 -0
  3. app/password.php +7 -0
app/compras.php CHANGED
@@ -11,9 +11,6 @@
11
  else if(strcmp("Camisas",$_GET["articulo"])==0){
12
  $imagenArticulo = "https://i.pinimg.com/originals/c9/73/c5/c973c55c3f4a5b2dc34c2b1369fddc0f.jpg";
13
  }
14
- else{
15
- $imagenArticulo = "https://cdn-icons-png.flaticon.com/512/16/16410.png";
16
- }
17
  else if(strcmp("Calcetines",$_GET["articulo"])==0){
18
  $imagenArticulo = "https://www.podoactiva.com/wp-content/uploads/imagenes/calcetines_1.jpeg";
19
  }
@@ -26,6 +23,9 @@
26
  else if(strcmp("Gorras",$_GET["articulo"])==0){
27
  $imagenArticulo = "https://http2.mlstatic.com/D_NQ_NP_762934-MLM72111006498_102023-O.webp";
28
  }
 
 
 
29
  ?>
30
 
31
  <br>
 
11
  else if(strcmp("Camisas",$_GET["articulo"])==0){
12
  $imagenArticulo = "https://i.pinimg.com/originals/c9/73/c5/c973c55c3f4a5b2dc34c2b1369fddc0f.jpg";
13
  }
 
 
 
14
  else if(strcmp("Calcetines",$_GET["articulo"])==0){
15
  $imagenArticulo = "https://www.podoactiva.com/wp-content/uploads/imagenes/calcetines_1.jpeg";
16
  }
 
23
  else if(strcmp("Gorras",$_GET["articulo"])==0){
24
  $imagenArticulo = "https://http2.mlstatic.com/D_NQ_NP_762934-MLM72111006498_102023-O.webp";
25
  }
26
+ else{
27
+ $imagenArticulo = "https://cdn-icons-png.flaticon.com/512/16/16410.png";
28
+ }
29
  ?>
30
 
31
  <br>
app/inc/header.php CHANGED
@@ -39,6 +39,9 @@
39
  <li class="nav-item">
40
  <a class="nav-link" href="/catalogo.php">Catalogo</a>
41
  </li>
 
 
 
42
 
43
  </ul>
44
  <form class="d-flex" role="search">
 
39
  <li class="nav-item">
40
  <a class="nav-link" href="/catalogo.php">Catalogo</a>
41
  </li>
42
+ <li class="nav-item">
43
+ <a class="nav-link" href="/password.php">Password</a>
44
+ </li>
45
 
46
  </ul>
47
  <form class="d-flex" role="search">
app/password.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $n = 10;
3
+ function getRandomString($n) {
4
+ return bin2hex(random_bytes($n / 2));
5
+ }
6
+ echo getRandomString($n);
7
+ ?>