From 8ab0da7da22a84b735aff05f40ac57f347a739bd Mon Sep 17 00:00:00 2001 From: vdigital Date: Tue, 12 Aug 2008 20:43:56 +0000 Subject: [PATCH] Admin advices can be easily extended to new advices. Admin advices plugin can be translated like any other plugins. Admin advices plugin has been extended with External summary (a technical and non translated part). Some template cleaning. git-svn-id: http://piwigo.org/svn/trunk@2472 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions.php | 23 +- admin/template/yoga/theme/admin/theme.css | 5 +- language/en_UK/admin.lang.php | 4 +- language/es_ES/admin.lang.php | 4 +- language/fr_FR/admin.lang.php | 2 + language/it_IT/admin.lang.php | 2 + language/nl_NL/admin.lang.php | 4 +- plugins/admin_advices/admin_advices.php | 194 +++++++ plugins/admin_advices/admin_advices.tpl | 80 ++- plugins/admin_advices/adv_set.php | 175 +++++++ plugins/admin_advices/en_UK/lang.adv.php | 447 ---------------- plugins/admin_advices/fr_FR/lang.adv.php | 480 ------------------ .../{ => language}/en_UK/index.php | 0 .../language/en_UK/plugin.lang.php | 157 ++++++ .../{fr_FR => language/es_ES}/index.php | 0 .../language/es_ES/plugin.lang.php | 157 ++++++ .../admin_advices/language/fr_FR}/index.php | 0 .../language/fr_FR/plugin.lang.php | 159 ++++++ plugins/admin_advices/language/index.php | 30 ++ .../admin_advices/language/it_IT/index.php | 30 ++ .../language/it_IT/plugin.lang.php | 157 ++++++ plugins/admin_advices/main.inc.php | 97 +--- template/yoga/admin.tpl | 103 ---- template/yoga/admin/advanced_feature.tpl | 13 - template/yoga/admin/cat_list.tpl | 65 --- template/yoga/admin/cat_modify.tpl | 229 --------- template/yoga/admin/cat_move.tpl | 38 -- template/yoga/admin/cat_options.tpl | 16 - template/yoga/admin/cat_perm.tpl | 68 --- template/yoga/admin/check_integrity.tpl | 84 --- template/yoga/admin/comments.tpl | 33 -- template/yoga/admin/configuration.tpl | 179 ------- template/yoga/admin/default-layout.css | 241 --------- template/yoga/admin/double_select.tpl | 20 - template/yoga/admin/element_set_global.tpl | 190 ------- template/yoga/admin/element_set_unit.tpl | 93 ---- template/yoga/admin/group_list.tpl | 46 -- template/yoga/admin/group_perm.tpl | 8 - template/yoga/admin/history.tpl | 151 ------ template/yoga/admin/intro.tpl | 46 -- template/yoga/admin/maintenance.tpl | 25 - template/yoga/admin/notification_by_mail.tpl | 124 ----- template/yoga/admin/permalinks.tpl | 70 --- template/yoga/admin/picture_modify.tpl | 190 ------- template/yoga/admin/plugins_list.tpl | 51 -- template/yoga/admin/plugins_new.tpl | 37 -- template/yoga/admin/plugins_update.tpl | 71 --- template/yoga/admin/profile.tpl | 6 - template/yoga/admin/rating.tpl | 64 --- template/yoga/admin/site_manager.tpl | 73 --- template/yoga/admin/site_update.tpl | 109 ---- template/yoga/admin/stats.tpl | 38 -- template/yoga/admin/tabsheet.tpl | 8 - template/yoga/admin/tags.tpl | 54 -- template/yoga/admin/thumbnail.tpl | 123 ----- template/yoga/admin/upload.tpl | 53 -- template/yoga/admin/user_list.tpl | 312 ------------ template/yoga/admin/user_perm.tpl | 23 - template/yoga/admin/ws_checker.tpl | 218 -------- 59 files changed, 1148 insertions(+), 4331 deletions(-) create mode 100644 plugins/admin_advices/admin_advices.php create mode 100644 plugins/admin_advices/adv_set.php delete mode 100644 plugins/admin_advices/en_UK/lang.adv.php delete mode 100644 plugins/admin_advices/fr_FR/lang.adv.php rename plugins/admin_advices/{ => language}/en_UK/index.php (100%) create mode 100644 plugins/admin_advices/language/en_UK/plugin.lang.php rename plugins/admin_advices/{fr_FR => language/es_ES}/index.php (100%) create mode 100644 plugins/admin_advices/language/es_ES/plugin.lang.php rename {template/yoga/admin => plugins/admin_advices/language/fr_FR}/index.php (100%) create mode 100644 plugins/admin_advices/language/fr_FR/plugin.lang.php create mode 100644 plugins/admin_advices/language/index.php create mode 100644 plugins/admin_advices/language/it_IT/index.php create mode 100644 plugins/admin_advices/language/it_IT/plugin.lang.php delete mode 100644 template/yoga/admin.tpl delete mode 100644 template/yoga/admin/advanced_feature.tpl delete mode 100644 template/yoga/admin/cat_list.tpl delete mode 100644 template/yoga/admin/cat_modify.tpl delete mode 100644 template/yoga/admin/cat_move.tpl delete mode 100644 template/yoga/admin/cat_options.tpl delete mode 100644 template/yoga/admin/cat_perm.tpl delete mode 100644 template/yoga/admin/check_integrity.tpl delete mode 100644 template/yoga/admin/comments.tpl delete mode 100644 template/yoga/admin/configuration.tpl delete mode 100644 template/yoga/admin/default-layout.css delete mode 100644 template/yoga/admin/double_select.tpl delete mode 100644 template/yoga/admin/element_set_global.tpl delete mode 100644 template/yoga/admin/element_set_unit.tpl delete mode 100644 template/yoga/admin/group_list.tpl delete mode 100644 template/yoga/admin/group_perm.tpl delete mode 100644 template/yoga/admin/history.tpl delete mode 100644 template/yoga/admin/intro.tpl delete mode 100644 template/yoga/admin/maintenance.tpl delete mode 100644 template/yoga/admin/notification_by_mail.tpl delete mode 100644 template/yoga/admin/permalinks.tpl delete mode 100644 template/yoga/admin/picture_modify.tpl delete mode 100644 template/yoga/admin/plugins_list.tpl delete mode 100644 template/yoga/admin/plugins_new.tpl delete mode 100644 template/yoga/admin/plugins_update.tpl delete mode 100644 template/yoga/admin/profile.tpl delete mode 100755 template/yoga/admin/rating.tpl delete mode 100644 template/yoga/admin/site_manager.tpl delete mode 100644 template/yoga/admin/site_update.tpl delete mode 100644 template/yoga/admin/stats.tpl delete mode 100644 template/yoga/admin/tabsheet.tpl delete mode 100644 template/yoga/admin/tags.tpl delete mode 100644 template/yoga/admin/thumbnail.tpl delete mode 100644 template/yoga/admin/upload.tpl delete mode 100644 template/yoga/admin/user_list.tpl delete mode 100644 template/yoga/admin/user_perm.tpl delete mode 100644 template/yoga/admin/ws_checker.tpl diff --git a/admin/include/functions.php b/admin/include/functions.php index 328a36ab7..2a7214974 100644 --- a/admin/include/functions.php +++ b/admin/include/functions.php @@ -1576,7 +1576,7 @@ DELETE */ function do_maintenance_all_tables() { - global $prefixeTable; + global $prefixeTable, $page; $all_tables = array(); @@ -1590,7 +1590,7 @@ function do_maintenance_all_tables() // Repair all tables $query = 'REPAIR TABLE '.implode(', ', $all_tables).';'; - pwg_query($query); + $mysql_rc = pwg_query($query); // Re-Order all tables foreach ($all_tables as $table_name) @@ -1610,14 +1610,27 @@ function do_maintenance_all_tables() if (count($all_primary_key) != 0) { $query = 'ALTER TABLE '.$table_name.' ORDER BY '.implode(', ', $all_primary_key).';'; - pwg_query($query); + $mysql_rc = $mysql_rc && pwg_query($query); } } // Optimize all tables $query = 'OPTIMIZE TABLE '.implode(', ', $all_tables).';'; - pwg_query($query); - + $mysql_rc = $mysql_rc && pwg_query($query); + if ($mysql_rc) + { + array_push( + $page['infos'], + l10n('Optimization completed') + ); + } + else + { + array_push( + $page['errors'], + l10n('Optimizations errors') + ); + } } /** diff --git a/admin/template/yoga/theme/admin/theme.css b/admin/template/yoga/theme/admin/theme.css index 3f05818f8..e4eb6a6d8 100644 --- a/admin/template/yoga/theme/admin/theme.css +++ b/admin/template/yoga/theme/admin/theme.css @@ -3,7 +3,7 @@ body, h3, dt, h2, .throw, .content, input.rateButtonSelected /* <= why IE doesn't inherit this ? */ { color:#ccc; } input.text, input.button, input.submit, input.reset, input.file, select, textarea { -color:#444; } +color:#111; } input.rateButton, legend, #theAdminPage h3 { color: #777; } #theAdminPage h2 { color: #333; } @@ -71,11 +71,12 @@ right:0; text-align:right; top:0; width:770px; } .HelpActions a { border:0; margin:4px 14px 0 0; position:absolute; right:0; } .HelpActions li {list-style-image:none; list-style-position:outside; list-style-type:none; text-align:center; text-indent:0pt; } -fieldset#uploadConf input { margin-left:5%; width:160px; } +fieldset#uploadConf input { margin:0 5px 0 110px; width:160px; } table.table2 th { padding:3px 30px; } table.table2 tr.throw { text-align: center; } table.table2 { margin:0pt auto; } .sort { display:block; padding:8px 5px 0px 1px; } + /* tabsheets are often used in admin pages => No specific css files */ .tabsheet { background-color:transparent; border:0; display:table; diff --git a/language/en_UK/admin.lang.php b/language/en_UK/admin.lang.php index 129623864..d4f7423b2 100644 --- a/language/en_UK/admin.lang.php +++ b/language/en_UK/admin.lang.php @@ -657,4 +657,6 @@ $lang['Replacers'] = 'Replacers (customized templates)'; $lang['Original templates'] = 'Original templates'; $lang['Optional URL keyword'] = 'Optional URL keyword'; $lang['Templates recorded.'] = 'Templates configuration has been recorded.'; -?> +$lang['Optimizations completed'] = 'All optimizations have been successfully completed.'; +$lang['Optimizations errors'] = 'Optimizations have been completed with some errors.'; +?> \ No newline at end of file diff --git a/language/es_ES/admin.lang.php b/language/es_ES/admin.lang.php index 5f5655f20..accd13027 100644 --- a/language/es_ES/admin.lang.php +++ b/language/es_ES/admin.lang.php @@ -663,4 +663,6 @@ $lang['You are running the latest version of Piwigo.'] = 'Usted utiliza la últi /* TODO */ $lang['Original templates'] = 'Original templates'; /* TODO */ $lang['Optional URL keyword'] = 'Optional URL keyword'; /* TODO */ $lang['Templates recorded.'] = 'Templates configuration has been recorded.'; -?> +/* TODO */ $lang['Optimizations completed'] = 'All optimizations have been successfully completed.'; +/* TODO */ $lang['Optimizations errors'] = 'Optimizations have been completed with some errors.'; +?> \ No newline at end of file diff --git a/language/fr_FR/admin.lang.php b/language/fr_FR/admin.lang.php index 60981ae2e..342d15586 100644 --- a/language/fr_FR/admin.lang.php +++ b/language/fr_FR/admin.lang.php @@ -657,4 +657,6 @@ $lang['Replacers'] = 'Remplaçants (templates modifiés)'; $lang['Original templates'] = 'Templates d\'origine'; $lang['Optional URL keyword'] = 'Paramètre facultatif de l\'URL'; $lang['Templates recorded.'] = 'La configuration des templates a été enregistrée.'; +$lang['Optimizations completed'] = 'Toutes les optimisations ont été réalisées avec succès.'; +$lang['Optimizations errors'] = 'Certaines optimisations se sont terminées avec des erreurs.'; ?> \ No newline at end of file diff --git a/language/it_IT/admin.lang.php b/language/it_IT/admin.lang.php index 632e04fec..e36bfcb0f 100644 --- a/language/it_IT/admin.lang.php +++ b/language/it_IT/admin.lang.php @@ -657,4 +657,6 @@ $lang['Replacers'] = 'Sostituzione (templates personalizzati)'; $lang['Original templates'] = 'Templates d\'origine'; $lang['Optional URL keyword'] = 'Parametro facultativo del\'URL'; $lang['Templates recorded.'] = 'La configurazione dei templates è stata registrata.'; +/* TODO */ $lang['Optimizations completed'] = 'All optimizations have been successfully completed.'; +/* TODO */ $lang['Optimizations errors'] = 'Optimizations have been completed with some errors.'; ?> \ No newline at end of file diff --git a/language/nl_NL/admin.lang.php b/language/nl_NL/admin.lang.php index ef134648b..3b4fcdd2f 100644 --- a/language/nl_NL/admin.lang.php +++ b/language/nl_NL/admin.lang.php @@ -663,4 +663,6 @@ $lang['You are running the latest version of Piwigo.'] = 'Je hebt de laatste ver /* TODO */ $lang['Original templates'] = 'Original templates'; /* TODO */ $lang['Optional URL keyword'] = 'Optional URL keyword'; /* TODO */ $lang['Templates recorded.'] = 'Templates configuration has been recorded.'; -?> +/* TODO */ $lang['Optimizations completed'] = 'All optimizations have been successfully completed.'; +/* TODO */ $lang['Optimizations errors'] = 'Optimizations have been completed with some errors.'; +?> \ No newline at end of file diff --git a/plugins/admin_advices/admin_advices.php b/plugins/admin_advices/admin_advices.php new file mode 100644 index 000000000..ee2a3e797 --- /dev/null +++ b/plugins/admin_advices/admin_advices.php @@ -0,0 +1,194 @@ +append( + 'head_elements', + '' + ); + add_event_handler('loc_begin_page_tail', 'set_admin_advice' ); + } +} + +// Build an advice on the Admin Intro page +function set_admin_advice() +{ + global $page, $user, $template, $conf, $prefixeTable, $lang; + $my_path = dirname(__FILE__).'/'; + +// Include language advices + foreach ($conf as $key => $value) + { + if ( is_string($value) ) + { + $bool = ($value == 'false') ? false : $value; + $bool = ($value == 'true') ? true : $bool; + $conf[$key] = $bool; + } + } + $adv = array(); + ini_set('error_reporting', E_ALL); + ini_set('display_errors', true); + + include_once( $my_path."adv_set.php" ); + + $cases = range(0,count($lang['Adv_case'])-1); + srand ((double) microtime() * 10000000); + shuffle($cases); + + + $cond = false; + foreach ($cases as $id) + { + if (!isset($adv['c'][$id])) $adv['c'][$id] = true; + if (!isset($adv['n'][$id])) $adv['c'][$id] = false; + if (!isset($lang['Adv_case'][$id])) $adv['c'][$id] = false; + $cond = $adv['c'][$id]; + if ($cond) break; + } + $confk = $adv['n'][$id]; + if (substr($confk,0,2) == '**') $confk = substr($confk,2); + else $confk = '$conf[' . "'$confk']"; + $advice_text = (isset($adv['v'][$id])) ? $adv['v'][$id] : ''; + $more = $lang['Adv_case'][$id]; + + $template->set_filenames(array( + 'admin_advice' => $my_path.'admin_advices.tpl') + ); + +// Mysql status + $result = pwg_query('SHOW TABLE STATUS ;'); + $pwgspacef = $spacef = $pwgsize = $size = 0; + $len = strlen($prefixeTable); + $check = array(); + while ($row = mysql_fetch_array($result)) + { + $size += ($row['Data_length'] + $row['Index_length']); + $spacef += $row['Data_free']; + if ( substr( $row['Name'], 0, $len ) == $prefixeTable ) { + $pwgsize += ($row['Data_length'] + $row['Index_length']); + $pwgspacef += $row['Data_free']; + $check[] = (string) $row['Check_time']; + } + } + $size .= ' bytes'; + $pwgsize .= ' bytes'; + $spacef .= ' bytes'; + $pwgspacef .= ' bytes'; + if ($size > 1024) $size = round($size / 1024, 1) . ' Kb'; + if ($size > 1024) $size = round($size / 1024, 1) . ' Mb'; + if ($pwgsize > 1024) $pwgsize = round($pwgsize / 1024, 1) . ' Kb'; + if ($pwgsize > 1024) $pwgsize = round($pwgsize / 1024, 1) . ' Mb'; + if ($spacef > 1024) $spacef = round($spacef / 1024, 1) . ' Kb'; + if ($spacef > 1024) $spacef = round($spacef / 1024, 1) . ' Mb'; + if ($pwgspacef > 1024) $pwgspacef = round($pwgspacef / 1024, 1) . ' Kb'; + if ($pwgspacef > 1024) $pwgspacef = round($pwgspacef / 1024, 1) . ' Mb'; + $check = array_flip(array_flip($check)); + rsort($check); + $end = end($check); + $prev = prev($check); + $first = $check[0]; + $checkon = ''; + if (empty($end)) $end = $prev; + if ($end == $first) $checkon .= 'Last table check on: %s'; + else $checkon .= 'Most recent table check on: %s - oldest: %s'; + $checkon = sprintf($checkon, $first, $end); + $template->assign( + array( + 'prefixTable' => $prefixeTable, + 'pwgsize' => $pwgsize, + 'size' => $size, + 'checked_tables' => $checkon, + 'pwgspacef' => $pwgspacef, + 'spacef' => $spacef, + 'U_maintenance' => get_root_url() + . 'admin.php?page=maintenance&action=database', + ) + ); + +// If there is an advice + if ( $cond ) + { + +// Random Thumbnail + $query = ' +SELECT * +FROM '.IMAGES_TABLE.' +ORDER BY RAND(NOW()) +LIMIT 0, 1 +;'; + $result = pwg_query($query); + $row = mysql_fetch_assoc($result); + if ( is_array($row) ) + { + $url_modify = get_root_url().'admin.php?page=picture_modify' + .'&image_id='.$row['id']; + $query = ' +SELECT * FROM '.IMAGE_TAG_TABLE.' +WHERE image_id = ' . $row['id'] .' +;'; + $tag_count = mysql_num_rows(mysql_query($query)); + $template->assign('thumbnail', + array( + 'IMAGE' => get_thumbnail_url($row), + 'IMAGE_ALT' => $row['file'], + 'IMAGE_TITLE' => $row['name'], + 'METADATA' => (empty($row['date_metadata_update'])) ? + 'un' : '', + 'NAME' => (empty($row['name'])) ? + 'un' : '', + 'COMMENT' => (empty($row['comment'])) ? + 'un' : '', + 'AUTHOR' => (empty($row['author'])) ? + 'un' : '', + 'CREATE_DATE' => (empty($row['date_creation'])) ? + 'un' : '', + 'TAGS' => ($tag_count == 0) ? + 'un' : '', + 'NUM_TAGS' => $tag_count, + 'U_MODIFY' => $url_modify, + ) + ); + } + //$advice_text = array_shift($adv); + $template->assign( + array( + 'ADVICE_ABOUT' => $confk, + 'ADVICE_TEXT' => $advice_text, + ) + ); + $template->assign('More', $more ); + $template->pparse('admin_advice'); + } +} +?> diff --git a/plugins/admin_advices/admin_advices.tpl b/plugins/admin_advices/admin_advices.tpl index 85c385286..56ca9a85e 100644 --- a/plugins/admin_advices/admin_advices.tpl +++ b/plugins/admin_advices/admin_advices.tpl @@ -1,39 +1,63 @@ -{if isset($ADVICE_ABOUT)}
+

