Changeset 1821


Ignore:
Timestamp:
Feb 15, 2007, 4:03:16 AM (18 years ago)
Author:
rvelices
Message:
  • plugins: added new action user_init
  • put in a new admin_multi_view:allows admins to change on the fly language/theme and view gallery as guest (useful for developers and just to show a 'new' way of using plugins)
  • removed some warnings from history.php and increased table width to 99%
  • remove unused admin language strings
Location:
trunk
Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/history.php

    r1817 r1821  
    259259  $result = pwg_query($query);
    260260  $history_lines = $user_ids = $category_ids = $image_ids = array();
    261   while ($row = mysql_fetch_array($result))
     261  while ($row = mysql_fetch_assoc($result))
    262262  {
    263263    $user_ids[$row['user_id']] = 1;
     
    341341        'IP'        => $line['IP'],
    342342        'IMAGE'     => isset($line['image_id'])
    343           ? $label_of_image[$line['image_id']]
     343          ? ( isset($label_of_image[$line['image_id']])
     344                ? $label_of_image[$line['image_id']]
     345                : 'deleted '.$line['image_id'])
    344346          : $line['image_id'],
    345347        'SECTION'   => $line['section'],
    346348        'CATEGORY'  => isset($line['category_id'])
    347           ? $name_of_category[$line['category_id']]
     349          ? ( isset($name_of_category[$line['category_id']])
     350                ? $name_of_category[$line['category_id']]
     351                : 'deleted '.$line['category_id'] )
    348352          : '',
    349         'TAG'       => $line['tag_ids'],
     353        'TAGS'       => $line['tag_ids'],
    350354        'T_CLASS'   => ($i++ % 2) ? 'row1' : 'row2',
    351355        )
  • trunk/include/user.inc.php

    r1677 r1821  
    7575         );
    7676
     77trigger_action('user_init', $user);
    7778?>
  • trunk/language/en_UK.iso-8859-1/admin.lang.php

    r1806 r1821  
    505505$lang['Advanced_features'] = 'Advanced features';
    506506$lang['Elements_not_linked'] = 'Not linked elements';
    507 
    508507$lang['web_services'] = 'Web services ';
    509508$lang['title_wscheck'] = ' Access management ';
     
    517516$lang['ws_update_legend'] = '  Revoke / Update selected partner access ';
    518517$lang['ws_delete_legend'] = '  Revoke selected partner access ';
    519 //  $lang['ws_default_legend'] = '  Assumed defaults parameters in any missing cases ';
    520 //  $lang['ws_default'] = ' Default ';
    521518$lang['ws_Methods'] = ' Methods ';
    522 //  $lang['ws_requested_nbr'] = ' Number of images per request ';
    523 $lang['ws_random'] = 'Random';                                /* Random order */
    524 $lang['ws_list'] = 'Id list';                /* list on MBt & z0rglub request */
    525 $lang['ws_maxviewed'] = 'Most viewed';          /* hit > 0 and hit desc order */
    526 $lang['ws_recent'] = 'Most recent';     /* recent = Date_available desc order */
    527 $lang['ws_highrated'] = 'Best rated';          /* avg_rate > 0 and desc order */
    528 $lang['ws_oldest'] = 'Oldest';                    /* Date_available asc order */
    529 $lang['ws_lessviewed'] = 'Less viewed';                      /* hit asc order */
    530 $lang['ws_lowrated'] = 'Lowest rated';                  /* avg_rate asc order */
    531 $lang['ws_undescribed'] = 'Undescribed';               /* description missing */
    532 $lang['ws_unnamed'] = 'Unnamed';                          /* new name missing */
    533 $lang['ws_portraits'] = 'Portraits';    /* width < height (portrait oriented) */
    534 $lang['ws_landscapes'] = 'Landscapes'; /* width > height (landscape oriented) */
    535 $lang['ws_squares'] = 'Squares';              /* width ~ height (square form) */
    536 $lang['ws_high_auth'] = ' Authorize high resolution ';
    537 $lang['ws_normal_auth'] = ' Authorize normal size ';
    538519$lang['ws_KeyName'] = ' Partner ';
    539520$lang['ws_Access'] = ' Access ';
     
    546527$lang['ws_Comment'] = ' Comment ';
    547528$lang['ws_disallowed'] = 'This change is disallowed or already done';
    548 //  $lang['Reset filter(s)'] = ' Reset filter(s) ';
    549 //  $lang['New filter(s)'] = ' New filter(s) ';
    550 //  $lang['Not selected / Not confirmed'] = 'Access not selected or unconfirmed action';
    551529$lang['Modify End from Now +'] = 'Modify End from Now + ';
    552 $lang['Free comment, use it to identify your partner clearly'] =
    553       ' Free comment, use it to identify your partner clearly ';
     530$lang['Free comment, use it to identify your partner clearly'] = ' Free comment, use it to identify your partner clearly ';
    554531$lang['Confirmation'] = ' Confirmation ';
    555532$lang['Delete'] = ' Remove ';
     
    558535$lang['Target'] = 'Target';
    559536$lang['Access: see help text for more'] = 'Access: see help text for more';
    560 $lang['Facultative and restrictive option'] =
    561   'Facultative and restrictive option';
     537$lang['Facultative and restrictive option'] = 'Facultative and restrictive option';
    562538$lang['Postponed availability in days'] = 'Postponed availability in days';
    563539$lang['Duration in days'] = 'Duration in days';
    564540$lang['Restrict access to'] = 'Restrict access to';
    565 $lang['High resolution information will be returned to your partner'] =
    566   'High resolution information will be returned to your partner';
    567 $lang['Normal size information will be returned to your partner'] =
    568   'Normal size information will be returned to your partner';
     541$lang['High resolution information will be returned to your partner'] = 'High resolution information will be returned to your partner';
     542$lang['Normal size information will be returned to your partner'] = 'Normal size information will be returned to your partner';
    569543$lang['Returned images limit'] = 'Returned images limit';
    570 $lang['Comment to identify your partner clearly'] =
    571   'Comment to identify your partner clearly';
     544$lang['Comment to identify your partner clearly'] = 'Comment to identify your partner clearly';
    572545$lang['Add this access definition'] = 'Add this access definition';
    573 $lang['Web Services availability duration in days'] =
    574   'Web Services availability duration in days';
     546$lang['Web Services availability duration in days'] = 'Web Services availability duration in days';
    575547$lang['special_admin_menu'] = 'Specials';
    576548$lang['pictures_menu'] = 'Pictures';
  • trunk/language/fr_FR.iso-8859-1/admin.lang.php

    r1806 r1821  
    516516$lang['ws_update_legend'] = '  Supprimer / Modifier l\'accès du partenaire sélectionné ';
    517517$lang['ws_delete_legend'] = '  Supprimer définitivement l\'accès du partenaire sélectionné ';
    518 //  $lang['ws_default_legend'] = '  Valeurs par défaut en situation de paramètre manquant ';
    519 //  $lang['ws_default'] = ' Défauts ';
    520518$lang['ws_Methods'] = ' Méthodes ';
    521 //  $lang['ws_requested_nbr'] = ' Nombre d\'images renvoyées ';
    522 $lang['ws_random'] = 'Aléatoires';                            /* Random order */
    523 $lang['ws_list'] = 'Liste d\'id';            /* list on MBt & z0rglub request */
    524 $lang['ws_maxviewed'] = 'Plus vues';            /* hit > 0 and hit desc order */
    525 $lang['ws_recent'] = 'Plus récentes';   /* recent = Date_available desc order */
    526 $lang['ws_highrated'] = 'Mieux notées';        /* avg_rate > 0 and desc order */
    527 $lang['ws_oldest'] = 'Plus anciennes';            /* Date_available asc order */
    528 $lang['ws_lessviewed'] = 'Moins vues';                       /* hit asc order */
    529 $lang['ws_lowrated'] = 'Moins bien notées';             /* avg_rate asc order */
    530 $lang['ws_undescribed'] = 'Non décrites';              /* description missing */
    531 $lang['ws_unnamed'] = 'Non renommées';                    /* new name missing */
    532 $lang['ws_portraits'] = 'Portraits';    /* width < height (portrait oriented) */
    533 $lang['ws_landscapes'] = 'Paysages';   /* width > height (landscape oriented) */
    534 $lang['ws_squares'] = 'Carrées';              /* width ~ height (square form) */
    535 $lang['ws_high_auth'] = ' Autoriser la haute résolution ';
    536 $lang['ws_normal_auth'] = ' Autoriser la dimension normale ';
    537519$lang['ws_KeyName'] = ' Partenaire ';
    538520$lang['ws_Access'] = ' Access ';
     
    544526$lang['ws_Limit'] = ' Limite ';
    545527$lang['ws_Comment'] = ' Commentaire ';
    546 //  $lang['Reset filter(s)'] = ' Filtres désactivés ';
    547 //  $lang['New filter(s)'] = ' Nouveau(x) filtre(s)activé(s) ';
    548 //  $lang['Not selected / Not confirmed'] = 'Accès non sélectionné ou opération non confirmée';
    549528$lang['Modify End from Now +'] = 'Modifier la Fin par cet instant + ';
    550529$lang['Confirmation'] = ' Confirmation ';
     
    555534$lang['Target'] = 'Cible';
    556535$lang['Access: see help text for more'] = 'Accès: voir l\'aide en ligne';
    557 $lang['Facultative and restrictive option'] =
    558     'Option facultative et restrictive';
     536$lang['Facultative and restrictive option'] = 'Option facultative et restrictive';
    559537$lang['Postponed availability in days'] = 'Report de disponibilité en jours';
    560538$lang['Duration in days'] = 'Durée en jours';
    561539$lang['Restrict access to'] = 'Accès restreint à';
    562 $lang['High resolution information will be returned to your partner'] =
    563     'Les informations de la haute résolution seront transmises' .
    564     ' à votre partenaire';
    565 $lang['Normal size information will be returned to your partner'] =
    566     'Les informations de l\'image normale seront transmises à votre partenaire';
     540$lang['High resolution information will be returned to your partner'] = 'Les informations de la haute résolution seront transmises à votre partenaire';
     541$lang['Normal size information will be returned to your partner'] = 'Les informations de l\'image normale seront transmises à votre partenaire';
    567542$lang['Returned images limit'] = 'Limite de transmision';
    568 $lang['Comment to identify your partner clearly'] =
    569    'Commentaire vous permettant d\'identifier votre partenaire facilement';
     543$lang['Comment to identify your partner clearly'] = 'Commentaire vous permettant d\'identifier votre partenaire facilement';
    570544$lang['Add this access definition']= 'Ajouter cette définition d\'accès';
    571 $lang['Web Services availability duration in days'] =
    572    'Durée d\'ouverture des Services Web en jours';
     545$lang['Web Services availability duration in days'] = 'Durée d\'ouverture des Services Web en jours';
    573546$lang['special_admin_menu'] = 'Spécials';
    574547$lang['pictures_menu'] = 'Images';
     
    577550$lang['note_check_more_info_forum'] = 'le forum';
    578551$lang['note_check_more_info_wiki'] = 'le wiki';
    579 $lang['Duplicates'] = 'Fichiers portant le même nom dans plusieurs' .
    580     ' catégories physiques';
     552$lang['Duplicates'] = 'Fichiers portant le même nom dans plusieurs catégories physiques';
    581553$lang['DEMO'] = 'DÉMO';
    582554$lang['HOME'] = 'ACCUEIL PWG';
  • trunk/template/yoga/admin/default-layout.css

    r1729 r1821  
    3636
    3737TABLE#detailedStats {
    38   width: 80%;
     38  width: 99%;
    3939}
    4040
Note: See TracChangeset for help on using the changeset viewer.