summaryrefslogtreecommitdiff
path: root/html/app/views/simple/lorem-dates.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-17 12:12:22 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-17 12:12:22 +0300
commit68fc9e55e538e03f94509731ab41a0c8cf96710f (patch)
tree3edb1e81864ac3eb35ba0fe8087ed24da1b812bf /html/app/views/simple/lorem-dates.php
parent84b2da85a1b452922dadb6a609533b9945afe51d (diff)
downloadclassroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.tar.gz
classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.tar.bz2
classroom-68fc9e55e538e03f94509731ab41a0c8cf96710f.zip
setup a real server environment (apache DocumentRoot=/var/www/public)
Diffstat (limited to 'html/app/views/simple/lorem-dates.php')
-rw-r--r--html/app/views/simple/lorem-dates.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/html/app/views/simple/lorem-dates.php b/html/app/views/simple/lorem-dates.php
deleted file mode 100644
index 7a7c000..0000000
--- a/html/app/views/simple/lorem-dates.php
+++ /dev/null
@@ -1,18 +0,0 @@
-<?php
-function some_date() {
- $dt = new DateTime();
- $dt->setTimestamp(time() - rand(0,30000)*1000 + rand(1,1000) );
-
- // return time() - rand(0,30000)*1000 + rand(1,1000);
- return $dt->format('Y-m-d H:i:s');
-}
-
-
-include 'pythia.php';
-
-$posts = $wiki->latest_posts(0, 900);
-
-foreach($posts as $post) {
- $wiki->set_date($post['id'], some_date());
-}
-echo "done!"; \ No newline at end of file