mirror of https://git.envs.net/envs/ops.git
51 lines
1.2 KiB
Perl
Executable File
51 lines
1.2 KiB
Perl
Executable File
#!/usr/bin/perl
|
|
#
|
|
# source from pgadey (ctrl-c.club)
|
|
# url: https://github.com/pgadey/bin/blob/master/ctrl-c.club
|
|
#
|
|
|
|
print "<?php
|
|
// do not touch
|
|
// this files is generated by /usr/local/bin/envs_user_updated.sh
|
|
|
|
\$title = \"envs.net | recently user updates\";
|
|
\$desc = \"envs.net | recently user updates\";
|
|
|
|
include 'header.php';
|
|
?>
|
|
|
|
<body id=\"body\" class=\"dark-mode\">
|
|
<div>
|
|
|
|
<div class=\"button_back\">
|
|
<pre class=\"clean\"><strong><a href=\"/\">< back</a></strong></pre>
|
|
</div>
|
|
|
|
<div id=\"main\">
|
|
<div class=\"block\">
|
|
<pre>
|
|
<h1><em>recently user updates</em></h1>
|
|
</pre>
|
|
</div>
|
|
|
|
<pre>
|
|
this is a static list of the pages modified in <code>/home/*/public_html/*</code>. it updates every hour.
|
|
<ul>\n";
|
|
|
|
while (<>) {
|
|
chomp;
|
|
($date, $index) = split(/ /, $_);
|
|
$date = `date --date="\@$date" +'%F %H:%M:%S'`;
|
|
$author = $index;
|
|
$file = $index;
|
|
$author =~ s%/home/(\w+)/public_html/(\S+)%$1%;
|
|
$file =~ s%/home/(\w+)/public_html/(\S+)%$2%;
|
|
print "<li><a href=\"https://envs.net/\~$author/\">\~$author</a> (<a href=\"https://envs.net/\~$author/$file\">$file</a>) at $date</li>\n";
|
|
};
|
|
|
|
print "</ul>
|
|
</pre>
|
|
</div>
|
|
|
|
<?php include 'footer.php'; ?>";
|