aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--files/2022/12/10-c067078.pngbin94005 -> 0 bytes
-rw-r--r--files/2022/12/12-da0864c.jpgbin72022 -> 0 bytes
-rw-r--r--files/2022/12/13-1612d57.jpgbin49606 -> 0 bytes
-rw-r--r--files/2022/12/13-8b2031d.jpgbin4243895 -> 0 bytes
-rw-r--r--files/2022/12/13-eae0c26.gifbin2044842 -> 0 bytes
-rw-r--r--files/2022/12/6-1612d57.jpgbin49606 -> 0 bytes
-rw-r--r--files/2022/12/6-426ace2.gifbin15975 -> 0 bytes
-rw-r--r--files/2022/12/6-da0864c.jpgbin72022 -> 0 bytes
-rw-r--r--files/2022/12/6-eae0c26.gifbin2044842 -> 0 bytes
-rw-r--r--files/2022/12/7-435f1c5.jpgbin146075 -> 0 bytes
-rw-r--r--files/2022/12/7-597815d.jpgbin63967 -> 0 bytes
-rw-r--r--files/2022/12/7-5e1af8d.jpgbin18883 -> 0 bytes
-rw-r--r--files/2022/12/7-98e0953.pngbin8103 -> 0 bytes
-rw-r--r--files/2022/12/7-da0864c.jpgbin72022 -> 0 bytes
-rw-r--r--files/2022/12/8-20572ca.jpgbin157923 -> 0 bytes
-rw-r--r--files/2022/12/8-5e1af8d.jpgbin18883 -> 0 bytes
-rw-r--r--files/2022/12/8-da0864c.jpgbin72022 -> 0 bytes
-rw-r--r--files/2022/12/81-5e1af8d.jpgbin18883 -> 0 bytes
-rw-r--r--files/2022/12/81-da0864c.jpgbin72022 -> 0 bytes
-rw-r--r--files/2022/12/82-506df72.jpgbin3020458 -> 0 bytes
-rw-r--r--files/2022/12/83-5e1af8d.jpgbin18883 -> 0 bytes
-rw-r--r--files/2022/12/83-da0864c.jpgbin72022 -> 0 bytes
-rw-r--r--files/2022/12/84-5e1af8d.jpgbin18883 -> 0 bytes
-rw-r--r--files/2022/12/85-5e1af8d.jpgbin18883 -> 0 bytes
-rw-r--r--files/2022/12/85-da0864c.jpgbin72022 -> 0 bytes
-rw-r--r--files/2022/12/86-da0864c.jpgbin72022 -> 0 bytes
-rw-r--r--files/2022/12/87-da0864c.jpgbin72022 -> 0 bytes
-rw-r--r--files/2022/12/88-5e1af8d.jpgbin18883 -> 0 bytes
-rw-r--r--files/2022/12/89-5e1af8d.jpgbin18883 -> 0 bytes
-rw-r--r--files/2022/12/9-5e1af8d.jpgbin18883 -> 0 bytes
-rw-r--r--files/2022/12/9-da0864c.jpgbin72022 -> 0 bytes
-rw-r--r--lib/functions.php4
33 files changed, 5 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index f01906f..1dd4d73 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,5 @@
config.php
feed.*
feeds/
+files/
log.txt
diff --git a/files/2022/12/10-c067078.png b/files/2022/12/10-c067078.png
deleted file mode 100644
index 621b565..0000000
--- a/files/2022/12/10-c067078.png
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/12-da0864c.jpg b/files/2022/12/12-da0864c.jpg
deleted file mode 100644
index b4195d3..0000000
--- a/files/2022/12/12-da0864c.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/13-1612d57.jpg b/files/2022/12/13-1612d57.jpg
deleted file mode 100644
index 0913630..0000000
--- a/files/2022/12/13-1612d57.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/13-8b2031d.jpg b/files/2022/12/13-8b2031d.jpg
deleted file mode 100644
index b2071b9..0000000
--- a/files/2022/12/13-8b2031d.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/13-eae0c26.gif b/files/2022/12/13-eae0c26.gif
deleted file mode 100644
index 8e66b5c..0000000
--- a/files/2022/12/13-eae0c26.gif
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/6-1612d57.jpg b/files/2022/12/6-1612d57.jpg
deleted file mode 100644
index 0913630..0000000
--- a/files/2022/12/6-1612d57.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/6-426ace2.gif b/files/2022/12/6-426ace2.gif
deleted file mode 100644
index 4f0665e..0000000
--- a/files/2022/12/6-426ace2.gif
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/6-da0864c.jpg b/files/2022/12/6-da0864c.jpg
deleted file mode 100644
index b4195d3..0000000
--- a/files/2022/12/6-da0864c.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/6-eae0c26.gif b/files/2022/12/6-eae0c26.gif
deleted file mode 100644
index 8e66b5c..0000000
--- a/files/2022/12/6-eae0c26.gif
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/7-435f1c5.jpg b/files/2022/12/7-435f1c5.jpg
deleted file mode 100644
index 9a52ca4..0000000
--- a/files/2022/12/7-435f1c5.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/7-597815d.jpg b/files/2022/12/7-597815d.jpg
deleted file mode 100644
index 22a7820..0000000
--- a/files/2022/12/7-597815d.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/7-5e1af8d.jpg b/files/2022/12/7-5e1af8d.jpg
deleted file mode 100644
index a564f0e..0000000
--- a/files/2022/12/7-5e1af8d.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/7-98e0953.png b/files/2022/12/7-98e0953.png
deleted file mode 100644
index ea839ff..0000000
--- a/files/2022/12/7-98e0953.png
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/7-da0864c.jpg b/files/2022/12/7-da0864c.jpg
deleted file mode 100644
index b4195d3..0000000
--- a/files/2022/12/7-da0864c.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/8-20572ca.jpg b/files/2022/12/8-20572ca.jpg
deleted file mode 100644
index d93a2d6..0000000
--- a/files/2022/12/8-20572ca.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/8-5e1af8d.jpg b/files/2022/12/8-5e1af8d.jpg
deleted file mode 100644
index a564f0e..0000000
--- a/files/2022/12/8-5e1af8d.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/8-da0864c.jpg b/files/2022/12/8-da0864c.jpg
deleted file mode 100644
index b4195d3..0000000
--- a/files/2022/12/8-da0864c.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/81-5e1af8d.jpg b/files/2022/12/81-5e1af8d.jpg
deleted file mode 100644
index a564f0e..0000000
--- a/files/2022/12/81-5e1af8d.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/81-da0864c.jpg b/files/2022/12/81-da0864c.jpg
deleted file mode 100644
index b4195d3..0000000
--- a/files/2022/12/81-da0864c.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/82-506df72.jpg b/files/2022/12/82-506df72.jpg
deleted file mode 100644
index d0b1bfe..0000000
--- a/files/2022/12/82-506df72.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/83-5e1af8d.jpg b/files/2022/12/83-5e1af8d.jpg
deleted file mode 100644
index a564f0e..0000000
--- a/files/2022/12/83-5e1af8d.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/83-da0864c.jpg b/files/2022/12/83-da0864c.jpg
deleted file mode 100644
index b4195d3..0000000
--- a/files/2022/12/83-da0864c.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/84-5e1af8d.jpg b/files/2022/12/84-5e1af8d.jpg
deleted file mode 100644
index a564f0e..0000000
--- a/files/2022/12/84-5e1af8d.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/85-5e1af8d.jpg b/files/2022/12/85-5e1af8d.jpg
deleted file mode 100644
index a564f0e..0000000
--- a/files/2022/12/85-5e1af8d.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/85-da0864c.jpg b/files/2022/12/85-da0864c.jpg
deleted file mode 100644
index b4195d3..0000000
--- a/files/2022/12/85-da0864c.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/86-da0864c.jpg b/files/2022/12/86-da0864c.jpg
deleted file mode 100644
index b4195d3..0000000
--- a/files/2022/12/86-da0864c.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/87-da0864c.jpg b/files/2022/12/87-da0864c.jpg
deleted file mode 100644
index b4195d3..0000000
--- a/files/2022/12/87-da0864c.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/88-5e1af8d.jpg b/files/2022/12/88-5e1af8d.jpg
deleted file mode 100644
index a564f0e..0000000
--- a/files/2022/12/88-5e1af8d.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/89-5e1af8d.jpg b/files/2022/12/89-5e1af8d.jpg
deleted file mode 100644
index a564f0e..0000000
--- a/files/2022/12/89-5e1af8d.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/9-5e1af8d.jpg b/files/2022/12/9-5e1af8d.jpg
deleted file mode 100644
index a564f0e..0000000
--- a/files/2022/12/9-5e1af8d.jpg
+++ /dev/null
Binary files differ
diff --git a/files/2022/12/9-da0864c.jpg b/files/2022/12/9-da0864c.jpg
deleted file mode 100644
index b4195d3..0000000
--- a/files/2022/12/9-da0864c.jpg
+++ /dev/null
Binary files differ
diff --git a/lib/functions.php b/lib/functions.php
index e606230..97c93fe 100644
--- a/lib/functions.php
+++ b/lib/functions.php
@@ -304,6 +304,10 @@ function save_file($filename, $extension, $tmp_file, $post_id, $mime='') {
'file_timestamp' => time()
];
+ if(!is_dir($files_dir)) {
+ mkdir($files_dir, 0755);
+ }
+
if(!is_dir($files_dir.DS.$insert['file_dir'])) {
mkdir($files_dir.DS.$insert['file_dir'], 0755);
}