diff --git a/index.php b/index.php
index bed7765..0819f2c 100644
--- a/index.php
+++ b/index.php
@@ -171,7 +171,7 @@ if (isset($_GET['notice'])) {
if you're not seeing yourself listed here, change your page from the default.
users with recently updated pages within the last month are highlighted in a lighter color.
list all users
-
+
0 ? $indexFiles[0] : null;
+ foreach (glob("/home/*") as $user) {
+ // Look for index files with common extensions
+ $indexFiles = glob("$user/public_html/index.{html,htm,php}", GLOB_BRACE);
+ $index = count($indexFiles) > 0 ? $indexFiles[0] : null;
- if (!$index || in_array(sha1_file($index), $page_shas)) continue;
+ if (!$index || in_array(sha1_file($index), $page_shas)) continue;
- // Check for any recent changes in the public_html directory
- $recentChange = false;
- foreach (glob("$user/public_html/*") as $file) {
- if (filemtime($file) > $oneMonthAgo) {
- $recentChange = true;
- break;
- }
- }
+ // Check for any recent changes in the public_html directory
+ $recentChange = false;
+ foreach (glob("$user/public_html/*") as $file) {
+ if (filemtime($file) > $oneMonthAgo) {
+ $recentChange = true;
+ break;
+ }
+ }
$user = basename($user);
- $class = $recentChange ? 'recently-updated' : '';
- ?>
-
- ~=$user?>
-
-
+
+ echo '
'.(($recentChange) ? '~'.$user.'' : '~'.$user).'';
+ }
+ ?>
+
-
+ span.fl {
padding-top: 5px;
}
+.user-list {
+ display: flex;
+ flex-flow: row wrap;
+ justify-content: space-evenly;
+ list-style-type: none;
+ padding: 0;
+}
+
+.user-list a {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ flex: 10em;
+}
+
+.user-list b {
+ background-color: #fb5;
+ color:#000;
+}
+
input[type="text"],
textarea {
background-color: #333;
@@ -294,11 +297,6 @@ pre {
border-radius: 0.25em; /* Slight border radius for better appearance */
padding: 0.5em; /* Padding for better readability */
}
-.recently-updated a {
- font-weight: bold;
- color: #fb5 !important; /* Use !important to override other styles */
-}
-
#active-users {
margin-top: 20px;
display: flex;