git.cweiske.de
/
awstats-helper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8436d04
)
script to update last month
author
Christian Weiske
<
[email protected]
>
Sat, 14 Nov 2009 17:30:04 +0000
(18:30 +0100)
committer
Christian Weiske
<
[email protected]
>
Sat, 14 Nov 2009 17:30:04 +0000
(18:30 +0100)
update-lastmonth.php
[new file with mode: 0644]
patch
|
blob
diff --git a/update-lastmonth.php
b/update-lastmonth.php
new file mode 100644
(file)
index 0000000..
d569128
--- /dev/null
+++ b/
update-lastmonth.php
@@ -0,0
+1,13
@@
+<?php
+/**
+ * Updates last month of awstats for multiple sites.
+ * Should be run on the first day of the next month.
+ */
+require_once 'functions.php';
+
+foreach (aws_sites() as $site) {
+ aws_createHtml($site, true);
+ aws_createIndex($site);
+}
+
+?>
\ No newline at end of file