Changeset 1705:0f4123c4d1c5 for admin/index.php
- Timestamp:
- 09/03/13 19:12:39 (11 years ago)
- Branch:
- ticket #1406-2
- Children:
- 1706:ceda30178c06, 1707:0210876ac75e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/index.php
r1591 r1705 228 228 229 229 # Check cache directory 230 if (!is_dir(DC_TPL_CACHE)) { 231 $err[] = '<p>'.sprintf(__('Cache directory %s does not exist.'),DC_TPL_CACHE).'</p>'; 232 } else if (!is_writable(DC_TPL_CACHE)) { 233 $err[] = '<p>'.sprintf(__('Cache directory %s is not writable.'),DC_TPL_CACHE).'</p>'; 230 if ( $core->auth->isSuperAdmin() ) { 231 if (!is_dir(DC_TPL_CACHE) || !is_writable(DC_TPL_CACHE)) { 232 $err[] = '<p>'.__("Dotclear needs a directory write cache to function properly. You need to create a designated area in the line \"DC_TPL_CACHE\" in the file inc/config.php in your system and assign rights to read, write and execute for everyone.").'</p>'; 233 } 234 } else { 235 if (!is_dir(DC_TPL_CACHE) || !is_writable(DC_TPL_CACHE)) { 236 $err[] = '<p>'.__("Dotclear needs a directory write cache to function properly. You must contact your administrator.").'</p>'; 237 } 234 238 } 235 239 236 240 # Check public directory 237 if (!is_dir($core->blog->public_path)) { 238 $err[] = '<p>'.sprintf(__('Directory %s does not exist.'),$core->blog->public_path).'</p>'; 239 } else if (!is_writable($core->blog->public_path)) { 240 $err[] = '<p>'.sprintf(__('Directory %s is not writable.'),$core->blog->public_path).'</p>'; 241 if ( $core->auth->isSuperAdmin() ) { 242 if (!is_dir($core->blog->public_path) || !is_writable($core->blog->public_path)) { 243 $err[] = '<p>'.__("There is no directory /public/ write to the location indicated in about:config \"public_path\". You must create this directory in the specified location, or change the settings and assign permissions to read, write and execute for everyone.").'</p>'; 244 } 245 } else { 246 if (!is_dir($core->blog->public_path) || !is_writable($core->blog->public_path)) { 247 $err[] = '<p>'.__("There is no directory /public/ write to the location indicated in about:config \"public_path\". You must contact your administrator.").'</p>'; 248 } 241 249 } 242 250
Note: See TracChangeset
for help on using the changeset viewer.