script to update last month
authorChristian Weiske <cweiske@cweiske.de>
Sat, 14 Nov 2009 17:30:04 +0000 (18:30 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 14 Nov 2009 17:30:04 +0000 (18:30 +0100)
update-lastmonth.php [new file with mode: 0644]

diff --git a/update-lastmonth.php b/update-lastmonth.php
new file mode 100644 (file)
index 0000000..d569128
--- /dev/null
@@ -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