{'An_advice_about'|@translate} {$ADVICE_ABOUT}

-

{$ADVICE_TEXT}

- -
+

{$ADVICE_TEXT}

+ + {if isset($More)} + + + - - - - + + {/if}
{foreach from=$More item=advice} {$advice}
{/foreach}
-
+ {if isset($thumbnail.IMAGE)} - - {$thumbnail.IMAGE_ALT} - - {$thumbnail.IMAGE_ALT} {'Name'|@translate}
- {$thumbnail.IMAGE_ALT} {'Description'|@translate}
- {$thumbnail.IMAGE_ALT} {'Author'|@translate}
- {$thumbnail.IMAGE_ALT} {'Creation date'|@translate}
- {$thumbnail.IMAGE_ALT} {'Metadata'|@translate}
- {$thumbnail.IMAGE_ALT} {'Tags'|@translate} ({$thumbnail.NUM_TAGS}) + + {$thumbnail.IMAGE_ALT} +
+ {$thumbnail.IMAGE_ALT} {'Name'|@translate}
+ {$thumbnail.IMAGE_ALT} {'Description'|@translate}
+ {$thumbnail.IMAGE_ALT} {'Author'|@translate}
+ {$thumbnail.IMAGE_ALT} {'Creation date'|@translate}
+ {$thumbnail.IMAGE_ALT} {'Metadata'|@translate}
+ {$thumbnail.IMAGE_ALT} {'Tags'|@translate} ({$thumbnail.NUM_TAGS}) {/if} -
{$smarty.now|date_format:"%A, %B %e, %Y - %r"} --- Templates generated by Smarty {$smarty.version}
- +
+

External summary

+
    Database Analysis
    + {if ($pwgsize != $size)} + - Space used by {$prefixTable} tables: {$pwgsize}
    + {/if} + - Space used by all tables: {$size}
    + - {$checked_tables}
    + - Unused allocated space by {$prefixTable} tables: {$pwgspacef}
    + {if ($spacef > 0 and $pwgspacef != $spacef)} + - Unused allocated space: {$spacef}
    + {/if} + {if ($spacef > 0)} + Useful links: + {'repair and optimize database'|@translate} - + {else} + MySQL documentation: + {/if} + MySQL +

    + Templates generated on {$smarty.now|date_format:"%A, %B %e, %Y - %r"} by + Smarty + {$smarty.version} +
