Changeset 6051 for trunk/admin/photos_add_direct.php
- Timestamp:
- May 3, 2010, 11:56:22 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/photos_add_direct.php
r6025 r6051 445 445 $setup_errors = array(); 446 446 447 $upload_base_dir = 'upload'; 448 $upload_dir = PHPWG_ROOT_PATH.$upload_base_dir; 449 450 if (!is_dir($upload_dir)) 451 { 452 if (!is_writable(PHPWG_ROOT_PATH)) 453 { 454 array_push( 455 $setup_errors, 456 sprintf( 457 l10n('Create the "%s" directory at the root of your Piwigo installation'), 458 $upload_base_dir 459 ) 460 ); 461 } 462 } 463 else 464 { 465 if (!is_writable($upload_dir)) 466 { 467 @chmod($upload_dir, 0777); 468 469 if (!is_writable($upload_dir)) 470 { 471 array_push( 472 $setup_errors, 473 sprintf( 474 l10n('Give write access (chmod 777) to "%s" directory at the root of your Piwigo installation'), 475 $upload_base_dir 476 ) 477 ); 478 } 479 } 447 $error_message = ready_for_upload_message(); 448 if (!empty($error_message)) 449 { 450 array_push($setup_errors, $error_message); 480 451 } 481 452
Note: See TracChangeset
for help on using the changeset viewer.