add dashboard
This commit is contained in:
1 parent
d8ef20a55b
commit
da4687dd3c
9 files changed
+164
-31
No files matched your search
+8
-22
@@ -1,27 +1,13 @@
|
||||
|
||||
---
|
||||
layout: default
|
||||
layout: dashboard
|
||||
lang: pt
|
||||
---
|
||||
<?php
|
||||
// Autenticação básica HTTP para obter o nome de usuário
|
||||
$username = $_SERVER['PHP_AUTH_USER'];
|
||||
$target_dir = "/var/www/html/aliceclass_videos/" . $username;
|
||||
|
||||
# check if user dir exists
|
||||
if (!file_exists($target_dir)) {
|
||||
<div class="index-dashboard">
|
||||
<div class="box-info">
|
||||
<h4>Numero de Aulas enviadas</h4>
|
||||
<p><?php echo $file_count; ?></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
# if not, create it
|
||||
if (mkdir($target_dir, 0775, true)) {
|
||||
// echo "Directory created successfully.";
|
||||
}
|
||||
|
||||
if (mkdir($target_dir . "/src", 0775, true)) {
|
||||
// echo "Directory created successfully.";
|
||||
}
|
||||
|
||||
if (mkdir($target_dir . "/dest", 0775, true)) {
|
||||
// echo "Directory created successfully.";
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in new issue
Block a user