From 68fc9e55e538e03f94509731ab41a0c8cf96710f Mon Sep 17 00:00:00 2001
From: George Halkiadakis
Date: Mon, 17 Apr 2023 12:12:22 +0300
Subject: setup a real server environment (apache DocumentRoot=/var/www/public)
---
html/app/views/simple/lorem-posts.php | 93 -----------------------------------
1 file changed, 93 deletions(-)
delete mode 100644 html/app/views/simple/lorem-posts.php
(limited to 'html/app/views/simple/lorem-posts.php')
diff --git a/html/app/views/simple/lorem-posts.php b/html/app/views/simple/lorem-posts.php
deleted file mode 100644
index 5f7fccb..0000000
--- a/html/app/views/simple/lorem-posts.php
+++ /dev/null
@@ -1,93 +0,0 @@
-". $lorem[$i] ."
";
- }
-
- return $html;
-}
-
-function some_lorem_title() {
- // make an array of
- $lorem = explode(".", // sentences only
- str_replace(". ", ".",
- implode(" ", LOREM) // made from all Lorem-ipsums
- )
- );
- shuffle($lorem);
- return $lorem[0];
-}
-
-
-include 'pythia.php';
-
-
-$categories = $wiki->get_categories();
-
-$non_root = [];
-foreach($categories as $node) {
- if (intval($node['parent_id']) > 0) { $non_root[] = $node['id']; }
- // if (intval($node['parent_id']) > 5) { $non_root[] = $node['id']; }
-}
-// print_r($non_root); die();
-
-echo "";
-for( $i = 0 ; $i < 250 ; $i++ ) {
-
- $temp = $non_root;
- shuffle($temp);
-
- $post = [
- 'title' => some_lorem_title(),
- 'category' => intval($temp[0]),
- 'body' => some_lorem_html()
- ];
- print_r($post);
-
- $wiki->add_post($post);
-}
-echo "";
\ No newline at end of file
--
cgit v1.2.3