diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | files/2022/12/10-c067078.png | bin | 94005 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/12-da0864c.jpg | bin | 72022 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/13-1612d57.jpg | bin | 49606 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/13-8b2031d.jpg | bin | 4243895 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/13-eae0c26.gif | bin | 2044842 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/6-1612d57.jpg | bin | 49606 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/6-426ace2.gif | bin | 15975 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/6-da0864c.jpg | bin | 72022 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/6-eae0c26.gif | bin | 2044842 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/7-435f1c5.jpg | bin | 146075 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/7-597815d.jpg | bin | 63967 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/7-5e1af8d.jpg | bin | 18883 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/7-98e0953.png | bin | 8103 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/7-da0864c.jpg | bin | 72022 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/8-20572ca.jpg | bin | 157923 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/8-5e1af8d.jpg | bin | 18883 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/8-da0864c.jpg | bin | 72022 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/81-5e1af8d.jpg | bin | 18883 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/81-da0864c.jpg | bin | 72022 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/82-506df72.jpg | bin | 3020458 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/83-5e1af8d.jpg | bin | 18883 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/83-da0864c.jpg | bin | 72022 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/84-5e1af8d.jpg | bin | 18883 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/85-5e1af8d.jpg | bin | 18883 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/85-da0864c.jpg | bin | 72022 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/86-da0864c.jpg | bin | 72022 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/87-da0864c.jpg | bin | 72022 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/88-5e1af8d.jpg | bin | 18883 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/89-5e1af8d.jpg | bin | 18883 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/9-5e1af8d.jpg | bin | 18883 -> 0 bytes | |||
-rw-r--r-- | files/2022/12/9-da0864c.jpg | bin | 72022 -> 0 bytes | |||
-rw-r--r-- | lib/functions.php | 4 |
33 files changed, 5 insertions, 0 deletions
@@ -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 Binary files differdeleted file mode 100644 index 621b565..0000000 --- a/files/2022/12/10-c067078.png +++ /dev/null diff --git a/files/2022/12/12-da0864c.jpg b/files/2022/12/12-da0864c.jpg Binary files differdeleted file mode 100644 index b4195d3..0000000 --- a/files/2022/12/12-da0864c.jpg +++ /dev/null diff --git a/files/2022/12/13-1612d57.jpg b/files/2022/12/13-1612d57.jpg Binary files differdeleted file mode 100644 index 0913630..0000000 --- a/files/2022/12/13-1612d57.jpg +++ /dev/null diff --git a/files/2022/12/13-8b2031d.jpg b/files/2022/12/13-8b2031d.jpg Binary files differdeleted file mode 100644 index b2071b9..0000000 --- a/files/2022/12/13-8b2031d.jpg +++ /dev/null diff --git a/files/2022/12/13-eae0c26.gif b/files/2022/12/13-eae0c26.gif Binary files differdeleted file mode 100644 index 8e66b5c..0000000 --- a/files/2022/12/13-eae0c26.gif +++ /dev/null diff --git a/files/2022/12/6-1612d57.jpg b/files/2022/12/6-1612d57.jpg Binary files differdeleted file mode 100644 index 0913630..0000000 --- a/files/2022/12/6-1612d57.jpg +++ /dev/null diff --git a/files/2022/12/6-426ace2.gif b/files/2022/12/6-426ace2.gif Binary files differdeleted file mode 100644 index 4f0665e..0000000 --- a/files/2022/12/6-426ace2.gif +++ /dev/null diff --git a/files/2022/12/6-da0864c.jpg b/files/2022/12/6-da0864c.jpg Binary files differdeleted file mode 100644 index b4195d3..0000000 --- a/files/2022/12/6-da0864c.jpg +++ /dev/null diff --git a/files/2022/12/6-eae0c26.gif b/files/2022/12/6-eae0c26.gif Binary files differdeleted file mode 100644 index 8e66b5c..0000000 --- a/files/2022/12/6-eae0c26.gif +++ /dev/null diff --git a/files/2022/12/7-435f1c5.jpg b/files/2022/12/7-435f1c5.jpg Binary files differdeleted file mode 100644 index 9a52ca4..0000000 --- a/files/2022/12/7-435f1c5.jpg +++ /dev/null diff --git a/files/2022/12/7-597815d.jpg b/files/2022/12/7-597815d.jpg Binary files differdeleted file mode 100644 index 22a7820..0000000 --- a/files/2022/12/7-597815d.jpg +++ /dev/null diff --git a/files/2022/12/7-5e1af8d.jpg b/files/2022/12/7-5e1af8d.jpg Binary files differdeleted file mode 100644 index a564f0e..0000000 --- a/files/2022/12/7-5e1af8d.jpg +++ /dev/null diff --git a/files/2022/12/7-98e0953.png b/files/2022/12/7-98e0953.png Binary files differdeleted file mode 100644 index ea839ff..0000000 --- a/files/2022/12/7-98e0953.png +++ /dev/null diff --git a/files/2022/12/7-da0864c.jpg b/files/2022/12/7-da0864c.jpg Binary files differdeleted file mode 100644 index b4195d3..0000000 --- a/files/2022/12/7-da0864c.jpg +++ /dev/null diff --git a/files/2022/12/8-20572ca.jpg b/files/2022/12/8-20572ca.jpg Binary files differdeleted file mode 100644 index d93a2d6..0000000 --- a/files/2022/12/8-20572ca.jpg +++ /dev/null diff --git a/files/2022/12/8-5e1af8d.jpg b/files/2022/12/8-5e1af8d.jpg Binary files differdeleted file mode 100644 index a564f0e..0000000 --- a/files/2022/12/8-5e1af8d.jpg +++ /dev/null diff --git a/files/2022/12/8-da0864c.jpg b/files/2022/12/8-da0864c.jpg Binary files differdeleted file mode 100644 index b4195d3..0000000 --- a/files/2022/12/8-da0864c.jpg +++ /dev/null diff --git a/files/2022/12/81-5e1af8d.jpg b/files/2022/12/81-5e1af8d.jpg Binary files differdeleted file mode 100644 index a564f0e..0000000 --- a/files/2022/12/81-5e1af8d.jpg +++ /dev/null diff --git a/files/2022/12/81-da0864c.jpg b/files/2022/12/81-da0864c.jpg Binary files differdeleted file mode 100644 index b4195d3..0000000 --- a/files/2022/12/81-da0864c.jpg +++ /dev/null diff --git a/files/2022/12/82-506df72.jpg b/files/2022/12/82-506df72.jpg Binary files differdeleted file mode 100644 index d0b1bfe..0000000 --- a/files/2022/12/82-506df72.jpg +++ /dev/null diff --git a/files/2022/12/83-5e1af8d.jpg b/files/2022/12/83-5e1af8d.jpg Binary files differdeleted file mode 100644 index a564f0e..0000000 --- a/files/2022/12/83-5e1af8d.jpg +++ /dev/null diff --git a/files/2022/12/83-da0864c.jpg b/files/2022/12/83-da0864c.jpg Binary files differdeleted file mode 100644 index b4195d3..0000000 --- a/files/2022/12/83-da0864c.jpg +++ /dev/null diff --git a/files/2022/12/84-5e1af8d.jpg b/files/2022/12/84-5e1af8d.jpg Binary files differdeleted file mode 100644 index a564f0e..0000000 --- a/files/2022/12/84-5e1af8d.jpg +++ /dev/null diff --git a/files/2022/12/85-5e1af8d.jpg b/files/2022/12/85-5e1af8d.jpg Binary files differdeleted file mode 100644 index a564f0e..0000000 --- a/files/2022/12/85-5e1af8d.jpg +++ /dev/null diff --git a/files/2022/12/85-da0864c.jpg b/files/2022/12/85-da0864c.jpg Binary files differdeleted file mode 100644 index b4195d3..0000000 --- a/files/2022/12/85-da0864c.jpg +++ /dev/null diff --git a/files/2022/12/86-da0864c.jpg b/files/2022/12/86-da0864c.jpg Binary files differdeleted file mode 100644 index b4195d3..0000000 --- a/files/2022/12/86-da0864c.jpg +++ /dev/null diff --git a/files/2022/12/87-da0864c.jpg b/files/2022/12/87-da0864c.jpg Binary files differdeleted file mode 100644 index b4195d3..0000000 --- a/files/2022/12/87-da0864c.jpg +++ /dev/null diff --git a/files/2022/12/88-5e1af8d.jpg b/files/2022/12/88-5e1af8d.jpg Binary files differdeleted file mode 100644 index a564f0e..0000000 --- a/files/2022/12/88-5e1af8d.jpg +++ /dev/null diff --git a/files/2022/12/89-5e1af8d.jpg b/files/2022/12/89-5e1af8d.jpg Binary files differdeleted file mode 100644 index a564f0e..0000000 --- a/files/2022/12/89-5e1af8d.jpg +++ /dev/null diff --git a/files/2022/12/9-5e1af8d.jpg b/files/2022/12/9-5e1af8d.jpg Binary files differdeleted file mode 100644 index a564f0e..0000000 --- a/files/2022/12/9-5e1af8d.jpg +++ /dev/null diff --git a/files/2022/12/9-da0864c.jpg b/files/2022/12/9-da0864c.jpg Binary files differdeleted file mode 100644 index b4195d3..0000000 --- a/files/2022/12/9-da0864c.jpg +++ /dev/null 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); } |