git.cweiske.de
/
awstats-helper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make readme rst-compatible
[awstats-helper.git]
/
functions.php
diff --git
a/functions.php
b/functions.php
index 803d684a24fe4efa9968ff074872b442e6e925b8..5ee79a9381ce6a7e8c318ee1e814d2dfd7994183 100644
(file)
--- a/
functions.php
+++ b/
functions.php
@@
-54,6
+54,7
@@
function aws_createHtml($site, $last = false, $year = null, $month = null)
. ' -month=' . $month
. ' -year=' . $year
. ' -dir=' . escapeshellarg($dir);
. ' -month=' . $month
. ' -year=' . $year
. ' -dir=' . escapeshellarg($dir);
+ echo $cmd . "\n";
passthru($cmd);
if (!$last) {
passthru($cmd);
if (!$last) {
@@
-104,8
+105,10
@@
function aws_createGlobalIndex()
$links = '';
foreach ($dirs as $dir) {
$name = basename($dir);
$links = '';
foreach ($dirs as $dir) {
$name = basename($dir);
- $links .= '<li><a href="' . $name . '/">'
- . $name . '</a></li>';
+ $links .= '<li>'
+ . '<a href="' . $name . '/">' . $name . '</a>'
+ . ' <a href="' . $name . '/current/awstats.' . $name . '.html">[current]</a>'
+ . '</li>';
}
$html = <<<XML
<?xml version="1.0" encoding="utf-8"?>
}
$html = <<<XML
<?xml version="1.0" encoding="utf-8"?>