script to update last month
[awstats-helper.git] / update-lastmonth.php
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