Fiz o ultimo teste errado.

This commit is contained in:
emerson 2024-08-04 22:12:33 -03:00
parent c1d216bcc6
commit 61b6f3178d
2 changed files with 6 additions and 6 deletions

View File

@ -1,3 +1,8 @@
---
layout: default
lang: pt
---
<?php <?php
// Autenticação básica HTTP para obter o nome de usuário // Autenticação básica HTTP para obter o nome de usuário
$username = $_SERVER['PHP_AUTH_USER']; $username = $_SERVER['PHP_AUTH_USER'];
@ -19,7 +24,7 @@
// echo "Directory created successfully."; // echo "Directory created successfully.";
} }
} }
// Exibir o nome de usuário // Exibir o nome de usuário
echo '<div class="username">'; echo '<div class="username">';
echo 'Usuário: ' . htmlspecialchars($username); echo 'Usuário: ' . htmlspecialchars($username);

View File

@ -1,8 +1,3 @@
---
layout: default
lang: pt
---
<?php <?php
$username = $_SERVER['PHP_AUTH_USER']; $username = $_SERVER['PHP_AUTH_USER'];
$target_dir = "/var/www/html/aliceclass_videos/" . $username; $target_dir = "/var/www/html/aliceclass_videos/" . $username;