| @@ 155-160 (lines=6) @@ | ||
| 152 | ||
| 153 | // 6) Make files and folders |
|
| 154 | $dir = XOOPS_ROOT_PATH . '/uploads/news'; |
|
| 155 | if (!is_dir($dir)) { |
|
| 156 | mkdir($dir); |
|
| 157 | chmod($dir, 0777); |
|
| 158 | } elseif (!is_writable($dir)) { |
|
| 159 | chmod($dir, 0777); |
|
| 160 | } |
|
| 161 | ||
| 162 | $dir = XOOPS_ROOT_PATH . '/uploads/news/file'; |
|
| 163 | if (!is_dir($dir)) { |
|
| @@ 163-168 (lines=6) @@ | ||
| 160 | } |
|
| 161 | ||
| 162 | $dir = XOOPS_ROOT_PATH . '/uploads/news/file'; |
|
| 163 | if (!is_dir($dir)) { |
|
| 164 | mkdir($dir); |
|
| 165 | chmod($dir, 0777); |
|
| 166 | } elseif (!is_writable($dir)) { |
|
| 167 | chmod($dir, 0777); |
|
| 168 | } |
|
| 169 | ||
| 170 | $dir = XOOPS_ROOT_PATH . '/uploads/news/image'; |
|
| 171 | if (!is_dir($dir)) { |
|
| @@ 171-176 (lines=6) @@ | ||
| 168 | } |
|
| 169 | ||
| 170 | $dir = XOOPS_ROOT_PATH . '/uploads/news/image'; |
|
| 171 | if (!is_dir($dir)) { |
|
| 172 | mkdir($dir); |
|
| 173 | chmod($dir, 0777); |
|
| 174 | } elseif (!is_writable($dir)) { |
|
| 175 | chmod($dir, 0777); |
|
| 176 | } |
|
| 177 | ||
| 178 | // Copy index.html files on uploads folders |
|
| 179 | $indexFile = XOOPS_ROOT_PATH . '/modules/news/include/index.html'; |
|