Changeset 1058 for trunk/admin/site_update.php
- Timestamp:
- Feb 28, 2006, 2:13:16 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/site_update.php
-
Property
svn:eol-style
set to
native
r1033 r1058 51 51 52 52 $error_labels = array( 53 'PWG-UPDATE-1' => array( l10n('update_wrong_dirname_short'), 53 'PWG-UPDATE-1' => array( l10n('update_wrong_dirname_short'), 54 54 l10n('update_wrong_dirname_info') ), 55 55 'PWG-UPDATE-2' => array( l10n('update_missing_tn_short'), 56 l10n('update_missing_tn_info') 56 l10n('update_missing_tn_info') 57 57 . implode(',', $conf['picture_ext']) ), 58 'PWG-ERROR-NO-FS' => array( l10n(' Does not exist'),58 'PWG-ERROR-NO-FS' => array( l10n('update_missing_file_or_dir'), 59 59 l10n('update_missing_file_or_dir_info')), 60 'PWG-ERROR-VERSION' => array( l10n(' Invalid PhpWebGalley version'),61 l10n('update_ pwg_version_differs_info')),62 'PWG-ERROR-NOLISTING' => array( l10n(' remote_site_listing_not_found'),63 l10n(' remote_site_listing_not_found_info'))60 'PWG-ERROR-VERSION' => array( l10n('update_err_pwg_version_differs'), 61 l10n('update_err_pwg_version_differs_info')), 62 'PWG-ERROR-NOLISTING' => array( l10n('update_err_remote_listing_not_found'), 63 l10n('update_err_remote_listing_not_found_info')) 64 64 ); 65 65 $errors = array(); … … 409 409 $insert{'date_available'} = CURRENT_DATE; 410 410 $insert{'tn_ext'} = $fs[$path]['tn_ext']; 411 $insert{'has_high'} = $fs[$path]['has_high']; 411 if ( isset($fs[$path]['has_high']) ) 412 { 413 $insert{'has_high'} = $fs[$path]['has_high']; 414 } 415 else 416 { 417 $insert{'has_high'} = null; 418 } 412 419 $insert{'path'} = $path; 413 420 … … 431 438 $insert{'date_available'} = CURRENT_DATE; 432 439 $insert{'has_high'} = $fs[$path]['has_high']; 440 if ( isset($fs[$path]['has_high']) ) 441 { 442 $insert{'has_high'} = $fs[$path]['has_high']; 443 } 444 else 445 { 446 $insert{'has_high'} = null; 447 } 433 448 $insert{'path'} = $path; 434 449 … … 525 540 foreach ($fields['update'] as $field) 526 541 { 527 $data[$field] = getAttribute($row['infos'], $field);542 $data[$field] = addslashes( getAttribute($row['infos'], $field) ); 528 543 } 529 544 … … 582 597 // | synchronize metadata | 583 598 // +-----------------------------------------------------------------------+ 584 if (isset($_POST['submit']) and preg_match('/^metadata/', $_POST['sync']) 599 if (isset($_POST['submit']) and preg_match('/^metadata/', $_POST['sync']) 585 600 and !$general_failure) 586 601 { … … 643 658 mass_updates(IMAGES_TABLE, $fields, $datas); 644 659 } 645 660 646 661 echo '<!-- metadata update : '; 647 662 echo get_elapsed_time($start, get_moment()); … … 672 687 if ($site_is_remote and !isset($_POST['submit']) ) 673 688 { 674 $used_metadata.= ' + ' . l10n('Aditionnal remote attributes');689 $used_metadata.= ' + ...'; 675 690 } 676 691 -
Property
svn:eol-style
set to
Note: See TracChangeset
for help on using the changeset viewer.