| @@ 149-154 (lines=6) @@ | ||
| 146 | ||
| 147 | // cache writable? |
|
| 148 | echo strip_tags($_lang['checking_if_cache_writable']); |
|
| 149 | if (!is_writable("../assets/cache")) { |
|
| 150 | $errors++; |
|
| 151 | echo $_lang['failed'] . PHP_EOL; |
|
| 152 | } else { |
|
| 153 | echo $_lang['ok'] . PHP_EOL; |
|
| 154 | } |
|
| 155 | ||
| 156 | ||
| 157 | // cache files writable? |
|
| @@ 163-168 (lines=6) @@ | ||
| 160 | if ( ! file_exists($tmp)) { |
|
| 161 | f_owc($tmp, "<?php //EVO site cache file ?>"); |
|
| 162 | } |
|
| 163 | if ( ! is_writable($tmp)) { |
|
| 164 | $errors++; |
|
| 165 | echo $_lang['failed'] . PHP_EOL; |
|
| 166 | } else { |
|
| 167 | echo $_lang['ok'] . PHP_EOL; |
|
| 168 | } |
|
| 169 | ||
| 170 | ||
| 171 | echo strip_tags($_lang['checking_if_cache_file2_writable']); |
|
| @@ 172-177 (lines=6) @@ | ||
| 169 | ||
| 170 | ||
| 171 | echo strip_tags($_lang['checking_if_cache_file2_writable']); |
|
| 172 | if ( ! is_writable("../assets/cache/sitePublishing.idx.php")) { |
|
| 173 | $errors++; |
|
| 174 | echo $_lang['failed'] . PHP_EOL; |
|
| 175 | } else { |
|
| 176 | echo $_lang['ok'] . PHP_EOL; |
|
| 177 | } |
|
| 178 | ||
| 179 | ||
| 180 | // File Browser directories exists? |
|
| @@ 212-217 (lines=6) @@ | ||
| 209 | ||
| 210 | // export exists? |
|
| 211 | echo strip_tags($_lang['checking_if_export_exists']); |
|
| 212 | if (!file_exists("../assets/export")) { |
|
| 213 | echo $_lang['failed'] . PHP_EOL; |
|
| 214 | $errors++; |
|
| 215 | } else { |
|
| 216 | echo $_lang['ok'] . PHP_EOL; |
|
| 217 | } |
|
| 218 | ||
| 219 | ||
| 220 | // export writable? |
|
| @@ 222-227 (lines=6) @@ | ||
| 219 | ||
| 220 | // export writable? |
|
| 221 | echo strip_tags($_lang['checking_if_export_writable']); |
|
| 222 | if (!is_writable("../assets/export")) { |
|
| 223 | echo $_lang['failed'] . PHP_EOL; |
|
| 224 | $errors++; |
|
| 225 | } else { |
|
| 226 | echo $_lang['ok'] . PHP_EOL; |
|
| 227 | } |
|
| 228 | ||
| 229 | ||
| 230 | // config.inc.php writable? |
|
| @@ 239-244 (lines=6) @@ | ||
| 236 | @chmod($tmp, 0666); |
|
| 237 | } |
|
| 238 | $isWriteable = is_writable($tmp); |
|
| 239 | if (!$isWriteable) { |
|
| 240 | $errors++; |
|
| 241 | echo $_lang['failed'] . PHP_EOL; |
|
| 242 | } else { |
|
| 243 | echo $_lang['ok'] . PHP_EOL; |
|
| 244 | } |
|
| 245 | ||
| 246 | ||
| 247 | // connect to the database |
|