+
-{/if} \ No newline at end of file + diff --git a/plugins/admin_advices/adv_set.php b/plugins/admin_advices/adv_set.php new file mode 100644 index 000000000..d0fb98c2f --- /dev/null +++ b/plugins/admin_advices/adv_set.php @@ -0,0 +1,175 @@ + in all plugin.lang +// $adv['c'][xx] = Condition (default true) +// $adv['v'][xx] = Value (if there is one (facultative)) +// $adv['n'][xx] = Name of $conf (A new advice about blah-blah) +// +// prefix '**' . => Not a $conf['xxxxx'] + +load_language('plugin.lang', dirname(__FILE__).'/'); + +// No needed translation here below + +// Use l10n if your need a localization and update all plugin.lang + +$adv['n'][0] = '**' . $lang['contribute']; + +$adv['n'][1] = 'newcat_default_status'; +$adv['c'][1] = ($conf['newcat_default_status'] !== 'public'); +$adv['v'][1] = sprintf($lang['current'], 'public'); + +$adv['n'][2] = 'slideshow_period'; +$adv['c'][2] = ( $conf['slideshow_period'] < 4 ); +$adv['v'][2] = sprintf($lang['current'], $conf['slideshow_period']); + +$adv['n'][3] = 'file_ext'; +$adv['c'][3] = ( in_array('php',$conf['file_ext']) ); +$adv['v'][3] = sprintf($lang['current'], implode(', ', $conf['file_ext'])); + +$adv['n'][4] = 'show_iptc_mapping'; + +$adv['n'][5] = 'top_number'; +$adv['c'][5] = ( $conf['top_number'] > 50 ); +$adv['v'][5] = sprintf($lang['current'], $conf['top_number']); + +$adv['n'][6] = 'top_number'; +$adv['c'][6] = ( $conf['top_number'] < 2 ) ? true : false; +$adv['v'][6] = sprintf($lang['current'], $conf['top_number']); + +$adv['n'][7] = 'anti-flood_time'; +$adv['c'][7] = ( $conf['anti-flood_time'] > 100 ) ? true : false; +$adv['v'][7] = sprintf($lang['current'], $conf['anti-flood_time']); + +$adv['n'][8] = 'calendar_datefield'; +$adv['c'][8] = ( !in_array($conf['calendar_datefield'], + array('date_creation','date_available')) ); +$adv['v'][8] = sprintf($lang['current'], $conf['calendar_datefield']); + +/* Unavailable creation date and default calendar is creation date */ +$adv['n'][9] = 'calendar_datefield'; +$adv['c'][9] = ( (( $conf['use_exif'] and + isset($conf['use_exif_mapping']['date_creation']) ) + or ( $conf['use_iptc'] and + isset($conf['use_iptc_mapping']['date_creation']) )) + and ( $conf['calendar_datefield'] == 'date_creation' ) ) + ? false : true; +$adv['v'][9] = sprintf($lang['current'], $conf['calendar_datefield']); + +$adv['n'][10] = 'newcat_default_visible'; +$adv['c'][10] = !$conf['newcat_default_visible']; +$adv['v'][10] = sprintf($lang['current'], 'false'); + +$adv['n'][11] = 'level_separator'; +$adv['c'][11] = ( $conf['level_separator'] == ' / ' ); +$adv['v'][11] = sprintf($lang['current'], $conf['level_separator']); + +$adv['n'][12] = 'paginate_pages_around'; +$adv['c'][12] = (($conf['paginate_pages_around'] < 2) + or ($conf['paginate_pages_around'] > 12)); +$adv['v'][12] = sprintf($lang['current'], $conf['paginate_pages_around']); + +$adv['n'][13] = 'tn_width'; +$adv['c'][13] = (($conf['tn_width'] < 66) + or ($conf['tn_width'] > 180)); +$adv['v'][13] = sprintf($lang['current'], $conf['tn_width']); + +$adv['n'][14] = 'tn_height'; +$adv['c'][14] = (($conf['tn_height'] < 66) + or ($conf['tn_height'] > 180)); +$adv['v'][14] = sprintf($lang['current'], $conf['tn_height']); + +$adv['n'][15] = 'tn_height'; + +$adv['c'][15] = ( $conf['tn_height'] !== $conf['tn_width'] ); +$adv['v'][15] = l10n('TN-height&width'); + +$adv['n'][16] = 'show_version'; +$adv['c'][16] = $conf['show_version']; +$adv['v'][16] = sprintf($lang['current'], 'true'); + +$adv['n'][17] = 'show_thumbnail_caption'; +$adv['c'][17] = $conf['show_thumbnail_caption']; +$adv['v'][17] = sprintf($lang['current'], 'true'); + +$adv['n'][18] = 'show_picture_name_on_title'; +$adv['c'][18] = $conf['show_picture_name_on_title']; +$adv['v'][18] = sprintf($lang['current'], 'true'); + +$adv['n'][19] = 'subcatify'; +$adv['c'][19] = $conf['subcatify']; +$adv['v'][19] = sprintf($lang['current'], 'true'); + +$adv['n'][20] = 'allow_random_representative'; +$adv['c'][20] = $conf['allow_random_representative']; +$adv['v'][20] = sprintf($lang['current'], 'true'); + +$adv['n'][21] = 'prefix_thumbnail'; +$adv['c'][21] = ( $conf['prefix_thumbnail'] !== 'TN-' ); +$adv['v'][21] = sprintf($lang['current'], $conf['prefix_thumbnail']); + +$adv['n'][22] = 'users_page'; +$adv['c'][22] = ( $conf['users_page'] < 21 ); +$adv['v'][22] = sprintf($lang['current'], $conf['users_page']); + +$adv['n'][23] = 'mail_options'; +$adv['c'][23] = $conf['mail_options']; +$adv['v'][23] = sprintf($lang['current'], 'true'); + +$adv['n'][24] = 'check_upgrade_feed'; +$adv['c'][24] = $conf['check_upgrade_feed']; +$adv['v'][24] = sprintf($lang['current'], 'true'); + +$adv['n'][25] = 'rate_items'; +$adv['c'][25] = ( count($conf['rate_items']) < 4 ); +$adv['v'][25] = sprintf($lang['current'], $conf['rate_items']); + +$adv['n'][26] = 'rate_items'; +$adv['c'][26] = ( count($conf['rate_items']) > 6 ); +$adv['v'][26] = sprintf($lang['current'], $conf['rate_items']); + +$adv['n'][27] = $conf['show_iptc']; +$adv['c'][27] = $conf['show_iptc']; +$adv['v'][27] = sprintf($lang['current'], 'true'); + +$adv['n'][28] = 'use_iptc'; +$adv['c'][28] = $conf['use_iptc']; +$adv['v'][28] = sprintf($lang['current'], 'true'); + +$adv['n'][29] = 'use_iptc'; + +$adv['n'][30] = 'use_iptc_mapping'; + +$adv['n'][31] = 'show_exif'; +$adv['v'][31] = sprintf($lang['current'], (($conf['show_exif'])? 'true':'false' )); + +$adv['n'][32] = 'use_exif'; +$adv['v'][32] = sprintf($lang['current'], (($conf['use_exif'])? 'true':'false' )); + +$adv['n'][33] = '**' . $lang['navigation']; + +?> \ No newline at end of file diff --git a/plugins/admin_advices/en_UK/lang.adv.php b/plugins/admin_advices/en_UK/lang.adv.php deleted file mode 100644 index 26dc4d56b..000000000 --- a/plugins/admin_advices/en_UK/lang.adv.php +++ /dev/null @@ -1,447 +0,0 @@ - $value) -{ - if ( is_string($value) ) - { - $bool = ($value == 'false') ? false : $value; - $bool = ($value == 'true') ? true : $bool; - $conf[$key] = $bool; - } -} - -// -// Don't forget to update range for new advices -// -$cases = range(1,34); -srand ((double) microtime() * 10000000); -shuffle($cases); - -$cond = false; -foreach ($cases as $id_adv) -{ - if ($cond) break; - $adv = array(); - switch ($id_adv) { - Case 1 : - $adv[] = 'Current value: public. '; - $adv[] = 'Try $conf[\'newcat_default_status\'] = \'private\';'; - $adv[] = 'You will have more time to describe and check your pictures.'; - $adv[] = 'Time to decide between private and public status.'; - $adv[] = 'If you choose private, time to distribute authorization.'; - $adv[] = 'Your new category will be well prepared.'; - $cond = ($conf['newcat_default_status'] !== 'public'); - $confk = 'newcat_default_status'; - break; - - Case 2 : - $adv[] = 'Current value: ' . (string) $conf['slideshow_period'] . '.'; - $adv[] = 'This value could be too small for low band connections.'; - $adv[] = 'Think about higher value like 4.'; - $cond = ( $conf['slideshow_period'] < 4 ); - $confk = 'slideshow_period'; - break; - - Case 3 : - $adv[] = 'Current value: ' . implode(', ', $conf['file_ext']) . '. '; - $adv[] = 'Should never contains extensions which can be executed'; - $adv[] = 'on the server side like *.php, *.PHP, *.asp, ...'; - $cond = ( in_array('php',$conf['file_ext']) ); - $confk = 'file_ext'; - break; - - Case 4 : - $adv[] = 'Show IPTC Data from your picture:'; - $adv[] = ' 1 - Copy one of your jpg pictures (a public one)' . - ' in ./tools/
' . - ' 2 - Rename it as sample.jpg.
' . - ' 3 - Run ./tools/metadata.php
' . - ' 4 - Analyse results to determine which IPTC fields could be' . - ' useful for your visitors.'; - $adv[] = 'Beginners would prefer to keep $conf[\'show_iptc\'] = false;'; - $adv[] = 'Advanced users would take care of $lang values and impacts' . - ' on templates.'; - $cond = true; - $confk = 'show_iptc_mapping'; - break; - - Case 5 : - $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; - $adv[] = 'This value is maybe too high for low connections, ' . - 'think about 25-50 depending on your thumbnail sizes.'; - $cond = ( $conf['top_number'] > 50 ); - $confk = 'top_number'; - break; - - Case 6 : - $adv[] = 'Current value: ' . (string) $conf['top_number'] . '.'; - $adv[] = 'One? It could be too low for random pictures, ' . - 'think about 5-10 depending on your thumbnail sizes.'; - $cond = ( $conf['top_number'] < 2 ) ? true : false; - $confk = 'top_number'; - break; - - Case 7 : - $adv[] = 'Current value: ' . (string) $conf['anti-flood_time'] . '.'; - $adv[] = 'For normal flow processing, your value is probably too high. ' . - 'Reasonable value is 60 (default).' ; - $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; - $confk = 'anti-flood_time'; - break; - - Case 8 : - $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; - $adv[] = 'Authorized values are ' . - "'date_creation' or 'date_available'" . - ', otherwise you can get unpredictable results.' ; - $cond = ( !in_array($conf['calendar_datefield'], - array('date_creation','date_available')) ); - $confk = 'calendar_datefield'; - break; - - Case 9 : - // If (iptc or exif) are used and date_creation is updated - // Then it's Ok, you can use date_creation by default for calendar - // else ... Advice - $adv[] = 'Current value: ' . (string) $conf['calendar_datefield'] . '.'; - $adv[] = "'date_creation'" . ' is NOT filled by ' . - 'any activated use metadata mapping fields.'; - $adv[] = 'So activate metadata usage or change to ' . - '$conf[\'calendar_datefield\'] = \'date_available\''; - $adv[] = 'Activate metadata usage as you want:
' . - '1 - $conf[\'use_iptc\'] = true; or $conf[\'use_exif\'] = true; ' . - 'each way will be correct.
' . - '2 - And respectively map:
' . - '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' . - '=> \'2#055\', ...
' . - 'or/and:
' . - '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' . - '=> \'DateTimeOriginal\', ...
' . - '3 - Finally, a new task is up to you: Metadata synchronization.' ; - $cond2 = ( $conf['use_exif'] and - isset($conf['use_exif_mapping']['date_creation']) ); - $cond3 = ( $conf['use_iptc'] and - isset($conf['use_iptc_mapping']['date_creation']) ); - $cond = ( $conf['calendar_datefield'] == 'date_creation' ); - $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; - $confk = 'calendar_datefield'; - break; - - Case 10 : - $adv[] = 'Current value: false.'; - $adv[] = 'Not useful, private status is better, so code ' . - '$conf[\'newcat_default_visible\'] = true;' ; - $cond = !$conf['newcat_default_visible']; - $confk = 'newcat_default_visible'; - break; - - Case 11 : - $adv[] = 'Current value: ' . (string) $conf['level_separator'] . '.'; - $adv[] = 'Try something else like $conf[\'level_separator\'] = \'+ \';'; - $cond = ( $conf['level_separator'] == ' / ' ); - $confk = 'level_separator'; - break; - - Case 12 : - $adv[] = 'Current value: ' . (string) $conf['paginate_pages_around'] . '.'; - $adv[] = 'Usual range is between 2 and 5. To be light, choose ' . - '$conf[\'paginate_pages_around\'] = 2;
' . - 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7;'; - $cond = (($conf['paginate_pages_around'] < 2) - or ($conf['paginate_pages_around'] > 12)); - $confk = 'paginate_pages_around'; - break; - - Case 13 : - $adv[] = 'Current value: ' . (string) $conf['tn_width'] . '.'; - $adv[] = 'Should be a close value to your thumbnail width.' . - $adv[] = 'Usual range is between 96 and 150, ' . - 'about $conf[\'tn_width\'] = 128;'; - $cond = (($conf['tn_width'] < 66) - or ($conf['tn_width'] > 180)); - $confk = 'tn_width'; - break; - - Case 14 : - $adv[] = 'Current value: ' . (string) $conf['tn_height'] . '.'; - $adv[] = 'Should be a close value to your thumbnail height.' . - $adv[] = 'Usual range is between 96 and 150, ' . - 'about $conf[\'tn_height\'] = 128;'; - $cond = (($conf['tn_height'] < 66) - or ($conf['tn_height'] > 180)); - $confk = 'tn_height'; - break; - - Case 15 : - $adv[] = 'Thumbnail height and width have to be equal.'; - $adv[] = 'Choose $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] . - ';
' . - 'or $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; - $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); - $confk = 'tn_height'; - break; - - Case 16 : - $adv[] = 'Current value: true.'; - $adv[] = 'For security reason, please set ' . - '$conf[\'show_version\'] = false;'; - $cond = $conf['show_version']; - $confk = 'show_version'; - break; - - Case 17 : - $adv[] = 'Current value: true.'; - $adv[] = 'For a lighter gallery just have a look to ' . - '$conf[\'show_thumbnail_caption\'] = false;'; - $cond = $conf['show_thumbnail_caption']; - $confk = 'show_thumbnail_caption'; - break; - - Case 18 : - $adv[] = 'Current value: true.'; - $adv[] = 'For a lighter gallery just have a look to ' . - '$conf[\'show_picture_name_on_title\'] = false;'; - $cond = $conf['show_picture_name_on_title']; - $confk = 'show_picture_name_on_title'; - break; - - Case 19 : - $adv[] = 'Current value: true.'; - $adv[] = 'If you do NOT have any category descriptions just have ' . - 'a look to $conf[\'subcatify\'] = false;'; - $cond = $conf['subcatify']; - $confk = 'subcatify'; - break; - - Case 20 : - $adv[] = 'Current value: true.'; - $adv[] = 'Leave $conf[\'allow_random_representative\'] = true;
' . - 'but analyze if you can avoid for performance reasons.' ; - $cond = $conf['allow_random_representative']; - $confk = 'allow_random_representative'; - break; - - Case 21 : - $adv[] = 'Current value: ' . (string) $conf['prefix_thumbnail'] . '.'; - $adv[] = 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.'; - $adv[] = 'Do NOT change it except if your thumbnails are NOT visible.'; - $adv[] = 'Distant site may use a different prefix but ' . - 'create_listing_file.php must be modified.
' . - 'You will get a warning message during synchronization in ' . - 'that case.'; - $adv[] = 'Try to keep the same prefix thru all your sites either ' . - 'local or distants.'; - $adv[] = 'Keep this parameter in your ./include/config_'. - 'local.inc.php.
'. - 'See our wiki configuration page for more information about ' . - './include/config_local.inc.php.'; - $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); - $confk = 'prefix_thumbnail'; - break; - - Case 22 : - $adv[] = 'Current value: ' . (string) $conf['users_page'] . '.'; - $adv[] = 'Unless you have a low band connection, you can draw up ' . - '$conf[\'users_page\'] to a higher value ' . - 'if you have more than 20 members.'; - $cond = ( $conf['users_page'] < 21 ); - $confk = 'users_page'; - break; - - Case 23 : - $adv[] = 'Current value: true.'; - $adv[] = 'Should be false, only few webmasters have to set ' . - '$conf[\'mail_options\'] = true;
' . - 'A specific advice you can get from an advanced ' . - 'user on our forum in some mailing issues.' ; - $cond = $conf['mail_options']; - $confk = 'mail_options'; - break; - - Case 24 : - $adv[] = 'Current value: true.'; - $adv[] = 'Should be false, only PWG dev Team have to set ' . - '$conf[\'check_upgrade_feed\'] = true; for test purpose.' ; - $cond = $conf['check_upgrade_feed']; - $confk = 'check_upgrade_feed'; - break; - - Case 25 : - $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) - . 'items.'; - $adv[] = 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.'; - $cond = ( count($conf['rate_items']) < 4 ); - $confk = 'rate_items'; - break; - - Case 26 : - $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) - . 'items.'; - $adv[] = 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.'; - $adv[] = 'Check your best rated pictures prior to remove some values.' . - '
Reduce excessive rating and change your ' . - '$conf[\'rate_items\'].'; - $cond = ( count($conf['rate_items']) > 6 ); - $confk = 'rate_items'; - break; - - Case 27 : - $adv[] = 'Current value: true.'; - $adv[] = 'Could be true, think about $conf[\'show_iptc\'] = false;' - . '
Some Professional photographers choose false ' . - 'their reasons are not really professional.' ; - $adv[] = 'Do NOT confuse between show_iptc and ' . - 'use_iptc (have a look on metadata page ' . - 'on our wiki).'; - $cond = $conf['show_iptc']; - $confk = 'show_iptc'; - break; - - Case 28 : - $adv[] = 'Current value: true.'; - $adv[] = 'Documentalists and professionnal photographers would ' . - 'set it true, but beginners should leave it ' . - 'as $conf[\'use_iptc\'] = false;'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '
Mentionned fields would be rewrited with IPTC values ' . - ' even those ones are NOT empty.'; - $adv[] = 'Do NOT confuse between show_iptc and ' . - 'use_iptc (have a look on metadata page ' . - 'on our wiki).'; - $cond = $conf['use_iptc']; - $confk = 'use_iptc'; - break; - - Case 29 : - $adv[] = 'How to deal with IPTC:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '
2 - Rename it as sample.jpg.' . - '
3 - Run ./tools/metadata.php' . - '
4 - Analyse results to determine which IPTC fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; - $adv[] = 'Advanced users make documentation efforts prior ' . - 'to upload their pictures.
' . - 'IPTC fields have to be described in ' . - '$conf[\'use_iptc_mapping\']'; - $adv[] = 'In any case, show_iptc_mapping and ' . - 'use_iptc_mapping must be totally different.'; - $cond = true; - $confk = 'use_iptc'; - break; - - Case 30 : - $adv[] = 'How to deal with IPTC:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '
2 - Rename it as sample.jpg.' . - '
3 - Run ./tools/metadata.php' . - '
4 - Analyse results to determine which IPTC fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to keep $conf[\'use_iptc\'] = false;'; - $adv[] = 'Advanced users make documentation efforts prior ' . - 'to upload their pictures.'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '
Mentionned fields would be rewrited with IPTC values ' . - ' even those ones are NOT empty.'; - $adv[] = 'In any case, show_iptc_mapping and ' . - 'use_iptc_mapping must be totally different.'; - $cond = true; - $confk = 'use_iptc_mapping'; - break; - - Case 31 : - $adv[] = 'Current value: ' . ( ( $conf['show_exif'] ) ? 'true':'false' ) - . '.'; - $adv[] = 'Should be true, some information from your camera ' . - 'can be displayed.'; - $adv[] = 'Think about EXIF information could be different depending ' . - 'on camera models.
' . - 'If you change your camera these fields could be ' . - 'partly different.'; - $adv[] = 'Many professional photographers choose false, ' . - 'their reasons are to protect their knowledge.' ; - $adv[] = 'Do NOT confuse between show_exif and ' . - 'use_exif (have a look on metadata page ' . - 'on our wiki).'; - $cond = true; - $confk = 'show_exif'; - break; - - Case 32 : - $adv[] = 'How to deal with EXIF:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '
2 - Rename it as sample.jpg.' . - '
3 - Run ./tools/metadata.php' . - '
4 - Analyse results to determine which EXIF fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to let default values.'; - $adv[] = 'Advanced users would take care of $lang values and ' . - 'impacts on templates.'; - $adv[] = 'In any case, show_exif_fields and ' . - 'use_exif_mapping must be totally different.'; - $cond = true; - $confk = 'show_exif_fields'; - break; - - Case 33 : - $adv[] = 'Current value: ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) - . '.'; - $adv[] = 'Documentalists and professionnal photographers would ' . - 'set it true, but beginners should leave the default value.'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '
Mentionned fields would be rewrited with EXIF values ' . - ' even those ones are NOT empty.'; - $adv[] = 'Do NOT confuse between show_exif and ' . - 'use_exif (have a look on metadata page ' . - 'on our wiki).'; - $cond = true; - $confk = 'use_exif'; - break; - - Case 34 : - $adv[] = 'How to deal with EXIF:'; - $adv[] = '1 - Copy one of your jpg pictures (a public one) in ./tools/' . - '
2 - Rename it as sample.jpg.' . - '
3 - Run ./tools/metadata.php' . - '
4 - Analyse results to determine which EXIF fields ' . - 'could be used to override database fields.'; - $adv[] = 'Beginners would prefer to let default values.'; - $adv[] = 'Advanced users would carefully chose overrided fields ' . - 'prior to synchronize.'; - $adv[] = 'Take care of mentionned fields in metadata synchronization.' . - '
Mentionned fields would be rewrited with EXIF values ' . - ' even those ones are NOT empty.'; - $adv[] = 'In any case, show_exif_fields and ' . - 'use_exif_mapping must be totally different.'; - $cond = true; - $confk = 'use_exif_mapping'; - break; - } -} - -?> diff --git a/plugins/admin_advices/fr_FR/lang.adv.php b/plugins/admin_advices/fr_FR/lang.adv.php deleted file mode 100644 index 11fd5cf53..000000000 --- a/plugins/admin_advices/fr_FR/lang.adv.php +++ /dev/null @@ -1,480 +0,0 @@ - $value) -{ - if ( is_string($value) ) - { - $bool = ($value == 'false') ? false : $value; - $bool = ($value == 'true') ? true : $bool; - $conf[$key] = $bool; - } -} - -// -// Don't forget to update range for new advices -// -$cases = range(1,34); -srand ((double) microtime() * 10000000); -shuffle($cases); - -$cond = false; -foreach ($cases as $id_adv) -{ - if ($cond) break; - $adv = array(); - switch ($id_adv) { - Case 1 : - $adv[] = 'Valeur actuelle : public. '; - $adv[] = 'Essayez $conf[\'newcat_default_status\'] = \'private\';'; - $adv[] = 'Vous aurez plus de temps pour décrire et contrôler vos images. ' - . 'Du temps pour vous décider entre un statut privé ou public.'; - $adv[] = 'Si vous choisissez de rester privé, vous passerez directement ' - . 'à l\'attribution des autorisations.
' - . 'Vos nouvelles catégories seront préparées plus facilement.'; - $cond = ($conf['newcat_default_status'] !== 'public'); - $confk = 'newcat_default_status'; - break; - - Case 2 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['slideshow_period'] . '.'; - $adv[] = 'Ce délai pourrait être trop petit pour les connexions ' - . 'en bas débit.'; - $adv[] = 'Pensez à une valeur supérieure comme 4.'; - $cond = ( $conf['slideshow_period'] < 4 ); - $confk = 'slideshow_period'; - break; - - Case 3 : - $adv[] = 'Valeur actuelle : ' . implode(', ', $conf['file_ext']) . '. '; - $adv[] = 'Ne devrait jamais contenir des extensions pouvant être '; - $adv[] = 'exécutées sur le serveur comme *.php, *.PHP, *.asp, ...'; - $cond = ( in_array('php',$conf['file_ext']) ); - $confk = 'file_ext'; - break; - - Case 4 : - $adv[] = 'Comment gérer les IPTC:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' - . ' 2 - Renommez celle-ci en sample.jpg.
' - . ' 3 - Lancez ./tools/metadata.php
' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'IPTC pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront $conf[\'show_iptc\'] = false;'; - $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' - . '$lang; voire même à l\'impact possible sur les templates.'; - $cond = true; - $confk = 'show_iptc_mapping'; - break; - - Case 5 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; - $adv[] = 'Cette valeur pourrait être trop grande pour des connexions ' - . 'bas débit.
Pensez à une valeur située entre 25-50 ' - . 'en fonction de la taille de vos minitures.'; - $cond = ( $conf['top_number'] > 50 ); - $confk = 'top_number'; - break; - - Case 6 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['top_number'] . '.'; - $adv[] = 'Une seule? Au moins pour les images aléatoires, pensez ' - . 'autour de 5-10 selon la tailles de vos miniatures.'; - $cond = ( $conf['top_number'] < 2 ) ? true : false; - $confk = 'top_number'; - break; - - Case 7 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['anti-flood_time'] . '.'; - $adv[] = 'Pour un traitement fluide, votre valeur est sans doute trop ' - . 'grande. Une valeur raisonnable serait 60 (valeur par défaut).' ; - $cond = ( $conf['anti-flood_time'] > 100 ) ? true : false; - $confk = 'anti-flood_time'; - break; - - Case 8 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; - $adv[] = 'Les valeurs admises sont ' - . "'date_creation' ou 'date_available'" . ', toute autre valeur' - . 'peut aboutir à des résultats imprévisibles.' ; - $cond = ( !in_array($conf['calendar_datefield'], - array('date_creation','date_available')) ); - $confk = 'calendar_datefield'; - break; - - Case 9 : - // If (iptc or exif) are used and date_creation is updated - // Then it's Ok, you can use date_creation by default for calendar - // else ... Advise - $adv[] = 'Valeur actuelle : ' . (string) $conf['calendar_datefield'] .'.'; - $adv[] = "La 'date_creation'" . ' n\'est pas renseignée. Aucun champ ' - . 'des méta-données (use_) n\'actualise la base.'; - $adv[] = 'Soit vous activez l\'usage des méta-données ou' - . ' changez pour ' - . '$conf[\'calendar_datefield\'] = \'date_available\''; - $adv[] = 'Activez l\'usage des méta-données simplement par:
' - . '1 - $conf[\'use_iptc\'] = true; ou $conf[\'use_exif\'] = true; ' - . 'au choix, les 2 sont valables.
' - . '2 - Respectivement à chacune faire la modif:
' - . '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' ' - . '=> \'2#055\', ...
' - . 'et/ou:
' - . '$conf[\'use_exif_mapping\'] = array(\'date_creation\' ' - . '=> \'DateTimeOriginal\', ...
' - . '3 - Enfin une nouvelle tache vous est destinée: ' - . 'la synchronisation des méta-données.' ; - $cond2 = ( $conf['use_exif'] and - isset($conf['use_exif_mapping']['date_creation']) ); - $cond3 = ( $conf['use_iptc'] and - isset($conf['use_iptc_mapping']['date_creation']) ); - $cond = ( $conf['calendar_datefield'] == 'date_creation' ); - $cond = ( ($cond2 or $cond3) and $cond ) ? false : true; - $confk = 'calendar_datefield'; - break; - - Case 10 : - $adv[] = 'Valeur actuelle : false.'; - $adv[] = 'C\'est une erreur, un statut "private" est plus simple, ' - . 'alors choisissez $conf[\'newcat_default_visible\'] = true;' ; - $cond = !$conf['newcat_default_visible']; - $confk = 'newcat_default_visible'; - break; - - Case 11 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['level_separator'] . '.'; - $adv[] = 'Vous pouvez toujours essayer un autre séparateur comme :' - . '
$conf[\'level_separator\'] = \'+ \';'; - $cond = ( $conf['level_separator'] == ' / ' ); - $confk = 'level_separator'; - break; - - Case 12 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['paginate_pages_around'] - . '.'; - $adv[] = 'Les valeurs habituelles se situent entre 2 et 5.' - . 'Pour un site avec une interface légère, on choisira :
' - . '$conf[\'paginate_pages_around\'] = 2;
' - . 'Afin de proposer plus d\'accès directs, on choisira :
' - . '$conf[\'paginate_pages_around\'] = 7;'; - $cond = (($conf['paginate_pages_around'] < 2) - or ($conf['paginate_pages_around'] > 12)); - $confk = 'paginate_pages_around'; - break; - - Case 13 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_width'] . '.'; - $adv[] = 'Doit être une valeur proche de la largeur de vos miniatures.'; - $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' - . 'comme $conf[\'tn_width\'] = 128;'; - $cond = (($conf['tn_width'] < 66) - or ($conf['tn_width'] > 180)); - $confk = 'tn_width'; - break; - - Case 14 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['tn_height'] . '.'; - $adv[] = 'Doit être une valeur proche de la hauteur de vos miniatures.'; - $adv[] = 'Les valeurs habituelles se situent entre 96 et 150, ' - . 'comme $conf[\'tn_height\'] = 128;'; - $cond = (($conf['tn_height'] < 66) - or ($conf['tn_height'] > 180)); - $confk = 'tn_height'; - break; - - Case 15 : - $adv[] = 'Il n\'y a aucune raison pour que la largeur maximale soit ' - . 'différente de la hauteur maximale. Pourquoi les ajouts en ' - . 'portrait afficheraient des miniatures dans une résolution ' - . 'différente de celle des miniatures en paysage?'; - $adv[] = 'Essayez $conf[\'tn_height\'] = ' . (string) $conf['tn_width'] - . ';
' - . 'ou $conf[\'tn_width\'] = ' . (string) $conf['tn_height'] . ';'; - $cond = ( $conf['tn_height'] !== $conf['tn_width'] ); - $confk = 'tn_height'; - break; - - Case 16 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Pour des raisons de sécurité de votre galerie, préférez ' - . '$conf[\'show_version\'] = false;'; - $cond = $conf['show_version']; - $confk = 'show_version'; - break; - - Case 17 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Pour une galerie moins chargée, faites le test de ' - . '$conf[\'show_thumbnail_caption\'] = false;'; - $cond = $conf['show_thumbnail_caption']; - $confk = 'show_thumbnail_caption'; - break; - - Case 18 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Pour une galerie moins chargée, faites le test de ' - . '$conf[\'show_picture_name_on_title\'] = false;'; - $cond = $conf['show_picture_name_on_title']; - $confk = 'show_picture_name_on_title'; - break; - - Case 19 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Aucune de vos catégories ne possède de descriptions alors ' - . 'essayez $conf[\'subcatify\'] = false;'; - $cond = $conf['subcatify']; - $confk = 'subcatify'; - break; - - Case 20 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Laissez $conf[\'allow_random_representative\'] = true;
' - . 'mais étudiez comment vous pouvez l\'éviter pour des raisons ' - . 'de performance.' ; - $cond = $conf['allow_random_representative']; - $confk = 'allow_random_representative'; - break; - - Case 21 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['prefix_thumbnail'] . '.'; - $adv[] = 'Attention, votre $conf[\'prefix_thumbnail\'] n\'est pas ' - . 'standard.'; - $adv[] = 'Ne pas changer votre préfixe sauf si vos miniatures ont un ' - . 'problème d\'affichage.'; - $adv[] = 'Un site distant peut avoir un préfixe différent, le ' - . 'create_listing_file.php devra être modifié.
' - . 'Vous devriez avoir un message d\'avertissement pendant la ' - . 'synchronisation dans ce cas.'; - $adv[] = 'Essayez de garder le même préfixe de miniatures pour les sites ' - . 'locaux ou distants.'; - $adv[] = 'Conservez ce paramètre dans votre ./include/config_' - . 'local.inc.php.
' - . 'Voir la page sur la configuration dans le Wiki pour plus ' - . 'd\'informations à propos de ' - . './include/config_local.inc.php.'; - $cond = ( $conf['prefix_thumbnail'] !== 'TN-' ); - $confk = 'prefix_thumbnail'; - break; - - Case 22 : - $adv[] = 'Valeur actuelle : ' . (string) $conf['users_page'] . '.'; - $adv[] = 'A moins d\'avoir une connexion bas débit, vous pouvez ' - . 'augmenter largement $conf[\'users_page\'] ' - . 'surtout si vous avez plus de 20 membres.'; - $cond = ( $conf['users_page'] < 21 ); - $confk = 'users_page'; - break; - - Case 23 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Devrait être à false, seulement quelques webmasters devront ' - . 'indiquer $conf[\'mail_options\'] = true;
' - . 'Un utilisateur avancé de notre forum les aura conseillé ' - . 'dans un seul cas de problème d\'email.' ; - $cond = $conf['mail_options']; - $confk = 'mail_options'; - break; - - Case 24 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Devrait être à false, seuls les membres de l\'équipe PWG ' - . 'codent $conf[\'check_upgrade_feed\'] = true; pour leurs tests.'; - $cond = $conf['check_upgrade_feed']; - $confk = 'check_upgrade_feed'; - break; - - Case 25 : - $adv[] = '$conf[\'rate_items\'] dispose de ' . count($conf['rate_items']) - . 'éléments.'; - $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' - . 'mais pas moins.'; - $cond = ( count($conf['rate_items']) < 4 ); - $confk = 'rate_items'; - break; - - Case 26 : - $adv[] = '$conf[\'rate_items\'] has ' . count($conf['rate_items']) - . 'items.'; - $adv[] = 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments ' - . 'mais pas plus.'; - $adv[] = 'Contrôlez vos images les mieux notées avant de retirer ' - . ' certaines valeurs.' - . '
Réduire les valeurs excessives et modifiez votre ' - . '$conf[\'rate_items\'].'; - $cond = ( count($conf['rate_items']) > 6 ); - $confk = 'rate_items'; - break; - - Case 27 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Peut être effectivement à true, éventuellement choisissez ' - . '$conf[\'show_iptc\'] = false;' - . '
Comme quelques photographes professionnels choisissez ' - . 'false bien que leurs raisons ne soient guère professionnelles.'; - $adv[] = 'Ne confondez pas show_iptc et ' - . 'use_iptc (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = $conf['show_iptc']; - $confk = 'show_iptc'; - break; - - Case 28 : - $adv[] = 'Valeur actuelle : true.'; - $adv[] = 'Les documentalistes et photographes professionnels choisiront ' - . 'cette valeur true, mais les débutants devraient laisser ' - . '$conf[\'use_iptc\'] = false;'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.
Les champs indiqués pourront être ' - . 'écrasés par des valeurs de champs IPTC quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Ne confondez pas show_iptc et ' - . 'use_iptc (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = $conf['use_iptc']; - $confk = 'use_iptc'; - break; - - Case 29 : - $adv[] = 'Comment gérer les IPTC:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' - . ' 2 - Renommez celle-ci en sample.jpg.
' - . ' 3 - Lancez ./tools/metadata.php
' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'IPTC pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; - $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' - . 'avant de transférer leurs images.
' - . 'Les champs IPTC doivent être décrits par ' - . '$conf[\'use_iptc_mapping\']'; - $adv[] = 'Dans tous les cas, show_iptc_mapping et ' - . 'use_iptc_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'use_iptc'; - break; - - Case 30 : - $adv[] = 'Comment gérer les IPTC:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' - . ' 2 - Renommez celle-ci en sample.jpg.
' - . ' 3 - Lancez ./tools/metadata.php
' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'IPTC pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront $conf[\'use_iptc\'] = false;'; - $adv[] = 'Les utilisateurs avancés feront des efforts de documentation ' - . 'avant de transférer leurs images.
' - . 'Les champs IPTC doivent être décrits par ' - . '$conf[\'use_iptc_mapping\']'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.
Les champs indiqués pourront être ' - . 'écrasés par des valeurs de champs IPTC quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Dans tous les cas, show_iptc_mapping et ' - . 'use_iptc_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'use_iptc_mapping'; - break; - - Case 31 : - $adv[] = 'Valeur actuelle : ' - . ( ( $conf['show_exif'] ) ? 'true':'false' ) . '.'; - $adv[] = 'Devrait être à true, certaines informations propres à votre ' - . 'appareil pourront être affichées.'; - $adv[] = 'Pensez au fait que les informations EXIF peuvent être ' - . 'différentes suivant les modèles d\'appareil.
' - . 'Si vous changez votre appareil ces champs pourraient en ' - . 'partie differents.'; - $adv[] = 'Beaucoup de photographes professionnels choissent false, ' - . 'ceci afin de protéger leur savoir-faire.' ; - $adv[] = 'Ne confondez pas show_exif et ' - . 'use_exif (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = true; - $confk = 'show_exif'; - break; - - Case 32 : - $adv[] = 'Comment gérer les EXIF:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' - . ' 2 - Renommez celle-ci en sample.jpg.
' - . ' 3 - Lancez ./tools/metadata.php
' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'EXIF pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront la valeur par défaut.'; - $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' - . '$lang; voire même à l\'impact possible sur les templates.'; - $adv[] = 'Dans tous les cas, show_exif_fields et ' - . 'use_exif_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'show_exif_fields'; - break; - - Case 33 : - $adv[] = 'Valeur actuelle : ' . ( ( $conf['use_exif'] ) ? 'true':'false' ) - . '.'; - $adv[] = 'Les documentalistes et photographes professionnels choisiront ' - . 'cette valeur true, mais les débutants devraient laisser ' - . 'la valeur par défaut.'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.
Les champs indiqués pourront être ' - . 'écrasés par des valeurs de champs EXIF quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Ne confondez pas show_exif et ' - . 'use_exif (consultez la pages de métadonnées ' - . 'sur notre wiki).'; - $cond = true; - $confk = 'use_exif'; - break; - - Case 34 : - $adv[] = 'Comment gérer les EXIF:'; - $adv[] = ' 1 - Copiez une image jpg (publique) dans ./tools/
' - . ' 2 - Renommez celle-ci en sample.jpg.
' - . ' 3 - Lancez ./tools/metadata.php
' - . ' 4 - Analysez les résultats pour déterminer quels champs ' - . 'EXIF pourraient intéresser vos visiteurs.'; - $adv[] = 'Les débutants laisseront la valeur par défaut.'; - $adv[] = 'Les utilisateurs avancés penseront aux valeurs du tableau ' - . '$lang; voire même à l\'impact possible sur les templates.'; - $adv[] = 'Les débutants laisseront $conf[\'use_exif\'] = false;'; - $adv[] = 'Les utilisateurs avancés feront très attention aux champs ' - . 'sélectionnés et modifiés par la synchronisation.'; - $adv[] = 'Faire attention aux champs mentionnés dans la synchronisation ' - . 'des métadonnées.
Ces champs pourront être ' - . 'écrasés par des valeurs de champs EXIF quand bien même ces ' - . 'champs ne seraient pas vides.'; - $adv[] = 'Dans tous les cas, show_exif_fields et ' - . 'use_exif_mapping seront ' - . 'totalement différents.'; - $cond = true; - $confk = 'use_exif_mapping'; - break; - } -} - -?> diff --git a/plugins/admin_advices/en_UK/index.php b/plugins/admin_advices/language/en_UK/index.php similarity index 100% rename from plugins/admin_advices/en_UK/index.php rename to plugins/admin_advices/language/en_UK/index.php diff --git a/plugins/admin_advices/language/en_UK/plugin.lang.php b/plugins/admin_advices/language/en_UK/plugin.lang.php new file mode 100644 index 000000000..cdae1d6c4 --- /dev/null +++ b/plugins/admin_advices/language/en_UK/plugin.lang.php @@ -0,0 +1,157 @@ +or change to $conf[\'calendar_datefield\'] = \'date_available\'', + 'Activate metadata usage as you want: ', + '1 - $conf[\'use_iptc\'] = true, or $conf[\'use_exif\'] = true, each way will be correct.', + '2 - And respectively map:', + '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' => \'2#055\', ...', + 'or/and:', + '$conf[\'use_exif_mapping\'] = array(\'date_creation\' => \'DateTimeOriginal\', ...', + '3 - Finally, a new task is up to you: Metadata synchronization.', ); +$lang['Adv_case'][10] = array( /* newcat_default_visible */ + 'Not useful, private status is better, so code $conf[\'newcat_default_visible\'] = true,', ); +$lang['Adv_case'][11] = array( /* level_separator */ + 'Try something else like $conf[\'level_separator\'] = \'+ \',', ); +$lang['Adv_case'][12] = array( /* paginate_pages_around */ + 'Usual range is between 2 and 5. To be light, choose $conf[\'paginate_pages_around\'] = 2, ', + 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7,', ); +$lang['Adv_case'][13] = array( /* tn_width */ + 'Should be a close value to your thumbnail width. Usual range is between 96 and 150, about $conf[\'tn_width\'] = 128,', ); +$lang['Adv_case'][14] = array( /* tn_height */ + 'Should be a close value to your thumbnail height. Usual range is between 96 and 150, about $conf[\'tn_height\'] = 128,', ); +$lang['Adv_case'][15] = array( /* tn_height */ + 'Thumbnail height and width have to be equal.', + 'Choose $conf[\'tn_height\'] = $conf[\'tn_width\'],', + 'or $conf[\'tn_width\'] = $conf[\'tn_height\'],', ); +$lang['Adv_case'][16] = array( /* show_version */ + 'For security reason, please set $conf[\'show_version\'] = false,', ); +$lang['Adv_case'][17] = array( /* show_thumbnail_caption */ + 'For a lighter gallery just have a look to $conf[\'show_thumbnail_caption\'] = false,', ); +$lang['Adv_case'][18] = array( /* show_picture_name_on_title */ + 'For a lighter gallery just have a look to $conf[\'show_picture_name_on_title\'] = false,', ); +$lang['Adv_case'][19] = array( /* subcatify */ + 'If you do NOT have any category descriptions just have a look to $conf[\'subcatify\'] = false,', ); +$lang['Adv_case'][20] = array( /* allow_random_representative */ + 'Leave $conf[\'allow_random_representative\'] = true, ', + 'but analyze if you can avoid for performance reasons.' , ); +$lang['Adv_case'][21] = array( /* prefix_thumbnail */ + 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.', + 'Do NOT change it except if your thumbnails are NOT visible.', + 'Distant site may use a different prefix but create_listing_file.php must be modified.', + 'You will get a warning message during synchronization in that case.', + 'Try to keep the same prefix thru all your sites either local or distants.', + 'Keep this parameter in your ./include/config_ local.inc.php', + 'See our wiki configuration page for more information about ./include/config_local.inc.php.', ); +$lang['Adv_case'][22] = array( /* users_page */ + 'Unless you have a low band connection, you can draw up $conf[\'users_page\'] to a higher value if you have more than 20 members.', ); +$lang['Adv_case'][23] = array( /* mail_options */ + 'Should be false, only few webmasters have to set $conf[\'mail_options\'] = true, ', + 'A specific advice you can get from an advanced user on our forum in some mailing issues.', ); +$lang['Adv_case'][24] = array( /* check_upgrade_feed */ + 'Should be false, only PWG dev Team have to set $conf[\'check_upgrade_feed\'] = true, for test purpose.' , ); +$lang['Adv_case'][25] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.', ); +$lang['Adv_case'][26] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.', + 'Check your best rated pictures prior to remove some values.', + 'Reduce excessive rating and change your $conf[\'rate_items\'].', ); +$lang['Adv_case'][27] = array( /* show_iptc */ + 'Could be true, think about $conf[\'show_iptc\'] = false,', + 'Some Professional photographers choose false their reasons are not really professional.' , + 'Do NOT confuse between show_iptc and use_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][28] = array( /* use_iptc */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave it as $conf[\'use_iptc\'] = false,', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'Do NOT confuse between show_iptc and use_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][29] = array( /* use_iptc */ + 'How to deal with IPTC:', + '1 - Copy one of your jpg pictures (a public one) in ./tools/', + '2 - Rename it as sample.jpg.', + '3 - Run ./tools/metadata.php', + '4 - Analyse results to determine which IPTC fields could be used to override database fields.', + 'Beginners would prefer to keep $conf[\'use_iptc\'] = false,', + 'Advanced users make documentation efforts prior to upload their pictures.', + 'IPTC fields have to be described in $conf[\'use_iptc_mapping\']', + 'In any case, show_iptc_mapping and use_iptc_mapping must be totally different.', ); +$lang['Adv_case'][30] = array( /* use_iptc_mapping */ + 'How to deal with IPTC:', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'In any case, show_iptc_mapping and use_iptc_mapping must be totally different.', ); +$lang['Adv_case'][31] = array( /* show_exif */ + 'Should be true, some information from your camera can be displayed.', + 'Think about EXIF information could be different depending on camera models.', + 'If you change your camera these fields could be partly different.', + 'Many professional photographers choose false, their reasons are to protect their knowledge.' , + 'Do NOT confuse between show_exif and use_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][32] = array( /* use_exif */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave the default value.', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with EXIF values even those ones are NOT empty.', + 'Do NOT confuse between show_exif and use_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][33] = array( /* **navigation */ + 'You can use keyboard arrows to navigate between pictures.', ); +?> \ No newline at end of file diff --git a/plugins/admin_advices/fr_FR/index.php b/plugins/admin_advices/language/es_ES/index.php similarity index 100% rename from plugins/admin_advices/fr_FR/index.php rename to plugins/admin_advices/language/es_ES/index.php diff --git a/plugins/admin_advices/language/es_ES/plugin.lang.php b/plugins/admin_advices/language/es_ES/plugin.lang.php new file mode 100644 index 000000000..cdae1d6c4 --- /dev/null +++ b/plugins/admin_advices/language/es_ES/plugin.lang.php @@ -0,0 +1,157 @@ +or change to $conf[\'calendar_datefield\'] = \'date_available\'', + 'Activate metadata usage as you want: ', + '1 - $conf[\'use_iptc\'] = true, or $conf[\'use_exif\'] = true, each way will be correct.', + '2 - And respectively map:', + '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' => \'2#055\', ...', + 'or/and:', + '$conf[\'use_exif_mapping\'] = array(\'date_creation\' => \'DateTimeOriginal\', ...', + '3 - Finally, a new task is up to you: Metadata synchronization.', ); +$lang['Adv_case'][10] = array( /* newcat_default_visible */ + 'Not useful, private status is better, so code $conf[\'newcat_default_visible\'] = true,', ); +$lang['Adv_case'][11] = array( /* level_separator */ + 'Try something else like $conf[\'level_separator\'] = \'+ \',', ); +$lang['Adv_case'][12] = array( /* paginate_pages_around */ + 'Usual range is between 2 and 5. To be light, choose $conf[\'paginate_pages_around\'] = 2, ', + 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7,', ); +$lang['Adv_case'][13] = array( /* tn_width */ + 'Should be a close value to your thumbnail width. Usual range is between 96 and 150, about $conf[\'tn_width\'] = 128,', ); +$lang['Adv_case'][14] = array( /* tn_height */ + 'Should be a close value to your thumbnail height. Usual range is between 96 and 150, about $conf[\'tn_height\'] = 128,', ); +$lang['Adv_case'][15] = array( /* tn_height */ + 'Thumbnail height and width have to be equal.', + 'Choose $conf[\'tn_height\'] = $conf[\'tn_width\'],', + 'or $conf[\'tn_width\'] = $conf[\'tn_height\'],', ); +$lang['Adv_case'][16] = array( /* show_version */ + 'For security reason, please set $conf[\'show_version\'] = false,', ); +$lang['Adv_case'][17] = array( /* show_thumbnail_caption */ + 'For a lighter gallery just have a look to $conf[\'show_thumbnail_caption\'] = false,', ); +$lang['Adv_case'][18] = array( /* show_picture_name_on_title */ + 'For a lighter gallery just have a look to $conf[\'show_picture_name_on_title\'] = false,', ); +$lang['Adv_case'][19] = array( /* subcatify */ + 'If you do NOT have any category descriptions just have a look to $conf[\'subcatify\'] = false,', ); +$lang['Adv_case'][20] = array( /* allow_random_representative */ + 'Leave $conf[\'allow_random_representative\'] = true, ', + 'but analyze if you can avoid for performance reasons.' , ); +$lang['Adv_case'][21] = array( /* prefix_thumbnail */ + 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.', + 'Do NOT change it except if your thumbnails are NOT visible.', + 'Distant site may use a different prefix but create_listing_file.php must be modified.', + 'You will get a warning message during synchronization in that case.', + 'Try to keep the same prefix thru all your sites either local or distants.', + 'Keep this parameter in your ./include/config_ local.inc.php', + 'See our wiki configuration page for more information about ./include/config_local.inc.php.', ); +$lang['Adv_case'][22] = array( /* users_page */ + 'Unless you have a low band connection, you can draw up $conf[\'users_page\'] to a higher value if you have more than 20 members.', ); +$lang['Adv_case'][23] = array( /* mail_options */ + 'Should be false, only few webmasters have to set $conf[\'mail_options\'] = true, ', + 'A specific advice you can get from an advanced user on our forum in some mailing issues.', ); +$lang['Adv_case'][24] = array( /* check_upgrade_feed */ + 'Should be false, only PWG dev Team have to set $conf[\'check_upgrade_feed\'] = true, for test purpose.' , ); +$lang['Adv_case'][25] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.', ); +$lang['Adv_case'][26] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.', + 'Check your best rated pictures prior to remove some values.', + 'Reduce excessive rating and change your $conf[\'rate_items\'].', ); +$lang['Adv_case'][27] = array( /* show_iptc */ + 'Could be true, think about $conf[\'show_iptc\'] = false,', + 'Some Professional photographers choose false their reasons are not really professional.' , + 'Do NOT confuse between show_iptc and use_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][28] = array( /* use_iptc */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave it as $conf[\'use_iptc\'] = false,', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'Do NOT confuse between show_iptc and use_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][29] = array( /* use_iptc */ + 'How to deal with IPTC:', + '1 - Copy one of your jpg pictures (a public one) in ./tools/', + '2 - Rename it as sample.jpg.', + '3 - Run ./tools/metadata.php', + '4 - Analyse results to determine which IPTC fields could be used to override database fields.', + 'Beginners would prefer to keep $conf[\'use_iptc\'] = false,', + 'Advanced users make documentation efforts prior to upload their pictures.', + 'IPTC fields have to be described in $conf[\'use_iptc_mapping\']', + 'In any case, show_iptc_mapping and use_iptc_mapping must be totally different.', ); +$lang['Adv_case'][30] = array( /* use_iptc_mapping */ + 'How to deal with IPTC:', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'In any case, show_iptc_mapping and use_iptc_mapping must be totally different.', ); +$lang['Adv_case'][31] = array( /* show_exif */ + 'Should be true, some information from your camera can be displayed.', + 'Think about EXIF information could be different depending on camera models.', + 'If you change your camera these fields could be partly different.', + 'Many professional photographers choose false, their reasons are to protect their knowledge.' , + 'Do NOT confuse between show_exif and use_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][32] = array( /* use_exif */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave the default value.', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with EXIF values even those ones are NOT empty.', + 'Do NOT confuse between show_exif and use_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][33] = array( /* **navigation */ + 'You can use keyboard arrows to navigate between pictures.', ); +?> \ No newline at end of file diff --git a/template/yoga/admin/index.php b/plugins/admin_advices/language/fr_FR/index.php similarity index 100% rename from template/yoga/admin/index.php rename to plugins/admin_advices/language/fr_FR/index.php diff --git a/plugins/admin_advices/language/fr_FR/plugin.lang.php b/plugins/admin_advices/language/fr_FR/plugin.lang.php new file mode 100644 index 000000000..20ea2aef2 --- /dev/null +++ b/plugins/admin_advices/language/fr_FR/plugin.lang.php @@ -0,0 +1,159 @@ +ou changez pour $conf[\'calendar_datefield\'] = \'date_available\'', + 'Activez l\'usage des méta-données simplement par: ', + '1 - $conf[\'use_iptc\'] = true; ou $conf[\'use_exif\'] = true; au choix, les 2 sont valables.', + '2 - Respectivement à chacune faire la modif:', + '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' => \'2#055\', ...', + 'et/ou:', + '$conf[\'use_exif_mapping\'] = array(\'date_creation\' => \'DateTimeOriginal\', ...', + '3 - Enfin une nouvelle tache vous est destinée: la synchronisation des méta-données.', ); +$lang['Adv_case'][10] = array( /* newcat_default_visible */ + 'C\'est une erreur, un statut "private" est plus simple, alors choisissez $conf[\'newcat_default_visible\'] = true;', ); +$lang['Adv_case'][11] = array( /* level_separator */ + 'Vous pouvez toujours essayer un autre séparateur comme : $conf[\'level_separator\'] = \'+ \';', ); +$lang['Adv_case'][12] = array( /* paginate_pages_around */ + 'Les valeurs habituelles se situent entre 2 et 5. Pour un site avec une interface légère, on choisira : ', + '$conf[\'paginate_pages_around\'] = 2;', + 'Afin de proposer plus d\'accès directs, on choisira : $conf[\'paginate_pages_around\'] = 7;', ); +$lang['Adv_case'][13] = array( /* tn_width */ + 'Doit être une valeur proche de la largeur de vos miniatures. Les valeurs habituelles se situent entre 96 et 150, comme $conf[\'tn_width\'] = 128;', ); +$lang['Adv_case'][14] = array( /* tn_height */ + 'Doit être une valeur proche de la hauteur de vos miniatures. Les valeurs habituelles se situent entre 96 et 150, comme $conf[\'tn_height\'] = 128;', ); +$lang['Adv_case'][15] = array( /* tn_height */ + 'Largeur et hauteur de miniature devraient être égales.', + 'Essayez $conf[\'tn_height\'] = $conf[\'tn_width\'],', + 'ou $conf[\'tn_width\'] = $conf[\'tn_height\'],', ); +$lang['Adv_case'][16] = array( /* show_version */ + 'Pour des raisons de sécurité de votre galerie, préférez $conf[\'show_version\'] = false;', ); +$lang['Adv_case'][17] = array( /* show_thumbnail_caption */ + 'Pour une galerie moins chargée, faites le test de $conf[\'show_thumbnail_caption\'] = false,', ); +$lang['Adv_case'][18] = array( /* show_picture_name_on_title */ + 'Pour une galerie moins chargée, faites le test de $conf[\'show_picture_name_on_title\'] = false,', ); +$lang['Adv_case'][19] = array( /* subcatify */ + 'Si aucune de vos catégories ne possède de description alors essayez $conf[\'subcatify\'] = false;', ); +$lang['Adv_case'][20] = array( /* allow_random_representative */ + 'Laissez $conf[\'allow_random_representative\'] = true, ', + 'mais étudiez comment vous pourriez l\'éviter pour des raisons de performance.' , ); +$lang['Adv_case'][21] = array( /* prefix_thumbnail */ + 'Attention, votre $conf[\'prefix_thumbnail\'] n\'est pas standard.', + 'Ne pas changer votre préfixe sauf si vos miniatures ont un problème d\'affichage.', + 'Un site distant peut avoir un préfixe différent, le create_listing_file.php devra être modifié.', + 'Vous devriez avoir un message d\'avertissement pendant la synchronisation dans ce cas.', + 'Essayez de garder le même préfixe de miniatures pour les sites locaux ou distants.', + 'Conservez ce paramètre dans votre ./include/config_local.inc.php.', + 'Voir la page sur la configuration dans le Wiki pour plus d\'informations à propos de ./include/config_local.inc.php.', ); +$lang['Adv_case'][22] = array( /* users_page */ + 'A moins d\'avoir une connexion bas débit, vous pouvez augmenter largement $conf[\'users_page\'] surtout si vous avez plus de 20 membres.', ); +$lang['Adv_case'][23] = array( /* mail_options */ + 'Devrait être à false, seulement quelques webmasters devront indiquer $conf[\'mail_options\'] = true;', + 'Un utilisateur avancé de notre forum les aura conseillé dans un seul cas de problème d\'email.', ); +$lang['Adv_case'][24] = array( /* check_upgrade_feed */ + 'Devrait être à false, seuls les membres de l\'équipe Piwigo codent $conf[\'check_upgrade_feed\'] = true; pour leurs tests.', ); +$lang['Adv_case'][25] = array( /* rate_items */ + 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments mais pas moins.', ); +$lang['Adv_case'][26] = array( /* rate_items */ + 'Votre $conf[\'rate_items\'] devrait avoir 4 ou 5 éléments mais pas plus.', + 'Contrôlez vos images les mieux notées avant de retirer certaines valeurs.', + 'Réduire les valeurs excessives et modifiez votre $conf[\'rate_items\'].', ); +$lang['Adv_case'][27] = array( /* show_iptc */ + 'Peut être effectivement à true, éventuellement choisissez $conf[\'show_iptc\'] = false,', + 'Comme quelques photographes professionnels choisissez false bien que leurs raisons ne soient guère professionnelles.', + 'Ne confondez pas show_iptc et use_iptc (consultez les pages sur les métadonnées de notre wiki).', ); +$lang['Adv_case'][28] = array( /* use_iptc */ + 'Les documentalistes et photographes professionnels préfèreront la valeur true, mais les débutants devraient laisser $conf[\'use_iptc\'] = false,', + 'Faire attention aux champs mentionnés dans la synchronisation des métadonnées.', + 'Les champs indiqués pourront être écrasés par des valeurs de champs IPTC quand bien même ces champs ne seraient pas vides.', + 'Ne confondez pas show_iptc et use_iptc (consultez les pages sur les métadonnées de notre wiki).', ); +$lang['Adv_case'][29] = array( /* use_iptc */ + 'Comment gérer les IPTC:', + '1 - Copiez une image jpg (publique) dans ./tools/', + '2 - Renommez celle-ci en sample.jpg.', + '3 - Lancez ./tools/metadata.php', + '4 - Analysez les résultats pour déterminer quels champs IPTC pourraient compléter votre base de données.', + 'Les débutants laisseront $conf[\'use_iptc\'] = false,', + 'Les utilisateurs avancés feront des efforts de documentation avant de transférer leurs images.', + 'Les champs IPTC doivent être décrits par $conf[\'use_iptc_mapping\']', + 'Dans tous les cas, show_iptc_mapping et use_iptc_mapping seront totalement différents.', ); +$lang['Adv_case'][30] = array( /* use_iptc_mapping */ + 'Comment gérer les IPTC:', + 'Faites attention aux champs mentionnés dans la synchronisation des métadonnées.', + 'Les champs indiqués pourront être écrasés par des valeurs de champs IPTC quand bien même ces champs ne seraient pas vides.', + 'Dans tous les cas, show_iptc_mapping et use_iptc_mapping seront totalement différents.', ); +$lang['Adv_case'][31] = array( /* show_exif */ + 'Devrait être à true, certaines informations propres à votre appareil pourront être affichées.', + 'Pensez au fait que les informations EXIF peuvent être différentes suivant les modèles d\'appareil.', + 'Si vous changez votre appareil ces champs pourraient en partie differents.', + 'Beaucoup de photographes professionnels choissent false, ceci afin de protéger leur savoir-faire.' , + 'Ne confondez pas show_exif et use_exif (consultez les pages sur les métadonnées de notre wiki).', ); +$lang['Adv_case'][32] = array( /* use_exif */ +'Les documentalistes et photographes professionnels préfèreront la valeur true, mais les débutants laisseront la valeur par défaut.', + 'Take care of mentionned fields in metadata synchronization.', + 'Les champs indiqués pourront être écrasés par des valeurs de champs EXIF quand bien même ces champs ne seraient pas vides.', + 'Ne confondez pas show_exif et use_exif (consultez les pages sur les métadonnées de notre wiki).', ); +$lang['Adv_case'][33] = array( /* **navigation */ + 'Vous pouvez utiliser les flèches du clavier pour naviguer entre les images.', ); +?> \ No newline at end of file diff --git a/plugins/admin_advices/language/index.php b/plugins/admin_advices/language/index.php new file mode 100644 index 000000000..c15b15795 --- /dev/null +++ b/plugins/admin_advices/language/index.php @@ -0,0 +1,30 @@ + diff --git a/plugins/admin_advices/language/it_IT/index.php b/plugins/admin_advices/language/it_IT/index.php new file mode 100644 index 000000000..c15b15795 --- /dev/null +++ b/plugins/admin_advices/language/it_IT/index.php @@ -0,0 +1,30 @@ + diff --git a/plugins/admin_advices/language/it_IT/plugin.lang.php b/plugins/admin_advices/language/it_IT/plugin.lang.php new file mode 100644 index 000000000..cdae1d6c4 --- /dev/null +++ b/plugins/admin_advices/language/it_IT/plugin.lang.php @@ -0,0 +1,157 @@ +or change to $conf[\'calendar_datefield\'] = \'date_available\'', + 'Activate metadata usage as you want: ', + '1 - $conf[\'use_iptc\'] = true, or $conf[\'use_exif\'] = true, each way will be correct.', + '2 - And respectively map:', + '$conf[\'use_iptc_mapping\'] = array( ..., \'date_creation\' => \'2#055\', ...', + 'or/and:', + '$conf[\'use_exif_mapping\'] = array(\'date_creation\' => \'DateTimeOriginal\', ...', + '3 - Finally, a new task is up to you: Metadata synchronization.', ); +$lang['Adv_case'][10] = array( /* newcat_default_visible */ + 'Not useful, private status is better, so code $conf[\'newcat_default_visible\'] = true,', ); +$lang['Adv_case'][11] = array( /* level_separator */ + 'Try something else like $conf[\'level_separator\'] = \'+ \',', ); +$lang['Adv_case'][12] = array( /* paginate_pages_around */ + 'Usual range is between 2 and 5. To be light, choose $conf[\'paginate_pages_around\'] = 2, ', + 'To offer large jump, choose $conf[\'paginate_pages_around\'] = 7,', ); +$lang['Adv_case'][13] = array( /* tn_width */ + 'Should be a close value to your thumbnail width. Usual range is between 96 and 150, about $conf[\'tn_width\'] = 128,', ); +$lang['Adv_case'][14] = array( /* tn_height */ + 'Should be a close value to your thumbnail height. Usual range is between 96 and 150, about $conf[\'tn_height\'] = 128,', ); +$lang['Adv_case'][15] = array( /* tn_height */ + 'Thumbnail height and width have to be equal.', + 'Choose $conf[\'tn_height\'] = $conf[\'tn_width\'],', + 'or $conf[\'tn_width\'] = $conf[\'tn_height\'],', ); +$lang['Adv_case'][16] = array( /* show_version */ + 'For security reason, please set $conf[\'show_version\'] = false,', ); +$lang['Adv_case'][17] = array( /* show_thumbnail_caption */ + 'For a lighter gallery just have a look to $conf[\'show_thumbnail_caption\'] = false,', ); +$lang['Adv_case'][18] = array( /* show_picture_name_on_title */ + 'For a lighter gallery just have a look to $conf[\'show_picture_name_on_title\'] = false,', ); +$lang['Adv_case'][19] = array( /* subcatify */ + 'If you do NOT have any category descriptions just have a look to $conf[\'subcatify\'] = false,', ); +$lang['Adv_case'][20] = array( /* allow_random_representative */ + 'Leave $conf[\'allow_random_representative\'] = true, ', + 'but analyze if you can avoid for performance reasons.' , ); +$lang['Adv_case'][21] = array( /* prefix_thumbnail */ + 'Be careful your $conf[\'prefix_thumbnail\'] is NOT standard.', + 'Do NOT change it except if your thumbnails are NOT visible.', + 'Distant site may use a different prefix but create_listing_file.php must be modified.', + 'You will get a warning message during synchronization in that case.', + 'Try to keep the same prefix thru all your sites either local or distants.', + 'Keep this parameter in your ./include/config_ local.inc.php', + 'See our wiki configuration page for more information about ./include/config_local.inc.php.', ); +$lang['Adv_case'][22] = array( /* users_page */ + 'Unless you have a low band connection, you can draw up $conf[\'users_page\'] to a higher value if you have more than 20 members.', ); +$lang['Adv_case'][23] = array( /* mail_options */ + 'Should be false, only few webmasters have to set $conf[\'mail_options\'] = true, ', + 'A specific advice you can get from an advanced user on our forum in some mailing issues.', ); +$lang['Adv_case'][24] = array( /* check_upgrade_feed */ + 'Should be false, only PWG dev Team have to set $conf[\'check_upgrade_feed\'] = true, for test purpose.' , ); +$lang['Adv_case'][25] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 4 or 5 items not less.', ); +$lang['Adv_case'][26] = array( /* rate_items */ + 'Your $conf[\'rate_items\'] would have 5 or 6 items not more.', + 'Check your best rated pictures prior to remove some values.', + 'Reduce excessive rating and change your $conf[\'rate_items\'].', ); +$lang['Adv_case'][27] = array( /* show_iptc */ + 'Could be true, think about $conf[\'show_iptc\'] = false,', + 'Some Professional photographers choose false their reasons are not really professional.' , + 'Do NOT confuse between show_iptc and use_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][28] = array( /* use_iptc */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave it as $conf[\'use_iptc\'] = false,', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'Do NOT confuse between show_iptc and use_iptc (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][29] = array( /* use_iptc */ + 'How to deal with IPTC:', + '1 - Copy one of your jpg pictures (a public one) in ./tools/', + '2 - Rename it as sample.jpg.', + '3 - Run ./tools/metadata.php', + '4 - Analyse results to determine which IPTC fields could be used to override database fields.', + 'Beginners would prefer to keep $conf[\'use_iptc\'] = false,', + 'Advanced users make documentation efforts prior to upload their pictures.', + 'IPTC fields have to be described in $conf[\'use_iptc_mapping\']', + 'In any case, show_iptc_mapping and use_iptc_mapping must be totally different.', ); +$lang['Adv_case'][30] = array( /* use_iptc_mapping */ + 'How to deal with IPTC:', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with IPTC values even those ones are NOT empty.', + 'In any case, show_iptc_mapping and use_iptc_mapping must be totally different.', ); +$lang['Adv_case'][31] = array( /* show_exif */ + 'Should be true, some information from your camera can be displayed.', + 'Think about EXIF information could be different depending on camera models.', + 'If you change your camera these fields could be partly different.', + 'Many professional photographers choose false, their reasons are to protect their knowledge.' , + 'Do NOT confuse between show_exif and use_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][32] = array( /* use_exif */ + 'Documentalists and professionnal photographers would set it true, but beginners should leave the default value.', + 'Take care of mentionned fields in metadata synchronization.', + 'Mentionned fields would be rewrited with EXIF values even those ones are NOT empty.', + 'Do NOT confuse between show_exif and use_exif (have a look on metadata page on our wiki).', ); +$lang['Adv_case'][33] = array( /* **navigation */ + 'You can use keyboard arrows to navigate between pictures.', ); +?> \ No newline at end of file diff --git a/plugins/admin_advices/main.inc.php b/plugins/admin_advices/main.inc.php index fe87cc723..b54f77751 100644 --- a/plugins/admin_advices/main.inc.php +++ b/plugins/admin_advices/main.inc.php @@ -29,99 +29,8 @@ Plugin URI: http://piwigo.org Author: Piwigo team Author URI: http://piwigo.org */ +if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); -add_event_handler('loc_end_page_header', 'set_admin_advice_add_css' ); - -// Add a XHTML tag in HEAD section -function set_admin_advice_add_css() -{ - global $template, $page; - if ( isset($page['body_id']) and $page['body_id']=='theAdminPage' - and $page['page'] == 'intro' - ) - {// This Plugin works only on the Admin page - $template->append( - 'head_elements', - '' - ); - add_event_handler('loc_begin_page_tail', 'set_admin_advice' ); - } -} - -// Build an advice on the Admin Intro page -function set_admin_advice() -{ - global $page, $user, $template, $conf; - -// Setup Advice Language (Maybe there is already a variable) - $advlang = ( isset($user['language']) ) ? - $user['language'] : get_default_language(); // en_UK - $my_path = dirname(__FILE__).'/'; - $adv = array(); - if ( !@file_exists($my_path."$advlang/lang.adv.php") ) - { - $advlang = 'en_UK'; - } -// Include language advices - @include_once( $my_path."$advlang/lang.adv.php" ); - -// If there is an advice - if ( $cond ) - { - $template->set_filenames(array( - 'admin_advice' => $my_path.'admin_advices.tpl') - ); - -// Random Thumbnail - $query = ' -SELECT * -FROM '.IMAGES_TABLE.' -ORDER BY RAND(NOW()) -LIMIT 0, 1 -;'; - $result = pwg_query($query); - $row = mysql_fetch_assoc($result); - if ( is_array($row) ) - { - $url_modify = get_root_url().'admin.php?page=picture_modify' - .'&image_id='.$row['id']; - $query = ' -SELECT * FROM '.IMAGE_TAG_TABLE.' -WHERE image_id = ' . $row['id'] .' -;'; - $tag_count = mysql_num_rows(mysql_query($query)); - $template->assign('thumbnail', - array( - 'IMAGE' => get_thumbnail_url($row), - 'IMAGE_ALT' => $row['file'], - 'IMAGE_TITLE' => $row['name'], - 'METADATA' => (empty($row['date_metadata_update'])) ? - 'un' : '', - 'NAME' => (empty($row['name'])) ? - 'un' : '', - 'COMMENT' => (empty($row['comment'])) ? - 'un' : '', - 'AUTHOR' => (empty($row['author'])) ? - 'un' : '', - 'CREATE_DATE' => (empty($row['date_creation'])) ? - 'un' : '', - 'TAGS' => ($tag_count == 0) ? - 'un' : '', - 'NUM_TAGS' => $tag_count, - 'U_MODIFY' => $url_modify, - ) - ); - } - $advice_text = array_shift($adv); - $template->assign( - array( - 'ADVICE_ABOUT' => '$conf[' . "'$confk'] ", - 'ADVICE_TEXT' => $advice_text, - ) - ); - $template->assign('More', $adv ); - $template->pparse('admin_advice'); - } -} +if (script_basename() == 'admin' and defined('IN_ADMIN') and IN_ADMIN) + include_once(dirname(__FILE__).'/admin_advices.php'); ?> diff --git a/template/yoga/admin.tpl b/template/yoga/admin.tpl deleted file mode 100644 index 0fd142357..000000000 --- a/template/yoga/admin.tpl +++ /dev/null @@ -1,103 +0,0 @@ -{* $Id$ *} -
- - -
- {if isset($errors)} -
-
    - {foreach from=$errors item=error} -
  • {$error}
  • - {/foreach} -
-
- {/if} - - {if isset($infos)} -
-
    - {foreach from=$infos item=info} -
  • {$info}
  • - {/foreach} -
-
- {/if} - - {$ADMIN_CONTENT} -
diff --git a/template/yoga/admin/advanced_feature.tpl b/template/yoga/admin/advanced_feature.tpl deleted file mode 100644 index 128428ba1..000000000 --- a/template/yoga/admin/advanced_feature.tpl +++ /dev/null @@ -1,13 +0,0 @@ -{* $Id$ *} -
-
    -
  • (?)
  • -
-

{'Advanced_features'|@translate}

-
- - diff --git a/template/yoga/admin/cat_list.tpl b/template/yoga/admin/cat_list.tpl deleted file mode 100644 index b408a5a50..000000000 --- a/template/yoga/admin/cat_list.tpl +++ /dev/null @@ -1,65 +0,0 @@ -{* $Id$ *} -

{'title_categories'|@translate}

- -

{$CATEGORIES_NAV}

- -
-

- {'cat_add'|@translate} : - - {if count($categories)>9 } - page_end - {/if} -

-
- -{if count($categories) } -
-

- - -

-
    - - {foreach from=$categories item=category} -
  • - -
      -
    • {'jump to category'|@translate}
    • -
    • {'edit'|@translate}
    • - {if isset($category.U_MANAGE_ELEMENTS) } -
    • {'elements'|@translate}
    • - {/if} -
    • {'sub-categories'|@translate}
    • - {if isset($category.U_MANAGE_PERMISSIONS) } -
    • {'permissions'|@translate}
    • - {/if} - {if isset($category.U_DELETE) } -
    • {'delete'|@translate}
    • - {/if} -
    - -

    - {$category.NAME} - {if $category.IS_VIRTUAL} - {'virtual_category'|@translate} - {/if} -

    - -

    - -

    - -
  • - {/foreach} -
-

- - -

- -
-{/if} diff --git a/template/yoga/admin/cat_modify.tpl b/template/yoga/admin/cat_modify.tpl deleted file mode 100644 index 88e07e329..000000000 --- a/template/yoga/admin/cat_modify.tpl +++ /dev/null @@ -1,229 +0,0 @@ -{* $Id$ *} -
-
    -
  • (?)
  • -
-

{'title_edit_cat'|@translate}

-
- -

{$CATEGORIES_NAV}

- -
    -
  • {'jump to category'|@translate}
  • - {if isset($U_MANAGE_ELEMENTS) } -
  • {'elements'|@translate}
  • - {/if} -
  • {'sub-categories'|@translate}
  • - {if isset($U_MANAGE_PERMISSIONS) } -
  • {'permissions'|@translate}
  • - {/if} - {if isset($U_DELETE) } -
  • {'delete'|@translate}
  • - {/if} -
- -
- -
- {'Informations'|@translate} - - - {if isset($CAT_FULL_DIR) } - - - - - {/if} - - - - - - - - - -
{'storage'|@translate}{$CAT_FULL_DIR}
{'name'|@translate} - -
{'description'|@translate} - -
-
- -{if isset($move_cat_options) } -
- {'Move'|@translate} - {'Parent category'|@translate} - -
-{/if} - -
- {'Options'|@translate} - - - - - - - - - - - {if isset($SHOW_UPLOADABLE) } - - - - {/if} -
{'conf_access'|@translate} - - {html_radios name='status' values=$status_values output=$status_values|translate selected=$CAT_STATUS} -
{'lock'|@translate} - - {html_radios name='visible' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_VISIBLE} -
{'comments'|@translate} - - {html_radios name='commentable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_COMMENTABLE} -
{'editcat_uploadable'|@translate} - - {html_radios name='uploadable' values='false,true'|@explode output='No,Yes'|@explode|translate selected=$CAT_UPLOADABLE} -
-
- -
- {'Sort order'|@translate} - - -
- - -
- - {foreach from=$image_orders item=order} - -
- {/foreach} - -
- -

- - -

- -{if isset($representant) } -
- {'Representant'|@translate} - - - - - -
- {if isset($representant.picture) } - - {else} - {'Random picture'|@translate} - {/if} - - {if $representant.ALLOW_SET_RANDOM } -

- {/if} - - {if isset($representant.ALLOW_DELETE) } -

- {/if} -
-
-{/if} - -
- - diff --git a/template/yoga/admin/cat_move.tpl b/template/yoga/admin/cat_move.tpl deleted file mode 100644 index 318a025ab..000000000 --- a/template/yoga/admin/cat_move.tpl +++ /dev/null @@ -1,38 +0,0 @@ -{* $Id$ *} - -
-
    -
  • (?)
  • -
-

{'Move categories'|@translate}

-
- -
-
- {'Virtual categories movement'|@translate} - - - - - -
- -

- - -

- -
diff --git a/template/yoga/admin/cat_options.tpl b/template/yoga/admin/cat_options.tpl deleted file mode 100644 index e6186d551..000000000 --- a/template/yoga/admin/cat_options.tpl +++ /dev/null @@ -1,16 +0,0 @@ -{* $Id$ *} -
- {$TABSHEET} -
    -
  • (?)
  • -
-

{'cat_options_title'|@translate} {$TABSHEET_TITLE}

-
- -
-
- {$L_SECTION} - {$DOUBLE_SELECT} -
-
- diff --git a/template/yoga/admin/cat_perm.tpl b/template/yoga/admin/cat_perm.tpl deleted file mode 100644 index 857448112..000000000 --- a/template/yoga/admin/cat_perm.tpl +++ /dev/null @@ -1,68 +0,0 @@ -{* $Id$ *} -
-
    -
  • (?)
  • -
-

{'Manage permissions for a category'|@translate}

-
- -

{$CATEGORIES_NAV}

- -
- -

{'Groups'|@translate}

- -
- {'Permission granted'|@translate} -
    - {foreach from=$group_granted_ids item=id} -
  • - {/foreach} -
- -
- -
- {'Permission denied'|@translate} -
    - {foreach from=$group_denied_ids item=id} -
  • - {/foreach} -
- -
- -

{'Users'|@translate}

- -
- {'Permission granted'|@translate} -
    - {foreach from=$user_granted_direct_ids item=id} -
  • - {/foreach} -
- -
- -
- {'Permission granted thanks to a group'|@translate} - {if isset($user_granted_indirects) } -
    - {foreach from=$user_granted_indirects item=user_group} -
  • {$user_group.USER} ({$user_group.GROUP})
  • - {/foreach} -
- {/if} -
- -
- {'Permission denied'|@translate} -
    - {foreach from=$user_denied_ids item=id} -
  • - {/foreach} -
- -
- -
diff --git a/template/yoga/admin/check_integrity.tpl b/template/yoga/admin/check_integrity.tpl deleted file mode 100644 index 1783e69e2..000000000 --- a/template/yoga/admin/check_integrity.tpl +++ /dev/null @@ -1,84 +0,0 @@ -{* $Id$ *} -
-
{'c13y_title'|@translate}
-
-
    -
    -
    - - - - - - - {if isset($c13y_list)} - {foreach from=$c13y_list item=c13y name=c13y_loop} - - - - - - {/foreach} - {/if} -
    {'c13y_Anomaly'|@translate}{'c13y_Correction'|@translate}
    - {if $c13y.can_select} - - {/if} - - -
    - -

    - {if $c13y_show_submit_ignore} - {'Check all'|@translate} - / {'Uncheck all'|@translate} - {/if} - {if isset($c13y_do_check)} - / {'c13y_check_auto'|@translate} - {/if} -

    - -

    - {if $c13y_show_submit_automatic_correction} - - {/if} - {if $c13y_show_submit_ignore} - - {/if} - -

    - -
    -
    -
-
diff --git a/template/yoga/admin/comments.tpl b/template/yoga/admin/comments.tpl deleted file mode 100644 index 1c7df910e..000000000 --- a/template/yoga/admin/comments.tpl +++ /dev/null @@ -1,33 +0,0 @@ -{* $Id$ *} -
- {$TABSHEET} -

{'waiting'|@translate} {$TABSHEET_TITLE}

-
- -

{'User comments validation'|@translate}

- -{if !empty($comments) } -
- - {foreach from=$comments item=comment} -
- -

{$comment.AUTHOR} - {$comment.DATE}

-
{$comment.CONTENT}
-
    -
  • -
  • -
-
- {/foreach} - -

- - - - - -

- -
-{/if} \ No newline at end of file diff --git a/template/yoga/admin/configuration.tpl b/template/yoga/admin/configuration.tpl deleted file mode 100644 index ec5695f5a..000000000 --- a/template/yoga/admin/configuration.tpl +++ /dev/null @@ -1,179 +0,0 @@ -{* $Id$ *} -
- {$TABSHEET} -
    -
  • (?)
  • -
-

{'title_configuration'|@translate} {$TABSHEET_TITLE}

-
- -
- -{if isset($main)} -
-
    -
  • - - - - -
  • - -
  • - - - - -
  • - -
  • - - - - -
  • -
-
- -
-
    - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • - -
  • -
-
-{/if} - -{if isset($history)} -
-
    -
  • - -
  • - -
  • - -
  • - -
  • - -
  • -
-
-{/if} - - -{if isset($comments)} -
-
    -
  • - -
  • - -
  • - - - - -
  • - -
  • - -
  • - - -
  • - -
  • - -
  • - -
  • - -
-
-{/if} - -{if isset($upload)} -
-
    -
  • - -
  • -
  • -
  • -
  • - -
  • -
-
-{/if} - -{if isset($default)} -{$PROFILE_CONTENT} -{/if} - -{if !isset($default)} -

- - -

-{/if} -
diff --git a/template/yoga/admin/default-layout.css b/template/yoga/admin/default-layout.css deleted file mode 100644 index b1d976f2d..000000000 --- a/template/yoga/admin/default-layout.css +++ /dev/null @@ -1,241 +0,0 @@ -/* $Id: */ -/* History tables */ -TABLE.table2 { - border: 1px solid black; - margin: 1em auto; - padding: 0; -} - -TABLE.table2 TD, TABLE.table2 TH { - padding: 0 0.8em; -} - -TABLE.table2 TR { - text-align: left; -} - -TABLE.table2 TR.throw { - text-align: center; -} - -.hour { - white-space: pre; -} - -.number { - text-align: right; -} - -TABLE#dailyStats { - width: 60%; -} - -TABLE#detailedStats { - width: 99%; -} - -/* categoryOrdering */ -SELECT.categoryList { - width: 100%; -} - -FORM#categoryOrdering { - padding-left: 1em; /* same as FIELDSET margin (there is no fieldset in this form) */ - padding-right: 1em; /* same as FIELDSET margin (there is no fieldset in this form) */ -} -FORM#categoryOrdering p { - text-align: left; - margin-top: 1em; - margin-bottom: 1em; -} -UL.categoryUl { - list-style: none; - padding: 0; - margin: 0; -} - -LI.categoryLi { - border: 1px solid gray; - padding: 0px 5px; - margin-bottom: 5px; -} - -FORM#categoryOrdering UL.categoryActions { - float: right; - margin-top: 5px; -} -/* */ - -FORM#catModify TABLE { width: auto; } - -FIELDSET.elementEdit A { - display: block; - float: right; -} - -TABLE.doubleSelect { - text-align: center; - margin: 0 auto; - width: 100%; -} - -TABLE.doubleSelect TD { - padding: 0 5px; - width: 50%; -} - -TABLE.doubleSelect SELECT.categoryList { - width: 100%; -} - -FORM#categoryPermissions LI { - display:inline; - white-space: nowrap; -} - -FIELDSET#mainConfCheck SPAN.property, -FIELDSET#historyConf SPAN.property, -FIELDSET#commentsConf SPAN.property, -FIELDSET#uploadConf SPAN.property { - float: right; - text-align: left; -} -FIELDSET#mainConfCheck INPUT, -FIELDSET#historyConf INPUT, -FIELDSET#commentsConf INPUT, -FIELDSET#uploadConf INPUT { - float: none; -} - -FIELDSET#mainConf SPAN.property { - width: 25%; -} -FIELDSET#mainConf TEXTAREA.description { - width: 70%; -} - -FIELDSET#mainConfCheck SPAN.property, -FIELDSET#historyConf SPAN.property { - width: 90%; -} -FIELDSET#mainConfCheck INPUT, -FIELDSET#historyConf INPUT, -FIELDSET#commentsConf INPUT, -FIELDSET#uploadConf SELECT, -FIELDSET#uploadConf INPUT { - margin-left: 5%; -} - -FIELDSET#commentsConf SPAN.property { - width: 85%; -} - -FIELDSET#uploadConf SPAN.property { - width: 75%; -} - -/* PWG Links Menu is fixed Graphic charts */ -.pwgmenu { - display: table; - list-style-type: none; - list-style-image: none; /* for firefox */ - white-space: nowrap; - position: relative; - text-decoration : none; - font-family: verdana, arial, helvetica, sans-serif; - font-size: 70%; - line-height: 1.1em; - width: 66em; - margin: 1px 8px 1px auto; - padding: 3px; - background: transparent; -} -.pwgmenu li { - float: left; - width: 10em !important; - text-align: center; - margin: 0 6px; - padding: 0; - -} -.pwgmenu a { - width: 9em !important; - display: block; - padding: 4px 8px; - background: #69c; /* PWG Graphic charts */ - color: white; - text-align: center; - text-decoration: none; - font-weight: bold; - border: 1px solid #fff; /* Why bordered? in case of #69c background */ -} -.pwgmenu a:hover { - background: #f92; - color: white; -} /* PWG Graphic charts */ - - -.statBar { - height: 10px; - background-color: #66f; - border: 1px solid black; -} - -/* Tabsheet */ -UL.tabsheet { - list-style: none; - white-space: nowrap; - text-decoration: none; - border-bottom: 1px solid #fff; - margin-left: 5px; margin-right: 5px; - padding: 3px 5px; -} - -UL.tabsheet LI { - display: inline; - margin: 0px 6px; - font-size: 120%; - font-weight: normal; - border: 1px solid #fff; - border-bottom: none; - padding: 3px 2em; -} - -UL.tabsheet LI.selected_tab { - font-weight: bold; - position: relative; - top: 1px; - padding-top: 4px; -} - -.over{ -position: relative; -z-index: 0; -} - -.over:hover{ -background-color: transparent; -z-index: 50; -} - -.over span{ /*CSS for enlarged image*/ -position: absolute; -background-color: #eee; -padding: 5px; -left: -1000px; -border: 1px solid #69c; -visibility: hidden; -color: black; -text-decoration: none; -} - -.over span img{ /*CSS for enlarged image*/ -border-width: 0; -padding: 2px; -} - -.over:hover span{ /*CSS for enlarged image on hover*/ -visibility: visible; -top: 0; -left: 60px; /*position where enlarged image should offset horizontally */ -} diff --git a/template/yoga/admin/double_select.tpl b/template/yoga/admin/double_select.tpl deleted file mode 100644 index aeed8500a..000000000 --- a/template/yoga/admin/double_select.tpl +++ /dev/null @@ -1,20 +0,0 @@ -{* $Id$ *} - - - - - - -
-

{$L_CAT_OPTIONS_TRUE}

- -

-
-

{$L_CAT_OPTIONS_FALSE}

- -

-
diff --git a/template/yoga/admin/element_set_global.tpl b/template/yoga/admin/element_set_global.tpl deleted file mode 100644 index fc5a92e70..000000000 --- a/template/yoga/admin/element_set_global.tpl +++ /dev/null @@ -1,190 +0,0 @@ -{* $Id$ *} - -

{'Batch management'|@translate}

- -

{$CATEGORIES_NAV}

- -{if !empty($thumbnails)} -

- {'global mode'|@translate} - | {'unit mode'|@translate} -

- -
- - {'Display options'|@translate} - -

{'elements per page'|@translate}: - 20 - | 50 - | 100 - | {'all'|@translate} -

- -
- -
- -
- - {'Elements'|@translate} - - {if !empty($NAV_BAR)}{/if} - - {if !empty($thumbnails)} -
    - {foreach from=$thumbnails item=thumbnail} -
  • - - -
  • - {/foreach} -
- {/if} - -
- -
- - {'Form'|@translate} - - - - - - - - - - - - - - - - - - - {if !empty($DEL_TAG_SELECTION)} - - - - - {/if} - - - - - - - - - - - - - - - - - - - - - -
{'associate to category'|@translate} - -
{'dissociate from category'|@translate} - -
{'add tags'|@translate}{if !empty($ADD_TAG_SELECTION)}{$ADD_TAG_SELECTION}{else}

{'No tag defined. Use Administration>Pictures>Tags'|@translate}

{/if}
{'remove tags'|@translate}{$DEL_TAG_SELECTION}
{'Author'|@translate} - - - - -
{'title'|@translate} - - - - -
{'Creation date'|@translate} - - - - - - -
{'Minimum privacy level'|@translate} - - - -
- -

- {'target'|@translate} - - -

- - -

- -
- -
- - {'Caddie management'|@translate} - -
    - {if ($IN_CADDIE)} -
  • -
  • - {else} -
  • - {/if} - -
  • - -
- -

- -
- -
- -{else} -

{'Caddie is currently empty'|@translate}

-{/if} diff --git a/template/yoga/admin/element_set_unit.tpl b/template/yoga/admin/element_set_unit.tpl deleted file mode 100644 index 34366fada..000000000 --- a/template/yoga/admin/element_set_unit.tpl +++ /dev/null @@ -1,93 +0,0 @@ -{* $Id$ *} - -

{'Batch management'|@translate}

- -

{$CATEGORIES_NAV}

- -

- {'global mode'|@translate} - | {'unit mode'|@translate} -

- -
-
- {'Display options'|@translate} -

{'elements per page'|@translate} : - 5 - | 10 - | 50 - | {'all'|@translate} -

- -
- -{if !empty($NAV_BAR) } - -{/if} - -{if !empty($elements) } - -{foreach from=$elements item=element} -
- {$element.LEGEND} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{'Name'|@translate}
{'Author'|@translate}
{'Creation date'|@translate} - - - - - - -
{'Tags'|@translate}{$element.TAG_SELECTION}
{'Description'|@translate}
- -
-{/foreach} - -

- - -

-{/if} - -
diff --git a/template/yoga/admin/group_list.tpl b/template/yoga/admin/group_list.tpl deleted file mode 100644 index 274445f4b..000000000 --- a/template/yoga/admin/group_list.tpl +++ /dev/null @@ -1,46 +0,0 @@ -{* $Id$ *} -
-
    -
  • (?)
  • -
-

{'title_groups'|@translate}

-
- -
-
- {'Add group'|@translate} - - - - - - -

- -

-
-
- - - - - - - - {if not empty($groups)} - {foreach from=$groups item=group name=group_loop} - - - - - - {/foreach} - {/if} -
{'Group name'|@translate}{'Members'|@translate}{'Actions'|@translate}
{$group.NAME}{$group.IS_DEFAULT}{$group.MEMBERS} - - {'permissions'|@translate} - - {'delete'|@translate} - - {'toggle_is_default_group'|@translate} -
diff --git a/template/yoga/admin/group_perm.tpl b/template/yoga/admin/group_perm.tpl deleted file mode 100644 index 1dded1291..000000000 --- a/template/yoga/admin/group_perm.tpl +++ /dev/null @@ -1,8 +0,0 @@ -{* $Id *} -

{$TITLE}

- -
- {$DOUBLE_SELECT} -
- -

{'Only private categories are listed'|@translate}

diff --git a/template/yoga/admin/history.tpl b/template/yoga/admin/history.tpl deleted file mode 100644 index fece092f0..000000000 --- a/template/yoga/admin/history.tpl +++ /dev/null @@ -1,151 +0,0 @@ -{* $Id$ *} -
- {$TABSHEET} - -

{'History'|@translate} {$TABSHEET_TITLE}

-
- -
-
- {'Filter'|@translate} -
    -
  • -
  • - - - -
  • -
-
    -
  • -
  • - - - -
  • -
- - - - - - - - - - -
-
- {'Display'|@translate} -
    -
  • - {'Thumbnails'|@translate} - -
  • -
-
-
- -{if isset($search_summary)} -
- {'Summary'|@translate} - -
    -
  • {$search_summary.NB_LINES}, {$search_summary.FILESIZE}
  • -
  • - {$search_summary.USERS} -
      -
    • {$search_summary.MEMBERS}
    • -
    • {$search_summary.GUESTS}
    • -
    -
  • -
-
-{/if} - - -{if !empty($NAV_BAR)} - -{/if} - - - - - - - - - - - - - - -{if !empty($search_results) } -{foreach from=$search_results item=detail name=res_loop} - - - - - - - - - - - -{/foreach} -{/if} -
{'Date'|@translate}{'time'|@translate}{'user'|@translate}{'IP'|@translate}{'image'|@translate}{'Element type'|@translate}{'section'|@translate}{'category'|@translate}{'tags'|@translate}
{$detail.DATE}{$detail.TIME}{$detail.USER}{$detail.IP}{$detail.IMAGE}{$detail.TYPE}{$detail.SECTION}{$detail.CATEGORY}{$detail.TAGS}
- - -{if !empty($NAV_BAR)} - -{/if} diff --git a/template/yoga/admin/intro.tpl b/template/yoga/admin/intro.tpl deleted file mode 100644 index 069940ecf..000000000 --- a/template/yoga/admin/intro.tpl +++ /dev/null @@ -1,46 +0,0 @@ -{* $Id$ *} -

{'title_default'|@translate}

-
-
{'Piwigo version'|@translate}
-
- -
- -
{'Environment'|@translate}
-
-
    -
  • {'Operating system'|@translate}: {$OS}
  • -
  • PHP: {$PHP_VERSION} ({'Show info'|@translate}) [{$PHP_DATATIME}]
  • -
  • MySQL: {$MYSQL_VERSION} [{$DB_DATATIME}]
  • -
-
- -
{'Database'|@translate}
-
-
    -
  • - {$DB_ELEMENTS} - {if isset($waiting)} - ({$waiting.INFO}) - {/if} - - {if isset($first_added)} - ({$first_added.DB_DATE}) - {/if} -
  • -
  • {$DB_CATEGORIES} ({$DB_IMAGE_CATEGORY})
  • -
  • {$DB_TAGS} ({$DB_IMAGE_TAG})
  • -
  • {$DB_USERS}
  • -
  • {$DB_GROUPS}
  • -
  • - {$DB_COMMENTS} - {if isset($unvalidated)} - ({$unvalidated.INFO}) - {/if} -
  • -
-
-
diff --git a/template/yoga/admin/maintenance.tpl b/template/yoga/admin/maintenance.tpl deleted file mode 100644 index 59cf4ff82..000000000 --- a/template/yoga/admin/maintenance.tpl +++ /dev/null @@ -1,25 +0,0 @@ -{* $Id$ *} -
-
    -
  • (?)
  • -
-

{'Maintenance'|@translate}

-
- - - - - - diff --git a/template/yoga/admin/notification_by_mail.tpl b/template/yoga/admin/notification_by_mail.tpl deleted file mode 100644 index a8e3f8108..000000000 --- a/template/yoga/admin/notification_by_mail.tpl +++ /dev/null @@ -1,124 +0,0 @@ -{* $Id$ *} - -
- {$TABSHEET} -
    -
  • (?)
  • -
-

{'nbm_send_mail_to_users'|@translate} {$TABSHEET_TITLE}

-
- -
- {if isset($REPOST_SUBMIT_NAME)} -
-
- -
-
- {/if} - - {if isset($param)} -
- {'nbm_title_param'|@translate} - - - - - - - - - - - - - - - - - - - - - -
- - -
- -
{'nbm_info_send_mail_as'|@translate} -
- - -
- -
{'nbm_info_send_recent_post_dates'|@translate} -
- - -
-
- -

- - -

- {/if}{* isset $param*} - - {if isset($subscribe)} -
- {'nbm_title_subscribe'|@translate} -

{'nbm_warning_subscribe_unsubscribe'|@translate}

- {$DOUBLE_SELECT} -
- {/if}{* isset $subscribe*} - - {if isset($send)} - {if empty($send.users)} -

{'nbm_no_user_available_to_send_L1'|@translate}

-

- {'nbm_no_user_available_to_send_L2'|@translate}
- {'nbm_no_user_available_to_send_L3'|@translate} -

- {else} -
- {'nbm_title_send'|@translate} - - - - - - - - {foreach from=$send.users item=u name=user_loop} - - - - - - - {/foreach} -
{'nbm_col_user'|@translate}{'nbm_col_mail'|@translate}{'nbm_col_last_send'|@translate}{'nbm_col_check_user_send_mail'|@translate}
-

- {'Check all'|@translate} - / {'Uncheck all'|@translate} -

-
- -
- {'nbm_send_options'|@translate} - - - - - -
-
- -

- -

- {/if} - {/if}{* isset $send*} - -
diff --git a/template/yoga/admin/permalinks.tpl b/template/yoga/admin/permalinks.tpl deleted file mode 100644 index 958579e87..000000000 --- a/template/yoga/admin/permalinks.tpl +++ /dev/null @@ -1,70 +0,0 @@ -{* $Id$ *} -
-
    -
  • (?)
  • -
-

{'Permalinks'|@translate}

-
- -
-
{'Add/delete a permalink'|@translate} - - - - - - -

- -

-
-
- -

{'Permalinks'|@translate}

- - - - - - -{foreach from=$permalinks item=permalink name="permalink_loop"} - - - - - -{/foreach} -
Id {$SORT_ID}{'Category'|@translate} {$SORT_NAME}{'Permalink'|@translate} {$SORT_PERMALINK}
- -

{'Permalink history'|@translate}

- - - - - - - - - - -{foreach from=$deleted_permalinks item=permalink} - - - - - - - - - -{/foreach} -
Id {$SORT_OLD_CAT_ID}{'Category'|@translate}{'Permalink'|@translate} {$SORT_OLD_PERMALINK}{'Deleted on'|@translate} {$SORT_OLD_DATE_DELETED}{'Last hit'|@translate} {$SORT_OLD_LAST_HIT}{'Hit'|@translate} {$SORT_OLD_HIT}
{$permalink.cat_id}{$permalink.name}{$permalink.permalink}{$permalink.date_deleted}{$permalink.last_hit}{$permalink.hit}[{'delete'|@translate}]
diff --git a/template/yoga/admin/picture_modify.tpl b/template/yoga/admin/picture_modify.tpl deleted file mode 100644 index f6243acb9..000000000 --- a/template/yoga/admin/picture_modify.tpl +++ /dev/null @@ -1,190 +0,0 @@ -{* $Id$ *} -

{'title_picmod'|@translate}

- -{'thumbnail'|@translate} - -
    - {if isset($U_JUMPTO) } -
  • {'jump to image'|@translate}
  • - {/if} -
  • {'synchronize'|@translate}
  • -
- -
- -
- {'Informations'|@translate} - - - - - - - - - - - - - - - - - - - - - - - -{if isset($HIGH_FILESIZE) } - - - - -{/if} - - - - - - - {if isset($related_categories) } - - - - - {/if} - -
{'Path'|@translate}{$PATH}
{'Post date'|@translate}{$REGISTRATION_DATE}
{'Dimensions'|@translate}{$DIMENSIONS}
{'Filesize'|@translate}{$FILESIZE}
{'High filesize'|@translate}{$HIGH_FILESIZE}
{'Storage category'|@translate}{$STORAGE_CATEGORY}
{'Linked categories'|@translate} -
    - {foreach from=$related_categories item=name} -
  • {$name}
  • - {/foreach} -
-
- -
- -
- {'Properties'|@translate} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{'Name'|@translate}
{'Author'|@translate}
{'Creation date'|@translate} - - {'set to'|@translate} - - - -
{'Tags'|@translate}{$TAG_SELECTION}
{'Description'|@translate}
{'Minimum privacy level'|@translate} - -
- -

- - -

- -
- -
- -
-
- {'Association to categories'|@translate} - - - - - - - -
-

{'Associated'|@translate}

- -

-
-

{'Dissociated'|@translate}

- -

-
- -
-
- -
-
- {'Representation of categories'|@translate} - - - - - - - -
-

{'Represents'|@translate}

- -

-
-

{'Does not represent'|@translate}

- -

-
- -
-
diff --git a/template/yoga/admin/plugins_list.tpl b/template/yoga/admin/plugins_list.tpl deleted file mode 100644 index d5b045141..000000000 --- a/template/yoga/admin/plugins_list.tpl +++ /dev/null @@ -1,51 +0,0 @@ -
-{$TABSHEET} -

{'Plugins'|@translate}

-
- -{'Sort order'|@translate} : - - -{if isset($plugins)} - - - - - - - - - -{html_head} {*add the style to html head for strict standard compliance*} - -{/html_head} -{foreach from=$plugins item=plugin name=plugins_loop} - - - - - - -{/foreach} -
{'Name'|@translate}{'Version'|@translate}{'Description'|@translate}{'Actions'|@translate}
- {$plugin.NAME} - {$plugin.VERSION}{$plugin.DESCRIPTION} - {foreach from=$plugin.actions item=action} - {$action.L_ACTION} - {/foreach} -
-{/if} diff --git a/template/yoga/admin/plugins_new.tpl b/template/yoga/admin/plugins_new.tpl deleted file mode 100644 index f778c6aa2..000000000 --- a/template/yoga/admin/plugins_new.tpl +++ /dev/null @@ -1,37 +0,0 @@ -
-{$TABSHEET} -

{'Plugins'|@translate}

-
- -{'Sort order'|@translate} : - - -{if isset($plugins)} -
- - - - - - - - - - -{foreach from=$plugins item=plugin name=plugins_loop} - - - - - - - -{/foreach} -
{'Name'|@translate}{'Version'|@translate}{'Date'|@translate}{'Author'|@translate}{'Actions'|@translate}
{$plugin.EXT_NAME} - {$plugin.EXT_DESC}{$plugin.VERSION} - {$plugin.VER_DESC}{$plugin.DATE}{$plugin.AUTHOR}{'plugins_auto_install'|@translate} - / {'plugins_download'|@translate} -
-{/if} diff --git a/template/yoga/admin/plugins_update.tpl b/template/yoga/admin/plugins_update.tpl deleted file mode 100644 index fb2f38f67..000000000 --- a/template/yoga/admin/plugins_update.tpl +++ /dev/null @@ -1,71 +0,0 @@ -
-{$TABSHEET} -

{'Plugins'|@translate}

-
- -{if isset($plugins_not_uptodate)} -
-{'plugins_need_update'|@translate} - - - - - - - - - -{foreach from=$plugins_not_uptodate item=plugin name=plugins_loop} - - - - - - -{/foreach} -
{'Name'|@translate}{'plugins_actual_version'|@translate}{'plugins_new_version'|@translate}{'Actions'|@translate}
{$plugin.EXT_NAME} - {$plugin.EXT_DESC}{$plugin.VERSION}{$plugin.NEW_VERSION} - {$plugin.NEW_VER_DESC}{'plugins_auto_update'|@translate} - / {'plugins_download'|@translate}
-{/if} - - -{if isset($plugins_uptodate)} -
-{'plugins_dontneed_update'|@translate} - - - - - - - -{foreach from=$plugins_uptodate item=plugin name=plugins_loop} - - - - -{/foreach} -
{'Name'|@translate}{'Version'|@translate}
{$plugin.NAME} - {$plugin.EXT_DESC}{$plugin.VERSION}
-{/if} - - -{if isset($plugins_cant_check)} -
-{'plugins_cant_check'|@translate} - - - - - - - -{foreach from=$plugins_cant_check item=plugin name=plugins_loop} - - - - -{/foreach} -
{'Name'|@translate}{'Version'|@translate}
{$plugin.NAME}{$plugin.VERSION}
-{/if} diff --git a/template/yoga/admin/profile.tpl b/template/yoga/admin/profile.tpl deleted file mode 100644 index f6326319c..000000000 --- a/template/yoga/admin/profile.tpl +++ /dev/null @@ -1,6 +0,0 @@ -{* $Id$ *} -
-

{'Profile'|@translate}

-
- -{$PROFILE_CONTENT} diff --git a/template/yoga/admin/rating.tpl b/template/yoga/admin/rating.tpl deleted file mode 100755 index aa91892dc..000000000 --- a/template/yoga/admin/rating.tpl +++ /dev/null @@ -1,64 +0,0 @@ -{* $Id$ *} -

{'Rating'|@translate} [{$NB_ELEMENTS} {'elements'|@translate}]

- -
-
- {'Filter'|@translate} - - - - - - - - - -
-
- - - - - - - - - - - - - - -{foreach from=$images item=image} - - - - - - - -{foreach from=$image.rates item=rate} - - - - - - -{/foreach} {*rates*} -{/foreach} {*images*} -
{'File'|@translate}{'Number of rates'|@translate}{'Average rate'|@translate}{'Controversy'|@translate}{'Sum of rates'|@translate}{'Rate'|@translate}{'Username'|@translate}{'Rate date'|@translate}
{$image.FILE}{$image.NB_RATES}/{$image.NB_RATES_TOTAL}{$image.AVG_RATE}{$image.STD_RATE}{$image.SUM_RATE}
{$rate.RATE}{$rate.USER}{$rate.DATE}[{'delete'|@translate}]
- - diff --git a/template/yoga/admin/site_manager.tpl b/template/yoga/admin/site_manager.tpl deleted file mode 100644 index 627181c5a..000000000 --- a/template/yoga/admin/site_manager.tpl +++ /dev/null @@ -1,73 +0,0 @@ -{* $Id$ *} -
-
    -
  • (?)
  • -
-

{'Site manager'|@translate}

-
- -{if not empty($remote_output)} -
-
    - {foreach from=$remote_output item=remote_line} -
  • {$remote_line.CONTENT}
  • - {/foreach} -
-
-{/if} - -{if isset($local_listing)} -{'remote_site_local_found'|@translate} {$local_listing.URL} -{if isset($local_listing.CREATE)} -
-

- {'remote_site_local_create'|@translate}: - - - -

-
-{/if} -{if isset($local_listing.U_SYNCHRONIZE)} - {'site_synchronize'|@translate} -

-{/if} -{/if} - -{if not empty($sites)} - - {foreach from=$sites item=site} - - {/foreach} -
- {$site.NAME}
({$site.TYPE}, {$site.CATEGORIES} {'Categories'|@translate}, {$pwg->l10n_dec('%d element','%d elements',$site.IMAGES)}) -
- [{'site_synchronize'|@translate}] - {if isset($site.U_DELETE)} - [{'site_delete'|@translate}] - {/if} - {if isset($site.remote)} -
- [{'remote_site_test'|@translate}] - [{'remote_site_generate'|@translate}] - [{'remote_site_clean'|@translate}] - {/if} - {if not empty($site.plugin_links)} -
- {foreach from=$site.plugin_links item=plugin_link} - [{$plugin_link.U_CAPTION}] - {/foreach} - {/if} -
-{/if} - -
-

- - -

-

- -

-
diff --git a/template/yoga/admin/site_update.tpl b/template/yoga/admin/site_update.tpl deleted file mode 100644 index fc0899a90..000000000 --- a/template/yoga/admin/site_update.tpl +++ /dev/null @@ -1,109 +0,0 @@ -{* $Id$ *} - -
-
    -
  • (?)
  • -
-

{'title_update'|@translate}: {$SITE_URL}

-
- -{if isset($update_result)} -

{$L_RESULT_UPDATE}

-
    -
  • {$update_result.NB_NEW_CATEGORIES} {'update_nb_new_categories'|@translate}
  • -
  • {$update_result.NB_NEW_ELEMENTS} {'update_nb_new_elements'|@translate}
  • -
  • {$update_result.NB_DEL_CATEGORIES} {'update_nb_del_categories'|@translate}
  • -
  • {$update_result.NB_DEL_ELEMENTS} {'update_nb_del_elements'|@translate}
  • -
  • {$update_result.NB_UPD_ELEMENTS} {'update_nb_upd_elements'|@translate}
  • -
  • {$update_result.NB_ERRORS} {'update_nb_errors'|@translate}
  • -
-{/if} - -{if isset($metadata_result)} -

{$L_RESULT_METADATA}

-
    -
  • {$metadata_result.NB_ELEMENTS_DONE} {'update_nb_elements_metadata_sync'|@translate}
  • -
  • {$metadata_result.NB_ELEMENTS_CANDIDATES} {'update_nb_elements_metadata_available'|@translate}
  • -
  • {'update_used_metadata'|@translate} : {$METADATA_LIST}
  • -
-{/if} - - -{if not empty($sync_errors)} -

{'update_error_list_title'|@translate}

-
-
    - {foreach from=$sync_errors item=error} -
  • [{$error.ELEMENT}] {$error.LABEL}
  • - {/foreach} -
-
-

{'update_errors_caption'|@translate}

-
    - {foreach from=$sync_error_captions item=caption} -
  • {$caption.TYPE}: {$caption.LABEL}
  • - {/foreach} -
-{/if} - -{if not empty($sync_infos)} -

{'update_infos_title'|@translate}

-
-
    - {foreach from=$sync_infos item=info} -
  • [{$info.ELEMENT}] {$info.LABEL}
  • - {/foreach} -
-
-{/if} - -{if isset($introduction)} -

{'update_default_title'|@translate}

-
- -
- {'update_sync_files'|@translate} -
    -
  • -
  • -
  • -
  • -
  • -
-
- -
- {'update_sync_metadata'|@translate} - {'update_used_metadata'|@translate} : {$METADATA_LIST}.
-
    -
  • -
  • -
-
- -
- -
-
- -
- {'update_cats_subset'|@translate} -
    -
  • - -
  • - -
  • -
-
- -

- - -

-
-{/if}{*isset $introduction*} - -

{'Site manager'|@translate}

diff --git a/template/yoga/admin/stats.tpl b/template/yoga/admin/stats.tpl deleted file mode 100644 index cb20be916..000000000 --- a/template/yoga/admin/stats.tpl +++ /dev/null @@ -1,38 +0,0 @@ -{* $Id$ *} - -
- {$TABSHEET} - -

{'History'|@translate} {$TABSHEET_TITLE}

-
- -

{$L_STAT_TITLE}

- - - - - - - - -{if not empty($statrows)} -{foreach from=$statrows item=row} - - - - - -{/foreach} -{/if} - -
{$PERIOD_LABEL}{'Pages seen'|@translate}
{$row.VALUE}{$row.PAGES}
diff --git a/template/yoga/admin/tabsheet.tpl b/template/yoga/admin/tabsheet.tpl deleted file mode 100644 index a89adfd8d..000000000 --- a/template/yoga/admin/tabsheet.tpl +++ /dev/null @@ -1,8 +0,0 @@ -{* $Id$ *} -{if isset($tabsheet) and count($tabsheet)} - -{/if} \ No newline at end of file diff --git a/template/yoga/admin/tags.tpl b/template/yoga/admin/tags.tpl deleted file mode 100644 index b2ce57341..000000000 --- a/template/yoga/admin/tags.tpl +++ /dev/null @@ -1,54 +0,0 @@ -{* $Id$ *} -
-

{'Manage tags'|@translate}

-
- -
- - {if isset($EDIT_TAGS_LIST)} -
- {'Edit tags'|@translate} - - - - - - - {foreach from=$tags item=tag} - - - - - {/foreach} -
{'Current name'|@translate}{'New name'|@translate}
{$tag.NAME}
- -

- - -

-
- {/if} - -
- {'Add a tag'|@translate} - - - -

-
- -
- {'Tag selection'|@translate} - - {$TAG_SELECTION} - -

- - -

-
- -
diff --git a/template/yoga/admin/thumbnail.tpl b/template/yoga/admin/thumbnail.tpl deleted file mode 100644 index 6bb652caa..000000000 --- a/template/yoga/admin/thumbnail.tpl +++ /dev/null @@ -1,123 +0,0 @@ -{* $Id$ *} -
-
    -
  • (?)
  • -
-

{'title_thumbnails'|@translate}

-
- -{if isset($results) } -
{'tn_results_title'|@translate}
- - - - - - - - - {foreach from=$results.elements item=elt} - - - - - - - - {/foreach} -
{'path'|@translate}{'thumbnail'|@translate}{'tn_results_gen_time'|@translate}{'filesize'|@translate}{'Dimensions'|@translate}
{$elt.PATH}{$elt.GEN_TIME}{$elt.TN_FILESIZE_IMG}{$elt.TN_WIDTH_IMG} x {$elt.TN_HEIGHT_IMG}
- - - - - - - - - - - - - - - - - - - - - - - - - -
{'tn_stats'|@translate}
{'tn_stats_nb'|@translate}{$results.TN_NB}
{'tn_stats_total'|@translate}{$results.TN_TOTAL}
{'tn_stats_max'|@translate}{$results.TN_MAX}
{'tn_stats_min'|@translate}{$results.TN_MIN}
{'tn_stats_mean'|@translate}{$results.TN_AVERAGE}
-
-{/if} - -{if isset($params) } -
- -
- {'tn_params_title'|@translate} - -
    -
  • - {'tn_params_GD'|@translate} - - -
  • - -
  • - - - - -
  • - -
  • - - - - -
  • - -
  • - {'Number of thumbnails to create'|@translate} - - - - -
  • -
-
- -

-
-{/if} {*isset params*} - -{if !empty($remainings) } -
{$TOTAL_NB_REMAINING} {'tn_alone_title'|@translate}
- - - - - - - - {foreach from=$remainings item=elt name=remain_loop} - - - - - - - {/foreach} -
 {'path'|@translate}{'filesize'|@translate}{'Dimensions'|@translate}
{$smarty.foreach.remain_loop.iteration}
{$elt.PATH}
{$elt.FILESIZE_IMG}
{$elt.WIDTH_IMG} x {$elt.HEIGHT_IMG}
-{else} -
[ {'tn_no_missing'|@translate} ]
-{/if} diff --git a/template/yoga/admin/upload.tpl b/template/yoga/admin/upload.tpl deleted file mode 100644 index b580f9d30..000000000 --- a/template/yoga/admin/upload.tpl +++ /dev/null @@ -1,53 +0,0 @@ -{* $Id$ *} -
- {$TABSHEET} -

{'waiting'|@translate} {$TABSHEET_TITLE}

-
- -

{'title_upload'|@translate}

- -
- - - - - - - - - - - {if not empty($pictures) } - {foreach from=$pictures item=picture name=picture_loop} - - - - - - - - - {/foreach} - {/if} -
{'category'|@translate}{'Date'|@translate}{'file'|@translate}{'thumbnail'|@translate}{'Author'|@translate} 
{$picture.CATEGORY_IMG}{$picture.DATE_IMG} - {$picture.FILE_IMG} - - {if not empty($picture.thumbnail) } - {$picture.thumbnail.FILE_TN_IMG} - {/if} - - {$picture.UPLOAD_USERNAME} - - - -
- -

- - - - - -

- -
diff --git a/template/yoga/admin/user_list.tpl b/template/yoga/admin/user_list.tpl deleted file mode 100644 index db67093f6..000000000 --- a/template/yoga/admin/user_list.tpl +++ /dev/null @@ -1,312 +0,0 @@ -{* $Id$ *} -
-
    -
  • (?)
  • -
-

{'title_liste_users'|@translate}

-
- -
-
- {'Add a user'|@translate} - - - - -
-
- -
-
- {'Filter'|@translate} - - - - - - - - - - - - - - -
- -
- -
- - - - - - - - - - {if not empty($plugin_user_list_column_titles)} - {foreach from=$plugin_user_list_column_titles item=title} - - {/foreach} - {/if} - - - {foreach from=$users item=user name=users_loop} - - - - - - - - {foreach from=$user.plugin_columns item=data} - - {/foreach} - - - {/foreach} -
 {'Username'|@translate}{'user_status'|@translate}{'Email address'|@translate}{'Groups'|@translate}{'properties'|@translate}{$title}{'Actions'|@translate}
{$user.STATUS}{$user.EMAIL}{$user.GROUPS}{$user.PROPERTIES}{$data} - {'permissions'|@translate} - {'Profile'|@translate} - {foreach from=$user.plugin_actions item=data} - {$data} - {/foreach} -
- - - -{* delete the selected users ? *} -
- {'Deletions'|@translate} - - -
- -
- {'Status'|@translate} - - - - - - - - {if isset($adviser)} - - - - - {/if} - -
{'Status'|@translate} - - - -
{'adviser'|@translate} - - / {'set to'|@translate} - - -
-
- -{* form to set properties for many users at once *} -
- {'Groups'|@translate} - - - - - - - - - - - - - -
{'associate to group'|@translate} - {html_options name=associate options=$association_options selected=$associate_selected} -
{'dissociate from group'|@translate} - {html_options name=dissociate options=$association_options selected=$dissociate_selected} -
- -
- -{* Properties *} -
- {'properties'|@translate} - - - - - - - - - - - - - -
{'enabled_high'|@translate} - - / {'set to'|@translate} - - -
{'Privacy level'|@translate} - - - -
- -
- -{* preference *} -
- {'Preferences'|@translate} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{'nb_image_per_row'|@translate} - - - -
{'nb_row_per_page'|@translate} - - - - -
{'theme'|@translate} - - - -
{'language'|@translate} - - - -
{'recent_period'|@translate} - - - -
{'auto_expand'|@translate} - - / {'set to'|@translate} - - -
{'show_nb_comments'|@translate} - - / {'set to'|@translate} - - -
{'show_nb_hits'|@translate} - - / {'set to'|@translate} - - -
{'maxwidth'|@translate} - - - - -
{'maxheight'|@translate} - - - - -
- -
- -

- {'target'|@translate} - - -

- -

- - -

- -
diff --git a/template/yoga/admin/user_perm.tpl b/template/yoga/admin/user_perm.tpl deleted file mode 100644 index 3183c82e7..000000000 --- a/template/yoga/admin/user_perm.tpl +++ /dev/null @@ -1,23 +0,0 @@ -{* $Id$ *} -

{$TITLE}

- -{if isset($categories_because_of_groups) } -
- {'Categories authorized thanks to group associations'|@translate} - -
    - {foreach from=$categories_because_of_groups item=cat } -
  • {$cat}
  • - {/foreach} -
-
-{/if} - - -
- {'Other private categories'|@translate} - -
- {$DOUBLE_SELECT} -
-
diff --git a/template/yoga/admin/ws_checker.tpl b/template/yoga/admin/ws_checker.tpl deleted file mode 100644 index cce3c7f49..000000000 --- a/template/yoga/admin/ws_checker.tpl +++ /dev/null @@ -1,218 +0,0 @@ -{* $Id$ *} - -
-
    -
  • (?)
  • -
-

{'title_wscheck'|@translate} - {'web_services'|@translate}

-
- -{if !empty($update_results)} -
    - {foreach from=$update_results item=result} -
  • $result
  • - {/foreach} -
-{/if} - -{* Add Access *} -
- -
- {'ws_adding_legend'|@translate} - - {* Access key *} - - - - - - {* Target (cat/ids, tag/ids, or list/ids ids=id,id-id,...) *} - - - - - - {* Restricted access to specific request *} - - - - - - {* Limit number of images information to be return *} - - - - - - {* Open service is postponed by n days *} - {* In comment currently - - - - - *} - - {* Opened service only for n days *} - - - - - - {* Idendify your partner (name / website / phone) as you want *} - - - - - - {* Add submit button *} - - - - -
- - - -
- - - - ({'Access: see help text for more'|@translate}) - -
- - - - ({'ws_Methods'|@translate}) -
- - - -
- - - -
- - - -
- -
-
- -
- - -
-
-
- -{if !empty($access_list)} - -
- - - - - - - -
- {'ws_update_legend'|@translate} - - - - - - - - - - - {foreach from=$access_list item=access name=access_loop} - - - - - - - - - - {/foreach} -
 {'ws_KeyName'|@translate}{'ws_Access'|@translate}{'ws_End'|@translate}{'ws_Request'|@translate}{'ws_Limit'|@translate}{'ws_Comment'|@translate}
- - {$access.TARGET}{$access.END}{$access.REQUEST}{$access.LIMIT}{$access.COMMENT}
- - - - - - -
- {'ws_delete_legend'|@translate} - - - -
-
- - - - - -
- - - - - - - ({'Web Services availability duration in days'|@translate}) -
- -
-
-{/if} - -{if isset($WS_STATUS)} -

{$WS_STATUS}

-{/if}