Ignore:
Timestamp:
Feb 28, 2006, 2:13:16 AM (18 years ago)
Author:
rvelices
Message:

remake of Remote sites and synchronize: final integration and old code cleanup

fix: xml getAttribute always decodes html entities and added encodeAttribute
function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/site_manager.php

    • Property svn:eol-style set to native
    r1033 r1058  
    6464  else
    6565  {
    66     array_push($page['errors'], l10n('remote_site_file_not_found'));
     66    array_push($page['errors'], l10n('site_err_remote_file_not_found'));
    6767  }
    6868}
     
    100100  {
    101101    array_push($page['errors'],
    102       l10n('remote_site_already_exists').' ['.$url.']');
     102      l10n('site_already_exists').' ['.$url.']');
    103103  }
    104104  if (count($page['errors']) == 0)
     
    115115        {
    116116          array_push($page['errors'],
    117                      l10n('remote_site_error').' : '.$first_line);
     117                     l10n('site_err').' : '.$first_line);
    118118        }
    119119      }
    120120      else
    121121      {
    122         array_push($page['errors'], l10n('remote_site_file_not_found') );
     122        array_push($page['errors'], l10n('site_err_remote_file_not_found') );
    123123      }
    124124    }
     
    143143    pwg_query($query);
    144144    array_push($page['infos'],
    145                $url.' '.l10n('remote_site_created'));
     145               $url.' '.l10n('site_created'));
    146146  }
    147147}
     
    189189      delete_site($page['site']);
    190190      array_push($page['infos'],
    191                  $galleries_url.' '.l10n('remote_site_deleted'));
     191                 $galleries_url.' '.l10n('site_deleted'));
    192192      break;
    193193    }
     
    197197$template->assign_vars( array(
    198198  'F_ACTION' => PHPWG_ROOT_PATH.'admin.php'
    199                 .get_query_string_diff( array('action','site') ) 
     199                .get_query_string_diff( array('action','site') )
    200200  ) );
    201  
     201
    202202// +-----------------------------------------------------------------------+
    203203// |                           remote sites list                           |
     
    227227  $update_url.= '?page=site_update';
    228228  $update_url.= '&site='.$row['id'];
    229 
    230229  $template->assign_block_vars(
    231230    'sites.site',
    232231    array(
    233232      'NAME' => $row['galleries_url'],
    234       'TYPE' => l10n( $is_remote ? 'Remote' : 'Local' ),
     233      'TYPE' => l10n( $is_remote ? 'site_remote' : 'site_local' ),
    235234      'CATEGORIES' => $row['nb_categories'],
    236235      'IMAGES' => isset($row['nb_images']) ? $row['nb_images'] : 0,
    237       'U_UPDATE' => $update_url
     236      'U_SYNCHRONIZE' => $update_url
    238237     )
    239238   );
    240 
    241239   if ($is_remote)
    242240   {
Note: See TracChangeset for help on using the changeset viewer.