NextGEN Gallery – WordPress Gallery Plugin - Version 0.90

Version Description

Download this release

Release Info

Developer alexrabe
Plugin Icon 128x128 NextGEN Gallery – WordPress Gallery Plugin
Version 0.90
Comparing to
See all releases

Code changes from version 0.83 to 0.90

Files changed (65) hide show
  1. admin/about.php +10 -2
  2. admin/addgallery.php +20 -3
  3. admin/admin.php +16 -31
  4. admin/album.php +10 -9
  5. admin/css/jquery.ui.tabs.css +153 -0
  6. admin/css/nggSorter.css +76 -0
  7. admin/css/nggadmin.wp23.css +129 -0
  8. admin/css/nggadmin.wp25.css +307 -0
  9. admin/functions.php +53 -35
  10. admin/images/marker_bottom.gif +0 -0
  11. admin/images/marker_middle.gif +0 -0
  12. admin/images/marker_top.gif +0 -0
  13. admin/js/jquery.nextgen.js +0 -248
  14. admin/js/jquery.nextgen.pack.js +0 -15
  15. admin/js/jquery.ui.tabs.js +532 -0
  16. admin/js/jquery.ui.tabs.pack.js +10 -0
  17. admin/js/sorter.js +277 -0
  18. admin/manage.php +20 -8
  19. admin/settings.php +11 -11
  20. admin/sort.php +86 -0
  21. admin/uploadtab.php +1 -1
  22. admin/wp25/about.php +206 -0
  23. admin/wp25/addgallery.php +308 -0
  24. admin/wp25/admin.php +166 -0
  25. admin/wp25/album.php +286 -0
  26. admin/wp25/functions.php +941 -0
  27. admin/wp25/index.html +0 -0
  28. admin/wp25/manage.php +691 -0
  29. admin/wp25/media-upload.php +218 -0
  30. admin/wp25/overview.php +413 -0
  31. admin/wp25/roles.php +109 -0
  32. admin/wp25/settings.php +632 -0
  33. admin/wp25/setup.php +88 -0
  34. admin/wp25/showmeta.php +116 -0
  35. admin/wp25/sort.php +86 -0
  36. admin/wp25/style.php +220 -0
  37. admin/wp25/upload.php +42 -0
  38. admin/wp25/wpmu.php +107 -0
  39. changelog.txt +21 -0
  40. css/Black_Minimalism .css +4 -0
  41. css/hovereffect.css +4 -0
  42. css/ngg_dkret3.css +4 -0
  43. css/ngg_k2.css +4 -0
  44. css/ngg_shadow.css +4 -0
  45. css/ngg_shadow2.css +4 -0
  46. css/nggallery.css +4 -0
  47. lang/nggallery-de_DE.mo +0 -0
  48. lang/nggallery-de_DE.po +904 -333
  49. lang/nggallery.po +915 -344
  50. lib/nggallery.lib.php +2 -0
  51. lib/thumbnail.inc.php +6 -2
  52. nggallery.php +44 -26
  53. nggextractXML.php +4 -4
  54. nggfunctions.php +21 -64
  55. ngginstall.php +39 -26
  56. readme.txt +2 -1
  57. tinymce/window.php +1 -0
  58. tinymce3/editor_plugin.js +78 -0
  59. tinymce3/langs/de_de.js +6 -0
  60. tinymce3/langs/en.js +6 -0
  61. tinymce3/langs/en_US.js +6 -0
  62. tinymce3/nextgen.gif +0 -0
  63. tinymce3/tinymce.js +75 -0
  64. tinymce3/tinymce.php +51 -0
  65. tinymce3/window.php +156 -0
admin/about.php CHANGED
@@ -20,7 +20,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
20
  <li><a href="http://www.gen-x-design.com" target="_blank">Ian Selby</a> <?php _e('for the fantastic PHP Thumbnail Class', 'nggallery') ;?></li>
21
  <li><a href="http://www.phpconcept.net" target="_blank">Vincent Blavet</a> <?php _e('for PclZip , a PHP library that manage ZIP archives', 'nggallery') ;?></li>
22
  <li><a href="http://www.lesterchan.net/" target="_blank">GaMerZ</a> <?php _e('for a lot of very useful plugins and ideas', 'nggallery') ;?></li>
23
- <li><a href="http://www.sargant.com/" target="_blank">Rob Sargant</a> <?php _e('for RS-Discuss, it saved me a lot of time', 'nggallery') ;?></li>
24
  <li><a href="http://www.jeroenwijering.com/" target="_blank">Jeroen Wijering</a> <?php _e('for the best Media Flash Scripts on earth', 'nggallery') ;?></li>
25
  <li><a href="http://watermark.malcherek.com/" target="_blank">Marek Malcherek</a> <?php _e('for the Watermark plugin', 'nggallery') ;?></li>
26
  </ul>
@@ -178,7 +178,15 @@ function ngg_list_support() {
178
  "McGillveray Studios" => "http://www.mcgillveraystudios.ca/",
179
  "Paul Rogers" => "http://www.swarfworks.com",
180
  "Steve Lieber" => "http://www.stevelieber.com",
181
- "Modo Web Design" => "http://www.modowebdesign.com"
 
 
 
 
 
 
 
 
182
  );
183
 
184
 
20
  <li><a href="http://www.gen-x-design.com" target="_blank">Ian Selby</a> <?php _e('for the fantastic PHP Thumbnail Class', 'nggallery') ;?></li>
21
  <li><a href="http://www.phpconcept.net" target="_blank">Vincent Blavet</a> <?php _e('for PclZip , a PHP library that manage ZIP archives', 'nggallery') ;?></li>
22
  <li><a href="http://www.lesterchan.net/" target="_blank">GaMerZ</a> <?php _e('for a lot of very useful plugins and ideas', 'nggallery') ;?></li>
23
+ <li><a href="http://www.stuff.yellowswordfish.com/" target="_blank">Andy Staines</a> <?php _e('for Simple:Press Forum, it saved me a lot of time', 'nggallery') ;?></li>
24
  <li><a href="http://www.jeroenwijering.com/" target="_blank">Jeroen Wijering</a> <?php _e('for the best Media Flash Scripts on earth', 'nggallery') ;?></li>
25
  <li><a href="http://watermark.malcherek.com/" target="_blank">Marek Malcherek</a> <?php _e('for the Watermark plugin', 'nggallery') ;?></li>
26
  </ul>
178
  "McGillveray Studios" => "http://www.mcgillveraystudios.ca/",
179
  "Paul Rogers" => "http://www.swarfworks.com",
180
  "Steve Lieber" => "http://www.stevelieber.com",
181
+ "Modo Web Design" => "http://www.modowebdesign.com",
182
+ "Matthew Feldman" => "",
183
+ "Gideon Kiers" => "http://www.gideonkiers.com",
184
+ "Susan Bates" => "http://www.fineartsmith.com",
185
+ "ILISA International USA" => "http://www.ilisa.com",
186
+ "Mark Campbell" => "http://www.layersofcolor.com",
187
+ "Aaron Snyder" => "http://www.aaronsnyder.net",
188
+ "Patrick Pirker" => "",
189
+ "Christoph Wander" => ""
190
  );
191
 
192
 
admin/addgallery.php CHANGED
@@ -61,6 +61,18 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
61
  $messagetext = nggAdmin::import_gallery($gallerypath);
62
  }
63
  }
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
  //get maximum allowable size from php.ini
66
  //thx to Whoismanu PhotoQ / M.Flury
@@ -226,7 +238,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
226
  </tr>
227
  <tr>
228
  <th><?php _e('Add Metadata :', 'nggallery') ;?></th>
229
- <td><input type="checkbox" name="addmetadata" value="1" />
230
  <?php _e('Import EXIF, IPTC or XMP data (if available)', 'nggallery') ;?></td>
231
  </tr>
232
  </table>
@@ -251,7 +263,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
251
  </tr>
252
  <tr>
253
  <th><?php _e('Add Metadata :', 'nggallery') ;?></th>
254
- <td><input type="checkbox" name="addmetadata" value="1" />
255
  <?php _e('Import EXIF, IPTC or XMP data (if available)', 'nggallery') ;?></td>
256
  </tr>
257
  </table>
@@ -289,11 +301,16 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
289
  </tr>
290
  <tr>
291
  <th><?php _e('Add Metadata :', 'nggallery') ;?></th>
292
- <td><input type="checkbox" name="addmetadata" value="1" />
293
  <?php _e('Import EXIF, IPTC or XMP data (if available)', 'nggallery') ;?></td>
294
  </tr>
295
  </table>
296
  <div class="submit">
 
 
 
 
 
297
  <input type="submit" name="uploadimage" id="uploadimage_btn" value="<?php _e('Upload images', 'nggallery') ;?>" />
298
  </div>
299
  </fieldset>
61
  $messagetext = nggAdmin::import_gallery($gallerypath);
62
  }
63
  }
64
+
65
+ if ( isset($_POST['disable_flash']) ){
66
+ check_admin_referer('ngg_addgallery');
67
+ $ngg_options['swfUpload'] = false;
68
+ update_option('ngg_options', $ngg_options);
69
+ }
70
+
71
+ if ( isset($_POST['enable_flash']) ){
72
+ check_admin_referer('ngg_addgallery');
73
+ $ngg_options['swfUpload'] = true;
74
+ update_option('ngg_options', $ngg_options);
75
+ }
76
 
77
  //get maximum allowable size from php.ini
78
  //thx to Whoismanu PhotoQ / M.Flury
238
  </tr>
239
  <tr>
240
  <th><?php _e('Add Metadata :', 'nggallery') ;?></th>
241
+ <td><input type="checkbox" name="addmetadata" value="1" checked="checked" />
242
  <?php _e('Import EXIF, IPTC or XMP data (if available)', 'nggallery') ;?></td>
243
  </tr>
244
  </table>
263
  </tr>
264
  <tr>
265
  <th><?php _e('Add Metadata :', 'nggallery') ;?></th>
266
+ <td><input type="checkbox" name="addmetadata" value="1" checked="checked" />
267
  <?php _e('Import EXIF, IPTC or XMP data (if available)', 'nggallery') ;?></td>
268
  </tr>
269
  </table>
301
  </tr>
302
  <tr>
303
  <th><?php _e('Add Metadata :', 'nggallery') ;?></th>
304
+ <td><input type="checkbox" name="addmetadata" value="1" checked="checked" />
305
  <?php _e('Import EXIF, IPTC or XMP data (if available)', 'nggallery') ;?></td>
306
  </tr>
307
  </table>
308
  <div class="submit">
309
+ <?php if ($ngg_options['swfUpload']) { ?>
310
+ <input type="submit" name="disable_flash" id="disable_flash" title="<?php _e('The batch upload requires Adobe Flash 9, disable it if you have problems','nggallery') ?>" value="<?php _e('Disable flash upload', 'nggallery') ;?>" />
311
+ <?php } else { ?>
312
+ <input type="submit" name="enable_flash" id="enable_flash" title="<?php _e('Upload multiple files at once by ctrl/shift-selecting in dialog','nggallery') ?>" value="<?php _e('Enable flash based upload', 'nggallery') ;?>" />
313
+ <?php } ?>
314
  <input type="submit" name="uploadimage" id="uploadimage_btn" value="<?php _e('Upload images', 'nggallery') ;?>" />
315
  </div>
316
  </fieldset>
admin/admin.php CHANGED
@@ -5,10 +5,19 @@
5
  // ************************************
6
 
7
  // add to header in admin area
8
- add_action('admin_head', 'ngg_nocache');
9
- function ngg_nocache() {
 
10
  echo "\n".'<meta name="NextGEN" content="'.NGGVERSION.'" />';
11
  echo "\n".'<meta http-equiv="pragma" content="no-cache" />'."\n";
 
 
 
 
 
 
 
 
12
  }
13
 
14
  include_once (dirname (__FILE__)."/uploadtab.php");
@@ -62,8 +71,6 @@ add_action('admin_menu', 'add_nextgen_gallery_menu');
62
  add_submenu_page( NGGFOLDER , __('Setup Gallery', 'nggallery'), __('Setup', 'nggallery'), 'activate_plugins', 'nggallery-setup', 'show_menu');
63
  if (wpmu_enable_function('wpmuRoles'))
64
  add_submenu_page( NGGFOLDER , __('Roles', 'nggallery'), __('Roles', 'nggallery'), 'activate_plugins', 'nggallery-roles', 'show_menu');
65
- if (check_for_myGallery())
66
- add_submenu_page( NGGFOLDER , __('Import', 'nggallery'), __('Import', 'nggallery'), 'activate_plugins', 'nggallery-import', 'show_menu');
67
  add_submenu_page( NGGFOLDER , __('About this Gallery', 'nggallery'), __('About', 'nggallery'), 'NextGEN Gallery overview', 'nggallery-about', 'show_menu');
68
  if (wpmu_site_admin())
69
  add_submenu_page( 'wpmu-admin.php' , __('NextGEN Gallery', 'nggallery'), __('NextGEN Gallery', 'nggallery'), 'activate_plugins', 'nggallery-wpmu', 'show_menu');
@@ -76,6 +83,7 @@ add_action('admin_menu', 'add_nextgen_gallery_menu');
76
  // Thx to http://weblogtoolscollection.com/archives/2007/07/09/reduce-the-size-of-your-wordpress-plugin-footprint/
77
 
78
  function show_menu() {
 
79
  switch ($_GET["page"]){
80
  case "nggallery-add-gallery" :
81
  include_once (dirname (__FILE__). '/functions.php'); // admin functions
@@ -122,39 +130,16 @@ add_action('admin_menu', 'add_nextgen_gallery_menu');
122
  break;
123
  case "nggallery" :
124
  default :
125
- include_once (dirname (__FILE__). '/overview.php'); // nggallery_admin_overview
 
 
 
126
  nggallery_admin_overview();
127
  break;
128
  }
129
 
130
  }
131
-
132
- /**************************************************************************/
133
-
134
- function check_for_myGallery() {
135
-
136
- global $wpdb;
137
 
138
- $ngg_check_mygallery = $wpdb->prefix . 'mygallery';
139
- $ngg_check_mygprelation = $wpdb->prefix . 'mygprelation';
140
- $ngg_check_mypictures = $wpdb->prefix . 'mypictures';
141
-
142
- // check for correct tables
143
- $ngg_dberror = false;
144
-
145
- if ($wpdb->get_var("show tables like '$ngg_check_mygallery'") != $ngg_check_mygallery)
146
- return false;
147
-
148
- if($wpdb->get_var("show tables like '$ngg_check_mygprelation'") != $ngg_check_mygprelation)
149
- return false;
150
-
151
- if($wpdb->get_var("show tables like '$ngg_check_mypictures'") != $ngg_check_mypictures)
152
- return false;
153
-
154
- // if all tables exits show import
155
- return true;
156
-
157
- }
158
  /**************************************************************************/
159
  function wpmu_site_admin() {
160
  // Check for site admin
5
  // ************************************
6
 
7
  // add to header in admin area
8
+ add_action('admin_head', 'ngg_header');
9
+ function ngg_header() {
10
+ global $wp_version;
11
  echo "\n".'<meta name="NextGEN" content="'.NGGVERSION.'" />';
12
  echo "\n".'<meta http-equiv="pragma" content="no-cache" />'."\n";
13
+
14
+ // since WP2.5 redesign we need a different CSS
15
+ if ($wp_version < "2.4")
16
+ echo '<link rel="stylesheet" href="'.NGGALLERY_URLPATH.'admin/css/nggadmin.wp23.css" type="text/css" media="screen" />'."\n";
17
+ else {
18
+ echo '<link rel="stylesheet" href="'.NGGALLERY_URLPATH.'admin/css/nggadmin.wp25.css" type="text/css" media="screen" />'."\n";
19
+ wp_admin_css( 'css/dashboard' );
20
+ }
21
  }
22
 
23
  include_once (dirname (__FILE__)."/uploadtab.php");
71
  add_submenu_page( NGGFOLDER , __('Setup Gallery', 'nggallery'), __('Setup', 'nggallery'), 'activate_plugins', 'nggallery-setup', 'show_menu');
72
  if (wpmu_enable_function('wpmuRoles'))
73
  add_submenu_page( NGGFOLDER , __('Roles', 'nggallery'), __('Roles', 'nggallery'), 'activate_plugins', 'nggallery-roles', 'show_menu');
 
 
74
  add_submenu_page( NGGFOLDER , __('About this Gallery', 'nggallery'), __('About', 'nggallery'), 'NextGEN Gallery overview', 'nggallery-about', 'show_menu');
75
  if (wpmu_site_admin())
76
  add_submenu_page( 'wpmu-admin.php' , __('NextGEN Gallery', 'nggallery'), __('NextGEN Gallery', 'nggallery'), 'activate_plugins', 'nggallery-wpmu', 'show_menu');
83
  // Thx to http://weblogtoolscollection.com/archives/2007/07/09/reduce-the-size-of-your-wordpress-plugin-footprint/
84
 
85
  function show_menu() {
86
+ global $wp_version;
87
  switch ($_GET["page"]){
88
  case "nggallery-add-gallery" :
89
  include_once (dirname (__FILE__). '/functions.php'); // admin functions
130
  break;
131
  case "nggallery" :
132
  default :
133
+ if ($wp_version < "2.4")
134
+ include_once (dirname (__FILE__). '/overview.php'); // nggallery_admin_overview
135
+ else
136
+ include_once (dirname (__FILE__). '/wp25/overview.php'); // nggallery_admin_overview
137
  nggallery_admin_overview();
138
  break;
139
  }
140
 
141
  }
 
 
 
 
 
 
142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  /**************************************************************************/
144
  function wpmu_site_admin() {
145
  // Check for site admin
admin/album.php CHANGED
@@ -7,19 +7,20 @@ global $wpdb;
7
  function nggallery_admin_manage_album() {
8
  global $wpdb;
9
 
 
 
10
  if ($_POST['update']){
11
 
12
  check_admin_referer('ngg_album');
13
 
14
  if ($_POST['newalbum']){
15
- $newablum = attribute_escape($_POST['newalbum']);
16
- $result = $wpdb->query(" INSERT INTO $wpdb->nggalbum (name, sortorder) VALUES ('$newablum','0')");
17
  if ($result) $messagetext = '<font color="green">'.__('Update Successfully','nggallery').'</font>';
18
  }
19
 
20
- if ($_POST['act_album'] > 0){
21
- $albumid = attribute_escape($_POST['act_album']);
22
-
23
  // get variable galleryContainer
24
  parse_str($_POST['sortorder']);
25
  if (is_array($galleryContainer)){
@@ -29,9 +30,9 @@ function nggallery_admin_manage_album() {
29
  $sortorder[] = $gid;
30
  }
31
  $serial_sort = serialize($sortorder);
32
- $wpdb->query("UPDATE $wpdb->nggalbum SET sortorder = '$serial_sort' WHERE id = $albumid ");
33
  } else {
34
- $wpdb->query("UPDATE $wpdb->nggalbum SET sortorder = '0' WHERE id = $albumid ");
35
  }
36
  $messagetext = '<font color="green">'.__('Update Successfully','nggallery').'</font>';
37
  }
@@ -39,8 +40,8 @@ function nggallery_admin_manage_album() {
39
 
40
  if ($_POST['delete']){
41
  check_admin_referer('ngg_album');
42
- $act_album = attribute_escape($_POST['act_album']);
43
- $result = $wpdb->query("DELETE FROM $wpdb->nggalbum WHERE id = '$act_album' ");
44
  if ($result) $messagetext = '<font color="green">'.__('Album deleted','nggallery').'</font>';
45
  }
46
 
7
  function nggallery_admin_manage_album() {
8
  global $wpdb;
9
 
10
+ $albumID = (int) $_POST['act_album'];
11
+
12
  if ($_POST['update']){
13
 
14
  check_admin_referer('ngg_album');
15
 
16
  if ($_POST['newalbum']){
17
+ $newalbum = attribute_escape($_POST['newalbum']);
18
+ $result = $wpdb->query(" INSERT INTO $wpdb->nggalbum (name, sortorder) VALUES ('$newalbum','0')");
19
  if ($result) $messagetext = '<font color="green">'.__('Update Successfully','nggallery').'</font>';
20
  }
21
 
22
+ if ($albumID > 0){
23
+
 
24
  // get variable galleryContainer
25
  parse_str($_POST['sortorder']);
26
  if (is_array($galleryContainer)){
30
  $sortorder[] = $gid;
31
  }
32
  $serial_sort = serialize($sortorder);
33
+ $wpdb->query("UPDATE $wpdb->nggalbum SET sortorder = '$serial_sort' WHERE id = $albumID ");
34
  } else {
35
+ $wpdb->query("UPDATE $wpdb->nggalbum SET sortorder = '0' WHERE id = $albumID ");
36
  }
37
  $messagetext = '<font color="green">'.__('Update Successfully','nggallery').'</font>';
38
  }
40
 
41
  if ($_POST['delete']){
42
  check_admin_referer('ngg_album');
43
+
44
+ $result = $wpdb->query("DELETE FROM $wpdb->nggalbum WHERE id = '$albumID' ");
45
  if ($result) $messagetext = '<font color="green">'.__('Album deleted','nggallery').'</font>';
46
  }
47
 
admin/css/jquery.ui.tabs.css ADDED
@@ -0,0 +1,153 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Caution! Ensure accessibility in print and other media types... */
2
+ @media projection, screen { /* Use class for showing/hiding tab content, so that visibility can be better controlled in different media types... */
3
+ .ui-tabs-hide {
4
+ display: none;
5
+ }
6
+ }
7
+
8
+ /* Hide useless elements in print layouts... */
9
+ @media print {
10
+ .ui-tabs-nav {
11
+ display: none;
12
+ }
13
+ }
14
+
15
+ /* Skin */
16
+ #slider {
17
+ border-color:#EBEBEB rgb(204, 204, 204) rgb(204, 204, 204) rgb(235, 235, 235);
18
+ border-style:solid;
19
+ border-width:1px;
20
+ margin:0pt 15% 0pt 15px;
21
+ padding:2px;
22
+ }
23
+ #tabs{
24
+ display: block;
25
+ background:#EAF3FA none repeat scroll 0%;
26
+ font-size:14px;
27
+ margin:0pt 0pt 10px;
28
+ overflow:hidden;
29
+ }
30
+
31
+ .ui-tabs-nav {
32
+ list-style: none;
33
+ margin: 0;
34
+ padding: 0 0 0 4px;
35
+ }
36
+ .ui-tabs-nav:after { /* clearing without presentational markup, IE gets extra treatment */
37
+ display: block;
38
+ clear: both;
39
+ content: " ";
40
+ }
41
+ .ui-tabs-nav li {
42
+ float: left;
43
+ padding:8px 5px;
44
+ min-width: 84px; /* be nice to Opera */
45
+ margin: 2px 2px 0px 1px !important;
46
+ text-decoration: none;
47
+ list-style: none;
48
+ }
49
+ .ui-tabs-nav a, .ui-tabs-nav a span {
50
+ display: block;
51
+ padding: 0 10px;
52
+ background: url(tab.png) no-repeat;
53
+ }
54
+
55
+ .ui-tabs-nav a {
56
+ margin: 1px 0 0; /* position: relative makes opacity fail for disabled tab in IE */
57
+ padding-left: 0;
58
+ color: #27537a;
59
+ line-height: 1.2;
60
+ text-align: center;
61
+ text-decoration: none;
62
+ white-space: nowrap; /* required in IE 6 */
63
+ outline: 0; /* prevent dotted border in Firefox */
64
+ }
65
+ .ui-tabs-nav .ui-tabs-selected{
66
+ background:#CEE1EF none repeat scroll 0% 50%;
67
+ font-weight:bold;
68
+ -moz-border-radius-topright: 4px;
69
+ -khtml-border-top-right-radius: 4px;
70
+ -webkit-border-top-right-radius: 4px;
71
+ border-top-right-radius: 4px;
72
+ -moz-border-radius-topleft: 4px;
73
+ -khtml-border-top-left-radius: 4px;
74
+ -webkit-border-top-left-radius: 4px;
75
+ border-top-left-radius: 4px;
76
+ }
77
+ .ui-tabs-nav .ui-tabs-selected a {
78
+ position: relative;
79
+ top: 1px;
80
+ z-index: 2;
81
+ margin-top: 0;
82
+ color:#333333;
83
+ }
84
+ .ui-tabs-nav li a:hover {
85
+ color:#D54E21;
86
+ }
87
+ .ui-tabs-nav a span {
88
+ width: 64px; /* IE 6 treats width as min-width */
89
+ min-width: 64px;
90
+ height: 18px; /* IE 6 treats height as min-height */
91
+ min-height: 18px;
92
+ padding-top: 6px;
93
+ padding-right: 0;
94
+ }
95
+ *>.ui-tabs-nav a span { /* hide from IE 6 */
96
+ width: auto;
97
+ height: auto;
98
+ }
99
+ .ui-tabs-nav .ui-tabs-selected a span {
100
+ padding-bottom: 1px;
101
+ }
102
+ .ui-tabs-nav .ui-tabs-selected a, .ui-tabs-nav a:hover, .ui-tabs-nav a:focus, .ui-tabs-nav a:active {
103
+ background-position: 100% -150px;
104
+ }
105
+ .ui-tabs-nav a, .ui-tabs-nav .ui-tabs-disabled a:hover, .ui-tabs-nav .ui-tabs-disabled a:focus, .ui-tabs-nav .ui-tabs-disabled a:active {
106
+ background-position: 100% -100px;
107
+ }
108
+ .ui-tabs-nav .ui-tabs-selected a span, .ui-tabs-nav a:hover span, .ui-tabs-nav a:focus span, .ui-tabs-nav a:active span {
109
+ background-position: 0 -50px;
110
+ }
111
+ .ui-tabs-nav a span, .ui-tabs-nav .ui-tabs-disabled a:hover span, .ui-tabs-nav .ui-tabs-disabled a:focus span, .ui-tabs-nav .ui-tabs-disabled a:active span {
112
+ background-position: 0 0;
113
+ }
114
+ .ui-tabs-nav .ui-tabs-selected a:link, .ui-tabs-nav .ui-tabs-selected a:visited, .ui-tabs-nav .ui-tabs-disabled a:link, .ui-tabs-nav .ui-tabs-disabled a:visited { /* @ Opera, use pseudo classes otherwise it confuses cursor... */
115
+ cursor: text;
116
+ }
117
+ .ui-tabs-nav a:hover, .ui-tabs-nav a:focus, .ui-tabs-nav a:active,
118
+ .ui-tabs-nav .ui-tabs-unselect a:hover, .ui-tabs-nav .ui-tabs-unselect a:focus, .ui-tabs-nav .ui-tabs-unselect a:active { /* @ Opera, we need to be explicit again here now... */
119
+ cursor: pointer;
120
+ }
121
+ .ui-tabs-disabled {
122
+ opacity: .4;
123
+ filter: alpha(opacity=40);
124
+ }
125
+ .ui-tabs-panel {
126
+ border-top: 1px solid #97a5b0 !important;
127
+ padding: 1em 8px;
128
+ background: #fff; /* declare background color for container to avoid distorted fonts in IE while fading */
129
+
130
+ /* overwrite wp-admin */
131
+ border:none !important;
132
+ height:100% !important;
133
+ margin:0pt 0pt 0pt 0px !important;
134
+ overflow:visible !important;
135
+ }
136
+
137
+ .ui-tabs-panel a {
138
+ display:inline;
139
+ }
140
+
141
+ .ui-tabs-loading em {
142
+ padding: 0 0 0 20px;
143
+ background: url(loading.gif) no-repeat 0 50%;
144
+ }
145
+
146
+ /* Additional IE specific bug fixes... */
147
+ * html .ui-tabs-nav { /* auto clear, @ IE 6 & IE 7 Quirks Mode */
148
+ display: inline-block;
149
+ }
150
+ *:first-child+html .ui-tabs-nav { /* @ IE 7 Standards Mode - do not group selectors, otherwise IE 6 will ignore complete rule (because of the unknown + combinator)... */
151
+ display: inline-block;
152
+ }
153
+
admin/css/nggSorter.css ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .imageBox,.imageBoxHighlighted{
2
+ width:130px; /* Total width of each image box */
3
+ height:160px; /* Total height of each image box */
4
+ float:left;
5
+ }
6
+ .imageBox_theImage{
7
+ width:110px; /* Width of image */
8
+ height:125px; /* Height of image */
9
+
10
+ /*
11
+ Don't change these values *
12
+ */
13
+ background-position: center;
14
+ background-repeat: no-repeat;
15
+ margin: 0 auto;
16
+ margin-bottom:2px;
17
+ }
18
+
19
+ .imageBox .imageBox_theImage{
20
+ border:1px solid #DDD; /* Border color for not selected images */
21
+ padding:2px;
22
+ }
23
+ .imageBoxHighlighted .imageBox_theImage{
24
+ border:3px solid #316AC5; /* Border color for selected image */
25
+ padding:0px;
26
+
27
+ }
28
+ .imageBoxHighlighted span{ /* Title of selected image */
29
+ background-color: #316AC5;
30
+ color:#FFFFFF;
31
+ padding:2px;
32
+ }
33
+
34
+ .imageBox_label{ /* Title of images - both selected and not selected */
35
+ text-align:center;
36
+ font-family: arial;
37
+ font-size:11px;
38
+ padding-top:2px;
39
+ margin: 0 auto;
40
+ }
41
+
42
+ /*
43
+ DIV that indicates where the dragged image will be placed
44
+ */
45
+ #insertionMarker{
46
+ height:150px;
47
+ width:6px;
48
+ position:absolute;
49
+ }
50
+
51
+ #insertionMarkerLine{
52
+ width:6px; /* No need to change this value */
53
+ height:145px; /* To adjust the height of the div that indicates where the dragged image will be dropped */
54
+
55
+ }
56
+
57
+ #insertionMarker img{
58
+ float:left;
59
+ }
60
+
61
+ /*
62
+ DIV that shows the image as you drag it
63
+ */
64
+ #dragDropContent{
65
+
66
+ opacity:0.4; /* 40 % opacity */
67
+ filter:alpha(opacity=40); /* 40 % opacity */
68
+
69
+ /*
70
+ No need to change these three values
71
+ */
72
+ position:absolute;
73
+ z-index:10;
74
+ display:none;
75
+
76
+ }
admin/css/nggadmin.wp23.css ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* SETTINGS FOR Overview Gallery */
2
+
3
+ div .ngg-wrap {
4
+ overflow:hidden;
5
+ }
6
+
7
+ /* SETTINGS FOR PROGRESS BAR */
8
+
9
+ div .progressborder {
10
+ border: 1px inset ;
11
+ display: block;
12
+ height: 20px;
13
+ background-color: rgb(160, 160, 160);
14
+ width: 100%;
15
+ margin-top:5px;
16
+ }
17
+
18
+ div .progressbar {
19
+ border: medium none ;
20
+ display: block;
21
+ height: 20px;
22
+ background-color: rgb(13, 50, 79);
23
+ width: 0%;
24
+ }
25
+
26
+ div .progressbar span {
27
+ display: inline;
28
+ position: relative;
29
+ color: white;
30
+ font-weight: bold;
31
+ padding-bottom: 2px;
32
+ padding-left: 5px;
33
+ }
34
+
35
+ /* SETTINGS FOR ALBUM PAGE */
36
+
37
+ .album {
38
+ overflow: hidden;
39
+ }
40
+
41
+ .groupItem
42
+ {
43
+ background-color:#FBFBFB;
44
+ border:1px solid #CCCCCC;
45
+ display:block;
46
+ line-height:75px;
47
+ cursor: move;
48
+ margin: 0 0 10px;
49
+ width: 390px;
50
+ }
51
+
52
+ .groupItem .item_top
53
+ {
54
+ background-color:#669999;
55
+ color: white;
56
+ font-weight:bold;
57
+ line-height: 28px;
58
+ height: 28px;
59
+ border-bottom: 2px solid #003333;
60
+ cursor: move;
61
+ padding: 0 5px;
62
+ position: static;
63
+ }
64
+
65
+ .groupItem .item_top a
66
+ {
67
+ float:right;
68
+ text-decoration: none;
69
+ color: white;
70
+ border-bottom: 2px solid #003333;
71
+ }
72
+
73
+ .innerhandle {
74
+ border-color:#F2F2F2 rgb(232, 232, 232) rgb(232, 232, 232) rgb(242, 242, 242);
75
+ border-style:solid;
76
+ border-width:1px;
77
+ display:block;
78
+ }
79
+
80
+ .itemContent {
81
+ padding: 5px;
82
+ }
83
+
84
+ .itemContent p {
85
+ border: 0;
86
+ margin: 0;
87
+ padding: 0;
88
+ }
89
+
90
+ .inlinepicture
91
+ {
92
+ float:left;
93
+ display:inline;
94
+ margin:0pt;
95
+ padding:0pt 3px 1px;
96
+ }
97
+
98
+ .inlinepicture img
99
+ {
100
+ max-height:75px;
101
+ }
102
+
103
+ .sort_placeholder
104
+ {
105
+ border:1px dashed #bba !important;
106
+ background: #F9F9F9;
107
+ }
108
+
109
+ #galleryContainer {
110
+ background-color:#F0F8FF;
111
+ border:1px solid #BBBBBB;
112
+ margin:10px 440px 10px 10px;
113
+ padding:0px 10px 10px 10px;
114
+ }
115
+
116
+ #selectContainer {
117
+ float:right;
118
+ background:#F0F8FF none repeat scroll 0%;
119
+ border:1px solid #BBBBBB;
120
+ margin:0pt 10px 10px;
121
+ padding:0px 5px 5px 10px;
122
+ width:395px;
123
+ }
124
+
125
+ #galleryContainer h3, #selectContainer h3 {
126
+ color:#333333;
127
+ text-align:center;
128
+ line-height:25px;
129
+ }
admin/css/nggadmin.wp25.css ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* SETTINGS FOR Overview Gallery */
2
+
3
+ div.ngg-dashboard-widget {
4
+ border:1px solid #CCCCCC;
5
+ height:58em;
6
+ overflow:auto;
7
+ margin-right:20px;
8
+ padding:2px;
9
+ position:relative;
10
+ }
11
+
12
+ div.dashboard-widget-content .settings li {
13
+ margin:0.3em 0pt 0em;
14
+ }
15
+
16
+ #newversion {
17
+ border-color:#CCCCCC;
18
+ border-style:solid;
19
+ border-width:1px;
20
+ margin-right:7px;
21
+ margin-top:10px;
22
+ padding:2px;
23
+ }
24
+
25
+ /* SETTINGS FOR THE OPTIONS TABLE */
26
+ .form-table th {
27
+ width:33%;
28
+ }
29
+
30
+ /* WATERMARK */
31
+ #wm-preview {
32
+ float:right;
33
+ font-size:90%;
34
+ width:40%;
35
+ border-color:#EBEBEB rgb(204, 204, 204) rgb(204, 204, 204) rgb(235, 235, 235);
36
+ border-style:solid;
37
+ border-width:1px;
38
+ margin-bottom:10px;
39
+ margin-left:20px;
40
+ margin-right:8px;
41
+ padding:2px;
42
+ }
43
+ #wm-preview h3{
44
+ background:#EAF3FA none repeat scroll 0%;
45
+ font-size:14px;
46
+ font-weight:bold;
47
+ margin:0pt 0pt 10px;
48
+ padding:8px 5px;
49
+ }
50
+
51
+ #wm-position {
52
+ width:100%;
53
+ margin-left:40px;
54
+ }
55
+
56
+ .wm-table {
57
+ border-collapse:collapse;
58
+ margin-top:1em;
59
+ }
60
+ .wm-table td {
61
+ border-bottom:8px solid #FFFFFF;
62
+ line-height:20px;
63
+ margin-bottom:9px;
64
+ padding:10px;
65
+ }
66
+ .wm-table th {
67
+ border-bottom:8px solid #FFFFFF;
68
+ padding:10px;
69
+ text-align:left;
70
+ }
71
+ .wm-table tr {
72
+ background:#EAF3FA none repeat scroll 0%;
73
+ }
74
+
75
+ /* SETTINGS FOR MANAGE TABLE */
76
+
77
+ p#ngg-inlinebutton {
78
+ float:right;
79
+ margin:0pt;
80
+ position:relative;
81
+ top:-25pt;
82
+ }
83
+
84
+ div .ngg-tablenav {
85
+ overflow:hidden;
86
+ }
87
+
88
+ #ngg-listimages td, #ngg-listimages th {
89
+ vertical-align: middle;
90
+ padding: 10px 5px 10px;
91
+ }
92
+
93
+ /* SETTINGS FOR PROGRESS BAR */
94
+
95
+ div .progressborder {
96
+ border: 1px inset ;
97
+ display: block;
98
+ height: 20px;
99
+ background-color: #464646;
100
+ width: 100%;
101
+ margin-top: 15px;
102
+ margin-bottom: 15px;
103
+ }
104
+
105
+ div .progressbar {
106
+ border: medium none ;
107
+ display: block;
108
+ height: 20px;
109
+ background-color: #D54E21;
110
+ width: 0%;
111
+ }
112
+
113
+ div .progressbar span {
114
+ display: inline;
115
+ position: relative;
116
+ color: white;
117
+ font-weight: bold;
118
+ padding-left: 5px;
119
+ }
120
+
121
+ /* SETTINGS FOR ALBUM PAGE */
122
+
123
+ .ngg-albumnav {
124
+ width : 100%;
125
+ background-color:#EAF3FA;
126
+ clear:both;
127
+ margin-bottom:-10px;
128
+ margin-top:8px;
129
+ }
130
+
131
+ .groupItem
132
+ {
133
+ background-color:#FBFBFB;
134
+ border:1px solid #CCCCCC;
135
+ display:block;
136
+ line-height:75px;
137
+ cursor: move;
138
+ margin: 0 0 10px;
139
+ width: 390px;
140
+ }
141
+
142
+ .groupItem .item_top
143
+ {
144
+ background-color:#CEE1EF;
145
+ color: #333333;
146
+ font-weight:bold;
147
+ line-height: 28px;
148
+ height: 28px;
149
+ cursor: move;
150
+ padding: 0 5px;
151
+ position: static;
152
+ }
153
+
154
+ .groupItem .item_top a
155
+ {
156
+ float:right;
157
+ text-decoration: none;
158
+ color: #333333;
159
+ }
160
+
161
+ .groupItem .item_top a:hover
162
+ {
163
+ color: #D54E21;
164
+ }
165
+
166
+ .innerhandle {
167
+ border-color:#F2F2F2 rgb(232, 232, 232) rgb(232, 232, 232) rgb(242, 242, 242);
168
+ border-style:solid;
169
+ border-width:1px;
170
+ display:block;
171
+ }
172
+
173
+ .itemContent {
174
+ padding: 5px;
175
+ }
176
+
177
+ .itemContent p {
178
+ border: 0;
179
+ margin: 0;
180
+ padding: 0;
181
+ }
182
+
183
+ .inlinepicture
184
+ {
185
+ float:left;
186
+ display:inline;
187
+ margin:0pt;
188
+ padding:0pt 3px 1px;
189
+ }
190
+
191
+ .inlinepicture img
192
+ {
193
+ max-height:75px;
194
+ }
195
+
196
+ .sort_placeholder
197
+ {
198
+ border:1px dashed #bba !important;
199
+ background: #F9F9F9;
200
+ }
201
+
202
+ #galleryContainer {
203
+ background-color:#FBFBFB;
204
+ border:1px solid #BBBBBB;
205
+ margin:10px 440px 10px 10px;
206
+ padding:0px 10px 10px 10px;
207
+ }
208
+
209
+ #selectContainer {
210
+ float:right;
211
+ background:#FBFBFB none repeat scroll 0%;
212
+ border:1px solid #BBBBBB;
213
+ margin:0pt 10px 10px;
214
+ padding:0px 5px 5px 10px;
215
+ width:395px;
216
+ }
217
+
218
+ #galleryContainer h3, #selectContainer h3 {
219
+ color:#333333;
220
+ text-align:center;
221
+ line-height:25px;
222
+ }
223
+
224
+ /* SETTINGS FOR SORT GALLERY */
225
+
226
+ #sortGallery {
227
+ bottom:25px;
228
+ float:right;
229
+ padding-right:5px;
230
+ position:relative;
231
+ }
232
+
233
+ .imageBox,.imageBoxHighlighted{
234
+ width:130px; /* Total width of each image box */
235
+ height:160px; /* Total height of each image box */
236
+ float:left;
237
+ }
238
+ .imageBox_theImage{
239
+ width:110px; /* Width of image */
240
+ height:125px; /* Height of image */
241
+
242
+ background-position: center;
243
+ background-repeat: no-repeat;
244
+ margin: 0 auto;
245
+ margin-bottom:2px;
246
+ }
247
+
248
+ .imageBox .imageBox_theImage{
249
+ border:1px solid #DDD; /* Border color for not selected images */
250
+ padding:2px;
251
+ }
252
+ .imageBoxHighlighted .imageBox_theImage{
253
+ border:3px solid #316AC5; /* Border color for selected image */
254
+ padding:0px;
255
+
256
+ }
257
+ .imageBoxHighlighted span{ /* Title of selected image */
258
+ background-color: #316AC5;
259
+ color:#FFFFFF;
260
+ padding:2px;
261
+ }
262
+
263
+ .imageBox_label{ /* Title of images - both selected and not selected */
264
+ text-align:center;
265
+ font-family: arial;
266
+ font-size:11px;
267
+ padding-top:2px;
268
+ margin: 0 auto;
269
+ }
270
+
271
+ /*
272
+ DIV that indicates where the dragged image will be placed
273
+ */
274
+
275
+ #insertionMarker{
276
+ height:150px;
277
+ width:6px;
278
+ position:absolute;
279
+ }
280
+
281
+ #insertionMarkerLine{
282
+ width:6px; /* No need to change this value */
283
+ height:145px; /* To adjust the height of the div that indicates where the dragged image will be dropped */
284
+
285
+ }
286
+
287
+ #insertionMarker img{
288
+ float:left;
289
+ }
290
+
291
+ /*
292
+ DIV that shows the image as you drag it
293
+ */
294
+
295
+ #dragDropContent{
296
+
297
+ opacity:0.4; /* 40 % opacity */
298
+ filter:alpha(opacity=40); /* 40 % opacity */
299
+
300
+ /*
301
+ No need to change these three values
302
+ */
303
+ position:absolute;
304
+ z-index:10;
305
+ display:none;
306
+
307
+ }
admin/functions.php CHANGED
@@ -109,7 +109,6 @@ class nggAdmin{
109
  nggallery::show_message(__('Directory', 'nggallery').' <strong>'.$gallerypath.'</strong> '.__('contains no pictures', 'nggallery'));
110
  return;
111
  }
112
-
113
  // check & create thumbnail folder
114
  if ( !nggallery::get_thumbnail_folder($gallerypath) )
115
  return;
@@ -138,7 +137,7 @@ class nggAdmin{
138
  $new_images = array_diff($new_imageslist, $old_imageslist);
139
  // now create thumbnails
140
  nggAdmin::generateThumbnail($gallerypath,$new_images);
141
-
142
  // add images to database
143
  $count_pic = nggAdmin::add_Images($gallery_id, $gallerypath, $new_images);
144
 
@@ -158,7 +157,8 @@ class nggAdmin{
158
  $files[] = utf8_encode($file);
159
  closedir($handle);
160
  }
161
- return($files);
 
162
  }
163
 
164
  // **************************************************************
@@ -194,9 +194,11 @@ class nggAdmin{
194
  // skip if file is not there
195
  if (!$thumb->error) {
196
  $thumb->resize($ngg_options['imgWidth'],$ngg_options['imgHeight'],$ngg_options['imgResampleMode']);
197
- if ( $thumb->save($gallery_absfolder."/".$picture,$ngg_options['imgQuality']) )
198
- $bar->addNote($picture. __(' : Image resized...','nggallery'));
199
- else
 
 
200
  $bar->addNote($picture . " : Error : <strong>".$thumb->errmsg."</strong>");
201
  $bar->increase();
202
  }
@@ -249,9 +251,11 @@ class nggAdmin{
249
  $thumb->watermarkCreateText($ngg_options['wmColor'], $ngg_options['wmFont'], $ngg_options['wmSize'], $ngg_options['wmOpaque']);
250
  $thumb->watermarkImage($ngg_options['wmPos'], $ngg_options['wmXpos'], $ngg_options['wmYpos']);
251
  }
252
- if ( $thumb->save($gallery_absfolder."/".$picture,$ngg_options['imgQuality']) )
253
- $bar->addNote($picture. __(' : Watermark created...','nggallery'));
254
- else
 
 
255
  $bar->addNote($picture . " : Error : <strong>".$thumb->errmsg."</strong>");
256
  $bar->increase();
257
  }
@@ -346,7 +350,9 @@ class nggAdmin{
346
  $bar->addNote($picture . " : Error : <strong>".$thumb->errmsg."</strong>");
347
  }
348
  $thumb->destruct();
349
- $bar->addNote($picture. __(' : Thumbnail created...','nggallery'));
 
 
350
  $bar->increase();
351
  }
352
  }
@@ -361,11 +367,9 @@ class nggAdmin{
361
  function add_Images($galleryID, $gallerypath, $imageslist) {
362
  // add images to database
363
  global $wpdb;
364
-
365
  $count_pic = 0;
366
  if (is_array($imageslist)) {
367
  foreach($imageslist as $picture) {
368
-
369
  $result = $wpdb->query("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext, exclude) VALUES ('$galleryID', '$picture', '$picture', 0) ");
370
  $pic_id = (int) $wpdb->insert_id;
371
  if ($result) $count_pic++;
@@ -548,10 +552,28 @@ class nggAdmin{
548
  // WPMU action
549
  if (nggAdmin::check_quota())
550
  return;
551
-
552
  // Images must be an array
553
  $imageslist = array();
554
- $i = 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
555
 
556
  foreach ($_FILES as $key => $value) {
557
 
@@ -561,26 +583,8 @@ class nggAdmin{
561
  $filepart = pathinfo ( strtolower($_FILES[$key]['name']) );
562
  // required until PHP 5.2.0
563
  $filepart['filename'] = substr($filepart["basename"],0 ,strlen($filepart["basename"]) - (strlen($filepart["extension"]) + 1) );
564
- $filename = sanitize_title($filepart['filename']).".".$filepart['extension'];
565
- // check if this filename already exist
566
- if (in_array($filename,$imageslist))
567
- $filename = sanitize_title($filepart['filename']) . "_" . $i++ . "." .$filepart['extension'];
568
-
569
- $galleryID = (int) $_POST['galleryselect'];
570
 
571
- if ($galleryID == 0) {
572
- @unlink($temp_file) or die ('<div class="updated"><p><strong>'.__('Unable to unlink file ', 'nggallery').$temp_zipfile.'!</strong></p></div>');
573
- nggallery::show_error(__('No gallery selected !','nggallery'));
574
- return;
575
- }
576
-
577
- // get the path to the gallery
578
- $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
579
- if (!$gallerypath){
580
- @unlink($temp_file) or die ('<div class="updated"><p><strong>'.__('Unable to unlink file ', 'nggallery').$temp_zipfile.'!</strong></p></div>');
581
- nggallery::show_error(__('Failure in database, no gallery path set !','nggallery'));
582
- return;
583
- }
584
 
585
  // check for allowed extension
586
  $ext = array("jpeg", "jpg", "png", "gif");
@@ -588,6 +592,12 @@ class nggAdmin{
588
  nggallery::show_error('<strong>'.$_FILES[$key]['name'].' </strong>'.__('is no valid image file!','nggallery'));
589
  continue;
590
  }
 
 
 
 
 
 
591
 
592
  $dest_file = WINABSPATH.$gallerypath."/".$filename;
593
 
@@ -609,8 +619,9 @@ class nggAdmin{
609
  continue;
610
  }
611
 
612
- // add to imagelist
613
  $imageslist[] = $filename;
 
614
 
615
  }
616
  }
@@ -641,6 +652,10 @@ class nggAdmin{
641
  return __('No gallery selected !','nggallery');;
642
  }
643
 
 
 
 
 
644
  // Check the upload
645
  if (!isset($_FILES["Filedata"]) || !is_uploaded_file($_FILES["Filedata"]["tmp_name"]) || $_FILES["Filedata"]["error"] != 0) {
646
  return __('Invalid upload. Error Code : ','nggallery').$_FILES["Filedata"]["error"];
@@ -885,7 +900,10 @@ class wpProgressBar {
885
  document.getElementById("'.$this->domIDProgressNote.'").getElementsByTagName("li")['.$this->ListCount.'].appendChild(note);
886
  </script>';
887
  $this->ListCount++;
888
- ob_flush();flush();
 
 
 
889
  }
890
  }
891
 
109
  nggallery::show_message(__('Directory', 'nggallery').' <strong>'.$gallerypath.'</strong> '.__('contains no pictures', 'nggallery'));
110
  return;
111
  }
 
112
  // check & create thumbnail folder
113
  if ( !nggallery::get_thumbnail_folder($gallerypath) )
114
  return;
137
  $new_images = array_diff($new_imageslist, $old_imageslist);
138
  // now create thumbnails
139
  nggAdmin::generateThumbnail($gallerypath,$new_images);
140
+
141
  // add images to database
142
  $count_pic = nggAdmin::add_Images($gallery_id, $gallerypath, $new_images);
143
 
157
  $files[] = utf8_encode($file);
158
  closedir($handle);
159
  }
160
+ sort($files);
161
+ return ($files);
162
  }
163
 
164
  // **************************************************************
194
  // skip if file is not there
195
  if (!$thumb->error) {
196
  $thumb->resize($ngg_options['imgWidth'],$ngg_options['imgHeight'],$ngg_options['imgResampleMode']);
197
+ if ( $thumb->save($gallery_absfolder."/".$picture,$ngg_options['imgQuality']) ) {
198
+ // do not flush the buffer with useless messages
199
+ if ($elements < 100)
200
+ $bar->addNote($picture. __(' : Image resized...','nggallery'));
201
+ } else
202
  $bar->addNote($picture . " : Error : <strong>".$thumb->errmsg."</strong>");
203
  $bar->increase();
204
  }
251
  $thumb->watermarkCreateText($ngg_options['wmColor'], $ngg_options['wmFont'], $ngg_options['wmSize'], $ngg_options['wmOpaque']);
252
  $thumb->watermarkImage($ngg_options['wmPos'], $ngg_options['wmXpos'], $ngg_options['wmYpos']);
253
  }
254
+ if ( $thumb->save($gallery_absfolder."/".$picture,$ngg_options['imgQuality']) ) {
255
+ // do not flush the buffer with useless messages
256
+ if ($elements < 100)
257
+ $bar->addNote($picture. __(' : Watermark created...','nggallery'));
258
+ } else
259
  $bar->addNote($picture . " : Error : <strong>".$thumb->errmsg."</strong>");
260
  $bar->increase();
261
  }
350
  $bar->addNote($picture . " : Error : <strong>".$thumb->errmsg."</strong>");
351
  }
352
  $thumb->destruct();
353
+ // do not flush the buffer with useless messages
354
+ if ($elements < 100)
355
+ $bar->addNote($picture. __(' : Thumbnail created...','nggallery'));
356
  $bar->increase();
357
  }
358
  }
367
  function add_Images($galleryID, $gallerypath, $imageslist) {
368
  // add images to database
369
  global $wpdb;
 
370
  $count_pic = 0;
371
  if (is_array($imageslist)) {
372
  foreach($imageslist as $picture) {
 
373
  $result = $wpdb->query("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext, exclude) VALUES ('$galleryID', '$picture', '$picture', 0) ");
374
  $pic_id = (int) $wpdb->insert_id;
375
  if ($result) $count_pic++;
552
  // WPMU action
553
  if (nggAdmin::check_quota())
554
  return;
555
+
556
  // Images must be an array
557
  $imageslist = array();
558
+
559
+ // get selected gallery
560
+ $galleryID = (int) $_POST['galleryselect'];
561
+
562
+ if ($galleryID == 0) {
563
+ nggallery::show_error(__('No gallery selected !','nggallery'));
564
+ return;
565
+ }
566
+
567
+ // get the path to the gallery
568
+ $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
569
+
570
+ if (!$gallerypath){
571
+ nggallery::show_error(__('Failure in database, no gallery path set !','nggallery'));
572
+ return;
573
+ }
574
+
575
+ // read list of images
576
+ $dirlist = nggAdmin::scandir(WINABSPATH.$gallerypath);
577
 
578
  foreach ($_FILES as $key => $value) {
579
 
583
  $filepart = pathinfo ( strtolower($_FILES[$key]['name']) );
584
  // required until PHP 5.2.0
585
  $filepart['filename'] = substr($filepart["basename"],0 ,strlen($filepart["basename"]) - (strlen($filepart["extension"]) + 1) );
 
 
 
 
 
 
586
 
587
+ $filename = sanitize_title($filepart['filename']) . "." . $filepart['extension'];
 
 
 
 
 
 
 
 
 
 
 
 
588
 
589
  // check for allowed extension
590
  $ext = array("jpeg", "jpg", "png", "gif");
592
  nggallery::show_error('<strong>'.$_FILES[$key]['name'].' </strong>'.__('is no valid image file!','nggallery'));
593
  continue;
594
  }
595
+
596
+ // check if this filename already exist in the folder
597
+ $i = 0;
598
+ while (in_array($filename,$dirlist)) {
599
+ $filename = sanitize_title($filepart['filename']) . "_" . $i++ . "." .$filepart['extension'];
600
+ }
601
 
602
  $dest_file = WINABSPATH.$gallerypath."/".$filename;
603
 
619
  continue;
620
  }
621
 
622
+ // add to imagelist & dirlist
623
  $imageslist[] = $filename;
624
+ $dirlist[] = $filename;
625
 
626
  }
627
  }
652
  return __('No gallery selected !','nggallery');;
653
  }
654
 
655
+ // WPMU check for quota
656
+ if (nggAdmin::check_quota())
657
+ return;
658
+
659
  // Check the upload
660
  if (!isset($_FILES["Filedata"]) || !is_uploaded_file($_FILES["Filedata"]["tmp_name"]) || $_FILES["Filedata"]["error"] != 0) {
661
  return __('Invalid upload. Error Code : ','nggallery').$_FILES["Filedata"]["error"];
900
  document.getElementById("'.$this->domIDProgressNote.'").getElementsByTagName("li")['.$this->ListCount.'].appendChild(note);
901
  </script>';
902
  $this->ListCount++;
903
+ if ($this->numSteps < 150) {
904
+ ob_flush();
905
+ flush();
906
+ }
907
  }
908
  }
909
 
admin/images/marker_bottom.gif ADDED
Binary file
admin/images/marker_middle.gif ADDED
Binary file
admin/images/marker_top.gif ADDED
Binary file
admin/js/jquery.nextgen.js DELETED
@@ -1,248 +0,0 @@
1
- /**
2
- * NextGEN Gallery Navigation -
3
- * http://alexrabe.boelinger.com/
4
- *
5
- * Copyright (c) 2007 Alex Rabe (http://alexrabe.boelinger.com)
6
- * Licensed under GPL (GPL-LICENSE.txt) licenses.
7
- *
8
- * Built on top of the jQuery library
9
- * http://jquery.com
10
- *
11
- * version 1.01 : Bugfix for title/alt name
12
- */
13
-
14
- (function($) {
15
- /**
16
- * Creates a Gallery navigation
17
- *
18
- * @name NextGEN
19
- * @type jQuery
20
- * @param Hash o A set of key/value pairs to set as configuration properties.
21
- * @cat Plugins/NextGEN
22
- */
23
- $.fn.nggallery = function(o) {
24
- return this.each(function() {
25
- new $ngg(this, o);
26
- });
27
- };
28
-
29
- // Default configuration properties.
30
- var defaults = {
31
- imgarray: new Array(),
32
- name : 'gallery',
33
- galleryurl : '',
34
- thumbfolder : 'thumbs',
35
- maxelement: 0
36
- };
37
-
38
- /**
39
- * The NextGEN Gallery object.
40
- *
41
- * @constructor
42
- * @name $.nggallery
43
- * @param Object e The element to create the gallery
44
- * @param Hash o A set of key/value pairs to set as configuration properties.
45
- * @cat Plugins/NextGEN
46
- */
47
- $.nggallery = function(e,o) {
48
- // get the parameter
49
- this.options = $.extend({}, defaults, o || {});
50
- this.container = null;
51
-
52
- // set the gallery pointer
53
- this.gallery = $(e);
54
-
55
- // check if array is longer then page elements
56
- var o = this.options;
57
- this.pagelimit = o.imgarray.length < o.maxelement ? o.imgarray.length : o.maxelement;
58
-
59
- // get to start point
60
- this.container = this.gallery.append('<div class="ngg-galleryoverview"></div>').children();
61
-
62
- // create thumbnail path
63
- if (o.thumbfolder == 'tumbs')
64
- this.thumbpath = o.galleryurl + o.thumbfolder + '/' + 'tmb_';
65
- else
66
- this.thumbpath = o.galleryurl + o.thumbfolder + '/' + o.thumbfolder + '_';
67
-
68
- for (var idx = 0; idx < this.pagelimit; idx++) {
69
-
70
- var imglink = $.A().attr({ href: o.galleryurl + o.imgarray[idx][0], title: o.imgarray[idx][2], rel: o.name });
71
- $(imglink).addClass("thickbox");
72
- var image = $.IMG().attr({ src: this.thumbpath + o.imgarray[idx][0], alt: o.imgarray[idx][1] , title: o.imgarray[idx][1] });
73
- $(imglink).append(image);
74
- $.tb_init(imglink); //apply thickbox
75
-
76
- this.pictures = this.container.append(imglink).children();
77
- //console.log(this.options.galleryurl);
78
- }
79
- // add the div container
80
- this.pictures.wrap('<div class="ngg-gallery-thumbnail-box"></div>');
81
- this.pictures.wrap('<div class="ngg-gallery-thumbnail"></div>');
82
- // add the navigation
83
- this.navigation();
84
-
85
- };
86
-
87
- // Create shortcut for internal use
88
- var $ngg = $.nggallery;
89
-
90
- $ngg.fn = $ngg.prototype = {
91
- nggallery: '0.0.1'
92
- };
93
-
94
- $ngg.fn.extend = $ngg.extend = $.extend;
95
-
96
- // Internal functions
97
- $ngg.fn.extend({
98
-
99
- /**
100
- * Add the page navigation
101
- *
102
- * @name navigation
103
- * @type undefined
104
- * @cat Plugins/NextGEN
105
- */
106
- navigation: function(step, total) {
107
-
108
- var self = this;
109
- var step = this.options.maxelement; // how many pics per page ?
110
- var total = this.options.imgarray.length; // how many elements ?
111
- var start = 0;
112
- var end = start + step - 1;
113
-
114
- if (total > step) {
115
- var navigator = $.DIV({className: "ngg-navigation"});
116
- var offset = 0, page = 1;
117
- while (offset < total) {
118
- var listelement = $.SPAN({className: "page-numbers"}, $.TEXT(page++));
119
- $(navigator).append(listelement);
120
-
121
- var f = (function(offset) {
122
- return function() {
123
- self.show(offset);
124
- };
125
- })(offset);
126
-
127
- // bound click to SPAN class
128
- $(listelement).css('cursor', 'pointer');
129
- $(listelement).click(f);
130
- offset += step;
131
- }
132
- this.gallery.append(navigator);
133
- }
134
-
135
- this.gallery.append('<div style="clear:both;"></div>');
136
- },
137
-
138
- /**
139
- * show images
140
- *
141
- * @name next
142
- * @type undefined
143
- * @cat Plugins/NextGEN
144
- */
145
- show: function( offset ) {
146
-
147
- var imagecounter = $(this.gallery.children(".ngg-galleryoverview").children()).length;
148
-
149
- var imagelist = this.gallery.children(".ngg-galleryoverview").children();
150
-
151
- for (var i = 0; i < imagecounter; i++) {
152
- // get the image div container
153
- var imagecontainer = this.gallery.children(".ngg-galleryoverview").find(".ngg-gallery-thumbnail")[i];
154
- // delete the content
155
- if (imagecontainer != null) {
156
- $(imagecontainer).empty();
157
-
158
- // create a new image
159
- var idx = offset + i;
160
- if (idx < this.options.imgarray.length ) {
161
- var imglink = $.A().attr({ href: this.options.galleryurl + this.options.imgarray[idx][0], title: this.options.imgarray[idx][2], rel: this.options.name });
162
- $(imglink).addClass("thickbox");
163
- var image = $.IMG().attr({ src: this.thumbpath + this.options.imgarray[idx][0], alt: this.options.imgarray[idx][1] , title: this.options.imgarray[idx][1] });
164
- $(imglink).append(image);
165
- // add the new image to the div container
166
- $(imagecontainer).append(imglink);
167
- $.tb_init(imglink);//apply thickbox
168
- // show it
169
- $(imagelist[i]).fadeIn("normal");
170
- }
171
- }
172
- };
173
- }
174
-
175
- });
176
-
177
- /**
178
- * DOM element creator for jQuery and Prototype by Michael Geary
179
- * http://mg.to/topics/programming/javascript/jquery
180
- * Inspired by MochiKit.DOM by Bob Ippolito
181
- *
182
- * @method : $.DIV({ id: 'somethingNew'}).appendTo('#somethingOld').click(doSomething);
183
- * @cat Plugins/NextGEN
184
- */
185
-
186
- $.defineTag = function( tag ) {
187
- $[tag.toUpperCase()] = function() {
188
- return $._createNode( tag, arguments );
189
- }
190
- };
191
-
192
- (function() {
193
- var tags = [
194
- 'a', 'br', 'button', 'canvas', 'div', 'fieldset', 'form',
195
- 'h1', 'h2', 'h3', 'hr', 'img', 'input', 'label', 'legend',
196
- 'li', 'ol', 'optgroup', 'option', 'p', 'pre', 'select',
197
- 'span', 'strong', 'table', 'tbody', 'td', 'textarea',
198
- 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul' ];
199
- for( var i = tags.length - 1; i >= 0; i-- ) {
200
- $.defineTag( tags[i] );
201
- }
202
- })();
203
-
204
- $.NBSP = '\u00a0';
205
-
206
- $._createNode = function( tag, args ) {
207
- var fix = { 'class':'className', 'Class':'className' };
208
- var e;
209
- try {
210
- var attrs = args[0] || {};
211
- e = document.createElement( tag );
212
- for( var attr in attrs ) {
213
- var a = fix[attr] || attr;
214
- e[a] = attrs[attr];
215
- }
216
- for( var i = 1; i < args.length; i++ ) {
217
- var arg = args[i];
218
- if( arg == null ) continue;
219
- if( arg.constructor != Array ) append( arg );
220
- else for( var j = 0; j < arg.length; j++ )
221
- append( arg[j] );
222
- }
223
- }
224
- catch( ex ) {
225
- alert( 'Cannot create <' + tag + '> element:\n' +
226
- args.toSource() + '\n' + args );
227
- e = null;
228
- }
229
-
230
- function append( arg ) {
231
- if( arg == null ) return;
232
- if (arg.get) arg = arg.get(0);
233
- var c = arg.constructor;
234
- switch( typeof arg ) {
235
- case 'number': arg = '' + arg; // fall through
236
- case 'string': arg = document.createTextNode( arg );
237
- }
238
- e.appendChild( arg );
239
- }
240
-
241
- return $(e);
242
- };
243
-
244
- $.TEXT = function(s) {
245
- return document.createTextNode(s);
246
- };
247
-
248
- })(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/jquery.nextgen.pack.js DELETED
@@ -1,15 +0,0 @@
1
- /**
2
- * NextGEN Gallery Navigation -
3
- * http://alexrabe.boelinger.com/
4
- *
5
- * Copyright (c) 2007 Alex Rabe (http://alexrabe.boelinger.com)
6
- * Licensed under GPL (GPL-LICENSE.txt) licenses.
7
- *
8
- * Built on top of the jQuery library
9
- * http://jquery.com
10
- *
11
- * version 1.01 : Bugfix for title/alt name
12
- *
13
- */
14
-
15
- eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(6($){$.D.E=6(o){w 3.1e(6(){T m(3,o)})};4 l={5:T U(),M:\'8\',y:\'\',z:\'1f\',F:0};$.E=6(e,o){3.7=$.B({},l,o||{});3.N=C;3.8=$(e);4 o=3.7;3.V=o.5.r<o.F?o.5.r:o.F;3.N=3.8.9(\'<q G="t-H"></q>\').v();u(o.z==\'1g\')3.I=o.y+o.z+\'/\'+\'1h\';W 3.I=o.y+o.z+\'/\'+o.z+\'1i\';x(4 a=0;a<3.V;a++){4 b=$.A().J({X:o.y+o.5[a][0],K:o.5[a][2],Y:o.M});$(b).Z("10");4 c=$.11().J({12:3.I+o.5[a][0],13:o.5[a][1],K:o.5[a][1]});$(b).9(c);$.14(b);3.O=3.N.9(b).v()}3.O.15(\'<q G="t-8-P-1j"></q>\');3.O.15(\'<q G="t-8-P"></q>\');3.Q()};4 m=$.E;m.D=m.1k={E:\'0.0.1\'};m.D.B=m.B=$.B;m.D.B({Q:6(b,c){4 d=3;4 b=3.7.F;4 c=3.7.5.r;4 e=0;4 g=e+b-1;u(c>b){4 h=$.1l({L:"t-Q"});4 i=0,R=1;1m(i<c){4 j=$.1n({L:"R-1o"},$.16(R++));$(h).9(j);4 f=(6(a){w 6(){d.17(a)}})(i);$(j).1p(\'1q\',\'1r\');$(j).1s(f);i+=b}3.8.9(h)}3.8.9(\'<q 1t="1u:1v;"></q>\')},17:6(a){4 b=$(3.8.v(".t-H").v()).r;4 c=3.8.v(".t-H").v();x(4 i=0;i<b;i++){4 d=3.8.v(".t-H").1w(".t-8-P")[i];u(d!=C){$(d).1x();4 e=a+i;u(e<3.7.5.r){4 f=$.A().J({X:3.7.y+3.7.5[e][0],K:3.7.5[e][2],Y:3.7.M});$(f).Z("10");4 g=$.11().J({12:3.I+3.7.5[e][0],13:3.7.5[e][1],K:3.7.5[e][1]});$(f).9(g);$(d).9(f);$.14(f);$(c[i]).1y("1z")}}}}});$.18=6(a){$[a.1A()]=6(){w $.19(a,1B)}};(6(){4 a=[\'a\',\'1C\',\'1D\',\'1E\',\'q\',\'1F\',\'1G\',\'1H\',\'1I\',\'1J\',\'1K\',\'1L\',\'1M\',\'1N\',\'1O\',\'1P\',\'1Q\',\'1R\',\'1S\',\'p\',\'1T\',\'1U\',\'1V\',\'1W\',\'1X\',\'1Y\',\'1Z\',\'20\',\'21\',\'22\',\'23\',\'24\',\'25\',\'26\'];x(4 i=a.r-1;i>=0;i--){$.18(a[i])}})();$.27=\'\\28\';$.19=6(b,d){4 f={\'G\':\'L\',\'29\':\'L\'};4 e;2a{4 g=d[0]||{};e=S.2b(b);x(4 h 2c g){4 a=f[h]||h;e[a]=g[h]}x(4 i=1;i<d.r;i++){4 k=d[i];u(k==C)2d;u(k.1a!=U)9(k);W x(4 j=0;j<k.r;j++)9(k[j])}}2e(2f){2g(\'2h 2i <\'+b+\'> 2j:\\n\'+d.2k()+\'\\n\'+d);e=C}6 9(a){u(a==C)w;u(a.1b)a=a.1b(0);4 c=a.1a;2l(2m a){1c\'2n\':a=\'\'+a;1c\'2o\':a=S.1d(a)}e.2p(a)}w $(e)};$.16=6(s){w S.1d(s)}})(2q);',62,151,'|||this|var|imgarray|function|options|gallery|append|||||||||||||||||div|length||ngg|if|children|return|for|galleryurl|thumbfolder||extend|null|fn|nggallery|maxelement|class|galleryoverview|thumbpath|attr|title|className|name|container|pictures|thumbnail|navigation|page|document|new|Array|pagelimit|else|href|rel|addClass|thickbox|IMG|src|alt|tb_init|wrap|TEXT|show|defineTag|_createNode|constructor|get|case|createTextNode|each|thumbs|tumbs|tmb_|_|box|prototype|DIV|while|SPAN|numbers|css|cursor|pointer|click|style|clear|both|find|empty|fadeIn|normal|toUpperCase|arguments|br|button|canvas|fieldset|form|h1|h2|h3|hr|img|input|label|legend|li|ol|optgroup|option|pre|select|span|strong|table|tbody|td|textarea|tfoot|th|thead|tr|tt|ul|NBSP|u00a0|Class|try|createElement|in|continue|catch|ex|alert|Cannot|create|element|toSource|switch|typeof|number|string|appendChild|jQuery'.split('|'),0,{}))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin/js/jquery.ui.tabs.js ADDED
@@ -0,0 +1,532 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Tabs 3 - New Wave Tabs
3
+ *
4
+ * Copyright (c) 2007 Klaus Hartl (stilbuero.de)
5
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
6
+ * and GPL (GPL-LICENSE.txt) licenses.
7
+ *
8
+ * http://docs.jquery.com/UI/Tabs
9
+ */
10
+
11
+ (function($) {
12
+
13
+ // if the UI scope is not availalable, add it
14
+ $.ui = $.ui || {};
15
+
16
+ // tabs API methods
17
+ $.fn.tabs = function() {
18
+ var method = typeof arguments[0] == 'string' && arguments[0];
19
+ var args = method && Array.prototype.slice.call(arguments, 1) || arguments;
20
+
21
+ return method == 'length' ?
22
+ $.data(this[0], 'ui-tabs').$tabs.length :
23
+ this.each(function() {
24
+ if (method) {
25
+ var tabs = $.data(this, 'ui-tabs');
26
+ tabs[method].apply(tabs, args);
27
+ } else
28
+ new $.ui.tabs(this, args[0] || {});
29
+ });
30
+ };
31
+
32
+ // tabs class
33
+ $.ui.tabs = function(el, options) {
34
+ var self = this;
35
+
36
+ this.element = el;
37
+
38
+ this.options = $.extend({
39
+
40
+ // basic setup
41
+ selected: 0,
42
+ unselect: options.selected === null,
43
+ event: 'click',
44
+ disabled: [],
45
+ cookie: null, // e.g. { expires: 7, path: '/', domain: 'jquery.com', secure: true }
46
+ // TODO bookmarkable: $.ajaxHistory ? true : false,
47
+
48
+ // Ajax
49
+ spinner: 'Loading&#8230;',
50
+ cache: false,
51
+ idPrefix: 'ui-tabs-',
52
+ ajaxOptions: {},
53
+
54
+ // animations
55
+ fx: null, // e.g. { height: 'toggle', opacity: 'toggle', duration: 200 }
56
+
57
+ // templates
58
+ tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>',
59
+ panelTemplate: '<div></div>',
60
+
61
+ // CSS classes
62
+ navClass: 'ui-tabs-nav',
63
+ selectedClass: 'ui-tabs-selected',
64
+ unselectClass: 'ui-tabs-unselect',
65
+ disabledClass: 'ui-tabs-disabled',
66
+ panelClass: 'ui-tabs-panel',
67
+ hideClass: 'ui-tabs-hide',
68
+ loadingClass: 'ui-tabs-loading'
69
+
70
+ }, options);
71
+
72
+ // doesn't extend with null
73
+ if (options.selected === null)
74
+ this.options.selected = null;
75
+
76
+ this.options.event += '.ui-tabs'; // namespace event
77
+ this.options.cookie = $.cookie && $.cookie.constructor == Function && this.options.cookie;
78
+
79
+ $(el).bind('setData.ui-tabs', function(event, key, value) {
80
+ if ((/^selected/).test(key))
81
+ self.select(value);
82
+ else {
83
+ self.options[key] = value;
84
+ self.tabify();
85
+ }
86
+ }).bind('getData.ui-tabs', function(event, key) {
87
+ return self.options[key];
88
+ });
89
+
90
+ // save instance for later
91
+ $.data(el, 'ui-tabs', this);
92
+
93
+ // create tabs
94
+ this.tabify(true);
95
+ };
96
+
97
+ // instance methods
98
+ $.extend($.ui.tabs.prototype, {
99
+ tabId: function(a) {
100
+ return a.title && a.title.replace(/\s/g, '_').replace(/[^A-Za-z0-9\-_:\.]/g, '')
101
+ || this.options.idPrefix + $.data(a);
102
+ },
103
+ ui: function(tab, panel) {
104
+ return {
105
+ instance: this,
106
+ options: this.options,
107
+ tab: tab,
108
+ panel: panel
109
+ };
110
+ },
111
+ tabify: function(init) {
112
+
113
+ this.$lis = $('li:has(a[href])', this.element);
114
+ this.$tabs = this.$lis.map(function() { return $('a', this)[0]; });
115
+ this.$panels = $([]);
116
+
117
+ var self = this, o = this.options;
118
+
119
+ this.$tabs.each(function(i, a) {
120
+ // inline tab
121
+ if (a.hash && a.hash.replace('#', '')) // Safari 2 reports '#' for an empty hash
122
+ self.$panels = self.$panels.add(a.hash);
123
+ // remote tab
124
+ else if ($(a).attr('href') != '#') { // prevent loading the page itself if href is just "#"
125
+ $.data(a, 'href.ui-tabs', a.href); // required for restore on destroy
126
+ $.data(a, 'load.ui-tabs', a.href); // mutable
127
+ var id = self.tabId(a);
128
+ a.href = '#' + id;
129
+ var $panel = $('#' + id);
130
+ if (!$panel.length) {
131
+ $panel = $(o.panelTemplate).attr('id', id).addClass(o.panelClass)
132
+ .insertAfter( self.$panels[i - 1] || self.element );
133
+ $panel.data('destroy.ui-tabs', true);
134
+ }
135
+ self.$panels = self.$panels.add( $panel );
136
+ }
137
+ // invalid tab href
138
+ else
139
+ o.disabled.push(i + 1);
140
+ });
141
+
142
+ if (init) {
143
+
144
+ // attach necessary classes for styling if not present
145
+ $(this.element).hasClass(o.navClass) || $(this.element).addClass(o.navClass);
146
+ this.$panels.each(function() {
147
+ var $this = $(this);
148
+ $this.hasClass(o.panelClass) || $this.addClass(o.panelClass);
149
+ });
150
+
151
+ // Try to retrieve selected tab:
152
+ // 1. from fragment identifier in url if present
153
+ // 2. from cookie
154
+ // 3. from selected class attribute on <li>
155
+ // 4. otherwise use given "selected" option
156
+ // 5. check if tab is disabled
157
+ this.$tabs.each(function(i, a) {
158
+ if (location.hash) {
159
+ if (a.hash == location.hash) {
160
+ o.selected = i;
161
+ // prevent page scroll to fragment
162
+ //if (($.browser.msie || $.browser.opera) && !o.remote) {
163
+ if ($.browser.msie || $.browser.opera) {
164
+ var $toShow = $(location.hash), toShowId = $toShow.attr('id');
165
+ $toShow.attr('id', '');
166
+ setTimeout(function() {
167
+ $toShow.attr('id', toShowId); // restore id
168
+ }, 500);
169
+ }
170
+ scrollTo(0, 0);
171
+ return false; // break
172
+ }
173
+ } else if (o.cookie) {
174
+ var index = parseInt($.cookie('ui-tabs' + $.data(self.element)),10);
175
+ if (index && self.$tabs[index]) {
176
+ o.selected = index;
177
+ return false; // break
178
+ }
179
+ } else if ( self.$lis.eq(i).hasClass(o.selectedClass) ) {
180
+ o.selected = i;
181
+ return false; // break
182
+ }
183
+ });
184
+
185
+ // highlight selected tab
186
+ this.$panels.addClass(o.hideClass);
187
+ this.$lis.removeClass(o.selectedClass);
188
+ if (!o.unselect) {
189
+ this.$panels.eq(o.selected).show().removeClass(o.hideClass); // use show and remove class to show in any case no matter how it has been hidden before
190
+ this.$lis.eq(o.selected).addClass(o.selectedClass);
191
+ }
192
+
193
+ // load if remote tab
194
+ var href = !o.unselect && $.data(this.$tabs[o.selected], 'load.ui-tabs');
195
+ if (href)
196
+ this.load(o.selected, href);
197
+
198
+ // Take disabling tabs via class attribute from HTML
199
+ // into account and update option properly...
200
+ o.disabled = $.unique(o.disabled.concat(
201
+ $.map(this.$lis.filter('.' + o.disabledClass),
202
+ function(n, i) { return self.$lis.index(n); } )
203
+ )).sort();
204
+
205
+ }
206
+
207
+ // disable tabs
208
+ for (var i = 0, li; li = this.$lis[i]; i++)
209
+ $(li)[$.inArray(i, o.disabled) != -1 && !$(li).hasClass(o.selectedClass) ? 'addClass' : 'removeClass'](o.disabledClass);
210
+
211
+ // set up animations
212
+ var hideFx, showFx, baseFx = { 'min-width': 0, duration: 1 }, baseDuration = 'normal';
213
+ if (o.fx && o.fx.constructor == Array)
214
+ hideFx = o.fx[0] || baseFx, showFx = o.fx[1] || baseFx;
215
+ else
216
+ hideFx = showFx = o.fx || baseFx;
217
+
218
+ // reset some styles to maintain print style sheets etc.
219
+ var resetCSS = { display: '', overflow: '', height: '' };
220
+ if (!$.browser.msie) // not in IE to prevent ClearType font issue
221
+ resetCSS.opacity = '';
222
+
223
+ // Hide a tab, animation prevents browser scrolling to fragment,
224
+ // $show is optional.
225
+ function hideTab(clicked, $hide, $show) {
226
+ $hide.animate(hideFx, hideFx.duration || baseDuration, function() { //
227
+ $hide.addClass(o.hideClass).css(resetCSS); // maintain flexible height and accessibility in print etc.
228
+ if ($.browser.msie && hideFx.opacity)
229
+ $hide[0].style.filter = '';
230
+ if ($show)
231
+ showTab(clicked, $show, $hide);
232
+ });
233
+ }
234
+
235
+ // Show a tab, animation prevents browser scrolling to fragment,
236
+ // $hide is optional.
237
+ function showTab(clicked, $show, $hide) {
238
+ if (showFx === baseFx)
239
+ $show.css('display', 'block'); // prevent occasionally occuring flicker in Firefox cause by gap between showing and hiding the tab panels
240
+ $show.animate(showFx, showFx.duration || baseDuration, function() {
241
+ $show.removeClass(o.hideClass).css(resetCSS); // maintain flexible height and accessibility in print etc.
242
+ if ($.browser.msie && showFx.opacity)
243
+ $show[0].style.filter = '';
244
+
245
+ // callback
246
+ $(self.element).triggerHandler("show.ui-tabs", [self.ui(clicked, $show[0])]);
247
+
248
+ });
249
+ }
250
+
251
+ // switch a tab
252
+ function switchTab(clicked, $li, $hide, $show) {
253
+ /*if (o.bookmarkable && trueClick) { // add to history only if true click occured, not a triggered click
254
+ $.ajaxHistory.update(clicked.hash);
255
+ }*/
256
+ $li.addClass(o.selectedClass)
257
+ .siblings().removeClass(o.selectedClass);
258
+ hideTab(clicked, $hide, $show);
259
+ }
260
+
261
+ // attach tab event handler, unbind to avoid duplicates from former tabifying...
262
+ this.$tabs.unbind('.ui-tabs').bind(o.event, function() {
263
+
264
+ //var trueClick = e.clientX; // add to history only if true click occured, not a triggered click
265
+ var $li = $(this).parents('li:eq(0)'),
266
+ $hide = self.$panels.filter(':visible'),
267
+ $show = $(this.hash);
268
+
269
+ // If tab is already selected and not unselectable or tab disabled or click callback returns false stop here.
270
+ // Check if click handler returns false last so that it is not executed for a disabled tab!
271
+ if (($li.hasClass(o.selectedClass) && !o.unselect) || $li.hasClass(o.disabledClass)
272
+ || $(self.element).triggerHandler("select.ui-tabs", [self.ui(this, $show[0])]) === false) {
273
+ this.blur();
274
+ return false;
275
+ }
276
+
277
+ self.options.selected = self.$tabs.index(this);
278
+
279
+ // if tab may be closed
280
+ if (o.unselect) {
281
+ if ($li.hasClass(o.selectedClass)) {
282
+ self.options.selected = null;
283
+ $li.removeClass(o.selectedClass);
284
+ self.$panels.stop();
285
+ hideTab(this, $hide);
286
+ this.blur();
287
+ return false;
288
+ } else if (!$hide.length) {
289
+ self.$panels.stop();
290
+ var a = this;
291
+ self.load(self.$tabs.index(this), function() {
292
+ $li.addClass(o.selectedClass).addClass(o.unselectClass);
293
+ showTab(a, $show);
294
+ });
295
+ this.blur();
296
+ return false;
297
+ }
298
+ }
299
+
300
+ if (o.cookie)
301
+ $.cookie('ui-tabs' + $.data(self.element), self.options.selected, o.cookie);
302
+
303
+ // stop possibly running animations
304
+ self.$panels.stop();
305
+
306
+ // show new tab
307
+ if ($show.length) {
308
+
309
+ // prevent scrollbar scrolling to 0 and than back in IE7, happens only if bookmarking/history is enabled
310
+ /*if ($.browser.msie && o.bookmarkable) {
311
+ var showId = this.hash.replace('#', '');
312
+ $show.attr('id', '');
313
+ setTimeout(function() {
314
+ $show.attr('id', showId); // restore id
315
+ }, 0);
316
+ }*/
317
+
318
+ var a = this;
319
+ self.load(self.$tabs.index(this), function() {
320
+ switchTab(a, $li, $hide, $show);
321
+ });
322
+
323
+ // Set scrollbar to saved position - need to use timeout with 0 to prevent browser scroll to target of hash
324
+ /*var scrollX = window.pageXOffset || document.documentElement && document.documentElement.scrollLeft || document.body.scrollLeft || 0;
325
+ var scrollY = window.pageYOffset || document.documentElement && document.documentElement.scrollTop || document.body.scrollTop || 0;
326
+ setTimeout(function() {
327
+ scrollTo(scrollX, scrollY);
328
+ }, 0);*/
329
+
330
+ } else
331
+ throw 'jQuery UI Tabs: Mismatching fragment identifier.';
332
+
333
+ // Prevent IE from keeping other link focussed when using the back button
334
+ // and remove dotted border from clicked link. This is controlled in modern
335
+ // browsers via CSS, also blur removes focus from address bar in Firefox
336
+ // which can become a usability and annoying problem with tabsRotate.
337
+ if ($.browser.msie)
338
+ this.blur();
339
+
340
+ //return o.bookmarkable && !!trueClick; // convert trueClick == undefined to Boolean required in IE
341
+ return false;
342
+
343
+ });
344
+
345
+ // disable click if event is configured to something else
346
+ if (!(/^click/).test(o.event))
347
+ this.$tabs.bind('click.ui-tabs', function() { return false; });
348
+
349
+ },
350
+ add: function(url, label, index) {
351
+ if (index == undefined)
352
+ index = this.$tabs.length; // append by default
353
+
354
+ var o = this.options;
355
+ var $li = $(o.tabTemplate.replace(/#\{href\}/, url).replace(/#\{label\}/, label));
356
+ $li.data('destroy.ui-tabs', true);
357
+
358
+ var id = url.indexOf('#') == 0 ? url.replace('#', '') : this.tabId( $('a:first-child', $li)[0] );
359
+
360
+ // try to find an existing element before creating a new one
361
+ var $panel = $('#' + id);
362
+ if (!$panel.length) {
363
+ $panel = $(o.panelTemplate).attr('id', id)
364
+ .addClass(o.panelClass).addClass(o.hideClass);
365
+ $panel.data('destroy.ui-tabs', true);
366
+ }
367
+ if (index >= this.$lis.length) {
368
+ $li.appendTo(this.element);
369
+ $panel.appendTo(this.element.parentNode);
370
+ } else {
371
+ $li.insertBefore(this.$lis[index]);
372
+ $panel.insertBefore(this.$panels[index]);
373
+ }
374
+
375
+ o.disabled = $.map(o.disabled,
376
+ function(n, i) { return n >= index ? ++n : n });
377
+
378
+ this.tabify();
379
+
380
+ if (this.$tabs.length == 1) {
381
+ $li.addClass(o.selectedClass);
382
+ $panel.removeClass(o.hideClass);
383
+ var href = $.data(this.$tabs[0], 'load.ui-tabs');
384
+ if (href)
385
+ this.load(index, href);
386
+ }
387
+
388
+ // callback
389
+ $(this.element).triggerHandler("add.ui-tabs",
390
+ [this.ui(this.$tabs[index], this.$panels[index])]
391
+ );
392
+ },
393
+ remove: function(index) {
394
+ var o = this.options, $li = this.$lis.eq(index).remove(),
395
+ $panel = this.$panels.eq(index).remove();
396
+
397
+ // If selected tab was removed focus tab to the right or
398
+ // in case the last tab was removed the tab to the left.
399
+ if ($li.hasClass(o.selectedClass) && this.$tabs.length > 1)
400
+ this.select(index + (index + 1 < this.$tabs.length ? 1 : -1));
401
+
402
+ o.disabled = $.map($.grep(o.disabled, function(n, i) { return n != index; }),
403
+ function(n, i) { return n >= index ? --n : n });
404
+
405
+ this.tabify();
406
+
407
+ // callback
408
+ $(this.element).triggerHandler("remove.ui-tabs",
409
+ [this.ui($li.find('a')[0], $panel[0])]
410
+ );
411
+ },
412
+ enable: function(index) {
413
+ var o = this.options;
414
+ if ($.inArray(index, o.disabled) == -1)
415
+ return;
416
+
417
+ var $li = this.$lis.eq(index).removeClass(o.disabledClass);
418
+ if ($.browser.safari) { // fix disappearing tab (that used opacity indicating disabling) after enabling in Safari 2...
419
+ $li.css('display', 'inline-block');
420
+ setTimeout(function() {
421
+ $li.css('display', 'block');
422
+ }, 0);
423
+ }
424
+
425
+ o.disabled = $.grep(o.disabled, function(n, i) { return n != index; });
426
+
427
+ // callback
428
+ $(this.element).triggerHandler("enable.ui-tabs",
429
+ [this.ui(this.$tabs[index], this.$panels[index])]
430
+ );
431
+
432
+ },
433
+ disable: function(index) {
434
+ var self = this, o = this.options;
435
+ if (index != o.selected) { // cannot disable already selected tab
436
+ this.$lis.eq(index).addClass(o.disabledClass);
437
+
438
+ o.disabled.push(index);
439
+ o.disabled.sort();
440
+
441
+ // callback
442
+ $(this.element).triggerHandler("disable.ui-tabs",
443
+ [this.ui(this.$tabs[index], this.$panels[index])]
444
+ );
445
+ }
446
+ },
447
+ select: function(index) {
448
+ if (typeof index == 'string')
449
+ index = this.$tabs.index( this.$tabs.filter('[href$=' + index + ']')[0] );
450
+ this.$tabs.eq(index).trigger(this.options.event);
451
+ },
452
+ load: function(index, callback) { // callback is for internal usage only
453
+ var self = this, o = this.options,
454
+ $a = this.$tabs.eq(index), a = $a[0];
455
+
456
+ var url = $a.data('load.ui-tabs');
457
+
458
+ // no remote - just finish with callback
459
+ if (!url) {
460
+ typeof callback == 'function' && callback();
461
+ return;
462
+ }
463
+
464
+ // load remote from here on
465
+ if (o.spinner) {
466
+ var $span = $('span', a), label = $span.html();
467
+ $span.html('<em>' + o.spinner + '</em>');
468
+ }
469
+ var finish = function() {
470
+ self.$tabs.filter('.' + o.loadingClass).each(function() {
471
+ $(this).removeClass(o.loadingClass);
472
+ if (o.spinner)
473
+ $('span', this).html(label);
474
+ });
475
+ self.xhr = null;
476
+ };
477
+ var ajaxOptions = $.extend({}, o.ajaxOptions, {
478
+ url: url,
479
+ success: function(r, s) {
480
+ $(a.hash).html(r);
481
+ finish();
482
+ // This callback is required because the switch has to take
483
+ // place after loading has completed.
484
+ typeof callback == 'function' && callback();
485
+
486
+ if (o.cache)
487
+ $.removeData(a, 'load.ui-tabs'); // if loaded once do not load them again
488
+
489
+ // callback
490
+ $(self.element).triggerHandler("load.ui-tabs",
491
+ [self.ui(self.$tabs[index], self.$panels[index])]
492
+ );
493
+
494
+ o.ajaxOptions.success && o.ajaxOptions.success(r, s);
495
+ }
496
+ });
497
+ if (this.xhr) {
498
+ // terminate pending requests from other tabs and restore tab label
499
+ this.xhr.abort();
500
+ finish();
501
+ }
502
+ $a.addClass(o.loadingClass);
503
+ setTimeout(function() { // timeout is again required in IE, "wait" for id being restored
504
+ self.xhr = $.ajax(ajaxOptions);
505
+ }, 0);
506
+
507
+ },
508
+ url: function(index, url) {
509
+ this.$tabs.eq(index).data('load.ui-tabs', url);
510
+ },
511
+ destroy: function() {
512
+ var o = this.options;
513
+ $(this.element).unbind('.ui-tabs')
514
+ .removeClass(o.navClass).removeData('ui-tabs');
515
+ this.$tabs.each(function() {
516
+ var href = $.data(this, 'href.ui-tabs');
517
+ if (href)
518
+ this.href = href;
519
+ $(this).unbind('.ui-tabs')
520
+ .removeData('href.ui-tabs').removeData('load.ui-tabs');
521
+ });
522
+ this.$lis.add(this.$panels).each(function() {
523
+ if ($.data(this, 'destroy.ui-tabs'))
524
+ $(this).remove();
525
+ else
526
+ $(this).removeClass([o.selectedClass, o.unselectClass,
527
+ o.disabledClass, o.panelClass, o.hideClass].join(' '));
528
+ });
529
+ }
530
+ });
531
+
532
+ })(jQuery);
admin/js/jquery.ui.tabs.pack.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Tabs 3 - New Wave Tabs
3
+ *
4
+ * Copyright (c) 2007 Klaus Hartl (stilbuero.de)
5
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
6
+ * and GPL (GPL-LICENSE.txt) licenses.
7
+ *
8
+ * http://docs.jquery.com/UI/Tabs
9
+ */
10
+ eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(6($){$.4=$.4||{};$.2k.3=6(){7 b=1c 1h[0]==\'26\'&&1h[0];7 c=b&&1N.1L.2c.28(1h,1)||1h;k b==\'D\'?$.p(2[0],\'4-3\').$3.D:2.N(6(){5(b){7 a=$.p(2,\'4-3\');a[b].2j(a,c)}E 2h $.4.3(2,c[0]||{})})};$.4.3=6(e,f){7 d=2;2.m=e;2.8=$.1G({q:0,S:f.q===M,16:\'1y\',t:[],G:M,1m:\'2w&#2t;\',1Z:F,1P:\'4-3-\',1j:{},U:M,1O:\'<z><a y="#{y}"><1g>#{1f}</1g></a></z>\',1t:\'<1J></1J>\',1e:\'4-3-2b\',v:\'4-3-q\',1r:\'4-3-S\',Q:\'4-3-t\',V:\'4-3-1a\',I:\'4-3-X\',1q:\'4-3-2T\'},f);5(f.q===M)2.8.q=M;2.8.16+=\'.4-3\';2.8.G=$.G&&$.G.25==2R&&2.8.G;$(e).1b(\'2O.4-3\',6(b,c,a){5((/^q/).23(c))d.1i(a);E{d.8[c]=a;d.Z()}}).1b(\'2M.4-3\',6(a,b){k d.8[b]});$.p(e,\'4-3\',2);2.Z(1l)};$.1G($.4.3.1L,{1w:6(a){k a.1X&&a.1X.T(/\\s/g,\'1T\').T(/[^A-2v-2u-9\\-1T:\\.]/g,\'\')||2.8.1P+$.p(a)},4:6(a,b){k{2r:2,8:2.8,2q:a,1a:b}},Z:6(f){2.$w=$(\'z:2o(a[y])\',2.m);2.$3=2.$w.19(6(){k $(\'a\',2)[0]});2.$l=$([]);7 e=2,o=2.8;2.$3.N(6(i,a){5(a.H&&a.H.T(\'#\',\'\'))e.$l=e.$l.14(a.H);E 5($(a).W(\'y\')!=\'#\'){$.p(a,\'y.4-3\',a.y);$.p(a,\'x.4-3\',a.y);7 b=e.1w(a);a.y=\'#\'+b;7 c=$(\'#\'+b);5(!c.D){c=$(o.1t).W(\'13\',b).u(o.V).2i(e.$l[i-1]||e.m);c.p(\'12.4-3\',1l)}e.$l=e.$l.14(c)}E o.t.1M(i+1)});5(f){$(2.m).J(o.1e)||$(2.m).u(o.1e);2.$l.N(6(){7 a=$(2);a.J(o.V)||a.u(o.V)});2.$3.N(6(i,a){5(1u.H){5(a.H==1u.H){o.q=i;5($.L.11||$.L.2g){7 b=$(1u.H),1K=b.W(\'13\');b.W(\'13\',\'\');1s(6(){b.W(\'13\',1K)},2f)}2e(0,0);k F}}E 5(o.G){7 c=2d($.G(\'4-3\'+$.p(e.m)),10);5(c&&e.$3[c]){o.q=c;k F}}E 5(e.$w.C(i).J(o.v)){o.q=i;k F}});2.$l.u(o.I);2.$w.B(o.v);5(!o.S){2.$l.C(o.q).K().B(o.I);2.$w.C(o.q).u(o.v)}7 h=!o.S&&$.p(2.$3[o.q],\'x.4-3\');5(h)2.x(o.q,h);o.t=$.2a(o.t.29($.19(2.$w.R(\'.\'+o.Q),6(n,i){k e.$w.Y(n)}))).1I()}27(7 i=0,z;z=2.$w[i];i++)$(z)[$.1H(i,o.t)!=-1&&!$(z).J(o.v)?\'u\':\'B\'](o.Q);7 j,O,18={\'2V-2U\':0,1F:1},1E=\'2S\';5(o.U&&o.U.25==1N)j=o.U[0]||18,O=o.U[1]||18;E j=O=o.U||18;7 g={1p:\'\',2Q:\'\',2P:\'\'};5(!$.L.11)g.1D=\'\';6 1C(b,c,a){c.24(j,j.1F||1E,6(){c.u(o.I).17(g);5($.L.11&&j.1D)c[0].22.R=\'\';5(a)1B(b,a,c)})}6 1B(b,a,c){5(O===18)a.17(\'1p\',\'1A\');a.24(O,O.1F||1E,6(){a.B(o.I).17(g);5($.L.11&&O.1D)a[0].22.R=\'\';$(e.m).P("K.4-3",[e.4(b,a[0])])})}6 20(c,a,d,b){a.u(o.v).2N().B(o.v);1C(c,d,b)}2.$3.1z(\'.4-3\').1b(o.16,6(){7 b=$(2).2L(\'z:C(0)\'),$X=e.$l.R(\':2K\'),$K=$(2.H);5((b.J(o.v)&&!o.S)||b.J(o.Q)||$(e.m).P("1i.4-3",[e.4(2,$K[0])])===F){2.1k();k F}e.8.q=e.$3.Y(2);5(o.S){5(b.J(o.v)){e.8.q=M;b.B(o.v);e.$l.1x();1C(2,$X);2.1k();k F}E 5(!$X.D){e.$l.1x();7 a=2;e.x(e.$3.Y(2),6(){b.u(o.v).u(o.1r);1B(a,$K)});2.1k();k F}}5(o.G)$.G(\'4-3\'+$.p(e.m),e.8.q,o.G);e.$l.1x();5($K.D){7 a=2;e.x(e.$3.Y(2),6(){20(a,b,$X,$K)})}E 2J\'1Y 2H 2G: 2E 2D 2C.\';5($.L.11)2.1k();k F});5(!(/^1y/).23(o.16))2.$3.1b(\'1y.4-3\',6(){k F})},14:6(d,e,f){5(f==2B)f=2.$3.D;7 o=2.8;7 a=$(o.1O.T(/#\\{y\\}/,d).T(/#\\{1f\\}/,e));a.p(\'12.4-3\',1l);7 b=d.2A(\'#\')==0?d.T(\'#\',\'\'):2.1w($(\'a:2z-2y\',a)[0]);7 c=$(\'#\'+b);5(!c.D){c=$(o.1t).W(\'13\',b).u(o.V).u(o.I);c.p(\'12.4-3\',1l)}5(f>=2.$w.D){a.1S(2.m);c.1S(2.m.2x)}E{a.21(2.$w[f]);c.21(2.$l[f])}o.t=$.19(o.t,6(n,i){k n>=f?++n:n});2.Z();5(2.$3.D==1){a.u(o.v);c.B(o.I);7 g=$.p(2.$3[0],\'x.4-3\');5(g)2.x(f,g)}$(2.m).P("14.4-3",[2.4(2.$3[f],2.$l[f])])},15:6(a){7 o=2.8,$z=2.$w.C(a).15(),$1a=2.$l.C(a).15();5($z.J(o.v)&&2.$3.D>1)2.1i(a+(a+1<2.$3.D?1:-1));o.t=$.19($.1W(o.t,6(n,i){k n!=a}),6(n,i){k n>=a?--n:n});2.Z();$(2.m).P("15.4-3",[2.4($z.2F(\'a\')[0],$1a[0])])},1U:6(a){7 o=2.8;5($.1H(a,o.t)==-1)k;7 b=2.$w.C(a).B(o.Q);5($.L.2s){b.17(\'1p\',\'2I-1A\');1s(6(){b.17(\'1p\',\'1A\')},0)}o.t=$.1W(o.t,6(n,i){k n!=a});$(2.m).P("1U.4-3",[2.4(2.$3[a],2.$l[a])])},1V:6(a){7 b=2,o=2.8;5(a!=o.q){2.$w.C(a).u(o.Q);o.t.1M(a);o.t.1I();$(2.m).P("1V.4-3",[2.4(2.$3[a],2.$l[a])])}},1i:6(a){5(1c a==\'26\')a=2.$3.Y(2.$3.R(\'[y$=\'+a+\']\')[0]);2.$3.C(a).2p(2.8.16)},x:6(d,b){7 f=2,o=2.8,$a=2.$3.C(d),a=$a[0];7 e=$a.p(\'x.4-3\');5(!e){1c b==\'6\'&&b();k}5(o.1m){7 h=$(\'1g\',a),1f=h.1n();h.1n(\'<1R>\'+o.1m+\'</1R>\')}7 c=6(){f.$3.R(\'.\'+o.1q).N(6(){$(2).B(o.1q);5(o.1m)$(\'1g\',2).1n(1f)});f.1o=M};7 g=$.1G({},o.1j,{1Q:e,1v:6(r,s){$(a.H).1n(r);c();1c b==\'6\'&&b();5(o.1Z)$.1d(a,\'x.4-3\');$(f.m).P("x.4-3",[f.4(f.$3[d],f.$l[d])]);o.1j.1v&&o.1j.1v(r,s)}});5(2.1o){2.1o.2n();c()}$a.u(o.1q);1s(6(){f.1o=$.2m(g)},0)},1Q:6(a,b){2.$3.C(a).p(\'x.4-3\',b)},12:6(){7 o=2.8;$(2.m).1z(\'.4-3\').B(o.1e).1d(\'4-3\');2.$3.N(6(){7 a=$.p(2,\'y.4-3\');5(a)2.y=a;$(2).1z(\'.4-3\').1d(\'y.4-3\').1d(\'x.4-3\')});2.$w.14(2.$l).N(6(){5($.p(2,\'12.4-3\'))$(2).15();E $(2).B([o.v,o.1r,o.Q,o.V,o.I].2l(\' \'))})}})})(1Y);',62,182,'||this|tabs|ui|if|function|var|options||||||||||||return|panels|element|||data|selected|||disabled|addClass|selectedClass|lis|load|href|li||removeClass|eq|length|else|false|cookie|hash|hideClass|hasClass|show|browser|null|each|showFx|triggerHandler|disabledClass|filter|unselect|replace|fx|panelClass|attr|hide|index|tabify||msie|destroy|id|add|remove|event|css|baseFx|map|panel|bind|typeof|removeData|navClass|label|span|arguments|select|ajaxOptions|blur|true|spinner|html|xhr|display|loadingClass|unselectClass|setTimeout|panelTemplate|location|success|tabId|stop|click|unbind|block|showTab|hideTab|opacity|baseDuration|duration|extend|inArray|sort|div|toShowId|prototype|push|Array|tabTemplate|idPrefix|url|em|appendTo|_|enable|disable|grep|title|jQuery|cache|switchTab|insertBefore|style|test|animate|constructor|string|for|call|concat|unique|nav|slice|parseInt|scrollTo|500|opera|new|insertAfter|apply|fn|join|ajax|abort|has|trigger|tab|instance|safari|8230|z0|Za|Loading|parentNode|child|first|indexOf|undefined|identifier|fragment|Mismatching|find|Tabs|UI|inline|throw|visible|parents|getData|siblings|setData|height|overflow|Function|normal|loading|width|min'.split('|'),0,{}))
admin/js/sorter.js ADDED
@@ -0,0 +1,277 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /************************************************************************************************************
2
+ (C) www.dhtmlgoodies.com, September 2005
3
+
4
+ This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.
5
+
6
+ Terms of use:
7
+ LGPL: See web page for more info.
8
+
9
+ Thank you!
10
+
11
+ www.dhtmlgoodies.com
12
+ Alf Magne Kalleland
13
+
14
+ ************************************************************************************************************/
15
+ var operaBrowser = navigator.userAgent.indexOf('Opera') >=0 ? 1 : false;
16
+ var safariBrowser = navigator.userAgent.indexOf('Safari') >=0 ? true : false;
17
+ var MSIE = navigator.userAgent.indexOf('MSIE')>= 0 ? true : false;
18
+ var navigatorVersion = navigator.appVersion.replace(/.*?MSIE (\d\.\d).*/g,'$1')/1;
19
+
20
+ function cancelEvent()
21
+ {
22
+ return false;
23
+ }
24
+ var activeImage = false;
25
+ var readyToMove = false;
26
+ var moveTimer = -1;
27
+ var dragDropDiv;
28
+ var insertionMarker;
29
+
30
+ var offsetX_marker = -3; // offset X - element that indicates destinaton of drop
31
+ var offsetY_marker = 0; // offset Y - element that indicates destinaton of drop
32
+
33
+ var firefoxOffsetX_marker = -3;
34
+ var firefoxOffsetY_marker = -2;
35
+
36
+ if(navigatorVersion<6 && MSIE){ /* IE 5.5 fix */
37
+ offsetX_marker-=23;
38
+ offsetY_marker-=10;
39
+ }
40
+
41
+ var destinationObject = false;
42
+
43
+ var divXPositions = new Array();
44
+ var divYPositions = new Array();
45
+ var divWidth = new Array();
46
+ var divHeight = new Array();
47
+
48
+ var tmpLeft = 0;
49
+ var tmpTop = 0;
50
+
51
+ var eventDiff_x = 0;
52
+ var eventDiff_y = 0;
53
+
54
+ function getTopPos(inputObj)
55
+ {
56
+ var returnValue = inputObj.offsetTop;
57
+ while((inputObj = inputObj.offsetParent) != null){
58
+ if(inputObj.tagName!='HTML'){
59
+ returnValue += (inputObj.offsetTop - inputObj.scrollTop);
60
+ if(document.all)returnValue+=inputObj.clientTop;
61
+ }
62
+ }
63
+ return returnValue;
64
+ }
65
+
66
+ function getLeftPos(inputObj)
67
+ {
68
+ var returnValue = inputObj.offsetLeft;
69
+ while((inputObj = inputObj.offsetParent) != null){
70
+ if(inputObj.tagName!='HTML'){
71
+ returnValue += inputObj.offsetLeft;
72
+ if(document.all)returnValue+=inputObj.clientLeft;
73
+ }
74
+ }
75
+ return returnValue;
76
+ }
77
+
78
+ function selectImage(e)
79
+ {
80
+ if(document.all && !operaBrowser)e = event;
81
+ var obj = this.parentNode;
82
+ if(activeImage)activeImage.className='imageBox';
83
+ obj.className = 'imageBoxHighlighted';
84
+ activeImage = obj;
85
+ readyToMove = true;
86
+ moveTimer=0;
87
+
88
+ tmpLeft = e.clientX + Math.max(document.body.scrollLeft,document.documentElement.scrollLeft);
89
+ tmpTop = e.clientY + Math.max(document.body.scrollTop,document.documentElement.scrollTop);
90
+
91
+ startMoveTimer();
92
+
93
+ return false;
94
+ }
95
+
96
+ function startMoveTimer(){
97
+ if(moveTimer>=0 && moveTimer<10){
98
+ moveTimer++;
99
+ setTimeout('startMoveTimer()',15);
100
+ }
101
+ if(moveTimer==10){
102
+ getDivCoordinates();
103
+ var subElements = dragDropDiv.getElementsByTagName('DIV');
104
+ if(subElements.length>0){
105
+ dragDropDiv.removeChild(subElements[0]);
106
+ }
107
+
108
+ jQuery("#dragDropContent").show();
109
+ // dragDropDiv.style.display='block';
110
+ var newDiv = activeImage.cloneNode(true);
111
+ newDiv.className='imageBox';
112
+ newDiv.id='';
113
+ jQuery("#dragDropContent").append(newDiv);
114
+ //dragDropDiv.appendChild(newDiv);
115
+
116
+ jQuery("#dragDropContent").css("top" , tmpTop + 'px');
117
+ jQuery("#dragDropContent").css("left" , tmpLeft + 'px');
118
+ // dragDropDiv.style.top = tmpTop + 'px';
119
+ // dragDropDiv.style.left = tmpLeft + 'px';
120
+
121
+ }
122
+ return false;
123
+ }
124
+
125
+ function dragDropEnd()
126
+ {
127
+ readyToMove = false;
128
+ moveTimer = -1;
129
+
130
+ jQuery("#dragDropContent").hide();
131
+ //dragDropDiv.style.display='none';
132
+ jQuery("#insertionMarker").hide();
133
+ //insertionMarker.style.display='none';
134
+
135
+ if(destinationObject && destinationObject!=activeImage){
136
+ var parentObj = destinationObject.parentNode;
137
+ parentObj.insertBefore(activeImage,destinationObject);
138
+ activeImage.className='imageBox';
139
+ activeImage = false;
140
+ destinationObject=false;
141
+ getDivCoordinates();
142
+ }
143
+ return false;
144
+ }
145
+
146
+ function dragDropMove(e)
147
+ {
148
+ if(moveTimer==-1)
149
+ return;
150
+ if(document.all && !operaBrowser)
151
+ e = event;
152
+
153
+ if (safariBrowser) {
154
+ var leftPos = e.pageX - eventDiff_x;
155
+ var topPos = e.pageY - eventDiff_y;
156
+ } else {
157
+ var leftPos = e.clientX + document.documentElement.scrollLeft - eventDiff_x;
158
+ var topPos = e.clientY + document.documentElement.scrollTop - eventDiff_y;
159
+ }
160
+
161
+ // message = " topPos: <strong>" + topPos + "</strong> e.pageY: <strong>" + e.pageY + "</strong> e.clientY: <strong>" + e.clientY + "</strong> scrollTop: <strong>" + document.documentElement.scrollTop + "</strong>";
162
+ // message += "<br /> leftPos: <strong>" + leftPos + "</strong> e.pageX: <strong>" + e.pageX + "</strong> e.clientX: <strong>" + e.clientX + "</strong> scrollLeft: <strong>" + document.documentElement.scrollLeft + "</strong>";
163
+ //debug( message );
164
+
165
+ dragDropDiv.style.top = topPos + 'px';
166
+ dragDropDiv.style.left = leftPos + 'px';
167
+
168
+ leftPos = leftPos + eventDiff_x;
169
+ topPos = topPos + eventDiff_y;
170
+
171
+ if(e.button!=1 && document.all && !operaBrowser)dragDropEnd();
172
+ var elementFound = false;
173
+
174
+ for(var prop in divXPositions){
175
+ // message = (divXPositions[prop]/1) + " < " + leftPos/1 + " && " + (divXPositions[prop]/1 + divWidth[prop]*0.7) + " > " + (leftPos/1);
176
+ // message += "<br />" + (divYPositions[prop]/1) + " < " + topPos/1 + " && " + (divYPositions[prop]/1 + divWidth[prop]) + " > " + (topPos/1);
177
+ // debug( message );
178
+ if( (divXPositions[prop]/1 < leftPos/1) && ( (divXPositions[prop]/1 + divWidth[prop]*0.7) > leftPos/1) && ( (divYPositions[prop]/1) < topPos/1) && (( (divYPositions[prop]/1) + divWidth[prop]) > topPos/1)) {
179
+
180
+ // check for IE who support document.all
181
+ if( document.all && !safariBrowser ){
182
+ offsetX = offsetX_marker;
183
+ offsetY = offsetY_marker;
184
+ }else{
185
+ offsetX = firefoxOffsetX_marker;
186
+ offsetY = firefoxOffsetY_marker;
187
+ }
188
+ jQuery("#insertionMarker").css("top", divYPositions[prop] + offsetY + 'px');
189
+ //insertionMarker.style.top = divYPositions[prop] + offsetY + 'px';
190
+ jQuery("#insertionMarker").css("left", divXPositions[prop] + offsetX + 'px');
191
+ //insertionMarker.style.left = divXPositions[prop] + offsetX + 'px';
192
+ jQuery("#insertionMarker").show();
193
+ //insertionMarker.style.display='block';
194
+ destinationObject = document.getElementById(prop);
195
+ elementFound = true;
196
+ break;
197
+ }
198
+ }
199
+
200
+ if(!elementFound){
201
+ jQuery("#insertionMarker").hide();
202
+ //insertionMarker.style.display='none';
203
+ destinationObject = false;
204
+ }
205
+
206
+ return false;
207
+
208
+ }
209
+
210
+ // brackets are not recognize by jQuery
211
+ // see http://groups.google.com/group/jquery-en/browse_thread/thread/29438736a4369d7b
212
+ function $$(selector, context){
213
+ return jQuery(selector.replace(/(\[|\])/g, '\\$1'),context)
214
+ }
215
+
216
+ function getDivCoordinates()
217
+ {
218
+ var divs = document.getElementsByTagName('DIV');
219
+ for(var no=0;no<divs.length;no++){
220
+ if(divs[no].className=='imageBox' || divs[no].className=='imageBoxHighlighted' && divs[no].id){
221
+ divXPositions[divs[no].id] = getLeftPos(divs[no]);
222
+ divYPositions[divs[no].id] = getTopPos(divs[no]);
223
+ divWidth[divs[no].id] = divs[no].offsetWidth;
224
+ divHeight[divs[no].id] = divs[no].offsetHeight;
225
+ // show coordinates
226
+ // $$('#' + divs[no].id + ' span').html("X: " + getLeftPos(divs[no])+ " Y: " + getTopPos(divs[no]));
227
+ }
228
+ }
229
+ }
230
+
231
+ // seralize the ImageOrder
232
+ function saveImageOrder()
233
+ {
234
+ var serial = "";
235
+ var objects = document.getElementsByTagName('DIV');
236
+ for(var no=0;no<objects.length;no++){
237
+ if(objects[no].className=='imageBox' || objects[no].className=='imageBoxHighlighted'){
238
+ if (serial.length > 0) serial = serial + '&'
239
+ serial = serial + "sortArray[]=" + objects[no].id;
240
+ }
241
+ }
242
+ jQuery('input[@name=sortorder]').val(serial);
243
+ // debug( 'This is the new order of the images(IDs) : <br>' + orderString );
244
+
245
+ }
246
+
247
+ function initGallery()
248
+ {
249
+ var divs = document.getElementsByTagName('DIV');
250
+ for(var no=0;no<divs.length;no++){
251
+ if(divs[no].className=='imageBox_theImage' || divs[no].className=='imageBox_label'){
252
+ divs[no].onmousedown = selectImage;
253
+
254
+ }
255
+ }
256
+
257
+ var insObj = document.getElementById('insertionMarker');
258
+ var images = insObj.getElementsByTagName('IMG');
259
+ document.body.onselectstart = cancelEvent;
260
+ document.body.ondragstart = cancelEvent;
261
+ document.body.onmouseup = dragDropEnd;
262
+ document.body.onmousemove = dragDropMove;
263
+
264
+
265
+ window.onresize = getDivCoordinates;
266
+
267
+ dragDropDiv = document.getElementById('dragDropContent');
268
+ // insertionMarker = document.getElementById('insertionMarker');
269
+ jQuery("#insertionMarker").hide();
270
+ getDivCoordinates();
271
+ }
272
+
273
+ function debug(value) {
274
+ document.getElementById('debug').innerHTML = value;
275
+ }
276
+
277
+ window.onload = initGallery;
admin/manage.php CHANGED
@@ -48,7 +48,7 @@ function nggallery_admin_manage_gallery() {
48
  if (is_array($imagelist)) {
49
  foreach ($imagelist as $filename) {
50
  @unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
51
- unlink(WINABSPATH.$gallerypath.'/'.$filename);
52
  }
53
  }
54
  // delete folder
@@ -129,8 +129,8 @@ function nggallery_admin_manage_gallery() {
129
  foreach ( $_POST['doaction'] as $imageID ) {
130
  $filename = $wpdb->get_var("SELECT filename FROM $wpdb->nggpictures WHERE pid = '$imageID' ");
131
  if ($ngg_options['deleteImg']) {
132
- unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
133
- unlink(WINABSPATH.$gallerypath.'/'.$filename);
134
  }
135
  $delete_pic = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE pid = $imageID");
136
  }
@@ -217,7 +217,6 @@ function nggallery_admin_manage_gallery() {
217
 
218
  if (isset ($_POST['scanfolder'])) {
219
  // Rescan folder
220
- //TODO:Should be combine in import_gallery function !!!
221
  check_admin_referer('ngg_updategallery');
222
 
223
  $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
@@ -249,6 +248,14 @@ function nggallery_admin_manage_gallery() {
249
  $messagetext = '<font color="green">'.__('New gallery page ID','nggallery'). ' ' . $pageid . ' -> <strong>' . $gallery_title . '</strong> ' .__('created','nggallery').'</font>';
250
  }
251
  }
 
 
 
 
 
 
 
 
252
 
253
  // message windows
254
  if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
@@ -323,6 +330,8 @@ function nggallery_picturelist($hideThumbs = false,$showTags = false) {
323
  // get the options
324
  $ngg_options=get_option('ngg_options');
325
 
 
 
326
  // get gallery values
327
  $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
328
 
@@ -336,7 +345,8 @@ function nggallery_picturelist($hideThumbs = false,$showTags = false) {
336
  <script type="text/javascript">
337
  jQuery(document).ready(
338
  function() {
339
- jQuery('.textarea1').Autoexpand([230,400]);
 
340
 
341
 
342
  /* jQuery("input:checkbox").click(
@@ -489,7 +499,7 @@ function getNumChecked(form)
489
  <p class="submit">
490
  <input type="submit" name="scanfolder" value="<?php _e("Scan Folder for new images",'nggallery')?> " />
491
  <input type="submit" name="updatepictures" value="<?php _e("Save Changes",'nggallery')?> &raquo;" />
492
- <p>
493
  </fieldset>
494
  <fieldset class="options">
495
  <p><select id="bulkaction" name="bulkaction">
@@ -513,7 +523,9 @@ function getNumChecked(form)
513
  <input type="submit" name="togglethumbs" value="<?php _e("Show thumbnails ",'nggallery')?>" /><?php } ?>
514
  <?php if (!$showTags) { ?><input type="submit" name="toggletags" value="<?php _e("Show tags",'nggallery')?>" /> <?php } else {?>
515
  <input type="submit" name="toggletags" value="<?php _e("Hide tags",'nggallery')?>" /><?php } ?>
516
-
 
 
517
  </p>
518
 
519
  <table id="listimages" width="100%" cellspacing="2" cellpadding="5" class="widefat" >
@@ -577,7 +589,7 @@ if($picturelist) {
577
  </tbody>
578
  </table>
579
  </fieldset>
580
- <p class="submit"><input type="submit" name="updatepictures" value="<?php _e("Save Changes",'nggallery')?> &raquo;" /><p>
581
  </form>
582
  <br class="clear"/>
583
  </div><!-- /#wrap -->
48
  if (is_array($imagelist)) {
49
  foreach ($imagelist as $filename) {
50
  @unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
51
+ @unlink(WINABSPATH.$gallerypath.'/'.$filename);
52
  }
53
  }
54
  // delete folder
129
  foreach ( $_POST['doaction'] as $imageID ) {
130
  $filename = $wpdb->get_var("SELECT filename FROM $wpdb->nggpictures WHERE pid = '$imageID' ");
131
  if ($ngg_options['deleteImg']) {
132
+ @unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
133
+ @unlink(WINABSPATH.$gallerypath.'/'.$filename);
134
  }
135
  $delete_pic = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE pid = $imageID");
136
  }
217
 
218
  if (isset ($_POST['scanfolder'])) {
219
  // Rescan folder
 
220
  check_admin_referer('ngg_updategallery');
221
 
222
  $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
248
  $messagetext = '<font color="green">'.__('New gallery page ID','nggallery'). ' ' . $pageid . ' -> <strong>' . $gallery_title . '</strong> ' .__('created','nggallery').'</font>';
249
  }
250
  }
251
+
252
+ // show sort order
253
+ if ( ($mode == 'sort') || isset ($_POST['sortGallery'])) {
254
+ $mode = 'sort';
255
+ include_once (dirname (__FILE__). '/sort.php');
256
+ nggallery_sortorder($act_gid);
257
+ return;
258
+ }
259
 
260
  // message windows
261
  if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
330
  // get the options
331
  $ngg_options=get_option('ngg_options');
332
 
333
+ //TODO:A unique gallery call must provide me with this information, like $gallery = new nggGallery($id);
334
+
335
  // get gallery values
336
  $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
337
 
345
  <script type="text/javascript">
346
  jQuery(document).ready(
347
  function() {
348
+
349
+ //jQuery('.textarea1').Autoexpand([230,400]);
350
 
351
 
352
  /* jQuery("input:checkbox").click(
499
  <p class="submit">
500
  <input type="submit" name="scanfolder" value="<?php _e("Scan Folder for new images",'nggallery')?> " />
501
  <input type="submit" name="updatepictures" value="<?php _e("Save Changes",'nggallery')?> &raquo;" />
502
+ </p>
503
  </fieldset>
504
  <fieldset class="options">
505
  <p><select id="bulkaction" name="bulkaction">
523
  <input type="submit" name="togglethumbs" value="<?php _e("Show thumbnails ",'nggallery')?>" /><?php } ?>
524
  <?php if (!$showTags) { ?><input type="submit" name="toggletags" value="<?php _e("Show tags",'nggallery')?>" /> <?php } else {?>
525
  <input type="submit" name="toggletags" value="<?php _e("Hide tags",'nggallery')?>" /><?php } ?>
526
+ <?php if ($ngg_options['galSort'] == "sortorder") { ?>
527
+ <input type="submit" name="sortGallery" value="<?php _e("Sort gallery",'nggallery')?>" />
528
+ <?php } ?>
529
  </p>
530
 
531
  <table id="listimages" width="100%" cellspacing="2" cellpadding="5" class="widefat" >
589
  </tbody>
590
  </table>
591
  </fieldset>
592
+ <p class="submit"><input type="submit" name="updatepictures" value="<?php _e("Save Changes",'nggallery')?> &raquo;" /></p>
593
  </form>
594
  <br class="clear"/>
595
  </div><!-- /#wrap -->
admin/settings.php CHANGED
@@ -115,7 +115,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
115
  <h2><?php _e('General Options','nggallery'); ?></h2>
116
  <form name="generaloptions" method="post">
117
  <?php wp_nonce_field('ngg_settings') ?>
118
- <input type="hidden" name="page_options" value="gallerypath,scanfolder,deleteImg,swfUpload,usePermalinks,activateTags,appendType,maxImages" />
119
  <fieldset class="options">
120
  <table class="optiontable editform">
121
  <tr valign="top">
@@ -136,11 +136,6 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
136
  <td><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="checkbox" name="deleteImg" value="1" <?php checked('1', $ngg_options['deleteImg']); ?> /><br />
137
  <?php _e('Delete files, when removing a gallery in the database','nggallery') ?></td>
138
  </tr>
139
- <tr valign="top">
140
- <th align="left"><?php _e('Activate batch upload','nggallery') ?></th>
141
- <td><input type="checkbox" name="swfUpload" value="1" <?php checked('1', $ngg_options['swfUpload']); ?> /><br />
142
- <?php _e('The batch upload requires Adobe Flash 9, disable it if you have problems','nggallery') ?></td>
143
- </tr>
144
  <tr valign="top">
145
  <th align="left"><?php _e('Activate permalinks','nggallery') ?></th>
146
  <td><input type="checkbox" name="usePermalinks" value="1" <?php checked('1', $ngg_options['usePermalinks']); ?> /><br />
@@ -269,12 +264,15 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
269
  <input type="hidden" name="page_options" value="galUsejQuery,galNoPages,galImages,galShowSlide,galTextSlide,galTextGallery,galShowOrder,galShowDesc,galImgBrowser,galSort,galSortDir" />
270
  <fieldset class="options">
271
  <table class="optiontable">
 
 
272
  <tr>
273
- <th valign="top"><?php _e('Activate jQuery navigation','nggallery') ?>:</th>
274
- <td><input name="galUsejQuery" type="checkbox" value="1" <?php checked('1', $ngg_options['galUsejQuery']); ?> />
275
- <?php _e('Please note : This is still experimental. Requires the Thickbox effect','nggallery') ?>
276
  </td>
277
  </tr>
 
278
  <tr>
279
  <th valign="top"><?php _e('Deactivate gallery page link','nggallery') ?>:</th>
280
  <td><input name="galNoPages" type="checkbox" value="1" <?php checked('1', $ngg_options['galNoPages']); ?> />
@@ -318,7 +316,9 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
318
  <table class="optiontable">
319
  <tr>
320
  <th valign="top"><?php _e('Sort thumbnails','nggallery') ?>:</th>
321
- <td><label><input name="galSort" type="radio" value="pid" <?php checked('pid', $ngg_options['galSort']); ?> /> <?php _e('Image ID', 'nggallery') ;?></label><br />
 
 
322
  <label><input name="galSort" type="radio" value="filename" <?php checked('filename', $ngg_options['galSort']); ?> /> <?php _e('File name', 'nggallery') ;?></label><br />
323
  <label><input name="galSort" type="radio" value="alttext" <?php checked('alttext', $ngg_options['galSort']); ?> /> <?php _e('Alt / Title text', 'nggallery') ;?></label>
324
  </td>
@@ -502,7 +502,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
502
  <h2><?php _e('Slideshow','nggallery'); ?></h2>
503
  <fieldset class="options">
504
  <?php if (!NGGALLERY_IREXIST) { ?><p><div id="message" class="error fade"><p><?php _e('The imagerotator.swf is not in the nggallery folder, the slideshow will not work.','nggallery') ?></p></div></p><?php }?>
505
- <p><?php _e('The settings are used in the JW Image Rotator Version 3.13 .', 'nggallery') ?>
506
  <?php _e('See more information for the Flash Player on the web page', 'nggallery') ?> <a href="http://www.jeroenwijering.com/?item=JW_Image_Rotator" target="_blank">JW Image Rotator from Jeroen Wijering</a>.</p>
507
  <table class="optiontable" border="0" >
508
  <tr>
115
  <h2><?php _e('General Options','nggallery'); ?></h2>
116
  <form name="generaloptions" method="post">
117
  <?php wp_nonce_field('ngg_settings') ?>
118
+ <input type="hidden" name="page_options" value="gallerypath,scanfolder,deleteImg,usePermalinks,activateTags,appendType,maxImages" />
119
  <fieldset class="options">
120
  <table class="optiontable editform">
121
  <tr valign="top">
136
  <td><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="checkbox" name="deleteImg" value="1" <?php checked('1', $ngg_options['deleteImg']); ?> /><br />
137
  <?php _e('Delete files, when removing a gallery in the database','nggallery') ?></td>
138
  </tr>
 
 
 
 
 
139
  <tr valign="top">
140
  <th align="left"><?php _e('Activate permalinks','nggallery') ?></th>
141
  <td><input type="checkbox" name="usePermalinks" value="1" <?php checked('1', $ngg_options['usePermalinks']); ?> /><br />
264
  <input type="hidden" name="page_options" value="galUsejQuery,galNoPages,galImages,galShowSlide,galTextSlide,galTextGallery,galShowOrder,galShowDesc,galImgBrowser,galSort,galSortDir" />
265
  <fieldset class="options">
266
  <table class="optiontable">
267
+ <!--TODO: Do better... -->
268
+ <!--
269
  <tr>
270
+ <th valign="top"><?php //_e('Activate jQuery navigation','nggallery') ?>:</th>
271
+ <td><input name="galUsejQuery" type="checkbox" value="1" <?php // checked('1', $ngg_options['galUsejQuery']); ?> />
272
+ <?php //_e('Please note : This is still experimental. Requires the Thickbox effect','nggallery') ?>
273
  </td>
274
  </tr>
275
+ -->
276
  <tr>
277
  <th valign="top"><?php _e('Deactivate gallery page link','nggallery') ?>:</th>
278
  <td><input name="galNoPages" type="checkbox" value="1" <?php checked('1', $ngg_options['galNoPages']); ?> />
316
  <table class="optiontable">
317
  <tr>
318
  <th valign="top"><?php _e('Sort thumbnails','nggallery') ?>:</th>
319
+ <td>
320
+ <label><input name="galSort" type="radio" value="sortorder" <?php checked('sortorder', $ngg_options['galSort']); ?> /> <?php _e('Custom order', 'nggallery') ;?></label><br />
321
+ <label><input name="galSort" type="radio" value="pid" <?php checked('pid', $ngg_options['galSort']); ?> /> <?php _e('Image ID', 'nggallery') ;?></label><br />
322
  <label><input name="galSort" type="radio" value="filename" <?php checked('filename', $ngg_options['galSort']); ?> /> <?php _e('File name', 'nggallery') ;?></label><br />
323
  <label><input name="galSort" type="radio" value="alttext" <?php checked('alttext', $ngg_options['galSort']); ?> /> <?php _e('Alt / Title text', 'nggallery') ;?></label>
324
  </td>
502
  <h2><?php _e('Slideshow','nggallery'); ?></h2>
503
  <fieldset class="options">
504
  <?php if (!NGGALLERY_IREXIST) { ?><p><div id="message" class="error fade"><p><?php _e('The imagerotator.swf is not in the nggallery folder, the slideshow will not work.','nggallery') ?></p></div></p><?php }?>
505
+ <p><?php _e('The settings are used in the JW Image Rotator Version', 'nggallery') ?> 3.15.
506
  <?php _e('See more information for the Flash Player on the web page', 'nggallery') ?> <a href="http://www.jeroenwijering.com/?item=JW_Image_Rotator" target="_blank">JW Image Rotator from Jeroen Wijering</a>.</p>
507
  <table class="optiontable" border="0" >
508
  <tr>
admin/sort.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @author Alex Rabe
5
+ * @copyright 2008
6
+ */
7
+
8
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
9
+
10
+ function nggallery_sortorder($galleryID = 0){
11
+ global $wpdb;
12
+
13
+ if ($galleryID == 0) return;
14
+
15
+ $galleryID = (int) $galleryID;
16
+
17
+ // get the options
18
+ $ngg_options=get_option('ngg_options');
19
+
20
+ if (isset ($_POST['updateSortorder'])) {
21
+ check_admin_referer('ngg_updatesortorder');
22
+ // get variable new sortorder
23
+ parse_str($_POST['sortorder']);
24
+ if (is_array($sortArray)){
25
+ $neworder = array();
26
+ foreach($sortArray as $pid) {
27
+ $pid = substr($pid, 4); // get id from "pid-x"
28
+ $neworder[] = (int) $pid;
29
+ }
30
+ $sortindex = 1;
31
+ foreach($neworder as $pic_id) {
32
+ $wpdb->query("UPDATE $wpdb->nggpictures SET sortorder = '$sortindex' WHERE pid = $pic_id");
33
+ $sortindex++;
34
+ }
35
+ nggallery::show_message(__('Sort order changed','nggallery'));
36
+ }
37
+ }
38
+
39
+ // get gallery values
40
+ $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
41
+
42
+ // set gallery url
43
+ $act_gallery_url = get_option ('siteurl')."/".$act_gallery->path."/";
44
+ $act_thumbnail_url = get_option ('siteurl')."/".$act_gallery->path.nggallery::get_thumbnail_folder($act_gallery->path, FALSE);
45
+ $act_thumb_prefix = nggallery::get_thumbnail_prefix($act_gallery->path, FALSE);
46
+
47
+ $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' ORDER BY sortorder ASC");
48
+
49
+ ?>
50
+ <script type='text/javascript' src='<?php echo NGGALLERY_URLPATH ?>admin/js/sorter.js'></script>
51
+ <style type="text/css" media="all">@import "<?php echo NGGALLERY_URLPATH ?>admin/css/nggSorter.css";</style>
52
+ <div class="wrap" style="overflow:hidden;">
53
+ <h2><?php _e('Sort Gallery', 'nggallery') ?></h2>
54
+ <form id="sortGallery" method="POST" action="<?php echo 'admin.php?page=nggallery-manage-gallery&amp;mode=sort&amp;gid='.$galleryID ?>" onsubmit="saveImageOrder()" accept-charset="utf-8">
55
+ <?php wp_nonce_field('ngg_updatesortorder') ?>
56
+ <input name="sortorder" type="hidden" />
57
+ <p class="submit">
58
+ <input class="button" type="submit" name="backToGallery" value="<?php _e('Back to gallery', 'nggallery') ?>" />
59
+ <input class="button" type="submit" name="updateSortorder" onclick="saveImageOrder()" value="<?php _e('Update Sort Order', 'nggallery') ?> &raquo;" />
60
+ </p>
61
+ </form>
62
+ <?php
63
+ if($picturelist) {
64
+ foreach($picturelist as $picture) {
65
+ ?>
66
+ <div class="imageBox" id="pid-<?php echo $picture->pid ?>">
67
+ <div class="imageBox_theImage" style="background-image:url('<?php echo $act_thumbnail_url.$act_thumb_prefix.$picture->filename ?>')"></div>
68
+ <div class="imageBox_label"><span><?php echo stripslashes($picture->alttext) ?></span></div>
69
+ </div>
70
+ <?php
71
+ }
72
+ }
73
+ ?>
74
+ <div id="insertionMarker">
75
+ <img src="<?php echo NGGALLERY_URLPATH ?>admin/images/marker_top.gif"/>
76
+ <img src="<?php echo NGGALLERY_URLPATH ?>admin/images/marker_middle.gif" id="insertionMarkerLine"/>
77
+ <img src="<?php echo NGGALLERY_URLPATH ?>admin/images/marker_bottom.gif"/>
78
+ </div>
79
+ <div id="dragDropContent"></div>
80
+ </div>
81
+
82
+ <?php
83
+
84
+ }
85
+
86
+ ?>
admin/uploadtab.php CHANGED
@@ -65,7 +65,7 @@ function ngg_upload_tab_content() {
65
  //TODO: use _wpnonce
66
  $picture = $wpdb->get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$ID' ");
67
  if ($picture) {
68
- if ($ngg_options[deleteImg]) {
69
  $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$picture->galleryid' ");
70
  if ($gallerypath) {
71
  $thumb_folder = nggallery::get_thumbnail_folder($gallerypath, FALSE);
65
  //TODO: use _wpnonce
66
  $picture = $wpdb->get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$ID' ");
67
  if ($picture) {
68
+ if ($ngg_options['deleteImg']) {
69
  $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$picture->galleryid' ");
70
  if ($gallerypath) {
71
  $thumb_folder = nggallery::get_thumbnail_folder($gallerypath, FALSE);
admin/wp25/about.php ADDED
@@ -0,0 +1,206 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
+
4
+ function nggallery_admin_about() {
5
+
6
+ ?>
7
+
8
+ <div class="wrap">
9
+ <h2><?php _e('Copyright notes / Credits', 'nggallery') ;?></h2>
10
+ <h3 class="tablenav"><?php _e("NextGEN DEV Team", 'nggallery'); ?></h3>
11
+ <p><?php _e('This plugin is primarily developed, maintained, supported, documented by', 'nggallery'); ?> <a href="http://alexrabe.boelinger.com" target="_blank">Alex Rabe</a>. <?php _e('There are many other folks who have made contributions to this project :', 'nggallery') ;?></p>
12
+ <p><?php ngg_list_contributors(); ?></p>
13
+ <h3 class="tablenav"><?php _e("Contributors / Tribute to", 'nggallery'); ?></h3>
14
+ <p><?php _e('If you study the code of this plugin, you will find out that we mixed a lot of good already existing code and ideas together.', 'nggallery') ;?>
15
+ <?php _e('So, we would like to thank the following people for their pioneer work (without this work it\'s impossible to create such a plugin so fast)', 'nggallery') ;?></p>
16
+ <ul>
17
+ <li><a href="http://wordpress.org" target="_blank">The WordPress Team</a> <?php _e('for their great documented code', 'nggallery') ;?></li>
18
+ <li><a href="http://jquery.com" target="_blank">The jQuery Team</a> <?php _e('for jQuery, which is the best Web2.0 framework', 'nggallery') ;?></li>
19
+ <li><a href="http://www.gen-x-design.com" target="_blank">Ian Selby</a> <?php _e('for the fantastic PHP Thumbnail Class', 'nggallery') ;?></li>
20
+ <li><a href="http://www.phpconcept.net" target="_blank">Vincent Blavet</a> <?php _e('for PclZip , a PHP library that manage ZIP archives', 'nggallery') ;?></li>
21
+ <li><a href="http://www.lesterchan.net/" target="_blank">GaMerZ</a> <?php _e('for a lot of very useful plugins and ideas', 'nggallery') ;?></li>
22
+ <li><a href="http://www.stuff.yellowswordfish.com/" target="_blank">Andy Staines</a> <?php _e('for Simple:Press Forum, it saved me a lot of time', 'nggallery') ;?></li>
23
+ <li><a href="http://www.jeroenwijering.com/" target="_blank">Jeroen Wijering</a> <?php _e('for the best Media Flash Scripts on earth', 'nggallery') ;?></li>
24
+ <li><a href="http://watermark.malcherek.com/" target="_blank">Marek Malcherek</a> <?php _e('for the Watermark plugin', 'nggallery') ;?></li>
25
+ </ul>
26
+ <p><?php _e('If you didn\'t find your name on this list and there is some code which I integrate in my plugin, don\'t hesitate to send me a mail.', 'nggallery') ;?></p>
27
+ <h3 class="tablenav"><?php _e("How to support ?", 'nggallery'); ?></h3>
28
+ <p><?php _e('There exist several ways to contribute, help or support us in this work. Non of them are mandatory.', 'nggallery') ;?></p>
29
+ <ul>
30
+ <li><strong><?php _e('Send us bugfixes / code changes', 'nggallery') ;?></strong><br /><?php _e('The most motivated support for this plugin are your ideas and brain work', 'nggallery') ;?></li>
31
+ <li><strong><?php _e('Translate the plugin', 'nggallery') ;?></strong><br /><?php _e('To help people to work with this plugin, I would like to have it in all avaivable languages', 'nggallery') ;?></li>
32
+ <li><strong><?php _e('Donate the work via paypal', 'nggallery') ;?></strong><br />
33
+ <form action="https://www.paypal.com/cgi-bin/webscr" method="post" >
34
+ <input type="hidden" name="cmd" value="_xclick"/><input type="hidden" name="business" value="alterego@boelinger.com"/>
35
+ <input type="hidden" name="item_name" value="WordPress Plugins www.alexrabe.boelinger.com"/>
36
+ <input type="hidden" name="no_shipping" value="1"/><input type="hidden" name="return" value="http://alexrabe.boelinger.com/" />
37
+ <input type="hidden" name="cancel_return" value="http://alexrabe.boelinger.com/"/>
38
+ <input type="hidden" name="lc" value="US" />
39
+ <input type="hidden" name="currency_code" value="USD"/>
40
+ <input type="hidden" name="tax" value="0"/>
41
+ <input type="hidden" name="bn" value="PP-DonationsBF"/>
42
+ <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" style="border: none;"/>
43
+ </form><?php _e('No doubt a very usefull and easy motivation :-)', 'nggallery') ;?>
44
+ </li>
45
+ <li><strong><?php _e('Place a link to the plugin in your blog/webpage', 'nggallery') ;?></strong><br /><?php _e('Yes, share and trackback is also a good support for this work ', 'nggallery') ;?></li>
46
+ </ul>
47
+ <h3 class="tablenav"><?php _e("Thanks!", 'nggallery'); ?></h3>
48
+ <p><?php _e('We would like to thank this people which support us in the work :', 'nggallery') ;?></p>
49
+ <p><a href="http://www.boelinger.com/heike/" target="_blank">HEIKE</a>, <?php ngg_list_support(); ?></p>
50
+ </div>
51
+
52
+ <?php
53
+ }
54
+
55
+ function ngg_list_contributors() {
56
+ /* The list of my contributors. Thanks to all of them !*/
57
+
58
+ $contributors = array(
59
+ "Frederic De Ranter (AJAX code contributor)" => "http://li.deranter.com/",
60
+ "Christian Arnold (Code contributor)" => "http://blog.arctic-media.de/",
61
+ "Thomas Matzke (Album code contributor)" => "http://mufuschnu.mu.funpic.de/",
62
+ "KeViN (Sidebar Widget developer)" => "http://www.kev.hu/",
63
+ "Lazy (German Translation)" => "http://www.lazychris.de/",
64
+ "Lise (French Translation)" => "http://liseweb.fr/",
65
+ "Anja (Dutch Translation)" => "http://www.werkgroepen.net/wordpress",
66
+ "Adrian (Indonesian Translation)" => "http://adrian.web.id/",
67
+ "Gaspard Tseng / SillyCCSmile (Chinese Translation)" => "",
68
+ "Mika Pennanen (Finnish Translation)" => "http://kapsi.fi/~penni",
69
+ "Wojciech Owczarek (Polish Translation)" => "http://www.owczi.net",
70
+ "Dilip Ramirez (Spanish Translation)" => "http://jmtd.110mb.com/blog",
71
+ "Oleinikov Vedmak Evgeny (Russian Translation)" => "http://ka-2-03.mirea.org/",
72
+ "Sebastien MALHERBE (Logo design)" => "http://www.7vision.com/",
73
+ "Claudia (German documentation)" => "http://www.blog-werkstatt.de/",
74
+ "Robert (German documentation)" => "http://www.curlyrob.de/",
75
+ "Pierpaolo Mannone (Italian Translation)" => "http://www.interscambiocasa.com/",
76
+ "Mattias Tengblad (Swedish Translation)" => "http://wp-support.se/",
77
+ "M&uuml;fit Kiper (Swedish Translation)" => "http://www.kiper.se/",
78
+ "Gil Yaker (Documentation)" => "http://bamboosoup.com/",
79
+ "Morten Johansen (Danish Translation)" => "http://www.fr3ak.dk/",
80
+ "Vidar Seland (Norwegian Translation)" => "http://www.viidar.net/",
81
+ "Emre G&uuml;ler (Turkish Translation)" => "http://www.emreguler.com/",
82
+ "Emilio Lauretti (Italian Translation)" => "",
83
+ "Jan Angelovic (Czech Translation)" => "http://www.angelovic.cz/",
84
+ "Laki (Slovak Translation)" => "http://www.laki.sk/",
85
+ "Rowan Crane (WPMU support)" => "http://blog.rowancrane.com/",
86
+ "Kuba Zwolinski (Polish Translation)" => "http://kubazwolinski.com/",
87
+ "Rina Jiang (Chinese Translation)" => "http://http://mysticecho.net/",
88
+ "Anthony (Chinese Translation)" => "http://www.angryouth.com/",
89
+ "Milan Vasicek (Czech Translation)" => "http://www.NoWorkTeam.cz/",
90
+ "Joo Gi-young (Korean Translation)" => "http://lombric.linuxstudy.pe.kr/wp/",
91
+ "Oleg A. Safonov (Russian Translation)" => "http://blog.olart.ru",
92
+ "AleXander Kirichev (Bulgarian Translation)" => "http://xsakex.art-bg.org/",
93
+ "Richer Yang (Chinese Translation)" => "http://fantasyworld.idv.tw/",
94
+ "Bill Jones (Forums contributor)" => "http://jonesphoto.bluehorizoninternet.com/",
95
+ "TheDonSansone (Forums contributor)" => "http://abseiling.200blogs.co.uk/",
96
+ "Komyshov (Russian Translation)" => "http://kf-web.ru/",
97
+ "aleX Zhang (Chinese Translation)" => "http://zhangfei.info/",
98
+ "TheSoloist (Chinese Translation)" => "http://www.soloist-ic.cn/"
99
+ );
100
+
101
+ ksort($contributors);
102
+ $i = count($contributors);
103
+ foreach ($contributors as $name => $url)
104
+ {
105
+ if ($url)
106
+ echo "<a href=\"$url\">$name</a>";
107
+ else
108
+ echo $name;
109
+ $i--;
110
+ if ($i == 1)
111
+ echo " & ";
112
+ elseif ($i)
113
+ echo ", ";
114
+ }
115
+ }
116
+
117
+ function ngg_list_support() {
118
+ /* The list of my supporters. Thanks to all of them !*/
119
+
120
+ $supporter = array(
121
+
122
+ "Mike DAmbrose" => "http://www.videovisions.com/",
123
+ "Ideablogger" => "http://www.ablogofideas.net/",
124
+ "Chuck Coury" => "",
125
+ "Kelter" => "http://www.badcat.com",
126
+ "Martin Bahr" => "http://www.law-vodcast.de/",
127
+ "Marcel Kneuer" => "",
128
+ "Martin Bahr" => "http://www.law-vodcast.de/",
129
+ "Alakhnor" => "http://www.alakhnor.info",
130
+ "Rod" => "http://www.le-hiboo.com",
131
+ "Ttancm" => "http://www.ttancm.com/",
132
+ "Francoise Pescatore" => "" ,
133
+ "Andreas (die-andis)" => "http://www.rummel-platz.de/",
134
+ "Andreas" => "http://blog.friedlandreas.de/",
135
+ "Joern Kretzschmar" => "http://diekretzschmars.de/",
136
+ "Mike" => "http://www.mikemuscroft.com/",
137
+ "Sabine (Haselina)" => "http://www.haselina.de/",
138
+ "Milemann" => "",
139
+ "Kees de Bruin" => "http://www.kdbruin.net/fotoalbum/",
140
+ "Helene D." => "http://supernatural.hellioness.com/imagegallery/",
141
+ "Ghettomaster" => "http://www.ghettoworld.de/",
142
+ "Joe Pharis" => "http://www.southernstylecruisers.com/",
143
+ "Charlie (Jump Media)" => "",
144
+ "Simon Paarlberg" => "http://www.paarlberg.dk/",
145
+ "Clive Loseby" => "http://www.access-bydesign.com/",
146
+ "Tonny Kluften" => "http://www.tinnitus-behandling.info/",
147
+ "Andreas Oeye" => "http://www.andreasoye.com/",
148
+ "Laurent Momy" => "",
149
+ "Patrick Hennessey" => "http://www.digitalvagabonding.com/",
150
+ "Hans Kiesouw" => "http://www.digitalvagabonding.com/",
151
+ "Thomas Bradley" => "http://www.tobeon.co.uk/wordpress/",
152
+ "Frederic Deghetto" => "",
153
+ "Christopher Weddell" => "",
154
+ "Martin Scholz" => "",
155
+ "Non Eric" => "http://www.lunatec.de/",
156
+ "Ronen Hirsch" => "http://www.stillcreation.com/",
157
+ "Michael Erhart" => "",
158
+ "Luc Saint-Elie" => "http://luc.saint-elie.com/",
159
+ "Matthew Barker" => "",
160
+ "Emanuel Kluge" => "",
161
+ "Alba Bentos Pereira" => "",
162
+ "Bill Babcock" => "http://www.bnj.com",
163
+ "Jesper Haug Karsrud" => "http://www.beyond-sanity.com",
164
+ "Marco van de Ven" => "http://www.mvdven.nl",
165
+ "Peter Krabshuis" => "http://www.dragoneye.nl",
166
+ "Teresa Lo" => "http://www.invivoanalytics.com",
167
+ "Jes Carlskov" => "",
168
+ "John Statler" => "http://www.systemsolver.com",
169
+ "Joshua Katinger" => "http://www.accessionmedia.com",
170
+ "iSight Technologies" => "http://www.isighttech.com",
171
+ "Kay Germer" => "http://highkay.de/",
172
+ "Ramon Cutanda Lopez" => "",
173
+ "Luc Dubois" => "http://www.oriste.com/",
174
+ "Dixie Reid" => "http://www.thereids.co.nz/",
175
+ "Gareth Bridger" => "",
176
+ "McGillveray Studios" => "http://www.mcgillveraystudios.ca/",
177
+ "Paul Rogers" => "http://www.swarfworks.com",
178
+ "Steve Lieber" => "http://www.stevelieber.com",
179
+ "Modo Web Design" => "http://www.modowebdesign.com",
180
+ "Matthew Feldman" => "",
181
+ "Gideon Kiers" => "http://www.gideonkiers.com",
182
+ "Susan Bates" => "http://www.fineartsmith.com",
183
+ "ILISA International USA" => "http://www.ilisa.com",
184
+ "Mark Campbell" => "http://www.layersofcolor.com",
185
+ "Aaron Snyder" => "http://www.aaronsnyder.net",
186
+ "Patrick Pirker" => "",
187
+ "Christoph Wander" => ""
188
+ );
189
+
190
+
191
+ ksort($supporter);
192
+ $i = count($supporter);
193
+ foreach ($supporter as $name => $url)
194
+ {
195
+ if ($url)
196
+ echo "<a href=\"$url\">$name</a>";
197
+ else
198
+ echo $name;
199
+ $i--;
200
+ if ($i == 1)
201
+ echo " & ";
202
+ elseif ($i)
203
+ echo ", ";
204
+ }
205
+ }
206
+ ?>
admin/wp25/addgallery.php ADDED
@@ -0,0 +1,308 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
+
4
+ // sometimes a error feedback is better than a white screen
5
+ ini_set('error_reporting', E_ALL ^ E_NOTICE);
6
+
7
+ function nggallery_admin_add_gallery() {
8
+
9
+ global $wpdb;
10
+ $ngg_options = get_option('ngg_options');
11
+
12
+ // same as $_SERVER['REQUEST_URI'], but should work under IIS 6.0
13
+ $filepath = get_option('siteurl') . '/wp-admin/admin.php?page='.$_GET['page'];
14
+
15
+ // link for the flash file
16
+ $swf_upload_link = NGGALLERY_URLPATH . 'admin/wp25/upload.php';
17
+ $swf_upload_link = wp_nonce_url($swf_upload_link, 'ngg_swfupload');
18
+ //flash doesn't seem to like encoded ampersands, so convert them back here
19
+ $swf_upload_link = str_replace('&#038;', '&', $swf_upload_link);
20
+
21
+ $defaultpath = $ngg_options['gallerypath'];
22
+
23
+ if ($_POST['addgallery']){
24
+ check_admin_referer('ngg_addgallery');
25
+ $newgallery = attribute_escape($_POST['galleryname']);
26
+ if (!empty($newgallery))
27
+ nggAdmin::create_gallery($newgallery, $defaultpath);
28
+ }
29
+
30
+ if ($_POST['zipupload']){
31
+ check_admin_referer('ngg_addgallery');
32
+ if ($_FILES['zipfile']['error'] == 0)
33
+ $messagetext = nggAdmin::import_zipfile($defaultpath);
34
+ else
35
+ nggallery::show_error(__('Upload failed!','nggallery'));
36
+ }
37
+
38
+ if ($_POST['importfolder']){
39
+ check_admin_referer('ngg_addgallery');
40
+ $galleryfolder = $_POST['galleryfolder'];
41
+ if ((!empty($galleryfolder)) AND ($defaultpath != $galleryfolder))
42
+ $messagetext = nggAdmin::import_gallery($galleryfolder);
43
+ }
44
+
45
+ if ($_POST['uploadimage']){
46
+ check_admin_referer('ngg_addgallery');
47
+ if ($_FILES['MF__F_0_0']['error'] == 0) {
48
+ $messagetext = nggAdmin::upload_images();
49
+ }
50
+ else
51
+ nggallery::show_error(__('Upload failed!','nggallery'));
52
+ }
53
+
54
+ if (isset($_POST['swf_callback'])){
55
+ if ($_POST['galleryselect'] == "0" )
56
+ nggallery::show_error(__('No gallery selected !','nggallery'));
57
+ else {
58
+ // get the path to the gallery
59
+ $galleryID = (int) $_POST['galleryselect'];
60
+ $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
61
+ $messagetext = nggAdmin::import_gallery($gallerypath);
62
+ }
63
+ }
64
+
65
+ if ( isset($_POST['disable_flash']) ){
66
+ check_admin_referer('ngg_addgallery');
67
+ $ngg_options['swfUpload'] = false;
68
+ update_option('ngg_options', $ngg_options);
69
+ }
70
+
71
+ if ( isset($_POST['enable_flash']) ){
72
+ check_admin_referer('ngg_addgallery');
73
+ $ngg_options['swfUpload'] = true;
74
+ update_option('ngg_options', $ngg_options);
75
+ }
76
+
77
+ //get maximum allowable size from php.ini
78
+ //thx to Whoismanu PhotoQ / M.Flury
79
+ $max_upl_size = strtolower( ini_get( 'upload_max_filesize' ) );
80
+ $max_upl_kbytes = 0;
81
+ if (strpos($max_upl_size, 'k') !== false)
82
+ $max_upl_kbytes = $max_upl_size;
83
+ if (strpos($max_upl_size, 'm') !== false)
84
+ $max_upl_kbytes = $max_upl_size * 1024;
85
+ if (strpos($max_upl_size, 'g') !== false)
86
+ $max_upl_kbytes = $max_upl_size * 1024 * 1024;
87
+
88
+ // message windows
89
+ if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
90
+ ?>
91
+
92
+ <?php if($ngg_options['swfUpload']) { ?>
93
+ <!-- SWFUpload script -->
94
+ <script type="text/javascript">
95
+ var ngg_swf_upload;
96
+
97
+ window.onload = function () {
98
+ ngg_swf_upload = new SWFUpload({
99
+ // Backend settings
100
+ upload_url : "<?php echo $swf_upload_link; ?>",
101
+ flash_url : "<?php echo NGGALLERY_URLPATH; ?>admin/js/swfupload_f9.swf",
102
+
103
+ // File Upload Settings
104
+ file_size_limit : "<?php echo wp_max_upload_size(); ?>b",
105
+ file_types : "*.jpg;*.gif;*.png",
106
+ file_types_description : "<?php _e('Image Files', 'nggallery') ;?>",
107
+
108
+ // Queue handler
109
+ file_queued_handler : fileQueued,
110
+
111
+ // Upload handler
112
+ upload_start_handler : uploadStart,
113
+ upload_progress_handler : uploadProgress,
114
+ upload_error_handler : uploadError,
115
+ upload_success_handler : uploadSuccess,
116
+ upload_complete_handler : uploadComplete,
117
+
118
+ post_params : {
119
+ "auth_cookie" : "<?php echo $_COOKIE[AUTH_COOKIE]; ?>",
120
+ "galleryselect" : "0"
121
+ },
122
+
123
+ // i18names
124
+ custom_settings : {
125
+ "remove" : "<?php _e('remove', 'nggallery') ;?>",
126
+ "browse" : "<?php _e('Browse...', 'nggallery') ;?>",
127
+ "upload" : "<?php _e('Upload images', 'nggallery') ;?>"
128
+ },
129
+
130
+ // Debug settings
131
+ debug: false
132
+
133
+ });
134
+
135
+ // on load change the upload to swfupload
136
+ initSWFUpload();
137
+
138
+ };
139
+ </script>
140
+
141
+ <div class="wrap" id="progressbar-wrap">
142
+ <div class="progressborder">
143
+ <div class="progressbar" id="progressbar">
144
+ <span>0%</span>
145
+ </div>
146
+ </div>
147
+ </div>
148
+
149
+ <?php } else { ?>
150
+ <!-- MultiFile script -->
151
+ <script type="text/javascript">
152
+ jQuery(function(){
153
+ jQuery('#imagefiles').MultiFile({
154
+ STRING: {
155
+ remove:'<?php _e('remove', 'nggallery') ;?>'
156
+ }
157
+ });
158
+ });
159
+ </script>
160
+ <?php } ?>
161
+ <!-- jQuery Tabs script -->
162
+ <script type="text/javascript">
163
+ jQuery(function() {
164
+ jQuery('#slider > ul').tabs({ fxFade: true, fxSpeed: 'fast' });
165
+ });
166
+ </script>
167
+
168
+ <div id="slider" class="wrap">
169
+
170
+ <ul id="tabs">
171
+ <li><a href="#addgallery"><?php _e('Add new gallery', 'nggallery') ;?></a></li>
172
+ <?php if ( wpmu_enable_function('wpmuZipUpload') ) { ?>
173
+ <li><a href="#zipupload"><?php _e('Upload a Zip-File', 'nggallery') ;?></a></li>
174
+ <?php }
175
+ if (!IS_WPMU) {?>
176
+ <li><a href="#importfolder"><?php _e('Import image folder', 'nggallery') ;?></a></li>
177
+ <?php } ?>
178
+ <li><a href="#uploadimage"><?php _e('Upload Images', 'nggallery') ;?></a></li>
179
+ </ul>
180
+
181
+ <!-- create gallery -->
182
+ <div id="addgallery">
183
+ <h2><?php _e('Add new gallery', 'nggallery') ;?></h2>
184
+ <form name="addgallery" id="addgallery_form" method="POST" action="<?php echo $filepath; ?>" accept-charset="utf-8" >
185
+ <?php wp_nonce_field('ngg_addgallery') ?>
186
+ <table class="form-table">
187
+ <tr valign="top">
188
+ <th scope="row"><?php _e('New Gallery', 'nggallery') ;?>:</th>
189
+ <td><input type="text" size="35" name="galleryname" value="" /><br />
190
+ <?php if(!IS_WPMU) { ?>
191
+ <?php _e('Create a new , empty gallery below the folder', 'nggallery') ;?> <strong><?php echo $defaultpath ?></strong><br />
192
+ <?php } ?>
193
+ <i>( <?php _e('Allowed characters for file and folder names are', 'nggallery') ;?>: a-z, A-Z, 0-9, -, _ )</i></td>
194
+ </tr>
195
+ </table>
196
+ <div class="submit"><input type="submit" name= "addgallery" value="<?php _e('Add gallery', 'nggallery') ;?>"/></div>
197
+ </form>
198
+ </div>
199
+ <?php if ( wpmu_enable_function('wpmuZipUpload')) { ?>
200
+ <!-- zip-file operation -->
201
+ <div id="zipupload">
202
+ <h2><?php _e('Upload a Zip-File', 'nggallery') ;?></h2>
203
+ <form name="zipupload" id="zipupload_form" method="POST" enctype="multipart/form-data" action="<?php echo $filepath.'#zipupload'; ?>" accept-charset="utf-8" >
204
+ <?php wp_nonce_field('ngg_addgallery') ?>
205
+ <table class="form-table">
206
+ <tr valign="top">
207
+ <th scope="row"><?php _e('Select Zip-File', 'nggallery') ;?>:</th>
208
+ <td><input type="file" name="zipfile" id="zipfile" size="35" class="uploadform"/><br />
209
+ <?php _e('Upload a zip file with images', 'nggallery') ;?></td>
210
+ </tr>
211
+ <tr valign="top">
212
+ <th scope="row"><?php _e('in to', 'nggallery') ;?></th>
213
+ <td><select name="zipgalselect">
214
+ <option value="0" ><?php _e('a new gallery', 'nggallery') ?></option>
215
+ <?php
216
+ $gallerylist = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ORDER BY gid ASC");
217
+ if(is_array($gallerylist)) {
218
+ foreach($gallerylist as $gallery) {
219
+ echo '<option value="'.$gallery->name.'" >'.$gallery->name.' | '.$gallery->title.'</option>'."\n";
220
+ }
221
+ }
222
+ ?>
223
+ </select>
224
+ <br /><?php echo _e('Note : The upload limit on your server is ','nggallery') . "<strong>" . ini_get('upload_max_filesize') . "Byte</strong>\n"; ?>
225
+ <br /><?php if ( (IS_WPMU) && wpmu_enable_function('wpmuQuotaCheck') ) display_space_usage(); ?></td>
226
+ </tr>
227
+ <tr>
228
+ <th><?php _e('Add Metadata :', 'nggallery') ;?></th>
229
+ <td><input type="checkbox" name="addmetadata" value="1" checked="checked" />
230
+ <?php _e('Import EXIF, IPTC or XMP data (if available)', 'nggallery') ;?></td>
231
+ </tr>
232
+ </table>
233
+ <div class="submit"> <input type="submit" name= "zipupload" value="<?php _e('Start upload', 'nggallery') ;?>"/></div>
234
+ </form>
235
+ </div>
236
+ <?php }
237
+ if (!IS_WPMU) {?>
238
+ <!-- import folder -->
239
+ <div id="importfolder">
240
+ <h2><?php _e('Import image folder', 'nggallery') ;?></h2>
241
+ <form name="importfolder" id="importfolder_form" method="POST" action="<?php echo $filepath.'#importfolder'; ?>" accept-charset="utf-8" >
242
+ <?php wp_nonce_field('ngg_addgallery') ?>
243
+ <table class="form-table">
244
+ <tr valign="top">
245
+ <th scope="row"><?php _e('Import from Server path:', 'nggallery') ;?></th>
246
+ <td><input type="text" size="35" name="galleryfolder" value="<?php echo$defaultpath; ?>" /><br />
247
+ <?php _e('Import a folder with all images.', 'nggallery') ;?>
248
+ <?php if (SAFE_MODE) {?><br /><?php _e(' Please note : For safe-mode = ON you need to add the subfolder thumbs manually', 'nggallery') ;?><?php }; ?></td>
249
+ </tr>
250
+ <tr>
251
+ <th><?php _e('Add Metadata :', 'nggallery') ;?></th>
252
+ <td><input type="checkbox" name="addmetadata" value="1" checked="checked" />
253
+ <?php _e('Import EXIF, IPTC or XMP data (if available)', 'nggallery') ;?></td>
254
+ </tr>
255
+ </table>
256
+ <div class="submit"> <input type="submit" name= "importfolder" value="<?php _e('Import folder', 'nggallery') ;?>"/></div>
257
+ </form>
258
+ </div>
259
+ <?php } ?>
260
+ <!-- upload images -->
261
+ <div id="uploadimage">
262
+ <h2><?php _e('Upload Images', 'nggallery') ;?></h2>
263
+ <form name="uploadimage" id="uploadimage_form" method="POST" enctype="multipart/form-data" action="<?php echo $filepath.'#uploadimage'; ?>" accept-charset="utf-8" >
264
+ <?php wp_nonce_field('ngg_addgallery') ?>
265
+ <table class="form-table">
266
+ <tr valign="top">
267
+ <th scope="row"><?php _e('Upload image', 'nggallery') ;?></th>
268
+ <td><input type="file" name="imagefiles" id="imagefiles" size="35" class="imagefiles"/></td>
269
+ </tr>
270
+ <tr valign="top">
271
+ <th scope="row"><?php _e('in to', 'nggallery') ;?></th>
272
+ <td><select name="galleryselect" id="galleryselect">
273
+ <option value="0" ><?php _e('Choose gallery', 'nggallery') ?></option>
274
+ <?php
275
+ $gallerylist = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ORDER BY gid ASC");
276
+ if(is_array($gallerylist)) {
277
+ foreach($gallerylist as $gallery) {
278
+ echo '<option value="'.$gallery->gid.'" >'.$gallery->name.' | '.$gallery->title.'</option>'."\n";
279
+ }
280
+ }
281
+ ?>
282
+ </select>
283
+ <br /><?php echo _e('Note : The upload limit on your server is ','nggallery') . "<strong>" . ini_get('upload_max_filesize') . "Byte</strong>\n"; ?>
284
+ <br /><?php if ((IS_WPMU) && wpmu_enable_function('wpmuQuotaCheck')) display_space_usage(); ?></td>
285
+ </tr>
286
+ <tr>
287
+ <th><?php _e('Add Metadata :', 'nggallery') ;?></th>
288
+ <td><input type="checkbox" name="addmetadata" value="1" checked="checked" />
289
+ <?php _e('Import EXIF, IPTC or XMP data (if available)', 'nggallery') ;?></td>
290
+ </tr>
291
+ </table>
292
+ <div class="submit">
293
+ <?php if ($ngg_options['swfUpload']) { ?>
294
+ <input type="submit" name="disable_flash" id="disable_flash" title="<?php _e('The batch upload requires Adobe Flash 9, disable it if you have problems','nggallery') ?>" value="<?php _e('Disable flash upload', 'nggallery') ;?>" />
295
+ <?php } else { ?>
296
+ <input type="submit" name="enable_flash" id="enable_flash" title="<?php _e('Upload multiple files at once by ctrl/shift-selecting in dialog','nggallery') ?>" value="<?php _e('Enable flash based upload', 'nggallery') ;?>" />
297
+ <?php } ?>
298
+ <input type="submit" name="uploadimage" id="uploadimage_btn" value="<?php _e('Upload images', 'nggallery') ;?>" />
299
+ </div>
300
+ </form>
301
+ </div>
302
+ </div>
303
+
304
+ <?php
305
+ }
306
+
307
+
308
+ ?>
admin/wp25/admin.php ADDED
@@ -0,0 +1,166 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // ************************************
3
+ // ** Admin Section for NextGEN Gallery
4
+ // ** by Alex Rabe
5
+ // ************************************
6
+
7
+ // add to header in admin area
8
+ add_action('admin_head', 'ngg_header');
9
+ function ngg_header() {
10
+ global $wp_version;
11
+ echo "\n".'<meta name="NextGEN" content="'.NGGVERSION.'" />';
12
+ echo "\n".'<meta http-equiv="pragma" content="no-cache" />'."\n";
13
+
14
+ // since WP2.5 redesign we need a different CSS
15
+ switch ($_GET['page']) {
16
+ case "nggallery" :
17
+ echo '<link rel="stylesheet" href="'.NGGALLERY_URLPATH.'admin/css/nggadmin.wp25.css" type="text/css" media="screen" />'."\n";
18
+ wp_admin_css( 'css/dashboard' );
19
+ break;
20
+ case "nggallery-add-gallery" :
21
+ case "nggallery-options" :
22
+ echo '<link rel="stylesheet" href="'.NGGALLERY_URLPATH.'admin/css/nggadmin.wp25.css" type="text/css" media="screen" />'."\n";
23
+ echo '<link rel="stylesheet" href="'.NGGALLERY_URLPATH.'admin/css/jquery.ui.tabs.css" type="text/css" media="print, projection, screen" />'."\n";
24
+ break;
25
+ case "nggallery-manage-gallery" :
26
+ echo '<link rel="stylesheet" href="'.NGGALLERY_URLPATH.'thickbox/thickbox.css" type="text/css" media="print, projection, screen" />'."\n";
27
+ case "nggallery-roles" :
28
+ case "nggallery-manage-album" :
29
+ echo '<link rel="stylesheet" href="'.NGGALLERY_URLPATH.'admin/css/nggadmin.wp25.css" type="text/css" media="screen" />'."\n";
30
+ break;
31
+ case "nggallery-style" :
32
+ wp_admin_css( 'css/theme-editor' );
33
+ break;
34
+ }
35
+ }
36
+
37
+ // Load the NextGEN Gallery Media Upload Tab
38
+ include_once (dirname (__FILE__)."/media-upload.php");
39
+
40
+ // load script files depend on page
41
+ add_action('init', 'ngg_add_admin_js',1);
42
+ function ngg_add_admin_js() {
43
+ global $wp_version;
44
+
45
+ wp_enqueue_script('jquery', NGGALLERY_URLPATH .'admin/js/jquery.js', FALSE, '1.2.2');
46
+
47
+ switch ($_GET['page']) {
48
+ case "nggallery-manage-gallery" :
49
+ wp_enqueue_script('interface', NGGALLERY_URLPATH .'admin/js/interface.js', array('jquery'), '1.2.1');
50
+ wp_enqueue_script('ngg-thickbox', NGGALLERY_URLPATH .'thickbox/thickbox-pack.js', array('jquery'), '3.1.1');
51
+ break;
52
+ case "nggallery-manage-album" :
53
+ wp_enqueue_script('interface', NGGALLERY_URLPATH .'admin/js/interface.js', array('jquery'), '1.2.1');
54
+ break;
55
+ case "nggallery-options" :
56
+ wp_enqueue_script('ui-tabs', NGGALLERY_URLPATH .'admin/js/jquery.ui.tabs.pack.js', array('jquery'), '2.7.4');
57
+ break;
58
+ case "nggallery-add-gallery" :
59
+ wp_enqueue_script('ui-tabs', NGGALLERY_URLPATH .'admin/js/jquery.ui.tabs.pack.js', array('jquery'), '2.7.4');
60
+ wp_enqueue_script('mutlifile', NGGALLERY_URLPATH .'admin/js/jquery.MultiFile.js', array('jquery'), '1.1.1');
61
+ wp_enqueue_script('ngg-swfupload', NGGALLERY_URLPATH .'admin/js/swfupload.js', array('jquery'), '2.0.1');
62
+ wp_enqueue_script('ngg-swfupload-handler', NGGALLERY_URLPATH .'admin/js/swfupload.handler.js', array('swfupload'), '1.0.0');
63
+ break;
64
+ }
65
+ }
66
+
67
+ // add to menu
68
+ add_action('admin_menu', 'add_nextgen_gallery_menu');
69
+
70
+ function add_nextgen_gallery_menu()
71
+ {
72
+ add_menu_page(__('Gallery', 'nggallery'), __('Gallery', 'nggallery'), 'NextGEN Gallery overview', NGGFOLDER, 'show_menu');
73
+ add_submenu_page( NGGFOLDER , __('Add Gallery', 'nggallery'), __('Add Gallery', 'nggallery'), 'NextGEN Upload images', 'nggallery-add-gallery', 'show_menu');
74
+ add_submenu_page( NGGFOLDER , __('Manage Gallery', 'nggallery'), __('Manage Gallery', 'nggallery'), 'NextGEN Manage gallery', 'nggallery-manage-gallery', 'show_menu');
75
+ add_submenu_page( NGGFOLDER , __('Album', 'nggallery'), __('Album', 'nggallery'), 'NextGEN Edit album', 'nggallery-manage-album', 'show_menu');
76
+ add_submenu_page( NGGFOLDER , __('Options', 'nggallery'), __('Options', 'nggallery'), 'NextGEN Change options', 'nggallery-options', 'show_menu');
77
+ if (wpmu_enable_function('wpmuStyle'))
78
+ add_submenu_page( NGGFOLDER , __('Style', 'nggallery'), __('Style', 'nggallery'), 'NextGEN Change style', 'nggallery-style', 'show_menu');
79
+ add_submenu_page( NGGFOLDER , __('Setup Gallery', 'nggallery'), __('Setup', 'nggallery'), 'activate_plugins', 'nggallery-setup', 'show_menu');
80
+ if (wpmu_enable_function('wpmuRoles'))
81
+ add_submenu_page( NGGFOLDER , __('Roles', 'nggallery'), __('Roles', 'nggallery'), 'activate_plugins', 'nggallery-roles', 'show_menu');
82
+ add_submenu_page( NGGFOLDER , __('About this Gallery', 'nggallery'), __('About', 'nggallery'), 'NextGEN Gallery overview', 'nggallery-about', 'show_menu');
83
+ if (wpmu_site_admin())
84
+ add_submenu_page( 'wpmu-admin.php' , __('NextGEN Gallery', 'nggallery'), __('NextGEN Gallery', 'nggallery'), 'activate_plugins', 'nggallery-wpmu', 'show_menu');
85
+
86
+ }
87
+
88
+ /************************************************************************/
89
+
90
+ // reduce footprint
91
+ // Thx to http://weblogtoolscollection.com/archives/2007/07/09/reduce-the-size-of-your-wordpress-plugin-footprint/
92
+
93
+ function show_menu() {
94
+ global $wp_version;
95
+ switch ($_GET["page"]){
96
+ case "nggallery-add-gallery" :
97
+ include_once (dirname (__FILE__). '/functions.php'); // admin functions
98
+ include_once (dirname (__FILE__). '/addgallery.php'); // nggallery_admin_add_gallery
99
+ nggallery_admin_add_gallery();
100
+ break;
101
+ case "nggallery-manage-gallery" :
102
+ include_once (dirname (__FILE__). '/functions.php'); // admin functions
103
+ include_once (dirname (__FILE__). '/manage.php'); // nggallery_admin_manage_gallery
104
+ nggallery_admin_manage_gallery();
105
+ break;
106
+ case "nggallery-manage-album" :
107
+ include_once (dirname (__FILE__). '/album.php'); // nggallery_admin_manage_album
108
+ nggallery_admin_manage_album();
109
+ break;
110
+ case "nggallery-options" :
111
+ include_once (dirname (__FILE__). '/settings.php'); // nggallery_admin_options
112
+ nggallery_admin_options();
113
+ break;
114
+ case "nggallery-style" :
115
+ include_once (dirname (__FILE__). '/style.php'); // nggallery_admin_style
116
+ nggallery_admin_style();
117
+ break;
118
+ case "nggallery-setup" :
119
+ include_once (dirname (__FILE__). '/setup.php'); // nggallery_admin_setup
120
+ nggallery_admin_setup();
121
+ break;
122
+ case "nggallery-roles" :
123
+ include_once (dirname (__FILE__). '/roles.php'); // nggallery_admin_roles
124
+ nggallery_admin_roles();
125
+ break;
126
+ case "nggallery-import" :
127
+ include_once (dirname (__FILE__). '/myimport.php'); // nggallery_admin_import
128
+ nggallery_admin_import();
129
+ break;
130
+ case "nggallery-about" :
131
+ include_once (dirname (__FILE__). '/about.php'); // nggallery_admin_about
132
+ nggallery_admin_about();
133
+ break;
134
+ case "nggallery-wpmu" :
135
+ include_once (dirname (__FILE__). '/style.php');
136
+ include_once (dirname (__FILE__). '/wpmu.php'); // nggallery_wpmu_admin
137
+ nggallery_wpmu_setup();
138
+ break;
139
+ case "nggallery" :
140
+ default :
141
+ include_once (dirname (__FILE__). '/overview.php'); // nggallery_admin_overview
142
+ nggallery_admin_overview();
143
+ break;
144
+ }
145
+
146
+ }
147
+
148
+ /**************************************************************************/
149
+ function wpmu_site_admin() {
150
+ // Check for site admin
151
+ if (function_exists(is_site_admin))
152
+ if (is_site_admin())
153
+ return true;
154
+
155
+ return false;
156
+ }
157
+
158
+ function wpmu_enable_function($value) {
159
+ if (IS_WPMU) {
160
+ $ngg_options = get_site_option('ngg_options');
161
+ return $ngg_options[$value];
162
+ }
163
+ // if this is not WPMU, enable it !
164
+ return true;
165
+ }
166
+ ?>
admin/wp25/album.php ADDED
@@ -0,0 +1,286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
4
+
5
+ global $wpdb;
6
+
7
+ function nggallery_admin_manage_album() {
8
+ global $wpdb;
9
+
10
+ $albumID = (int) $_POST['act_album'];
11
+
12
+ if ($_POST['update']){
13
+
14
+ check_admin_referer('ngg_album');
15
+
16
+ if ($_POST['newalbum']){
17
+ $newalbum = attribute_escape($_POST['newalbum']);
18
+ $result = $wpdb->query(" INSERT INTO $wpdb->nggalbum (name, sortorder) VALUES ('$newalbum','0')");
19
+ if ($result) nggallery::show_message(__('Update Successfully','nggallery'));
20
+ }
21
+
22
+ if ($albumID > 0){
23
+ // get variable galleryContainer
24
+ parse_str($_POST['sortorder']);
25
+ if (is_array($galleryContainer)){
26
+ $sortorder = array();
27
+ foreach($galleryContainer as $gallery) {
28
+ $gid = substr($gallery, 4); // get id from "gid-x"
29
+ $sortorder[] = $gid;
30
+ }
31
+ $serial_sort = serialize($sortorder);
32
+ $wpdb->query("UPDATE $wpdb->nggalbum SET sortorder = '$serial_sort' WHERE id = $albumID ");
33
+ } else {
34
+ $wpdb->query("UPDATE $wpdb->nggalbum SET sortorder = '0' WHERE id = $albumID ");
35
+ }
36
+ nggallery::show_message(__('Update Successfully','nggallery'));
37
+ }
38
+ }
39
+
40
+ if ($_POST['delete']){
41
+ check_admin_referer('ngg_album');
42
+
43
+ $result = $wpdb->query("DELETE FROM $wpdb->nggalbum WHERE id = '$albumID' ");
44
+ if ($result) nggallery::show_message(__('Album deleted','nggallery'));
45
+ }
46
+
47
+ ?>
48
+
49
+ <script type="text/javascript">
50
+
51
+ jQuery(document).ready(
52
+ function()
53
+ {
54
+
55
+ jQuery('div.groupWrapper').Sortable(
56
+ {
57
+ accept: 'groupItem',
58
+ helperclass: 'sort_placeholder',
59
+ opacity: 0.7,
60
+ tolerance: 'intersect'
61
+ }
62
+ );
63
+
64
+ jQuery('a.min').bind('click', toggleContent);
65
+
66
+ // Hide used galleries
67
+ jQuery('a#toggle_used').click(function()
68
+ {
69
+ jQuery('#selectContainer div.inUse').toggle();
70
+ return false;
71
+ }
72
+ );
73
+
74
+ // Maximize All Portlets (whole site, no differentiation)
75
+ jQuery('a#all_max').click(function()
76
+ {
77
+ jQuery('div.itemContent:hidden').show();
78
+ return false;
79
+ }
80
+ );
81
+
82
+ // Minimize All Portlets (whole site, no differentiation)
83
+ jQuery('a#all_min').click(function()
84
+ {
85
+ jQuery('div.itemContent:visible').hide();
86
+ return false;
87
+ }
88
+ );
89
+ // Auto Minimize if more than 4 (whole site, no differentiation)
90
+ if(jQuery('a.min').length > 4)
91
+ {
92
+ jQuery('a.min').html('[+]');
93
+ jQuery('div.itemContent:visible').hide();
94
+ jQuery('#selectContainer div.inUse').toggle();
95
+ };
96
+ }
97
+ );
98
+
99
+ var toggleContent = function(e)
100
+ {
101
+ var targetContent = jQuery('div.itemContent', this.parentNode.parentNode);
102
+ if (targetContent.css('display') == 'none') {
103
+ targetContent.slideDown(300);
104
+ jQuery(this).html('[-]');
105
+ } else {
106
+ targetContent.slideUp(300);
107
+ jQuery(this).html('[+]');
108
+ }
109
+ return false;
110
+ }
111
+
112
+ function ngg_serialize(s)
113
+ {
114
+ serial = jQuery.SortSerialize(s);
115
+ jQuery('input[@name=sortorder]').val(serial.hash);
116
+ }
117
+ </script>
118
+ <div class="wrap album" id="wrap" >
119
+ <h2><?php _e('Manage Albums', 'nggallery') ?></h2>
120
+ <form id="selectalbum" method="POST" onsubmit="ngg_serialize('galleryContainer')" accept-charset="utf-8">
121
+ <?php wp_nonce_field('ngg_album') ?>
122
+ <input name="sortorder" type="hidden" />
123
+ <table class="ngg-albumnav">
124
+ <tr>
125
+ <th align="right"><?php _e('Select album', 'nggallery') ?></th>
126
+ <td>
127
+ <select id="act_album" name="act_album" onchange="this.form.submit();">
128
+ <option value="0" ><?php _e('No album selected', 'nggallery') ?></option>
129
+ <?php
130
+ $albumlist = $wpdb->get_results("SELECT * FROM $wpdb->nggalbum ORDER BY id ASC");
131
+ if(is_array($albumlist)) {
132
+ foreach($albumlist as $album) {
133
+ if ($_POST['act_album'] == $album->id) $selected = 'selected="selected" ';
134
+ else $selected = '';
135
+ echo '<option value="'.$album->id.'" '.$selected.'>'.$album->name.'</option>'."\n";
136
+ }
137
+ }
138
+ ?>
139
+ </select>
140
+ </td>
141
+ <th align="right"><?php _e('Add new album', 'nggallery') ?></th>
142
+ <td><input id="newalbum" name="newalbum" value="" /></td>
143
+ <td>
144
+ <p class="ngg-submit">
145
+ <?php if ($_POST['act_album'] > 0){ ?>
146
+ <input type="submit" name="delete" class="button delete" value="<?php _e('Delete') ?> &raquo;" onclick="javascript:check=confirm('<?php _e('Delete album ?','nggallery'); ?>');if(check==false) return false;"/>
147
+ <?php } ?>
148
+ <input type="submit" name="update" class="button" value="<?php _e('Update') ?> &raquo;" />
149
+ </p>
150
+ </td>
151
+ </tr>
152
+ </table>
153
+ </form>
154
+ <br style="clear: both;"/>
155
+ <p>
156
+ <div style="float:right;">
157
+ <a href="#" id="toggle_used"><?php _e('[Show all]', 'nggallery') ?></a>
158
+ | <a href="#" id="all_max"><?php _e('[Maximize]', 'nggallery') ?></a>
159
+ | <a href="#" id="all_min"><?php _e('[Minimize]', 'nggallery') ?></a>
160
+ </div>
161
+ <?php _e('After you create and select a album, you can drag and drop a gallery into your album below','nggallery'); ?>
162
+ </p>
163
+
164
+ <br class="clear"/>
165
+
166
+ <div class="container">
167
+ <div id="selectContainer" class="groupWrapper">
168
+ <h3><?php _e('Select Gallery', 'nggallery') ?></h3>
169
+ <?php
170
+ $gallerylist = $wpdb->get_results("SELECT gid FROM $wpdb->nggallery");
171
+
172
+ //TODO:Code MUST be optimized, how to flag a used galley better ?
173
+ $used_list = getallusedgalleries();
174
+
175
+ if(is_array($gallerylist)) {
176
+ if ( ($_POST['act_album'] == 0) or (!isset($_POST['act_album'])) ) {
177
+ foreach($gallerylist as $gallery) {
178
+ if (in_array($gallery->gid,$used_list))
179
+ getgallerycontainer($gallery->gid,true);
180
+ else
181
+ getgallerycontainer($gallery->gid,false);
182
+ }
183
+ } else {
184
+ $act_album = $_POST['act_album'];
185
+ $sortorder = $wpdb->get_var("SELECT sortorder FROM $wpdb->nggalbum WHERE id = '$act_album'");
186
+ $sort_array = unserialize($sortorder);
187
+ // if something went wrong, initialize to empty array
188
+ if (!is_array($sort_array)) $sort_array = array();
189
+ foreach($gallerylist as $gallery) {
190
+ if (!in_array($gallery->gid, $sort_array)) {
191
+ if (in_array($gallery->gid,$used_list))
192
+ getgallerycontainer($gallery->gid,true);
193
+ else
194
+ getgallerycontainer($gallery->gid,false);
195
+ }
196
+ }
197
+ }
198
+ }
199
+ ?>
200
+ </div><!-- /#select container -->
201
+
202
+ <div id="galleryContainer" class="groupWrapper">
203
+ <?php
204
+ if ($_POST['act_album'] > 0){
205
+ $act_album = $_POST['act_album'];
206
+ $album = $wpdb->get_row("SELECT * FROM $wpdb->nggalbum WHERE id = '$act_album'");
207
+ echo '<h3>'.__('Album Page ID', 'nggallery').' '.$album->id.' : '.$album->name.'</h3>'."\n";
208
+ if (!empty($album->sortorder)) {
209
+ $sort_array = unserialize($album->sortorder);
210
+ if (is_array($sort_array)) {
211
+ foreach($sort_array as $galleryid) {
212
+ getgallerycontainer($galleryid,false);
213
+ }
214
+ }
215
+ }
216
+ }
217
+ else
218
+ {
219
+ echo '<h3>'.__('No album selected!', 'nggallery').'</h3>';
220
+ }
221
+ ?>
222
+ </div><!-- /#gallery container -->
223
+
224
+ </div><!-- /#container -->
225
+ </div><!-- /#wrap -->
226
+
227
+ <?php
228
+ }
229
+ function getgallerycontainer($galleryid = 0, $used = false) {
230
+ global $wpdb;
231
+
232
+ $gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryid'");
233
+
234
+ if ($gallery) {
235
+
236
+ // set image url
237
+ $act_thumbnail_url = get_option ('siteurl')."/".$gallery->path.nggallery::get_thumbnail_folder($gallery->path, FALSE);
238
+ $act_thumb_prefix = nggallery::get_thumbnail_prefix($gallery->path, FALSE);
239
+
240
+ $post= get_post($gallery->pageid);
241
+ $pagename = $post->post_title;
242
+ $filename = $wpdb->get_var("SELECT filename FROM $wpdb->nggpictures WHERE pid = '$gallery->previewpic'");
243
+ if ($filename) $img = '<img src="'.$act_thumbnail_url.$act_thumb_prefix.$filename.'" />';
244
+ else $img = '';
245
+ // add class if it's in use in other albums
246
+ $used = $used ? " inUse" : "";
247
+ echo '<div id="gid-'.$gallery->gid.'" class="groupItem'. $used .'">
248
+ <div class="innerhandle">
249
+ <div class="item_top">
250
+ <a href="#" class="min" title="close">[-]</a>
251
+ ID: '.$gallery->gid.' || Title: '.$gallery->title.'
252
+ </div>
253
+ <div class="itemContent">
254
+ <div class="inlinepicture">'.$img.'</div>
255
+ <p><strong>'.__('ID', 'nggallery').' : </strong>'.$gallery->gid.'</p>
256
+ <p><strong>'.__('Name', 'nggallery').' : </strong>'.$gallery->name.'</p>
257
+ <p><strong>'.__('Title', 'nggallery').' : </strong>'.$gallery->title.'</p>
258
+ <p><strong>'.__('Page', 'nggallery').' : </strong>'.$pagename.'</p>
259
+ </div>
260
+ </div>
261
+ </div>';
262
+ }
263
+ }
264
+
265
+ //get all used galleries form all albums
266
+ function getallusedgalleries() {
267
+ global $wpdb;
268
+
269
+ $albumids = $wpdb->get_col("SELECT id FROM $wpdb->nggalbum");
270
+ $used = array();
271
+
272
+ if ($albumids) {
273
+ foreach($albumids as $albumid) {
274
+ $sortorder = $wpdb->get_var("SELECT sortorder FROM $wpdb->nggalbum WHERE id = '$albumid'");
275
+ if (!empty($sortorder)) {
276
+ $sort_array = unserialize($sortorder);
277
+ foreach($sort_array as $galleryid) {
278
+ if (!in_array($galleryid,$used))
279
+ $used[] = $galleryid;
280
+ }
281
+ }
282
+ }
283
+ }
284
+ return $used;
285
+ }
286
+ ?>
admin/wp25/functions.php ADDED
@@ -0,0 +1,941 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
4
+
5
+ class nggAdmin{
6
+
7
+ // **************************************************************
8
+ function create_gallery($gallerytitle, $defaultpath) {
9
+ // create a new gallery & folder
10
+ global $wpdb;
11
+
12
+ //cleanup pathname
13
+ $galleryname = apply_filters('ngg_gallery_name', $gallerytitle);
14
+ $nggpath = $defaultpath.$galleryname;
15
+ $nggRoot = WINABSPATH.$defaultpath;
16
+ $txt = "";
17
+
18
+ // No gallery name ?
19
+ if (empty($galleryname)) {
20
+ nggallery::show_error( __('No valid gallery name!', 'nggallery') );
21
+ return false;
22
+ }
23
+
24
+ // check for main folder
25
+ if ( !is_dir($nggRoot) ) {
26
+ if ( !wp_mkdir_p($nggRoot) ) {
27
+ $txt = __('Directory', 'nggallery').' <strong>'.$defaultpath.'</strong> '.__('didn\'t exist. Please create first the main gallery folder ', 'nggallery').'!<br />';
28
+ $txt .= __('Check this link, if you didn\'t know how to set the permission :', 'nggallery').' <a href="http://codex.wordpress.org/Changing_File_Permissions">http://codex.wordpress.org/Changing_File_Permissions</a> ';
29
+ nggallery::show_error($txt);
30
+ return false;
31
+ }
32
+ }
33
+
34
+ // check for permission settings, Safe mode limitations are not taken into account.
35
+ if ( !is_writeable($nggRoot ) ) {
36
+ $txt = __('Directory', 'nggallery').' <strong>'.$defaultpath.'</strong> '.__('is not writeable !', 'nggallery').'<br />';
37
+ $txt .= __('Check this link, if you didn\'t know how to set the permission :', 'nggallery').' <a href="http://codex.wordpress.org/Changing_File_Permissions">http://codex.wordpress.org/Changing_File_Permissions</a> ';
38
+ nggallery::show_error($txt);
39
+ return false;
40
+ }
41
+
42
+ // 1. Create new gallery folder
43
+ if ( !is_dir(WINABSPATH.$nggpath) ) {
44
+ if ( !wp_mkdir_p (WINABSPATH.$nggpath) )
45
+ $txt = __('Unable to create directory ', 'nggallery').$nggpath.'!<br />';
46
+ }
47
+
48
+ // 2. Check folder permission
49
+ if ( !is_writeable(WINABSPATH.$nggpath ) )
50
+ $txt .= __('Directory', 'nggallery').' <strong>'.$nggpath.'</strong> '.__('is not writeable !', 'nggallery').'<br />';
51
+
52
+ // 3. Now create "thumbs" folder inside
53
+ if ( !is_dir(WINABSPATH.$nggpath.'/thumbs') ) {
54
+ if ( !wp_mkdir_p ( WINABSPATH.$nggpath.'/thumbs') )
55
+ $txt .= __('Unable to create directory ', 'nggallery').' <strong>'.$nggpath.'/thumbs !</strong>';
56
+ }
57
+
58
+ if (SAFE_MODE) {
59
+ $help = __('The server setting Safe-Mode is on !', 'nggallery');
60
+ $help .= '<br />'.__('If you have problems, please create directory', 'nggallery').' <strong>'.$nggpath.'</strong> ';
61
+ $help .= __('and the thumbnails directory', 'nggallery').' <strong>'.$nggpath.'/thumbs</strong> '.__('with permission 777 manually !', 'nggallery');
62
+ nggallery::show_message($help);
63
+ }
64
+
65
+ // show a error message
66
+ if ( !empty($txt) ) {
67
+ if (SAFE_MODE) {
68
+ // for safe_mode , better delete folder, both folder must be created manually
69
+ @rmdir(WINABSPATH.$nggpath.'/thumbs');
70
+ @rmdir(WINABSPATH.$nggpath);
71
+ }
72
+ nggallery::show_error($txt);
73
+ return false;
74
+ }
75
+
76
+ $result=$wpdb->get_var("SELECT name FROM $wpdb->nggallery WHERE name = '$galleryname' ");
77
+ if ($result) {
78
+ nggallery::show_error(__('Gallery', 'nggallery').' <strong>'.$galleryname.'</strong> '.__('already exists', 'nggallery'));
79
+ return false;
80
+ } else {
81
+ $result = $wpdb->query("INSERT INTO $wpdb->nggallery (name, path, title) VALUES ('$galleryname', '$nggpath', '$gallerytitle') ");
82
+ if ($result) nggallery::show_message(__('Gallery', 'nggallery').' <strong>'.$wpdb->insert_id." : ".$galleryname.'</strong> '.__('successfully created!','nggallery')."<br />".__('You can show this gallery with the tag','nggallery').'<strong> [gallery='.$wpdb->insert_id.']</strong>');
83
+ return true;;
84
+ }
85
+ }
86
+
87
+ // **************************************************************
88
+ function import_gallery($galleryfolder) {
89
+ // ** $galleryfolder contains relative path
90
+
91
+ //TODO: Check permission of existing thumb folder & images
92
+
93
+ global $wpdb;
94
+
95
+ $created_msg = "";
96
+
97
+ // remove trailing slash at the end, if somebody use it
98
+ if (substr($galleryfolder, -1) == '/') $galleryfolder = substr($galleryfolder, 0, -1);
99
+ $gallerypath = WINABSPATH.$galleryfolder;
100
+
101
+ if (!is_dir($gallerypath)) {
102
+ nggallery::show_error(__('Directory', 'nggallery').' <strong>'.$gallerypath.'</strong> '.__('doesn&#96;t exist!', 'nggallery'));
103
+ return ;
104
+ }
105
+
106
+ // read list of images
107
+ $new_imageslist = nggAdmin::scandir($gallerypath);
108
+ if (empty($new_imageslist)) {
109
+ nggallery::show_message(__('Directory', 'nggallery').' <strong>'.$gallerypath.'</strong> '.__('contains no pictures', 'nggallery'));
110
+ return;
111
+ }
112
+ // check & create thumbnail folder
113
+ if ( !nggallery::get_thumbnail_folder($gallerypath) )
114
+ return;
115
+
116
+ // take folder name as gallery name
117
+ $galleryname = basename($galleryfolder);
118
+
119
+ // check for existing galleryfolder
120
+ $gallery_id = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE path = '$galleryfolder' ");
121
+
122
+ if (!$gallery_id) {
123
+ $result = $wpdb->query("INSERT INTO $wpdb->nggallery (name, path) VALUES ('$galleryname', '$galleryfolder') ");
124
+ if (!$result) {
125
+ nggallery::show_error(__('Database error. Could not add gallery!','nggallery'));
126
+ return;
127
+ }
128
+ $created_msg =__('Gallery','nggallery').' <strong>'.$galleryname.'</strong> '.__('successfully created!','nggallery').'<br />';
129
+ $gallery_id = $wpdb->insert_id; // get index_id
130
+ }
131
+
132
+ // Look for existing image list
133
+ $old_imageslist = $wpdb->get_col("SELECT filename FROM $wpdb->nggpictures WHERE galleryid = '$gallery_id' ");
134
+ // if no images are there, create empty array
135
+ if ($old_imageslist == NULL) $old_imageslist = array();
136
+ // check difference
137
+ $new_images = array_diff($new_imageslist, $old_imageslist);
138
+ // now create thumbnails
139
+ nggAdmin::generateThumbnail($gallerypath,$new_images);
140
+
141
+ // add images to database
142
+ $count_pic = nggAdmin::add_Images($gallery_id, $gallerypath, $new_images);
143
+
144
+ nggallery::show_message($created_msg.$count_pic.__(' picture(s) successfully added','nggallery'));
145
+ return;
146
+
147
+ }
148
+ // **************************************************************
149
+ function scandir($dirname = ".") {
150
+ // thx to php.net :-)
151
+ $ext = array("jpeg", "jpg", "png", "gif");
152
+ $files = array();
153
+ if($handle = opendir($dirname)) {
154
+ while(false !== ($file = readdir($handle)))
155
+ for($i=0;$i<sizeof($ext);$i++)
156
+ if(stristr($file, ".".$ext[$i]))
157
+ $files[] = utf8_encode($file);
158
+ closedir($handle);
159
+ }
160
+ sort($files);
161
+ return ($files);
162
+ }
163
+
164
+ // **************************************************************
165
+ function resizeImages($gallery_absfolder, $pictures) {
166
+ // ** $gallery_absfolder must contain abspath !!
167
+
168
+ if(! class_exists('ngg_Thumbnail'))
169
+ require_once(NGGALLERY_ABSPATH.'/lib/thumbnail.inc.php');
170
+
171
+ $ngg_options = get_option('ngg_options');
172
+
173
+ if (is_array($pictures)) {
174
+
175
+ $bar = new wpProgressBar(__('Running... Please wait','nggallery'));
176
+ $bar->setHeader(__('Resize images','nggallery'));
177
+ //total number of elements to process
178
+ $elements = count($pictures);
179
+ // wait a little bit after finished
180
+ if ($elements > 5) $bar->setSleepOnFinish(2);
181
+ //print the empty bar
182
+ $bar->initialize($elements);
183
+
184
+ foreach($pictures as $picture) {
185
+
186
+ if (!is_writable($gallery_absfolder."/".$picture)) {
187
+ $messagetext .= $gallery_absfolder."/".$picture."<br />";
188
+ $bar->increase();
189
+ continue;
190
+ }
191
+
192
+ $thumb = new ngg_Thumbnail($gallery_absfolder."/".$picture, TRUE);
193
+ // echo $thumb->errmsg;
194
+ // skip if file is not there
195
+ if (!$thumb->error) {
196
+ $thumb->resize($ngg_options['imgWidth'],$ngg_options['imgHeight'],$ngg_options['imgResampleMode']);
197
+ if ( $thumb->save($gallery_absfolder."/".$picture,$ngg_options['imgQuality']) ) {
198
+ // do not flush the buffer with useless messages
199
+ if ($elements < 100)
200
+ $bar->addNote($picture. __(' : Image resized...','nggallery'));
201
+ } else
202
+ $bar->addNote($picture . " : Error : <strong>".$thumb->errmsg."</strong>");
203
+ $bar->increase();
204
+ }
205
+ $thumb->destruct();
206
+ }
207
+ }
208
+
209
+ if(!empty($messagetext)) nggallery::show_error('<strong>'.__('Some pictures are not writeable :','nggallery').'</strong><br /><ul>'.$messagetext.'</ul>');
210
+ return;
211
+ }
212
+
213
+ // **************************************************************
214
+ function generateWatermark($gallery_absfolder, $pictures) {
215
+ // ** $gallery_absfolder must contain abspath !!
216
+
217
+ if(! class_exists('ngg_Thumbnail'))
218
+ require_once(NGGALLERY_ABSPATH.'/lib/thumbnail.inc.php');
219
+
220
+ $ngg_options = get_option('ngg_options');
221
+
222
+ if (is_array($pictures)) {
223
+
224
+ $bar = new wpProgressBar(__('Running... Please wait','nggallery'));
225
+ $bar->setHeader(__('Set watermark','nggallery'));
226
+ //total number of elements to process
227
+ $elements = count($pictures);
228
+ // wait a little bit after finished
229
+ if ($elements > 5) $bar->setSleepOnFinish(2);
230
+ //print the empty bar
231
+ $bar->initialize($elements);
232
+
233
+ foreach($pictures as $picture) {
234
+
235
+ if (!is_writable($gallery_absfolder."/".$picture)) {
236
+ $messagetext .= $gallery_absfolder."/".$picture."<br />";
237
+ $bar->increase();
238
+ continue;
239
+ }
240
+
241
+ $thumb = new ngg_Thumbnail($gallery_absfolder."/".$picture, TRUE);
242
+ // echo $thumb->errmsg;
243
+ // skip if file is not there
244
+ if (!$thumb->error) {
245
+ if ($ngg_options['wmType'] == 'image') {
246
+ $thumb->watermarkImgPath = $ngg_options['wmPath'];
247
+ $thumb->watermarkImage($ngg_options['wmPos'], $ngg_options['wmXpos'], $ngg_options['wmYpos']);
248
+ }
249
+ if ($ngg_options['wmType'] == 'text') {
250
+ $thumb->watermarkText = $ngg_options['wmText'];
251
+ $thumb->watermarkCreateText($ngg_options['wmColor'], $ngg_options['wmFont'], $ngg_options['wmSize'], $ngg_options['wmOpaque']);
252
+ $thumb->watermarkImage($ngg_options['wmPos'], $ngg_options['wmXpos'], $ngg_options['wmYpos']);
253
+ }
254
+ if ( $thumb->save($gallery_absfolder."/".$picture,$ngg_options['imgQuality']) ) {
255
+ // do not flush the buffer with useless messages
256
+ if ($elements < 100)
257
+ $bar->addNote($picture. __(' : Watermark created...','nggallery'));
258
+ } else
259
+ $bar->addNote($picture . " : Error : <strong>".$thumb->errmsg."</strong>");
260
+ $bar->increase();
261
+ }
262
+ $thumb->destruct();
263
+ }
264
+ }
265
+
266
+ if(!empty($messagetext)) nggallery::show_error('<strong>'.__('Some pictures are not writeable :','nggallery').'</strong><br /><ul>'.$messagetext.'</ul>');
267
+ return;
268
+ }
269
+
270
+ // **************************************************************
271
+ function generateThumbnail($gallery_absfolder, $pictures) {
272
+ // ** $gallery_absfolder must contain abspath !!
273
+
274
+ if(! class_exists('ngg_Thumbnail'))
275
+ require_once(NGGALLERY_ABSPATH.'/lib/thumbnail.inc.php');
276
+
277
+ $ngg_options = get_option('ngg_options');
278
+
279
+ $thumbfolder = nggallery::get_thumbnail_folder($gallery_absfolder);
280
+ $prefix = nggallery::get_thumbnail_prefix($gallery_absfolder);
281
+
282
+ if (!$thumbfolder)
283
+ return;
284
+
285
+ if (is_array($pictures)) {
286
+
287
+ $bar = new wpProgressBar(__('Running... Please wait','nggallery'));
288
+ $bar->setHeader(__('Create new thumbnails','nggallery'));
289
+ //total number of elements to process
290
+ $elements = count($pictures);
291
+ // wait a little bit after finished
292
+ if ($elements > 10) $bar->setSleepOnFinish(2);
293
+ //print the empty bar
294
+ $bar->initialize($elements);
295
+
296
+ foreach($pictures as $picture) {
297
+ // check for existing thumbnail
298
+ if (file_exists($gallery_absfolder.$thumbfolder.$prefix.$picture)) {
299
+ if (!is_writable($gallery_absfolder.$thumbfolder.$prefix.$picture)) {
300
+ $messagetext .= $gallery_absfolder."/".$picture."<br />";
301
+ $bar->increase();
302
+ continue;
303
+ }
304
+ }
305
+
306
+ $thumb = new ngg_Thumbnail($gallery_absfolder."/".utf8_decode($picture), TRUE);
307
+
308
+ // skip if file is not there
309
+ if (!$thumb->error) {
310
+ if ($ngg_options['thumbcrop']) {
311
+
312
+ // THX to Kees de Bruin, better thumbnails if portrait format
313
+ $width = $ngg_options['thumbwidth'];
314
+ $height = $ngg_options['thumbheight'];
315
+ $curwidth = $thumb->currentDimensions['width'];
316
+ $curheight = $thumb->currentDimensions['height'];
317
+ if ($curwidth > $curheight) {
318
+ $aspect = (100 * $curwidth) / $curheight;
319
+ } else {
320
+ $aspect = (100 * $curheight) / $curwidth;
321
+ }
322
+ $width = intval(($width * $aspect) / 100);
323
+ $height = intval(($height * $aspect) / 100);
324
+ $thumb->resize($width,$height,$ngg_options['thumbResampleMode']);
325
+ $thumb->cropFromCenter($width,$ngg_options['thumbResampleMode']);
326
+ }
327
+ elseif ($ngg_options['thumbfix']) {
328
+ // check for portrait format
329
+ if ($thumb->currentDimensions['height'] > $thumb->currentDimensions['width']) {
330
+ $thumb->resize($ngg_options['thumbwidth'], 0,$ngg_options['thumbResampleMode']);
331
+ // get optimal y startpos
332
+ $ypos = ($thumb->currentDimensions['height'] - $ngg_options['thumbheight']) / 2;
333
+ $thumb->crop(0, $ypos, $ngg_options['thumbwidth'],$ngg_options['thumbheight'],$ngg_options['thumbResampleMode']);
334
+ } else {
335
+ $thumb->resize(0,$ngg_options['thumbheight'],$ngg_options['thumbResampleMode']);
336
+ // get optimal x startpos
337
+ $xpos = ($thumb->currentDimensions['width'] - $ngg_options['thumbwidth']) / 2;
338
+ $thumb->crop($xpos, 0, $ngg_options['thumbwidth'],$ngg_options['thumbheight'],$ngg_options['thumbResampleMode']);
339
+ }
340
+ } else {
341
+ $thumb->resize($ngg_options['thumbwidth'],$ngg_options['thumbheight'],$ngg_options['thumbResampleMode']);
342
+ }
343
+ if ( !$thumb->save($gallery_absfolder.$thumbfolder.$prefix.$picture,$ngg_options['thumbquality'])) {
344
+ $errortext .= $picture . " <strong>(Error : ".$thumb->errmsg .")</strong><br />";
345
+ $bar->addNote($picture . " : Error : <strong>".$thumb->errmsg)."</strong>";
346
+ }
347
+ nggAdmin::chmod ($gallery_absfolder.$thumbfolder.$prefix.$picture);
348
+ } else {
349
+ $errortext .= $picture . " <strong>(Error : ".$thumb->errmsg .")</strong><br />";
350
+ $bar->addNote($picture . " : Error : <strong>".$thumb->errmsg."</strong>");
351
+ }
352
+ $thumb->destruct();
353
+ // do not flush the buffer with useless messages
354
+ if ($elements < 100)
355
+ $bar->addNote($picture. __(' : Thumbnail created...','nggallery'));
356
+ $bar->increase();
357
+ }
358
+ }
359
+
360
+ if(!empty($errortext)) nggallery::show_error('<strong>'.__('Follow thumbnails could not created.','nggallery').'</strong><br /><ul>'.$errortext.'</ul>');
361
+ if(!empty($messagetext)) nggallery::show_error('<strong>'.__('Some thumbnails are not writeable :','nggallery').'</strong><br /><ul>'.$messagetext.'</ul>');
362
+
363
+ return;
364
+ }
365
+
366
+ // **************************************************************
367
+ function add_Images($galleryID, $gallerypath, $imageslist) {
368
+ // add images to database
369
+ global $wpdb;
370
+ $count_pic = 0;
371
+ if (is_array($imageslist)) {
372
+ foreach($imageslist as $picture) {
373
+ $result = $wpdb->query("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext, exclude) VALUES ('$galleryID', '$picture', '$picture', 0) ");
374
+ $pic_id = (int) $wpdb->insert_id;
375
+ if ($result) $count_pic++;
376
+
377
+ // add the metadata
378
+ if ($_POST['addmetadata'])
379
+ nggAdmin::import_MetaData($pic_id);
380
+
381
+ }
382
+ } // is_array
383
+
384
+ return $count_pic;
385
+
386
+ }
387
+
388
+ // **************************************************************
389
+ function import_MetaData($imagesIds) {
390
+ // add images to database
391
+ global $wpdb;
392
+
393
+ if (!is_array($imagesIds))
394
+ $imagesIds = array($imagesIds);
395
+
396
+ foreach($imagesIds as $pic_id) {
397
+
398
+ $picture = new nggImage($pic_id );
399
+ if (!$picture->error) {
400
+
401
+ $meta = nggAdmin::get_MetaData($picture->absPath);
402
+
403
+ // get the title
404
+ if (!$alttext = $meta['title'])
405
+ $alttext = $picture->alttext;
406
+ // get the caption / description field
407
+ if (!$description = $meta['caption'])
408
+ $description = $picture->description;
409
+ // update database
410
+ $result=$wpdb->query( "UPDATE $wpdb->nggpictures SET alttext = '$alttext', description = '$description' WHERE pid = $pic_id");
411
+ // add the tags
412
+ if ($meta['keywords']) {
413
+ $taglist = explode(",", $meta['keywords']);
414
+ $taglist = array_map('trim', $taglist);
415
+ // load tag list
416
+ $nggTags = new ngg_Tags();
417
+ foreach($taglist as $tag) {
418
+ // get the tag id
419
+ $tagid = $nggTags->add_tag($tag);
420
+ if ( $tagid )
421
+ $nggTags->add_relationship($pic_id, $tagid);
422
+ }
423
+ } // add tags
424
+ }// error check
425
+ } // foreach
426
+
427
+ return true;
428
+
429
+ }
430
+
431
+ // **************************************************************
432
+ function get_MetaData($picPath) {
433
+ // must be Gallery absPath + filename
434
+
435
+ require_once(NGGALLERY_ABSPATH.'/lib/nggmeta.lib.php');
436
+
437
+ $meta = array();
438
+
439
+ $pdata = new nggMeta($picPath);
440
+ $meta['title'] = $pdata->get_META('title');
441
+ $meta['caption'] = $pdata->get_META('caption');
442
+ $meta['keywords'] = $pdata->get_META('keywords');
443
+
444
+ return $meta;
445
+
446
+ }
447
+
448
+ // **************************************************************
449
+ function unzip($dir, $file) {
450
+ // thx to Gregor at http://blog.scoutpress.de/forum/topic/45
451
+
452
+ if(! class_exists('PclZip'))
453
+ require_once(NGGALLERY_ABSPATH.'/lib/pclzip.lib.php');
454
+
455
+ $archive = new PclZip($file);
456
+
457
+ // extract all files in one folder
458
+ if ($archive->extract(PCLZIP_OPT_PATH, $dir, PCLZIP_OPT_REMOVE_ALL_PATH, PCLZIP_CB_PRE_EXTRACT, 'ngg_getOnlyImages') == 0) {
459
+ if ($archive->error_code == -22)
460
+ nggallery::show_error(__('The Zip-file is too large. Exceed Memory limit !','nggallery'));
461
+ else
462
+ nggallery::show_error("Error : ".$archive->errorInfo(true));
463
+ return false;
464
+ }
465
+
466
+ return true;
467
+ }
468
+
469
+ // **************************************************************
470
+ function getOnlyImages($p_event, $p_header) {
471
+ $info = pathinfo($p_header['filename']);
472
+ // check for extension
473
+ $ext = array("jpeg", "jpg", "png", "gif");
474
+ if (in_array( strtolower($info['extension']), $ext)) {
475
+ // For MAC skip the ".image" files
476
+ if ($info['basename']{0} == "." )
477
+ return 0;
478
+ else
479
+ return 1;
480
+ }
481
+ // ----- all other files are skipped
482
+ else {
483
+ return 0;
484
+ }
485
+ }
486
+
487
+ // **************************************************************
488
+ function import_zipfile($defaultpath) {
489
+
490
+ if (nggAdmin::check_quota())
491
+ return;
492
+
493
+ $temp_zipfile = $_FILES['zipfile']['tmp_name'];
494
+ $filename = $_FILES['zipfile']['name'];
495
+
496
+ // check if file is a zip file
497
+ if (!eregi('zip', $_FILES['zipfile']['type']))
498
+ // on whatever reason MAC shows "application/download"
499
+ if (!eregi('download', $_FILES['zipfile']['type'])) {
500
+ @unlink($temp_zipfile); // del temp file
501
+ nggallery::show_error(__('Uploaded file was no or a faulty zip file ! The server recognize : ','nggallery').$_FILES['zipfile']['type']);
502
+ return;
503
+ }
504
+
505
+ // get foldername if selected
506
+ $foldername = $_POST['zipgalselect'];
507
+ if ($foldername == "0") {
508
+ //cleanup and take the zipfile name as folder name
509
+ $foldername = sanitize_title(strtok ($filename,'.'));
510
+ //$foldername = preg_replace ("/(\s+)/", '-', strtolower(strtok ($filename,'.')));
511
+ }
512
+
513
+ //TODO:FORM must get the path from the tables not from defaultpath !!!
514
+ // set complete folder path
515
+ $newfolder = WINABSPATH.$defaultpath.$foldername;
516
+
517
+ if (!is_dir($newfolder)) {
518
+ // create new directories
519
+ if (!wp_mkdir_p ($newfolder)) {
520
+ $message = sprintf(__('Unable to create directory %s. Is its parent directory writable by the server?', 'nggallery'), $newfolder);
521
+ nggallery::show_error($message);
522
+ return false;
523
+ }
524
+ if (!wp_mkdir_p ($newfolder.'/thumbs')) {
525
+ nggallery::show_error(__('Unable to create directory ', 'nggallery').$newfolder.'/thumbs !');
526
+ return false;
527
+ }
528
+ }
529
+
530
+ // unzip and del temp file
531
+ $result = nggAdmin::unzip($newfolder, $temp_zipfile);
532
+ @unlink($temp_zipfile);
533
+
534
+ if ($result) {
535
+ $message = __('Zip-File successfully unpacked','nggallery').'<br />';
536
+
537
+ // parse now the folder and add to database
538
+ $message .= nggAdmin::import_gallery($defaultpath.$foldername);
539
+
540
+ nggallery::show_message($message);
541
+ }
542
+
543
+ return;
544
+ }
545
+
546
+ // **************************************************************
547
+ function upload_images() {
548
+ // upload of pictures
549
+
550
+ global $wpdb;
551
+
552
+ // WPMU action
553
+ if (nggAdmin::check_quota())
554
+ return;
555
+
556
+ // Images must be an array
557
+ $imageslist = array();
558
+
559
+ // get selected gallery
560
+ $galleryID = (int) $_POST['galleryselect'];
561
+
562
+ if ($galleryID == 0) {
563
+ nggallery::show_error(__('No gallery selected !','nggallery'));
564
+ return;
565
+ }
566
+
567
+ // get the path to the gallery
568
+ $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
569
+
570
+ if (!$gallerypath){
571
+ nggallery::show_error(__('Failure in database, no gallery path set !','nggallery'));
572
+ return;
573
+ }
574
+
575
+ // read list of images
576
+ $dirlist = nggAdmin::scandir(WINABSPATH.$gallerypath);
577
+
578
+ foreach ($_FILES as $key => $value) {
579
+
580
+ // look only for uploded files
581
+ if ($_FILES[$key]['error'] == 0) {
582
+ $temp_file = $_FILES[$key]['tmp_name'];
583
+ $filepart = pathinfo ( strtolower($_FILES[$key]['name']) );
584
+ // required until PHP 5.2.0
585
+ $filepart['filename'] = substr($filepart["basename"],0 ,strlen($filepart["basename"]) - (strlen($filepart["extension"]) + 1) );
586
+
587
+ $filename = sanitize_title($filepart['filename']) . "." . $filepart['extension'];
588
+
589
+ // check for allowed extension
590
+ $ext = array("jpeg", "jpg", "png", "gif");
591
+ if (!in_array($filepart['extension'],$ext)){
592
+ nggallery::show_error('<strong>'.$_FILES[$key]['name'].' </strong>'.__('is no valid image file!','nggallery'));
593
+ continue;
594
+ }
595
+
596
+ // check if this filename already exist in the folder
597
+ $i = 0;
598
+ while (in_array($filename,$dirlist)) {
599
+ $filename = sanitize_title($filepart['filename']) . "_" . $i++ . "." .$filepart['extension'];
600
+ }
601
+
602
+ $dest_file = WINABSPATH.$gallerypath."/".$filename;
603
+
604
+ //check for folder permission
605
+ if (!is_writeable(WINABSPATH.$gallerypath)) {
606
+ $message = sprintf(__('Unable to write to directory %s. Is this directory writable by the server?', 'nggallery'), WINABSPATH.$gallerypath);
607
+ nggallery::show_error($message);
608
+ return;
609
+ }
610
+
611
+ // save temp file to gallery
612
+ if (!@move_uploaded_file($_FILES[$key]['tmp_name'], $dest_file)){
613
+ nggallery::show_error(__('Error, the file could not moved to : ','nggallery').$dest_file);
614
+ nggAdmin::check_safemode(WINABSPATH.$gallerypath);
615
+ continue;
616
+ }
617
+ if (!nggAdmin::chmod ($dest_file)) {
618
+ nggallery::show_error(__('Error, the file permissions could not set','nggallery'));
619
+ continue;
620
+ }
621
+
622
+ // add to imagelist & dirlist
623
+ $imageslist[] = $filename;
624
+ $dirlist[] = $filename;
625
+
626
+ }
627
+ }
628
+
629
+ if (count($imageslist) > 0) {
630
+
631
+ //create thumbnails
632
+ nggAdmin::generatethumbnail(WINABSPATH.$gallerypath,$imageslist);
633
+
634
+ // add images to database
635
+ $count_pic = nggAdmin::add_Images($galleryID, $gallerypath, $imageslist);
636
+
637
+ nggallery::show_message($count_pic.__(' Image(s) successfully added','nggallery'));
638
+ }
639
+
640
+ return;
641
+
642
+ } // end function
643
+
644
+ // **************************************************************
645
+ function swfupload_image($galleryID = 0) {
646
+ // This function is called by the swfupload
647
+ global $wpdb;
648
+ $ngg_options = get_option('ngg_options');
649
+
650
+ if ($galleryID == 0) {
651
+ @unlink($temp_file);
652
+ return __('No gallery selected !','nggallery');;
653
+ }
654
+
655
+ // WPMU action
656
+ if (nggAdmin::check_quota())
657
+ return;
658
+
659
+ // Check the upload
660
+ if (!isset($_FILES["Filedata"]) || !is_uploaded_file($_FILES["Filedata"]["tmp_name"]) || $_FILES["Filedata"]["error"] != 0) {
661
+ return __('Invalid upload. Error Code : ','nggallery').$_FILES["Filedata"]["error"];
662
+ }
663
+
664
+ // get the filename and extension
665
+ $temp_file = $_FILES["Filedata"]['tmp_name'];
666
+ $filepart = pathinfo ( strtolower($_FILES["Filedata"]['name']) );
667
+ // required until PHP 5.2.0
668
+ $filepart['filename'] = substr($filepart["basename"],0 ,strlen($filepart["basename"]) - (strlen($filepart["extension"]) + 1) );
669
+ $filename = sanitize_title($filepart['filename']).".".$filepart['extension'];
670
+
671
+ // check for allowed extension
672
+ $ext = array("jpeg", "jpg", "png", "gif");
673
+ if (!in_array($filepart['extension'],$ext)){
674
+ return $_FILES[$key]['name'].__('is no valid image file!','nggallery');
675
+ }
676
+
677
+ // get the path to the gallery
678
+ $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
679
+ if (!$gallerypath){
680
+ @unlink($temp_file);
681
+ return __('Failure in database, no gallery path set !','nggallery');
682
+ }
683
+
684
+ // read list of images
685
+ $imageslist = nggAdmin::scandir(WINABSPATH.$gallerypath);
686
+
687
+ // check if this filename already exist
688
+ $i = 0;
689
+ while (in_array($filename,$imageslist)) {
690
+ $filename = sanitize_title($filepart['filename']) . "_" . $i++ . "." .$filepart['extension'];
691
+ }
692
+
693
+ $dest_file = WINABSPATH.$gallerypath."/".$filename;
694
+
695
+ // save temp file to gallery
696
+ if ( !@move_uploaded_file($_FILES["Filedata"]['tmp_name'], $dest_file) ){
697
+ nggAdmin::check_safemode(WINABSPATH.$gallerypath);
698
+ return __('Error, the file could not moved to : ','nggallery').$dest_file;
699
+ }
700
+
701
+ if ( !nggAdmin::chmod($dest_file) ) {
702
+ return __('Error, the file permissions could not set','nggallery');
703
+ }
704
+
705
+ return "0";
706
+ }
707
+
708
+ // **************************************************************
709
+ function check_quota() {
710
+ // Only for WPMU
711
+ if ( (IS_WPMU) && wpmu_enable_function('wpmuQuotaCheck'))
712
+ if( $error = upload_is_user_over_quota( false ) ) {
713
+ nggallery::show_error( __( 'Sorry, you have used your space allocation. Please delete some files to upload more files.','nggallery' ) );
714
+ return true;
715
+ }
716
+ return false;
717
+ }
718
+
719
+ // **************************************************************
720
+ function chmod($filename = "") {
721
+ // Set correct file permissions (taken from wp core)
722
+ $stat = @ stat(dirname($filename));
723
+ $perms = $stat['mode'] & 0007777;
724
+ $perms = $perms & 0000666;
725
+ if ( @chmod($filename, $perms) )
726
+ return true;
727
+
728
+ return false;
729
+ }
730
+
731
+ function check_safemode($foldername) {
732
+ // Check UID in folder and Script
733
+ // Read http://www.php.net/manual/en/features.safe-mode.php to understand safe_mode
734
+ if ( SAFE_MODE ) {
735
+
736
+ $script_uid = ( ini_get('safe_mode_gid') ) ? getmygid() : getmyuid();
737
+ $folder_uid = fileowner($foldername);
738
+
739
+ if ($script_uid != $folder_uid) {
740
+ $message = sprintf(__('SAFE MODE Restriction in effect! You need to create the folder <strong>%s</strong> manually','nggallery'), $foldername);
741
+ $message .= '<br />' . sprintf(__('When safe_mode is on, PHP checks to see if the owner (%s) of the current script matches the owner (%s) of the file to be operated on by a file function or its directory','nggallery'), $script_uid, $folder_uid );
742
+ nggallery::show_error($message);
743
+ return false;
744
+ }
745
+ }
746
+
747
+ return true;
748
+ }
749
+
750
+ } // END class nggAdmin
751
+
752
+ /**
753
+ * Class wpProgressBar for WordPress & NextGEN Gallery
754
+ * Easy to use progress bar in html and css.
755
+ *
756
+ * @author Based on ProgressBar from David Bongard (mail@bongard.net | www.bongard.net)
757
+ * and Phillip Berndt (standards.webmasterpro.de)
758
+ * @mixed by Alex Rabe
759
+ * @version 1.0 - 20071201
760
+ * @license http://www.opensource.org/licenses/mit-license.php MIT License
761
+ * @copyright Copyright &copy; 2007, David Bongard , Phillip Berndt
762
+ *
763
+ */
764
+ class wpProgressBar {
765
+
766
+ /**
767
+ * Constructor
768
+ *
769
+ * @param str $message Message shown above the bar eg. "Please wait...". Default: ''
770
+ * @param bool $hide Hide the bar after completion (with JavaScript). Default: true
771
+ * @param int $sleepOnFinish Seconds to sleep after bar completion. Default: 0
772
+ * @param int $barLength Length in percent. Default: 100
773
+ * @param str $domID Html-Attribute "id" for the bar
774
+ * @param str $header the header title
775
+ */
776
+ function wpProgressBar($message='', $hide=true, $sleepOnFinish=0, $domID='progressbar', $header='')
777
+ {
778
+ global $pb_instance;
779
+ $this->instance = $pb_instance++;
780
+ $this->setAutohide($hide);
781
+ $this->setSleepOnFinish($sleepOnFinish);
782
+ $this->setDomIDs($domID);
783
+ $this->setMessage($message);
784
+ $this->setheader($header);
785
+ }
786
+
787
+
788
+ /**
789
+ * Print the empty progress bar
790
+ * @param int $numElements Number of Elements to be processed and number of times $bar->initialize() will be called while processing
791
+ */
792
+ function initialize($numElements)
793
+ {
794
+ $this->StepCount = 0;
795
+ $this->ListCount = 0;
796
+
797
+ $numElements = (int) $numElements ;
798
+
799
+ if($numElements == 0)
800
+ return;
801
+
802
+ $this->numSteps = $numElements;
803
+
804
+ //calculate the % per Step
805
+ $this->percentPerStep = round (100 / $numElements, 2);
806
+
807
+ //stop buffering
808
+ ob_end_flush();
809
+ //start buffering
810
+ ob_start();
811
+
812
+ echo '<div id="'.$this->domID.'_container" class="wrap">
813
+ <h2>'.$this->header.'</h2>
814
+ <div id="'.$this->domID.'" class="progressborder"><div class="progressbar"><span>0%</span></div></div>
815
+ <div class="progressbar_message"><span style="display:block" id="'.$this->domIDMessage.'">'.$this->message.'</span></div>
816
+ <ul id="'.$this->domIDProgressNote.'">&nbsp;</ul>
817
+ </div>
818
+
819
+ <script type="text/javascript">
820
+ <!--
821
+ oProgressbar = document.getElementById("'.$this->domID.'").firstChild;
822
+ function progress(value)
823
+ {
824
+ oProgressbar.firstChild.firstChild.nodeValue = oProgressbar.style.width = value + "%";
825
+ }
826
+ // -->
827
+ </script>';
828
+
829
+ ob_flush();
830
+ flush();
831
+
832
+ $this->initialized = true;
833
+ }
834
+
835
+ /**
836
+ * Count steps and increase bar length
837
+ *
838
+ */
839
+ function increase()
840
+ {
841
+ if($this->StepCount < $this->numSteps) {
842
+ //add a step
843
+ $this->StepCount++;
844
+
845
+ $value = $this->StepCount * $this->percentPerStep;
846
+ echo('<script type="text/javascript">progress('.intval($value).');</script>');
847
+
848
+ ob_flush();
849
+ flush();
850
+ }
851
+
852
+ if(!$this->finished && $this->StepCount == $this->numSteps){
853
+ // to be sure that based on round we reached 100%
854
+ if ($value != 100){
855
+ echo('<script type="text/javascript">progress('.intval(100).');</script>');
856
+ ob_flush();
857
+ flush();
858
+ }
859
+ $this->stop();
860
+ }
861
+ }
862
+
863
+ function stop($error=false)
864
+ {
865
+
866
+ //sleep x seconds before ending the script
867
+ if(!$error){
868
+ if($this->sleepOnFinish > 0){
869
+ sleep($this->sleepOnFinish);
870
+ }
871
+
872
+ //hide the bar
873
+ if($this->hide){
874
+ echo '<script type="text/javascript">document.getElementById("'.$this->domID.'_container").style.display = "none";</script>';
875
+ ob_flush();
876
+ flush();
877
+ }
878
+ }
879
+ $this->finished = true;
880
+ }
881
+
882
+ function setMessage($text)
883
+ {
884
+ if($this->initialized){
885
+ echo '<script type="text/javascript">document.getElementById("'.$this->domIDMessage.'").innerHTML = "'.$text.'";</script>';
886
+ ob_flush();flush();
887
+ }else{
888
+ $this->message = $text;
889
+ }
890
+ }
891
+
892
+ function addNote($text)
893
+ {
894
+ if($this->initialized){
895
+ echo '<script type="text/javascript">
896
+ var newLI = document.createElement("li");
897
+ var note = document.createTextNode("'.$text.'");
898
+ document.getElementById("'.$this->domIDProgressNote.'").appendChild(newLI);
899
+ document.getElementById("'.$this->domIDProgressNote.'").getElementsByTagName("li")['.$this->ListCount.'].appendChild(note);
900
+ </script>';
901
+ $this->ListCount++;
902
+ if ($this->numSteps < 150) {
903
+ ob_flush();
904
+ flush();
905
+ }
906
+ }
907
+ }
908
+
909
+ function setAutohide($hide)
910
+ {
911
+ $this->hide = (bool) $hide;
912
+ }
913
+
914
+ function setHeader($header)
915
+ {
916
+ $this->header = $header;
917
+ }
918
+
919
+ function setSleepOnFinish($sleepOnFinish)
920
+ {
921
+ $this->sleepOnFinish = (int) $sleepOnFinish;
922
+ }
923
+
924
+ function setDomIDs($domID)
925
+ {
926
+ $this->domID = strip_tags($domID).$this->instance;
927
+ $this->domIDMessage = $this->domID.'_message';
928
+ $this->domIDProgressNote = $this->domID.'_note';
929
+ }
930
+
931
+ }
932
+
933
+ // **************************************************************
934
+ //TODO: Cannot be member of a class ? Check PCLZIP later...
935
+ function ngg_getOnlyImages($p_event, $p_header) {
936
+
937
+ return nggAdmin::getOnlyImages($p_event, $p_header);
938
+
939
+ }
940
+
941
+ ?>
admin/wp25/index.html ADDED
File without changes
admin/wp25/manage.php ADDED
@@ -0,0 +1,691 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
4
+
5
+ function nggallery_admin_manage_gallery() {
6
+ global $wpdb;
7
+
8
+ //TODO:GID & Mode should the hidden post variables
9
+
10
+ // GET variables
11
+ $act_gid = (int) $_GET['gid'];
12
+ $act_pid = (int) $_GET['pid'];
13
+ $mode = trim(attribute_escape($_GET['mode']));
14
+
15
+ // get the options
16
+ $ngg_options=get_option('ngg_options');
17
+
18
+ if (isset ($_POST['togglethumbs'])) {
19
+ check_admin_referer('ngg_updategallery');
20
+ // Toggle thumnails, forgive me if it's to complicated
21
+ $hideThumbs = (isset ($_POST['hideThumbs'])) ? false : true ;
22
+ } else {
23
+ $hideThumbs = (isset ($_POST['hideThumbs'])) ? true : false ;
24
+ }
25
+
26
+ if (isset ($_POST['toggletags'])) {
27
+ check_admin_referer('ngg_updategallery');
28
+ // Toggle tag view
29
+ $showTags = (isset ($_POST['showTags'])) ? false : true ;
30
+ } else {
31
+ $showTags = (isset ($_POST['showTags'])) ? true : false ;
32
+ }
33
+
34
+ if ($mode == 'delete') {
35
+ // Delete a gallery
36
+
37
+ check_admin_referer('ngg_editgallery');
38
+
39
+ // get the path to the gallery
40
+ $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
41
+ if ($gallerypath){
42
+ $thumb_folder = nggallery::get_thumbnail_folder($gallerypath, FALSE);
43
+ $thumb_prefix = nggallery::get_thumbnail_prefix($gallerypath, FALSE);
44
+
45
+ // delete pictures
46
+ $imagelist = $wpdb->get_col("SELECT filename FROM $wpdb->nggpictures WHERE galleryid = '$act_gid' ");
47
+ if ($ngg_options['deleteImg']) {
48
+ if (is_array($imagelist)) {
49
+ foreach ($imagelist as $filename) {
50
+ @unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
51
+ @unlink(WINABSPATH.$gallerypath.'/'.$filename);
52
+ }
53
+ }
54
+ // delete folder
55
+ @rmdir(WINABSPATH.$gallerypath.'/'.$thumb_folder);
56
+ @rmdir(WINABSPATH.$gallerypath);
57
+ }
58
+ }
59
+
60
+ $delete_pic = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE galleryid = $act_gid");
61
+ $delete_galllery = $wpdb->query("DELETE FROM $wpdb->nggallery WHERE gid = $act_gid");
62
+
63
+ if($delete_galllery)
64
+ $messagetext = '<font color="green">'.__('Gallery','nggallery').' \''.$act_gid.'\' '.__('deleted successfully','nggallery').'</font>';
65
+ $mode = 'main'; // show mainpage
66
+ }
67
+
68
+ if ($mode == 'delpic') {
69
+ // Delete a picture
70
+ check_admin_referer('ngg_delpicture');
71
+ $filename = $wpdb->get_var("SELECT filename FROM $wpdb->nggpictures WHERE pid = '$act_pid' ");
72
+ if ($filename) {
73
+ $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
74
+ if ($gallerypath){
75
+ $thumb_folder = nggallery::get_thumbnail_folder($gallerypath, FALSE);
76
+ $thumb_prefix = nggallery::get_thumbnail_prefix($gallerypath, FALSE);
77
+ if ($ngg_options['deleteImg']) {
78
+ @unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
79
+ @unlink(WINABSPATH.$gallerypath.'/'.$filename);
80
+ }
81
+ }
82
+ $delete_pic = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE pid = $act_pid");
83
+ }
84
+ if($delete_pic)
85
+ $messagetext = '<font color="green">'.__('Picture','nggallery').' \''.$act_pid.'\' '.__('deleted successfully','nggallery').'</font>';
86
+ $mode = 'edit'; // show pictures
87
+
88
+ }
89
+
90
+ if (isset ($_POST['bulkaction']) && isset ($_POST['doaction'])) {
91
+ // do bulk update
92
+
93
+ check_admin_referer('ngg_updategallery');
94
+
95
+ $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
96
+ $imageslist = array();
97
+
98
+ if ( is_array($_POST['doaction']) ) {
99
+ foreach ( $_POST['doaction'] as $imageID ) {
100
+ $imageslist[] = $wpdb->get_var("SELECT filename FROM $wpdb->nggpictures WHERE pid = '$imageID' ");
101
+ }
102
+ }
103
+
104
+ switch ($_POST['bulkaction']) {
105
+ case 0;
106
+ // No action
107
+ break;
108
+ case 1:
109
+ // Set watermark
110
+ nggAdmin::generateWatermark(WINABSPATH.$gallerypath,$imageslist);
111
+ nggallery::show_message(__('Watermark successfully added',"nggallery"));
112
+ break;
113
+ case 2:
114
+ // Create new thumbnails
115
+ nggAdmin::generateThumbnail(WINABSPATH.$gallerypath,$imageslist);
116
+ nggallery::show_message(__('Thumbnails successfully created. Please refresh your browser cache.',"nggallery"));
117
+ break;
118
+ case 3:
119
+ // Resample images
120
+ nggAdmin::resizeImages(WINABSPATH.$gallerypath,$imageslist);
121
+ nggallery::show_message(__('Images successfully resized',"nggallery"));
122
+ break;
123
+ case 4:
124
+ // Delete images
125
+ if ( is_array($_POST['doaction']) ) {
126
+ if ($gallerypath){
127
+ $thumb_folder = nggallery::get_thumbnail_folder($gallerypath, FALSE);
128
+ $thumb_prefix = nggallery::get_thumbnail_prefix($gallerypath, FALSE);
129
+ foreach ( $_POST['doaction'] as $imageID ) {
130
+ $filename = $wpdb->get_var("SELECT filename FROM $wpdb->nggpictures WHERE pid = '$imageID' ");
131
+ if ($ngg_options['deleteImg']) {
132
+ @unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
133
+ @unlink(WINABSPATH.$gallerypath.'/'.$filename);
134
+ }
135
+ $delete_pic = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE pid = $imageID");
136
+ }
137
+ }
138
+ if($delete_pic)
139
+ nggallery::show_message(__('Pictures deleted successfully ',"nggallery"));
140
+ }
141
+ break;
142
+ case 8:
143
+ // Import Metadata
144
+ nggAdmin::import_MetaData($_POST['doaction']);
145
+ nggallery::show_message(__('Import metadata finished',"nggallery"));
146
+ break;
147
+ }
148
+ }
149
+
150
+ if (isset ($_POST['TB_tagaction']) && isset ($_POST['TB_doaction'])) {
151
+ // do tags update
152
+
153
+ check_admin_referer('ngg_form-tags');
154
+
155
+ // get the images list
156
+ $pic_ids = explode(",", $_POST['TB_imagelist']);
157
+ $taglist = explode(",", $_POST['taglist']);
158
+ $taglist = array_map('trim', $taglist);
159
+ $slugarray = array_map('sanitize_title', $taglist);
160
+
161
+ // load tag list
162
+ $nggTags = new ngg_Tags();
163
+
164
+ foreach($pic_ids as $pic_id) {
165
+
166
+ // which action should be performed ?
167
+ switch ($_POST['TB_tagaction']) {
168
+ case 0;
169
+ // No action
170
+ break;
171
+ case 7:
172
+ // Overwrite tags
173
+ // remove all binding
174
+ $wpdb->query("DELETE FROM $wpdb->nggpic2tags WHERE picid = '$pic_id'");
175
+ // and add now the new tags
176
+ case 5:
177
+ // Add / append tags
178
+ foreach($taglist as $tag) {
179
+ // get the tag id
180
+ $tagid = $nggTags->add_tag($tag);
181
+ if ( $tagid )
182
+ $nggTags->add_relationship($pic_id, $tagid);
183
+ }
184
+ break;
185
+ case 6:
186
+ // Delete tags
187
+ $nggTags->remove_relationship($pic_id, $slugarray, false);
188
+ break;
189
+ }
190
+ }
191
+
192
+ // remove not longer used tag
193
+ $nggTags->remove_unused_tags();
194
+
195
+ nggallery::show_message(__('Tags changed',"nggallery"));
196
+ }
197
+
198
+ if (isset ($_POST['updatepictures'])) {
199
+ // Update pictures
200
+
201
+ check_admin_referer('ngg_updategallery');
202
+
203
+ $gallery_title = attribute_escape($_POST['title']);
204
+ $gallery_path = attribute_escape($_POST['path']);
205
+ $gallery_desc = attribute_escape($_POST['gallerydesc']);
206
+ $gallery_pageid = attribute_escape($_POST['pageid']);
207
+ $gallery_preview = attribute_escape($_POST['previewpic']);
208
+
209
+ $result = $wpdb->query("UPDATE $wpdb->nggallery SET title= '$gallery_title', path= '$gallery_path', galdesc = '$gallery_desc', pageid = '$gallery_pageid', previewpic = '$gallery_preview' WHERE gid = '$act_gid'");
210
+ if ($showTags)
211
+ $result = ngg_update_tags(attribute_escape($_POST['tags']));
212
+ else
213
+ $result = ngg_update_pictures(attribute_escape($_POST['description']), attribute_escape($_POST['alttext']), attribute_escape($_POST['exclude']), $act_gid );
214
+
215
+ nggallery::show_message(__('Update successful',"nggallery"));
216
+ }
217
+
218
+ if (isset ($_POST['scanfolder'])) {
219
+ // Rescan folder
220
+ check_admin_referer('ngg_updategallery');
221
+
222
+ $gallerypath = $wpdb->get_var("SELECT path FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
223
+ nggAdmin::import_gallery($gallerypath);
224
+ }
225
+
226
+ if (isset ($_POST['addnewpage'])) {
227
+ // Add a new page
228
+
229
+ check_admin_referer('ngg_updategallery');
230
+
231
+ $parent_id = attribute_escape($_POST['parent_id']);
232
+ $gallery_title = attribute_escape($_POST['title']);
233
+ $gallery_name = $wpdb->get_var("SELECT name FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
234
+
235
+ // Create a WP page
236
+ global $user_ID;
237
+
238
+ $page['post_type'] = 'page';
239
+ $page['post_content'] = '[gallery='.$act_gid.']';
240
+ $page['post_parent'] = $parent_id;
241
+ $page['post_author'] = $user_ID;
242
+ $page['post_status'] = 'publish';
243
+ $page['post_title'] = $gallery_title == '' ? $gallery_name : $gallery_title;
244
+
245
+ $gallery_pageid = wp_insert_post ($page);
246
+ if ($gallery_pageid != 0) {
247
+ $result = $wpdb->query("UPDATE $wpdb->nggallery SET title= '$gallery_title', pageid = '$gallery_pageid' WHERE gid = '$act_gid'");
248
+ $messagetext = '<font color="green">'.__('New gallery page ID','nggallery'). ' ' . $pageid . ' -> <strong>' . $gallery_title . '</strong> ' .__('created','nggallery').'</font>';
249
+ }
250
+ }
251
+
252
+ if (isset ($_POST['backToGallery'])) {
253
+ $mode = 'edit';
254
+ }
255
+
256
+ // show sort order
257
+ if ( ($mode == 'sort') || isset ($_POST['sortGallery'])) {
258
+ $mode = 'sort';
259
+ include_once (dirname (__FILE__). '/sort.php');
260
+ nggallery_sortorder($act_gid);
261
+ return;
262
+ }
263
+
264
+ // message windows
265
+ if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
266
+
267
+ if (($mode == '') or ($mode == "main"))
268
+ nggallery_manage_gallery_main();
269
+
270
+ if ($mode == 'edit')
271
+ nggallery_picturelist($hideThumbs,$showTags);
272
+
273
+ }//nggallery_admin_manage_gallery
274
+
275
+ function nggallery_manage_gallery_main() {
276
+ // *** show main gallery list
277
+
278
+ global $wpdb;
279
+
280
+ ?>
281
+ <script type="text/javascript"> var tb_pathToImage = '<?php echo NGGALLERY_URLPATH ?>thickbox/loadingAnimationv3.gif';</script>
282
+ <div class="wrap">
283
+ <h2><?php _e('Gallery Overview', 'nggallery') ?></h2>
284
+ <br style="clear: both;"/>
285
+ <table class="widefat">
286
+ <thead>
287
+ <tr>
288
+ <th scope="col" ><?php _e('ID') ?></th>
289
+ <th scope="col" ><?php _e('Gallery name', 'nggallery') ?></th>
290
+ <th scope="col" ><?php _e('Title', 'nggallery') ?></th>
291
+ <th scope="col" ><?php _e('Description', 'nggallery') ?></th>
292
+ <th scope="col" ><?php _e('Page ID', 'nggallery') ?></th>
293
+ <th scope="col" ><?php _e('Quantity', 'nggallery') ?></th>
294
+ <th scope="col" ><?php _e('Action'); ?></th>
295
+ </tr>
296
+ </thead>
297
+ <tbody>
298
+ <?php
299
+ $gallerylist = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ORDER BY gid ASC");
300
+ if($gallerylist) {
301
+ foreach($gallerylist as $gallery) {
302
+ $class = ( $class == 'class="alternate"' ) ? '' : 'class="alternate"';
303
+ $gid = $gallery->gid;
304
+ $counter = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures WHERE galleryid = '$gid'");
305
+ ?>
306
+ <tr id="gallery-<?php echo $gid ?>" <?php echo $class; ?> >
307
+ <th scope="row"><?php echo $gid; ?></th>
308
+ <td><?php echo $gallery->name; ?></td>
309
+ <td><?php echo $gallery->title; ?></td>
310
+ <td><?php echo $gallery->galdesc; ?></td>
311
+ <td><?php echo $gallery->pageid; ?></td>
312
+ <td><?php echo $counter; ?></td>
313
+ <td><a href="<?php echo wp_nonce_url("admin.php?page=nggallery-manage-gallery&amp;mode=edit&amp;gid=".$gid, 'ngg_editgallery')?>" class='edit'> <?php _e('Edit') ?></a>
314
+ | <a href="<?php echo wp_nonce_url("admin.php?page=nggallery-manage-gallery&amp;mode=delete&amp;gid=".$gid, 'ngg_editgallery')?>" class="delete" onclick="javascript:check=confirm( '<?php _e("Delete this gallery ?",'nggallery')?>');if(check==false) return false;"><?php _e('Delete') ?></a></td>
315
+ </tr>
316
+ <?php
317
+ }
318
+ } else {
319
+ echo '<tr><td colspan="7" align="center"><strong>'.__('No entries found','nggallery').'</strong></td></tr>';
320
+ }
321
+ ?>
322
+ </tbody>
323
+ </table>
324
+ </div>
325
+ <?php
326
+ } //nggallery_manage_gallery_main
327
+
328
+ function nggallery_picturelist($hideThumbs = false,$showTags = false) {
329
+ // *** show picture list
330
+ global $wpdb;
331
+
332
+ // GET variables
333
+ $act_gid = trim(attribute_escape($_GET['gid']));
334
+
335
+ // get the options
336
+ $ngg_options=get_option('ngg_options');
337
+
338
+ //TODO:A unique gallery call must provide me with this information, like $gallery = new nggGallery($id);
339
+
340
+ // get gallery values
341
+ $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$act_gid' ");
342
+
343
+ // set gallery url
344
+ $act_gallery_url = get_option ('siteurl')."/".$act_gallery->path."/";
345
+ $act_thumbnail_url = get_option ('siteurl')."/".$act_gallery->path.nggallery::get_thumbnail_folder($act_gallery->path, FALSE);
346
+ $act_thumb_prefix = nggallery::get_thumbnail_prefix($act_gallery->path, FALSE);
347
+
348
+ ?>
349
+
350
+ <script type="text/javascript">
351
+ function enterTags(form) {
352
+
353
+ var elementlist = "";
354
+ for (i = 0, n = form.elements.length; i < n; i++) {
355
+ if(form.elements[i].type == "checkbox") {
356
+ if(form.elements[i].name == "doaction[]")
357
+ if(form.elements[i].checked == true)
358
+ if (elementlist == "")
359
+ elementlist = form.elements[i].value
360
+ else
361
+ elementlist += "," + form.elements[i].value ;
362
+ }
363
+ }
364
+ jQuery("#TB_tagaction").val(jQuery("#bulkaction").val());
365
+ jQuery("#TB_imagelist").val(elementlist);
366
+ // console.log (jQuery("#TB_imagelist").val());
367
+ jQuery.tb_show("", "#TB_inline?width=640&height=110&inlineId=tags&modal=true", false);
368
+ }
369
+ </script>
370
+ <script type="text/javascript"> var tb_pathToImage = '<?php echo NGGALLERY_URLPATH ?>thickbox/loadingAnimationv3.gif';</script>
371
+ <script type="text/javascript">
372
+ <!--
373
+ function checkAll(form)
374
+ {
375
+ for (i = 0, n = form.elements.length; i < n; i++) {
376
+ if(form.elements[i].type == "checkbox") {
377
+ if(form.elements[i].name == "doaction[]") {
378
+ if(form.elements[i].checked == true)
379
+ form.elements[i].checked = false;
380
+ else
381
+ form.elements[i].checked = true;
382
+ }
383
+ }
384
+ }
385
+ }
386
+
387
+ function getNumChecked(form)
388
+ {
389
+ var num = 0;
390
+ for (i = 0, n = form.elements.length; i < n; i++) {
391
+ if(form.elements[i].type == "checkbox") {
392
+ if(form.elements[i].name == "doaction[]")
393
+ if(form.elements[i].checked == true)
394
+ num++;
395
+ }
396
+ }
397
+ return num;
398
+ }
399
+ //-->
400
+ </script>
401
+ <div class="wrap">
402
+ <h2><?php _e('Gallery', 'nggallery') ?> : <?php echo $act_gallery->title; ?></h2>
403
+ <p id="ngg-inlinebutton">
404
+ <input type="submit" class="button-secondary" title="<?php _e('Edit gallery', 'nggallery') ?>" value="<?php _e('Edit gallery', 'nggallery') ?>" onclick="jQuery('#manage-gallery').toggle()" />
405
+ </p>
406
+
407
+ <form id="updategallery" method="POST" action="<?php echo 'admin.php?page=nggallery-manage-gallery&amp;mode=edit&amp;gid='.$act_gid ?>" accept-charset="utf-8">
408
+ <?php wp_nonce_field('ngg_updategallery') ?>
409
+
410
+ <?php if ($showTags) { ?><input type="hidden" name="showTags" value="true" /><?php } ?>
411
+ <?php if ($hideThumbs) { ?><input type="hidden" name="hideThumbs" value="true" /><?php } ?>
412
+ <div id="manage-gallery" style="display:none;">
413
+ <table class="form-table" >
414
+ <tr>
415
+ <th align="left"><?php _e('Title') ?>:</th>
416
+ <th align="left"><input type="text" size="50" name="title" value="<?php echo $act_gallery->title; ?>" /></th>
417
+ <th align="right"><?php _e('Page Link to', 'nggallery') ?>:</th>
418
+ <th align="left">
419
+ <select name="pageid" style="width:95%">
420
+ <option value="0" ><?php _e('Not linked', 'nggallery') ?></option>
421
+ <?php
422
+ $pageids = get_all_page_ids();
423
+ foreach($pageids as $pageid) {
424
+ $post= get_post($pageid);
425
+ if ($pageid == $act_gallery->pageid) $selected = 'selected="selected" ';
426
+ else $selected = '';
427
+ echo '<option value="'.$pageid.'" '.$selected.'>'.$post->post_title.'</option>'."\n";
428
+ }
429
+ ?>
430
+ </select>
431
+ </th>
432
+ </tr>
433
+ <tr>
434
+ <th align="left"><?php _e('Description') ?>:</th>
435
+ <th align="left"><textarea name="gallerydesc" cols="30" rows="3" style="width: 95%" ><?php echo $act_gallery->galdesc; ?></textarea></th>
436
+ <th align="right"><?php _e('Preview image', 'nggallery') ?>:</th>
437
+ <th align="left">
438
+ <select name="previewpic" >
439
+ <option value="0" ><?php _e('No Picture', 'nggallery') ?></option>
440
+ <?php
441
+ $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$act_gid' ORDER BY $ngg_options[galSort] $ngg_options[galSortDir]");
442
+ if(is_array($picturelist)) {
443
+ foreach($picturelist as $picture) {
444
+ if ($picture->pid == $act_gallery->previewpic) $selected = 'selected="selected" ';
445
+ else $selected = '';
446
+ echo '<option value="'.$picture->pid.'" '.$selected.'>'.$picture->filename.'</option>'."\n";
447
+ }
448
+ }
449
+ ?>
450
+ </select>
451
+ </th>
452
+ </tr>
453
+ <tr>
454
+ <th align="left"><?php _e('Path', 'nggallery') ?>:</th>
455
+ <th align="left"><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="text" size="50" name="path" value="<?php echo $act_gallery->path; ?>" /></th>
456
+
457
+ <th align="right"><?php _e('Create new page', 'nggallery') ?>:</th>
458
+ <th align="left">
459
+ <select name="parent_id" style="width:95%">
460
+ <option value="0"><?php _e ('Main page (No parent)', 'nggallery'); ?></option>
461
+ <?php parent_dropdown ($group->page_id); ?>
462
+ </select>
463
+ <input type="submit" name="addnewpage" value="<?php _e ('Add page', 'nggallery'); ?>" id="group"/>
464
+ </th>
465
+ </tr>
466
+
467
+ </table>
468
+
469
+ <div class="submit">
470
+ <input type="submit" name="scanfolder" value="<?php _e("Scan Folder for new images",'nggallery')?> " />
471
+ <input type="submit" name="updatepictures" value="<?php _e("Save Changes",'nggallery')?> &raquo;" />
472
+ </div>
473
+
474
+ </div>
475
+ <br style="clear: both;"/>
476
+ <?php wp_nonce_field('ngg_updategallery') ?>
477
+ <div class="tablenav ngg-tablenav">
478
+ <div style="float: left;">
479
+ <select id="bulkaction" name="bulkaction">
480
+ <option value="0" ><?php _e("No action",'nggallery')?></option>
481
+ <?php if (!$showTags) { ?>
482
+ <option value="1" ><?php _e("Set watermark",'nggallery')?></option>
483
+ <option value="2" ><?php _e("Create new thumbnails",'nggallery')?></option>
484
+ <option value="3" ><?php _e("Resize images",'nggallery')?></option>
485
+ <option value="4" ><?php _e("Delete images",'nggallery')?></option>
486
+ <option value="8" ><?php _e("Import metadata",'nggallery')?></option>
487
+ <?php } else { ?>
488
+ <option value="5" ><?php _e("Add tags",'nggallery')?></option>
489
+ <option value="6" ><?php _e("Delete tags",'nggallery')?></option>
490
+ <option value="7" ><?php _e("Overwrite tags",'nggallery')?></option>
491
+ <?php } ?>
492
+ </select>
493
+
494
+ <?php if (!$showTags) { ?> <input class="button-secondary" type="submit" name="doaction" value="<?php _e("OK",'nggallery')?>" onclick="var numchecked = getNumChecked(document.getElementById('updategallery')); if(numchecked < 1) { alert('<?php echo js_escape(__("No images selected",'nggallery')); ?>'); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to start the bulk edit for %s images \n \n 'Cancel' to stop, 'OK' to proceed.",'nggallery')), "' + numchecked + '") ; ?>')" /><?php } else {?>
495
+ <input class="button-secondary" type="submit" name="showThickbox" value="<?php _e("OK",'nggallery')?>" onclick="enterTags(document.getElementById('updategallery')); return false;" /><?php } ?>
496
+ <?php if (!$hideThumbs) { ?> <input class="button-secondary" type="submit" name="togglethumbs" value="<?php _e("Hide thumbnails ",'nggallery')?>" /> <?php } else {?>
497
+ <input class="button-secondary" type="submit" name="togglethumbs" value="<?php _e("Show thumbnails ",'nggallery')?>" /><?php } ?>
498
+ <?php if (!$showTags) { ?><input class="button-secondary" type="submit" name="toggletags" value="<?php _e("Show tags",'nggallery')?>" /> <?php } else {?>
499
+ <input class="button-secondary" type="submit" name="toggletags" value="<?php _e("Hide tags",'nggallery')?>" /><?php } ?>
500
+ <?php if ($ngg_options['galSort'] == "sortorder") { ?>
501
+ <input class="button-secondary" type="submit" name="sortGallery" value="<?php _e("Sort gallery",'nggallery')?>" />
502
+ <?php } ?>
503
+ </div>
504
+ <span style="float:right;"><input type="submit" name="updatepictures" class="button-secondary" value="<?php _e("Save Changes",'nggallery')?> &raquo;" /></span>
505
+ </div>
506
+ <br style="clear: both;"/>
507
+ <table id="ngg-listimages" class="widefat" >
508
+ <thead>
509
+ <tr>
510
+ <th scope="col" class="check-column" ><input name="checkall" type="checkbox" onclick="checkAll(document.getElementById('updategallery'));" /></th>
511
+ <th scope="col" style="text-align: center"><?php _e('ID') ?></th>
512
+ <th scope="col" style="text-align: center"><?php _e('File name', 'nggallery') ?></th>
513
+ <?php if (!$hideThumbs) { ?>
514
+ <th scope="col" style="text-align: center"><?php _e('Thumbnail', 'nggallery') ?></th>
515
+ <?php } ?>
516
+ <?php if (!$showTags) { ?>
517
+ <th scope="col" style="text-align: center"><?php _e('Description', 'nggallery') ?></th>
518
+ <th scope="col" style="text-align: center"><?php _e('Alt &amp; Title Text', 'nggallery') ?></th>
519
+ <th scope="col" style="text-align: center"><?php _e('exclude', 'nggallery') ?></th>
520
+ <?php } else {?>
521
+ <th scope="col" style="width:70%"><?php _e('Tags (comma separated list)', 'nggallery') ?></th>
522
+ <?php } ?>
523
+ <th scope="col" colspan="3" style="text-align: center"><?php _e('Action') ?></th>
524
+ </tr>
525
+ </thead>
526
+ <tbody>
527
+ <?php
528
+ // load tags
529
+ if ($showTags) $nggTags = new ngg_Tags();
530
+ if($picturelist) {
531
+ foreach($picturelist as $picture) {
532
+ //TODO: Ajax delete version , looks better
533
+ //TODO: Use effect for inactive pic : style="filter:alpha(opacity=30); -moz-opacity:0.3"
534
+
535
+ $pid = $picture->pid;
536
+ $class = ( $class == 'class="alternate"' ) ? '' : 'class="alternate"';
537
+ $exclude = ( $picture->exclude ) ? 'checked="checked"' : '';
538
+
539
+ ?>
540
+ <tr id="picture-<?php echo $pid ?>" <?php echo $class ?> style="text-align:center">
541
+ <td class="check-column"><input name="doaction[]" type="checkbox" value="<?php echo $pid ?>" /></td>
542
+ <th scope="row" style="text-align: center"><?php echo $pid ?></th>
543
+ <td class="media-icon" ><?php echo $picture->filename ?></td>
544
+ <?php if (!$hideThumbs) { ?>
545
+ <td><img class="thumb" src="<?php echo $act_thumbnail_url.$act_thumb_prefix.$picture->filename ?>" /></td>
546
+ <?php } ?>
547
+ <?php if (!$showTags) { ?>
548
+ <td><textarea name="description[<?php echo $pid ?>]" class="textarea1" cols="30" rows="3" ><?php echo stripslashes($picture->description) ?></textarea></td>
549
+ <td><input name="alttext[<?php echo $pid ?>]" type="text" size="20" value="<?php echo stripslashes($picture->alttext) ?>" /></td>
550
+ <td><input name="exclude[<?php echo $pid ?>]" type="checkbox" value="1" <?php echo $exclude ?> /></td>
551
+ <?php } else {?>
552
+ <td ><input name="tags[<?php echo $pid ?>]" type="text" style="width:95%" value="<?php echo $nggTags->get_tags_from_image($pid); ?>" /></td>
553
+ <?php } ?>
554
+ <td><a href="<?php echo $act_gallery_url.$picture->filename ?>" class="thickbox" title="<?php echo $picture->alttext ?>" ><?php _e('View') ?></a></td>
555
+ <td><a href="<?php echo NGGALLERY_URLPATH."admin/showmeta.php?id=".$pid ?>" class="thickbox" title="<?php _e("Show Meta data",'nggallery')?>" ><?php _e('Meta') ?></a></td>
556
+ <td><a href="<?php echo wp_nonce_url("admin.php?page=nggallery-manage-gallery&amp;mode=delpic&amp;gid=".$act_gid."&amp;pid=".$pid, 'ngg_delpicture')?>" class="delete" onclick="javascript:check=confirm( '<?php _e("Delete this file ?",'nggallery')?>');if(check==false) return false;" ><?php _e('Delete') ?></a></td>
557
+ </tr>
558
+ <?php
559
+ }
560
+ } else {
561
+ echo '<tr><td colspan="8" align="center"><strong>'.__('No entries found','nggallery').'</strong></td></tr>';
562
+ }
563
+ ?>
564
+
565
+ </tbody>
566
+ </table>
567
+ <p class="submit"><input type="submit" name="updatepictures" value="<?php _e("Save Changes",'nggallery')?> &raquo;" /></p>
568
+ </form>
569
+ <br class="clear"/>
570
+ </div><!-- /#wrap -->
571
+
572
+ <!-- #entertags -->
573
+ <div id="tags" style="display: none;" >
574
+ <form id="form-tags" method="POST" accept-charset="utf-8">
575
+ <?php wp_nonce_field('ngg_form-tags') ?>
576
+ <?php if ($showTags) { ?><input type="hidden" name="showTags" value="true" /><?php } ?>
577
+ <?php if ($hideThumbs) { ?><input type="hidden" name="hideThumbs" value="true" /><?php } ?>
578
+ <input type="hidden" id="TB_imagelist" name="TB_imagelist" value="" />
579
+ <input type="hidden" id="TB_tagaction" name="TB_tagaction" value="" />
580
+ <table width="100%" border="0" cellspacing="3" cellpadding="3" >
581
+ <tr>
582
+ <th><?php _e("Enter the tags",'nggallery')?> : <input name="taglist" type="text" style="width:99%" value="" /></td>
583
+ </tr>
584
+ <tr align="right">
585
+ <td class="submit"><input type="submit" name="TB_doaction" value="<?php _e("OK",'nggallery')?>" onclick="var numchecked = getNumChecked(document.getElementById('updategallery')); if(numchecked < 1) { alert('<?php echo js_escape(__("No images selected",'nggallery')); ?>'); jQuery.tb_remove(); return false } return confirm('<?php echo sprintf(js_escape(__("You are about to start the bulk edit for %s images \n \n 'Cancel' to stop, 'OK' to proceed.",'nggallery')), "' + numchecked + '") ; ?>')" />&nbsp;<input type="reset" value="&nbsp;<?php _e("Cancel",'nggallery')?>&nbsp;" onclick="jQuery.tb_remove()"/></td>
586
+ </tr>
587
+ </table>
588
+ </form>
589
+ </div>
590
+ <!-- /#entertags -->
591
+
592
+ <?php
593
+
594
+ } //nggallery_pciturelist
595
+
596
+ /**************************************************************************/
597
+ function ngg_update_pictures( $nggdescription, $nggalttext, $nggexclude, $nggalleryid ) {
598
+ // update all pictures
599
+
600
+ global $wpdb;
601
+
602
+ if (is_array($nggdescription)) {
603
+ foreach($nggdescription as $key=>$value) {
604
+ $desc = $wpdb->escape($value);
605
+ $result=$wpdb->query( "UPDATE $wpdb->nggpictures SET description = '$desc' WHERE pid = $key");
606
+ if($result) $update_ok = $result;
607
+ }
608
+ }
609
+ if (is_array($nggalttext)){
610
+ foreach($nggalttext as $key=>$value) {
611
+ $alttext = $wpdb->escape($value);
612
+ $result=$wpdb->query( "UPDATE $wpdb->nggpictures SET alttext = '$alttext' WHERE pid = $key");
613
+ if($result) $update_ok = $result;
614
+ }
615
+ }
616
+
617
+ $nggpictures = $wpdb->get_results("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$nggalleryid'");
618
+
619
+ if (is_array($nggpictures)){
620
+ foreach($nggpictures as $picture){
621
+ if (is_array($nggexclude)){
622
+ if (array_key_exists($picture->pid, $nggexclude)) {
623
+ $result=$wpdb->query("UPDATE $wpdb->nggpictures SET exclude = 1 WHERE pid = '$picture->pid'");
624
+ if($result) $update_ok = $result;
625
+ }
626
+ else {
627
+ $result=$wpdb->query("UPDATE $wpdb->nggpictures SET exclude = 0 WHERE pid = '$picture->pid'");
628
+ if($result) $update_ok = $result;
629
+ }
630
+ } else {
631
+ $result=$wpdb->query("UPDATE $wpdb->nggpictures SET exclude = 0 WHERE pid = '$picture->pid'");
632
+ if($result) $update_ok = $result;
633
+ }
634
+ }
635
+ }
636
+
637
+ return $update_ok;
638
+ }
639
+
640
+ /**************************************************************************/
641
+ function ngg_update_tags( $taglist ) {
642
+ // update all tags
643
+ //TODO:Move to class nggTags
644
+
645
+ global $wpdb;
646
+
647
+ // load tag list
648
+ $nggTags = new ngg_Tags();
649
+
650
+ // the taglist contain as key the pic_id
651
+ if (is_array($taglist)){
652
+ foreach($taglist as $key=>$value) {
653
+
654
+ // First, get all of the original tags
655
+ $nggTags->get_tags_from_image($key);
656
+
657
+ $tags = explode(",", $value);
658
+ $new_slugarray = array();
659
+
660
+ foreach($tags as $tag) {
661
+ if ( !empty($tag) ) {
662
+ // create the slug
663
+ $tag = trim($tag);
664
+ $slug = sanitize_title($tag);
665
+ // do not proceed empty slugs
666
+ if ( !empty($slug) ) {
667
+ $new_slugarray[] = $slug;
668
+ // look if we have a new tag in POST
669
+ if (!in_array($slug, $nggTags->img_slugs )) {
670
+ $tagid = $nggTags->add_tag($tag);
671
+ $nggTags->add_relationship($key, $tagid);
672
+ // add now to image list
673
+ $nggTags->img_slugs[] = $slug;
674
+ }
675
+ }
676
+ }
677
+ }
678
+
679
+ //do we need to remove some tags?
680
+ $delete_tags = array_diff($nggTags->img_slugs, $new_slugarray);
681
+ $nggTags->remove_relationship($key, $delete_tags, TRUE);
682
+ }
683
+
684
+ // remove not longer used tag
685
+ $nggTags->remove_unused_tags();
686
+ }
687
+
688
+ return;
689
+ }
690
+
691
+ ?>
admin/wp25/media-upload.php ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @title Add action/filter for the upload tab
5
+ * @author Alex Rabe
6
+ * @copyright 2008
7
+ */
8
+
9
+ function ngg_wp_upload_tabs ($tabs) {
10
+
11
+ $newtab = array('nextgen' => __('NextGEN Gallery','nggallery'));
12
+
13
+ return array_merge($tabs,$newtab);
14
+ }
15
+
16
+ add_filter('media_upload_tabs', 'ngg_wp_upload_tabs');
17
+
18
+ function media_upload_nextgen() {
19
+
20
+ // Generate TinyMCE HTML output
21
+ if ( isset($_POST['send']) ) {
22
+ $keys = array_keys($_POST['send']);
23
+ $send_id = (int) array_shift($keys);
24
+ $image = $_POST['image'][$send_id];
25
+ $alttext = stripslashes($image['alttext']);
26
+ $description = stripslashes($image['description']);
27
+ $thumbcode = nggallery::get_thumbcode("");
28
+ $class="ngg-singlepic ngg-{$image['align']}";
29
+ // Build output
30
+ $html = "<img src='{$image['thumb']}' alt='$alttext' class='$class' />";
31
+ $html = "<a $thumbcode href='{$image['url']}' title='$description'>$html</a>";
32
+ media_upload_nextgen_save_image();
33
+ // Return it to TinyMCE
34
+ return media_send_to_editor($html);
35
+ }
36
+
37
+ // Save button
38
+ if ( isset($_POST['save']) ) {
39
+ media_upload_nextgen_save_image();
40
+ }
41
+
42
+ return wp_iframe( 'media_upload_nextgen_form', $errors );
43
+ }
44
+
45
+ add_action('media_upload_nextgen', 'media_upload_nextgen');
46
+ add_action('admin_head_media_upload_nextgen_form', 'media_admin_css');
47
+
48
+ function media_upload_nextgen_save_image() {
49
+
50
+ global $wpdb;
51
+
52
+ check_admin_referer('ngg-media-form');
53
+
54
+ if ( !empty($_POST['image']) ) foreach ( $_POST['image'] as $image_id => $image ) {
55
+
56
+ // Function save desription
57
+ $alttext = attribute_escape($image['alttext']);
58
+ $description = attribute_escape($image['description']);
59
+
60
+ $wpdb->query("UPDATE $wpdb->nggpictures SET alttext= '$alttext', description = '$description' WHERE pid = '$image_id'");
61
+
62
+ }
63
+ }
64
+
65
+ function media_upload_nextgen_form($errors) {
66
+
67
+ global $wpdb, $wp_query, $wp_locale, $type, $tab, $post_mime_types;
68
+
69
+ $ngg_options = get_option('ngg_options');
70
+
71
+ media_upload_header();
72
+
73
+ $post_id = intval($_REQUEST['post_id']);
74
+ $galleryID = 0;
75
+ $total = 1;
76
+ $picarray = false;
77
+
78
+ $form_action_url = get_option('siteurl') . "/wp-admin/media-upload.php?type={$GLOBALS['type']}&tab=nextgen&post_id=$post_id";
79
+
80
+ // Get number of images in gallery
81
+ if ($_REQUEST['select_gal']){
82
+ $galleryID = (int) $_REQUEST['select_gal'];
83
+ $total = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures WHERE galleryid = '$galleryID'");
84
+ }
85
+
86
+ // Build navigation
87
+ $_GET['paged'] = intval($_GET['paged']);
88
+ if ( $_GET['paged'] < 1 )
89
+ $_GET['paged'] = 1;
90
+ $start = ( $_GET['paged'] - 1 ) * 10;
91
+ if ( $start < 1 )
92
+ $start = 0;
93
+
94
+ // Get the images
95
+ if ( $galleryID != 0 )
96
+ $picarray = $wpdb->get_col("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] $ngg_options[galSortDir] LIMIT $start, 10 ");
97
+
98
+ ?>
99
+
100
+ <form id="filter" action="" method="get">
101
+ <input type="hidden" name="type" value="<?php echo $type; ?>" />
102
+ <input type="hidden" name="tab" value="<?php echo $tab; ?>" />
103
+ <input type="hidden" name="post_id" value="<?php echo $post_id; ?>" />
104
+
105
+ <div class="tablenav">
106
+ <?php
107
+ $page_links = paginate_links( array(
108
+ 'base' => add_query_arg( 'paged', '%#%' ),
109
+ 'format' => '',
110
+ 'total' => ceil($total / 10),
111
+ 'current' => $_GET['paged']
112
+ ));
113
+
114
+ if ( $page_links )
115
+ echo "<div class='tablenav-pages'>$page_links</div>";
116
+ ?>
117
+
118
+ <div class="alignleft">
119
+ <select id="select_gal" name="select_gal">;
120
+ <option value="0" <?php selected('0', $galleryID); ?> ><?php _e('No gallery',"nggallery"); ?></option>
121
+ <?php
122
+ // Show gallery selection
123
+ $gallerylist = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ORDER BY gid ASC");
124
+ if(is_array($gallerylist)) {
125
+ foreach($gallerylist as $gallery) {
126
+ $selected = ($gallery->gid == $galleryID )? ' selected="selected"' : "";
127
+ echo '<option value="'.$gallery->gid.'"'.$selected.' >'.$gallery->name.' | '.$gallery->title.'</option>'."\n";
128
+ }
129
+ }
130
+ ?>
131
+ </select>
132
+ <input type="submit" id="show-gallery" value="<?php _e('Select Gallery &#187;','nggallery'); ?>" class="button-secondary" />
133
+ </div>
134
+ <br style="clear:both;" />
135
+ </div>
136
+ </form>
137
+
138
+ <form enctype="multipart/form-data" method="post" action="<?php echo attribute_escape($form_action_url); ?>" class="media-upload-form" id="library-form">
139
+
140
+ <?php wp_nonce_field('ngg-media-form'); ?>
141
+
142
+ <script type="text/javascript">
143
+ <!--
144
+ jQuery(function($){
145
+ var preloaded = $(".media-item.preloaded");
146
+ if ( preloaded.length > 0 ) {
147
+ preloaded.each(function(){prepareMediaItem({id:this.id.replace(/[^0-9]/g, '')},'');});
148
+ updateMediaForm();
149
+ }
150
+ });
151
+ -->
152
+ </script>
153
+
154
+ <div id="media-items">
155
+ <?php
156
+ if(is_array($picarray)) {
157
+ foreach ($picarray as $picid) {
158
+ //TODO:Reduce SQL Queries
159
+ $picture = new nggImage($picid);
160
+ ?>
161
+ <div id='media-item-<?php echo $picid ?>' class='media-item preloaded'>
162
+ <div class='filename'></div>
163
+ <img class='pinkynail toggle' alt='<?php echo stripslashes($picture->alttext) ?>' src='<?php echo $picture->thumbPath ?>' />
164
+ <a class='toggle describe-toggle-on' href='#'><?php _e('Show',"nggallery") ?></a>
165
+ <a class='toggle describe-toggle-off' href='#'><?php _e('Hide',"nggallery") ?></a>
166
+ <div class='filename new'><?php echo $picture->filename ?></div>
167
+ <table class='slidetoggle describe startclosed'><tbody>
168
+ <tr>
169
+ <td class='A1B1' rowspan='4'><img class='thumbnail' alt='<?php echo $picture->alttext ?>' src='<?php echo $picture->thumbPath ?>'/></td>
170
+ <td><?php _e('Image ID:',"nggallery") ?><?php echo $picid ?></td>
171
+ </tr>
172
+ <tr><td><?php echo $picture->filename ?></td></tr>
173
+ <tr><td><?php echo stripslashes($picture->alttext) ?></td></tr>
174
+ <tr><td>&nbsp;</td></tr>
175
+ <tr>
176
+ <td class="label"><label for="image[<?php echo $picid ?>][alttext]"><?php _e("Alt/Titel text","nggallery") ?></label></td>
177
+ <td class="field"><input id="image[<?php echo $picid ?>][alttext]" name="image[<?php echo $picid ?>][alttext]" value="<?php echo stripslashes($picture->alttext) ?>" type="text"/></td>
178
+ </tr>
179
+ <tr>
180
+ <td class="label"><label for="image[<?php echo $picid ?>][description]"><?php _e("Description","nggallery") ?></label></td>
181
+ <td class="field"><textarea name="image[<?php echo $picid ?>][description]" id="image[<?php echo $picid ?>][description]"><?php echo stripslashes($picture->description) ?></textarea></td>
182
+ </tr>
183
+ <tr class="align">
184
+ <td class="label"><label for="image[<?php echo $picid ?>][align]"><?php _e("Alignment") ?></label></td>
185
+ <td class="field">
186
+ <input name="image[<?php echo $picid ?>][align]" id="image-align-none-<?php echo $picid ?>" value="none" type="radio" />
187
+ <label for="image-align-none-<?php echo $picid ?>" class="align image-align-none-label"><?php _e("None") ?></label>
188
+ <input name="image[<?php echo $picid ?>][align]" id="image-align-left-<?php echo $picid ?>" value="left" type="radio" />
189
+ <label for="image-align-left-<?php echo $picid ?>" class="align image-align-left-label"><?php _e("Left") ?></label>
190
+ <input name="image[<?php echo $picid ?>][align]" id="image-align-center-<?php echo $picid ?>" value="center" type="radio" />
191
+ <label for="image-align-center-<?php echo $picid ?>" class="align image-align-center-label"><?php _e("Center") ?></label>
192
+ <input name="image[<?php echo $picid ?>][align]" id="image-align-right-<?php echo $picid ?>" value="right" type="radio" />
193
+ <label for="image-align-right-<?php echo $picid ?>" class="align image-align-right-label"><?php _e("Right") ?></label>
194
+ </td>
195
+ </tr>
196
+ <tr class="submit">
197
+ <td>
198
+ <input type="hidden" name="image[<?php echo $picid ?>][thumb]" value="<?php echo $picture->thumbPath ?>" />
199
+ <input type="hidden" name="image[<?php echo $picid ?>][url]" value="<?php echo $picture->imagePath ?>" />
200
+ </td>
201
+ <td class="savesend"><button type="submit" class="button" value="1" name="send[<?php echo $picid ?>]"><?php echo attribute_escape(__('Insert into Post')) ?></button></td>
202
+ </tr>
203
+ </tbody></table>
204
+ </div>
205
+ <?php
206
+ }
207
+ }
208
+ ?>
209
+ </div>
210
+ <input type="submit" class="button savebutton" name="save" value="<?php _e('Save all changes','nggallery'); ?>" />
211
+ <input type="hidden" name="post_id" id="post_id" value="<?php echo $post_id; ?>" />
212
+ <input type="hidden" name="select_gal" id="select_gal" value="<?php echo $galleryID; ?>" />
213
+ </form>
214
+
215
+ <?php
216
+ }
217
+
218
+ ?>
admin/wp25/overview.php ADDED
@@ -0,0 +1,413 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
+
4
+ /**
5
+ * nggallery_admin_overview()
6
+ *
7
+ * Add the admin overview wp.25 style
8
+ * @return mixed content
9
+ */
10
+
11
+ function nggallery_admin_overview() {
12
+ global $wpdb;
13
+
14
+ // get feed_messages
15
+ require_once(ABSPATH . WPINC . '/rss.php');
16
+
17
+ // init PluginChecker
18
+ $nggCheck = new CheckPlugin();
19
+ $nggCheck->URL = NGGURL;
20
+ $nggCheck->version = NGGVERSION;
21
+ $nggCheck->name = "ngg";
22
+ ?>
23
+ <div class="wrap ngg-wrap">
24
+ <h2><?php _e('NextGEN Gallery Overview', 'nggallery') ?></h2>
25
+ <br class="clear"/>
26
+ <?php if ( $nggCheck->startCheck() && (!IS_WPMU) ) { ?>
27
+ <div id="newversion">
28
+ <h3 class="dashboard-widget-title"><?php _e('New Version available', 'nggallery') ?> !!!</h3>
29
+ <div class="dashboard-widget-content"><?php _e('The server reports that a new NextGEN Gallery Version is now available. Please visit the plugin homepage for more information.', 'nggallery') ?>
30
+ <a href="http://wordpress.org/extend/plugins/nextgen-gallery/download/" target="_blank"> <?php _e('Download here', 'nggallery') ?> </a></div>
31
+ </div>
32
+ <?php } ?>
33
+ <div id="rightnow">
34
+ <h3 class="reallynow">
35
+ <span><?php _e('Welcome to NextGEN Gallery !', 'nggallery') ?></span>
36
+ <?php if(current_user_can('NextGEN Upload images')): ?><a class="rbutton" href="admin.php?page=nggallery-add-gallery"><strong><?php _e('Upload pictures', 'nggallery') ?></strong></a><?php endif; ?>
37
+ <?php if(current_user_can('NextGEN Manage gallery')): ?><a class="rbutton" href="admin.php?page=nggallery-manage-gallery"><?php _e('Manage galleries', 'nggallery') ?></a><?php endif; ?>
38
+ <br class="clear"/>
39
+ </h3>
40
+ <p class="youhave">
41
+ <?php
42
+ // get counter values
43
+ $replace = array
44
+ (
45
+ '<strong>'.$wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures").'</strong>',
46
+ '<strong>'.$wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggallery").'</strong>',
47
+ '<strong>'.$wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggalbum").'</strong>'
48
+ );
49
+ vprintf(__('There are totally %1$s pictures in %2$s galleries, which are spread across %3$s albums.', 'nggallery'), $replace);
50
+ ?>
51
+ </p>
52
+ <p>
53
+ <?php
54
+ $userlevel = '<strong>' . (current_user_can('manage_options') ? __('gallery administrator', 'nggallery') : __('gallery editor', 'nggallery')) . '</strong>';
55
+ printf(__('Here you can control your images, galleries and albums. You currently have %s rights.', 'nggallery'), $userlevel);
56
+ ?>
57
+ </p>
58
+ </div>
59
+ <br class="clear"/>
60
+ <div id="dashboard-widgets-wrap">
61
+ <div id="dashboard-widgets">
62
+ <div id="dashboard_primary" class="dashboard-widget-holder widget_rss wp_dashboard_empty">
63
+ <div class="ngg-dashboard-widget">
64
+ <h3 class="dashboard-widget-title"><?php _e('Latest News', 'nggallery') ?></h3>
65
+ <div class="dashboard-widget-content">
66
+ <?php
67
+ $rss = @fetch_rss('http://alexrabe.boelinger.com/?tag=nextgen-gallery&feed=rss2');
68
+
69
+ if ( isset($rss->items) && 0 != count($rss->items) )
70
+ {
71
+ $rss->items = array_slice($rss->items, 0, 4);
72
+ echo "<ul>";
73
+ foreach ($rss->items as $item)
74
+ {
75
+ ?>
76
+ <li><a class="rsswidget" title="" href='<?php echo wp_filter_kses($item['link']); ?>'><?php echo wp_specialchars($item['title']); ?></a><span class="rss-date"><?php echo date("F jS, Y", strtotime($item['pubdate'])); ?></span>
77
+ <div class="rssSummary"><strong><?php echo human_time_diff(strtotime($item['pubdate'], time())); ?></strong> - <?php echo $item['description']; ?></div></li>
78
+ <?php
79
+ }
80
+ echo "</ul>";
81
+ }
82
+ else
83
+ {
84
+ ?>
85
+ <p><?php printf(__('Newsfeed could not be loaded. Check the <a href="%s">front page</a> to check for updates.', 'nggallery'), 'http://alexrabe.boelinger.com/') ?></p>
86
+ <?php
87
+ }
88
+ ?>
89
+ </div>
90
+ </div>
91
+ </div>
92
+
93
+ <div id="dashboard_server_settings" class="dashboard-widget-holder wp_dashboard_empty">
94
+ <div class="ngg-dashboard-widget">
95
+ <?php if (IS_WPMU) {
96
+ if (wpmu_enable_function('wpmuQuotaCheck'))
97
+ echo ngg_SpaceManager::details();
98
+ else {
99
+ //TODO:WPMU message in WP2.5 style
100
+ echo ngg_SpaceManager::details();
101
+ }
102
+ } else { ?>
103
+ <h3 class="dashboard-widget-title" ><?php _e('Server Settings', 'nggallery') ?></h3>
104
+ <div class="dashboard-widget-content">
105
+ <ul class="settings">
106
+ <?php ngg_get_serverinfo(); ?>
107
+ </ul>
108
+ <?php ngg_gd_info(); ?>
109
+ </div>
110
+ <?php } ?>
111
+ </div>
112
+ </div>
113
+ </div>
114
+
115
+ <br style="clear: both" />
116
+ </div>
117
+ </div>
118
+ <?php
119
+ }
120
+
121
+ // ***************************************************************
122
+ function ngg_gd_info() {
123
+ if(function_exists("gd_info")){
124
+ echo '<h4>'.__('GD support', 'nggallery').'</h4><ul class="settings">';
125
+ $info = gd_info();
126
+ $keys = array_keys($info);
127
+ for($i=0; $i<count($keys); $i++) {
128
+ if(is_bool($info[$keys[$i]]))
129
+ echo "<li> " . $keys[$i] ." : <strong>" . ngg_gd_yesNo($info[$keys[$i]]) . "</strong></li>\n";
130
+ else
131
+ echo "<li> " . $keys[$i] ." : <strong>" . $info[$keys[$i]] . "</strong></li>\n";
132
+ }
133
+ }
134
+ else {
135
+ echo '<h4>'.__('No GD support', 'nggallery').'!</h4><ul>';
136
+ }
137
+ echo '</ul>';
138
+ }
139
+
140
+ // ***************************************************************
141
+ function ngg_gd_yesNo($bool){
142
+ if($bool) return __('Yes', 'nggallery');
143
+ else return __('No', 'nggallery');
144
+ }
145
+
146
+ // ***************************************************************
147
+ function ngg_get_serverinfo() {
148
+ // thx to GaMerZ for WP-ServerInfo
149
+ // http://www.lesterchan.net
150
+
151
+ global $wpdb;
152
+ // Get MYSQL Version
153
+ $sqlversion = $wpdb->get_var("SELECT VERSION() AS version");
154
+ // GET SQL Mode
155
+ $mysqlinfo = $wpdb->get_results("SHOW VARIABLES LIKE 'sql_mode'");
156
+ if (is_array($mysqlinfo)) $sql_mode = $mysqlinfo[0]->Value;
157
+ if (empty($sql_mode)) $sql_mode = __('Not set', 'nggallery');
158
+ // Get PHP Safe Mode
159
+ if(ini_get('safe_mode')) $safe_mode = __('On', 'nggallery');
160
+ else $safe_mode = __('Off', 'nggallery');
161
+ // Get PHP allow_url_fopen
162
+ if(ini_get('allow_url_fopen')) $allow_url_fopen = __('On', 'nggallery');
163
+ else $allow_url_fopen = __('Off', 'nggallery');
164
+ // Get PHP Max Upload Size
165
+ if(ini_get('upload_max_filesize')) $upload_max = ini_get('upload_max_filesize');
166
+ else $upload_max = __('N/A', 'nggallery');
167
+ // Get PHP Max Post Size
168
+ if(ini_get('post_max_size')) $post_max = ini_get('post_max_size');
169
+ else $post_max = __('N/A', 'nggallery');
170
+ // Get PHP Max execution time
171
+ if(ini_get('max_execution_time')) $max_execute = ini_get('max_execution_time');
172
+ else $max_execute = __('N/A', 'nggallery');
173
+ // Get PHP Memory Limit
174
+ if(ini_get('memory_limit')) $memory_limit = ini_get('memory_limit');
175
+ else $memory_limit = __('N/A', 'nggallery');
176
+ // Get actual memory_get_usage
177
+ if (function_exists('memory_get_usage')) $memory_usage = round(memory_get_usage() / 1024 / 1024, 2) . __(' MByte', 'nggallery');
178
+ else $memory_usage = __('N/A', 'nggallery');
179
+ // required for EXIF read
180
+ if (is_callable('exif_read_data')) $exif = __('Yes', 'nggallery'). " ( V" . substr(phpversion('exif'),0,4) . ")" ;
181
+ else $exif = __('No', 'nggallery');
182
+ // required for meta data
183
+ if (is_callable('iptcparse')) $iptc = __('Yes', 'nggallery');
184
+ else $iptc = __('No', 'nggallery');
185
+ // required for meta data
186
+ if (is_callable('xml_parser_create')) $xml = __('Yes', 'nggallery');
187
+ else $xml = __('No', 'nggallery');
188
+
189
+ ?>
190
+ <li><?php _e('Operating System', 'nggallery'); ?> : <strong><?php echo PHP_OS; ?></strong></li>
191
+ <li><?php _e('Server', 'nggallery'); ?> : <strong><?php echo $_SERVER["SERVER_SOFTWARE"]; ?></strong></li>
192
+ <li><?php _e('Memory usage', 'nggallery'); ?> : <strong><?php echo $memory_usage; ?></strong></li>
193
+ <li><?php _e('MYSQL Version', 'nggallery'); ?> : <strong><?php echo $sqlversion; ?></strong></li>
194
+ <li><?php _e('SQL Mode', 'nggallery'); ?> : <strong><?php echo $sql_mode; ?></strong></li>
195
+ <li><?php _e('PHP Version', 'nggallery'); ?> : <strong><?php echo PHP_VERSION; ?></strong></li>
196
+ <li><?php _e('PHP Safe Mode', 'nggallery'); ?> : <strong><?php echo $safe_mode; ?></strong></li>
197
+ <li><?php _e('PHP Allow URL fopen', 'nggallery'); ?> : <strong><?php echo $allow_url_fopen; ?></strong></li>
198
+ <li><?php _e('PHP Memory Limit', 'nggallery'); ?> : <strong><?php echo $memory_limit; ?></strong></li>
199
+ <li><?php _e('PHP Max Upload Size', 'nggallery'); ?> : <strong><?php echo $upload_max; ?></strong></li>
200
+ <li><?php _e('PHP Max Post Size', 'nggallery'); ?> : <strong><?php echo $post_max; ?></strong></li>
201
+ <li><?php _e('PHP Max Script Execute Time', 'nggallery'); ?> : <strong><?php echo $max_execute; ?>s</strong></li>
202
+ <li><?php _e('PHP Exif support', 'nggallery'); ?> : <strong><?php echo $exif; ?></strong></li>
203
+ <li><?php _e('PHP IPTC support', 'nggallery'); ?> : <strong><?php echo $iptc; ?></strong></li>
204
+ <li><?php _e('PHP XML support', 'nggallery'); ?> : <strong><?php echo $xml; ?></strong></li>
205
+ <?php
206
+ }
207
+
208
+ // ***************************************************************
209
+
210
+ /**
211
+ * WordPress PHP class to check for a new version.
212
+ * @author Alex Rabe & Joern Kretzschmar
213
+ * @orginal from Per S�derlind
214
+ *
215
+ // Dashboard update notification example
216
+ function myPlugin_update_dashboard() {
217
+ $Check = new CheckPlugin();
218
+ $Check->URL = "YOUR URL";
219
+ $Check->version = "1.00";
220
+ $Check->name = "myPlugin";
221
+ if ($Check->startCheck()) {
222
+ echo '<h3>Update Information</h3>';
223
+ echo '<p>A new version is available</p>';
224
+ }
225
+ }
226
+
227
+ add_action('activity_box_end', 'myPlugin_update_dashboard', '0');
228
+ *
229
+ */
230
+ if ( !class_exists( "CheckPlugin" ) ) {
231
+ class CheckPlugin {
232
+ /**
233
+ * URL with the version of the plugin
234
+ * @var string
235
+ */
236
+ var $URL = 'myURL';
237
+ /**
238
+ * Version of thsi programm or plugin
239
+ * @var string
240
+ */
241
+ var $version = '1.00';
242
+ /**
243
+ * Name of the plugin (will be used in the options table)
244
+ * @var string
245
+ */
246
+ var $name = 'myPlugin';
247
+ /**
248
+ * Waiting period until the next check in seconds
249
+ * @var int
250
+ */
251
+ var $period = 86400;
252
+
253
+ function startCheck() {
254
+ /**
255
+ * check for a new version, returns true if a version is avaiable
256
+ */
257
+
258
+ // use wordpress snoopy class
259
+ require_once(ABSPATH . WPINC . '/class-snoopy.php');
260
+
261
+ $check_intervall = get_option( $this->name."_next_update" );
262
+
263
+ if ( ($check_intervall < time() ) or (empty($check_intervall)) ) {
264
+ if (class_exists(snoopy)) {
265
+ $client = new Snoopy();
266
+ $client->agent = 'NextGEN Gallery Version Checker (+http://www.nextgen.boelinger.com/)';
267
+ $client->_fp_timeout = 10;
268
+ if (@$client->fetch($this->URL) === false) {
269
+ return false;
270
+ }
271
+
272
+ $remote = $client->results;
273
+
274
+ $server_version = unserialize($remote);
275
+ if (is_array($server_version)) {
276
+ if ( version_compare($server_version[$this->name], $this->version, '>') )
277
+ return true;
278
+ }
279
+
280
+ $check_intervall = time() + $this->period;
281
+ update_option( $this->name."_next_update", $check_intervall );
282
+ return false;
283
+ }
284
+ }
285
+ }
286
+ }
287
+ }
288
+ // ***************************************************************
289
+
290
+ /**
291
+ * WPMU feature taken from Z-Space Upload Quotas
292
+ * @author Dylan Reeve
293
+ * @url http://dylan.wibble.net/
294
+ *
295
+ */
296
+
297
+ class ngg_SpaceManager {
298
+
299
+ function getQuota() {
300
+ if (function_exists(get_space_allowed))
301
+ $quota = get_space_allowed();
302
+ else
303
+ $quota = get_site_option( "blog_upload_space" );
304
+
305
+ return $quota;
306
+ }
307
+
308
+ function details() {
309
+
310
+ // take default seetings
311
+ $settings = array(
312
+
313
+ 'remain' => array(
314
+ 'color_text' => 'white',
315
+ 'color_bar' => '#0D324F',
316
+ 'color_bg' => '#a0a0a0',
317
+ 'decimals' => 2,
318
+ 'unit' => 'm',
319
+ 'display' => true,
320
+ 'graph' => false
321
+ ),
322
+
323
+ 'used' => array(
324
+ 'color_text' => 'white',
325
+ 'color_bar' => '#0D324F',
326
+ 'color_bg' => '#a0a0a0',
327
+ 'decimals' => 2,
328
+ 'unit' => 'm',
329
+ 'display' => true,
330
+ 'graph' => true
331
+ )
332
+ );
333
+
334
+ $quota = ngg_SpaceManager::getQuota() * 1024 * 1024;
335
+ $used = get_dirsize( constant( "ABSPATH" ) . constant( "UPLOADS" ) );
336
+ // $used = get_dirsize( ABSPATH."wp-content/blogs.dir/".$blog_id."/files" );
337
+
338
+ if ($used > $quota) $percentused = '100';
339
+ else $percentused = ( $used / $quota ) * 100;
340
+
341
+ $remaining = $quota - $used;
342
+ $percentremain = 100 - $percentused;
343
+
344
+ $out = "";
345
+ $out .= '<div id="spaceused"> <h3>'.__('Storage Space','nggallery').'</h3>';
346
+
347
+ if ($settings['used']['display']) {
348
+ $out .= __('Upload Space Used:','nggallery') . "\n";
349
+ $out .= ngg_SpaceManager::buildGraph($settings['used'], $used,$quota,$percentused);
350
+ $out .= "<br />";
351
+ }
352
+
353
+ if($settings['remain']['display']) {
354
+ $out .= __('Upload Space Remaining:','nggallery') . "\n";
355
+ $out .= ngg_SpaceManager::buildGraph($settings['remain'], $remaining,$quota,$percentremain);
356
+
357
+ }
358
+
359
+ $out .= "</div>";
360
+
361
+ echo $out;
362
+ }
363
+
364
+ function buildGraph($settings, $size, $quota, $percent) {
365
+ $color_bar = $settings['color_bar'];
366
+ $color_bg = $settings['color_bg'];
367
+ $color_text = $settings['color_text'];
368
+
369
+ switch ($settings['unit']) {
370
+ case "b":
371
+ $unit = "B";
372
+ break;
373
+
374
+ case "k":
375
+ $unit = "KB";
376
+ $size = $size / 1024;
377
+ $quota = $quota / 1024;
378
+ break;
379
+
380
+ case "g": // Gigabytes, really?
381
+ $unit = "GB";
382
+ $size = $size / 1024 / 1024 / 1024;
383
+ $quota = $quota / 1024 / 1024 / 1024;
384
+ break;
385
+
386
+ default:
387
+ $unit = "MB";
388
+ $size = $size / 1024 / 1024;
389
+ $quota = $quota / 1024 / 1024;
390
+ break;
391
+ }
392
+
393
+ $size = round($size, (int)$settings['decimals']);
394
+
395
+ $pct = round(($size / $quota)*100);
396
+
397
+ if ($settings['graph']) {
398
+ //TODO:move style to CSS
399
+ $out = '<div style="display: block; margin: 0; padding: 0; height: 15px; border: 1px inset; width: 100%; background-color: '.$color_bg.';">'."\n";
400
+ $out .= '<div style="display: block; height: 15px; border: none; background-color: '.$color_bar.'; width: '.$pct.'%;">'."\n";
401
+ $out .= '<div style="display: inline; position: relative; top: 0; left: 0; font-size: 10px; color: '.$color_text.'; font-weight: bold; padding-bottom: 2px; padding-left: 5px;">'."\n";
402
+ $out .= $size.$unit;
403
+ $out .= "</div>\n</div>\n</div>\n";
404
+ } else {
405
+ $out = "<strong>".$size.$unit." ( ".number_format($percent)."%)"."</strong><br />";
406
+ }
407
+
408
+ return $out;
409
+ }
410
+
411
+ }
412
+
413
+ ?>
admin/wp25/roles.php ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
4
+
5
+ function nggallery_admin_roles() {
6
+
7
+ if ( isset($_POST['update_cap']) ) {
8
+
9
+ check_admin_referer('ngg_addroles');
10
+
11
+ // now set or remove the capability
12
+ ngg_set_capability($_POST['general'],"NextGEN Gallery overview");
13
+ ngg_set_capability($_POST['tinymce'],"NextGEN Use TinyMCE");
14
+ ngg_set_capability($_POST['add_gallery'],"NextGEN Upload images");
15
+ ngg_set_capability($_POST['manage_gallery'],"NextGEN Manage gallery");
16
+ ngg_set_capability($_POST['edit_album'],"NextGEN Edit album");
17
+ ngg_set_capability($_POST['change_style'],"NextGEN Change style");
18
+ ngg_set_capability($_POST['change_options'],"NextGEN Change options");
19
+
20
+ nggallery::show_message(__('Updated capabilities',"nggallery"));
21
+ }
22
+
23
+ ?>
24
+ <div class="wrap">
25
+ <h2><?php _e('Roles / capabilities', 'nggallery') ;?></h2>
26
+ <p><?php _e('Select the lowest role which should be able to access the follow capabilities. NextGEN Gallery supports the standard roles from WordPress.', 'nggallery') ?> <br />
27
+ <?php _e('For a more flexible user management you can use the', 'nggallery') ?> <a href="http://www.im-web-gefunden.de/wordpress-plugins/role-manager/" target="_blank">Role Manager</a>.</p>
28
+ <form name="addroles" id="addroles" method="POST" accept-charset="utf-8" >
29
+ <?php wp_nonce_field('ngg_addroles') ?>
30
+ <table class="form-table">
31
+ <tr valign="top">
32
+ <th scope="row"><?php _e('Main NextGEN Gallery overview', 'nggallery') ;?>:</th>
33
+ <td><label for="general"><select name="general" id="general"><?php wp_dropdown_roles( ngg_get_role('NextGEN Gallery overview') ); ?></select></label></td>
34
+ </tr>
35
+ <tr valign="top">
36
+ <th scope="row"><?php _e('Use TinyMCE Button / Upload tab', 'nggallery') ;?>:</th>
37
+ <td><label for="tinymce"><select name="tinymce" id="tinymce"><?php wp_dropdown_roles( ngg_get_role('NextGEN Use TinyMCE') ); ?></select></label></td>
38
+ </tr>
39
+ <tr valign="top">
40
+ <th scope="row"><?php _e('Add gallery / Upload images', 'nggallery') ;?>:</th>
41
+ <td><label for="add_gallery"><select name="add_gallery" id="add_gallery"><?php wp_dropdown_roles( ngg_get_role('NextGEN Upload images') ); ?></select></label></td>
42
+ </tr>
43
+ <tr valign="top">
44
+ <th scope="row"><?php _e('Manage gallery', 'nggallery') ;?>:</th>
45
+ <td><label for="manage_gallery"><select name="manage_gallery" id="manage_gallery"><?php wp_dropdown_roles( ngg_get_role('NextGEN Manage gallery') ); ?></select></label></td>
46
+ </tr>
47
+ <tr valign="top">
48
+ <th scope="row"><?php _e('Edit Album', 'nggallery') ;?>:</th>
49
+ <td><label for="edit_album"><select name="edit_album" id="edit_album"><?php wp_dropdown_roles( ngg_get_role('NextGEN Edit album') ); ?></select></label></td>
50
+ </tr>
51
+ <tr valign="top">
52
+ <th scope="row"><?php _e('Change style', 'nggallery') ;?>:</th>
53
+ <td><label for="change_style"><select name="change_style" id="change_style"><?php wp_dropdown_roles( ngg_get_role('NextGEN Change style') ); ?></select></label></td>
54
+ </tr>
55
+ <tr valign="top">
56
+ <th scope="row"><?php _e('Change options', 'nggallery') ;?>:</th>
57
+ <td><label for="change_options"><select name="change_options" id="change_options"><?php wp_dropdown_roles( ngg_get_role('NextGEN Change options') ); ?></select></label></td>
58
+ </tr>
59
+ </table>
60
+ <div class="submit"><input type="submit" name= "update_cap" value="<?php _e('Update capabilities', 'nggallery') ;?>"/></div>
61
+ </form>
62
+ </div>
63
+ <?php
64
+
65
+ }
66
+
67
+ function ngg_get_role($capability){
68
+ // This function return the lowest roles which has the capabilities
69
+ $check_order = array("subscriber", "contributor", "author", "editor", "administrator");
70
+
71
+ $args = array_slice(func_get_args(), 1);
72
+ $args = array_merge(array($capability), $args);
73
+
74
+ foreach ($check_order as $role) {
75
+ $check_role = get_role($role);
76
+
77
+ if ( empty($check_role) )
78
+ return false;
79
+
80
+ if (call_user_func_array(array(&$check_role, 'has_cap'), $args))
81
+ return $role;
82
+ }
83
+ return false;
84
+ }
85
+
86
+ function ngg_set_capability($lowest_role, $capability){
87
+ // This function set or remove the $capability
88
+ $check_order = array("subscriber", "contributor", "author", "editor", "administrator");
89
+
90
+ $add_capability = false;
91
+
92
+ foreach ($check_order as $role) {
93
+ if ($lowest_role == $role)
94
+ $add_capability = true;
95
+
96
+ $the_role = get_role($role);
97
+
98
+ // If you rename the roles, the please use the role manager plugin
99
+
100
+ if ( empty($the_role) )
101
+ continue;
102
+
103
+ $add_capability ? $the_role->add_cap($capability) : $the_role->remove_cap($capability) ;
104
+ }
105
+
106
+ }
107
+
108
+
109
+ ?>
admin/wp25/settings.php ADDED
@@ -0,0 +1,632 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
+
4
+ function nggallery_admin_options() {
5
+
6
+ global $wpdb, $wp_version, $nggRewrite;
7
+
8
+ // get the options
9
+ $ngg_options = get_option('ngg_options');
10
+ $old_state = $ngg_options['usePermalinks'];
11
+
12
+ // same as $_SERVER['REQUEST_URI'], but should work under IIS 6.0
13
+ $filepath = get_option('siteurl'). '/wp-admin/admin.php?page='.$_GET['page'];
14
+
15
+ if ( isset($_POST['updateoption']) ) {
16
+ check_admin_referer('ngg_settings');
17
+ // get the hidden option fields, taken from WP core
18
+ if ( $_POST['page_options'] )
19
+ $options = explode(',', stripslashes($_POST['page_options']));
20
+ if ($options) {
21
+ foreach ($options as $option) {
22
+ $option = trim($option);
23
+ $value = trim($_POST[$option]);
24
+ // $value = sanitize_option($option, $value); // This does stripslashes on those that need it
25
+ $ngg_options[$option] = $value;
26
+ }
27
+ }
28
+ // Flush ReWrite rules
29
+ if ( $old_state != $ngg_options['usePermalinks'] )
30
+ $nggRewrite->flush();
31
+ // Save options
32
+ update_option('ngg_options', $ngg_options);
33
+ $messagetext = '<font color="green">'.__('Update successfully','nggallery').'</font>';
34
+ }
35
+
36
+ if ( isset($_POST['clearcache']) ) {
37
+
38
+ $path = WINABSPATH . $ngg_options['gallerypath'] . "cache/";
39
+
40
+ if (is_dir($path))
41
+ if ($handle = opendir($path)) {
42
+ while (false !== ($file = readdir($handle))) {
43
+ if ($file != '.' && $file != '..') {
44
+ @unlink($path."/".$file);
45
+ }
46
+ }
47
+ closedir($handle);
48
+ }
49
+
50
+ $messagetext = '<font color="green">'.__('Cache cleared','nggallery').'</font>';
51
+ }
52
+ // message windows
53
+ if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
54
+
55
+ ?>
56
+ <script type="text/javascript">
57
+ jQuery(function() {
58
+ jQuery('#slider > ul').tabs({ fxFade: true, fxSpeed: 'fast' });
59
+ });
60
+
61
+ function insertcode(value) {
62
+ var effectcode;
63
+ switch (value) {
64
+ case "none":
65
+ effectcode = "";
66
+ jQuery('#tbImage').hide("slow");
67
+ break;
68
+ case "thickbox":
69
+ effectcode = 'class="thickbox" rel="%GALLERY_NAME%"';
70
+ jQuery('#tbImage').show("slow");
71
+ break;
72
+ case "lightbox":
73
+ effectcode = 'rel="lightbox[%GALLERY_NAME%]"';
74
+ jQuery('#tbImage').hide("slow");
75
+ break;
76
+ case "highslide":
77
+ effectcode = 'class="highslide" onclick="return hs.expand(this, { slideshowGroup: %GALLERY_NAME% })"';
78
+ jQuery('#tbImage').hide("slow");
79
+ break;
80
+ case "shutter":
81
+ effectcode = 'class="shutterset"';
82
+ jQuery('#tbImage').hide("slow");
83
+ break;
84
+ default:
85
+ break;
86
+ }
87
+ jQuery("#thumbCode").val(effectcode);
88
+ };
89
+
90
+ function setcolor(fileid,color) {
91
+ jQuery(fileid).css("background", color );
92
+ };
93
+ </script>
94
+
95
+ <div id="slider" class="wrap">
96
+
97
+ <ul id="tabs">
98
+ <li><a href="#generaloptions"><?php _e('General Options', 'nggallery') ;?></a></li>
99
+ <li><a href="#thumbnails"><?php _e('Thumbnails', 'nggallery') ;?></a></li>
100
+ <li><a href="#images"><?php _e('Images', 'nggallery') ;?></a></li>
101
+ <li><a href="#gallery"><?php _e('Gallery', 'nggallery') ;?></a></li>
102
+ <li><a href="#effects"><?php _e('Effects', 'nggallery') ;?></a></li>
103
+ <li><a href="#watermark"><?php _e('Watermark', 'nggallery') ;?></a></li>
104
+ <li><a href="#slideshow"><?php _e('Slideshow', 'nggallery') ;?></a></li>
105
+ </ul>
106
+
107
+ <!-- General Options -->
108
+
109
+ <div id="generaloptions">
110
+ <h2><?php _e('General Options','nggallery'); ?></h2>
111
+ <form name="generaloptions" method="post">
112
+ <?php wp_nonce_field('ngg_settings') ?>
113
+ <input type="hidden" name="page_options" value="gallerypath,scanfolder,deleteImg,usePermalinks,activateTags,appendType,maxImages" />
114
+ <table class="form-table">
115
+ <tr valign="top">
116
+ <th align="left"><?php _e('Gallery path','nggallery') ?></th>
117
+ <td><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="text" size="35" name="gallerypath" value="<?php echo $ngg_options['gallerypath']; ?>" title="TEST" /><br />
118
+ <?php _e('This is the default path for all galleries','nggallery') ?></td>
119
+ </tr>
120
+ <!--TODO: Later... -->
121
+ <!--
122
+ <tr valign="top">
123
+ <th align="left"><?php //_e('Scan folders during runtime','nggallery') ?></th>
124
+ <td><input type="checkbox" name="scanfolder" value="1" <?php //checked('1', $ngg_options[scanfolder]); ?> /><br />
125
+ <?php //_e('Search automatic in the folders for new images (not working)','nggallery') ?></td>
126
+ </tr>
127
+ -->
128
+ <tr valign="top">
129
+ <th align="left"><?php _e('Delete image files','nggallery') ?></th>
130
+ <td><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="checkbox" name="deleteImg" value="1" <?php checked('1', $ngg_options['deleteImg']); ?> /><br />
131
+ <?php _e('Delete files, when removing a gallery in the database','nggallery') ?></td>
132
+ </tr>
133
+ <tr valign="top">
134
+ <th align="left"><?php _e('Activate permalinks','nggallery') ?></th>
135
+ <td><input type="checkbox" name="usePermalinks" value="1" <?php checked('1', $ngg_options['usePermalinks']); ?> /><br />
136
+ <?php _e('When you activate this option, you need to update your permalink structure one time.','nggallery') ?></td>
137
+ </tr>
138
+ </table>
139
+ <h3><?php _e('Tags / Categories','nggallery') ?></h3>
140
+ <table class="form-table">
141
+ <tr>
142
+ <th valign="top"><?php _e('Activate related images','nggallery') ?>:</th>
143
+ <td><input name="activateTags" type="checkbox" value="1" <?php checked('1', $ngg_options['activateTags']); ?> />
144
+ <?php _e('This option will append related images to every post','nggallery') ?>
145
+ </td>
146
+ </tr>
147
+ <tr>
148
+ <th valign="top"><?php _e('Match with','nggallery') ?>:</th>
149
+ <td><label><input name="appendType" type="radio" value="category" <?php checked('category', $ngg_options['appendType']); ?> /> <?php _e('Categories', 'nggallery') ;?></label><br />
150
+ <label><input name="appendType" type="radio" value="tags" <?php checked('tags', $ngg_options['appendType']); ?> /> <?php _e('Tags', 'nggallery') ;?><?php if (version_compare($wp_version, '2.3.alpha', '<')) _e(' (require WordPress 2.3 or higher)', 'nggallery'); ?></label>
151
+ </td>
152
+ </tr>
153
+ <tr>
154
+ <th valign="top"><?php _e('Max. number of images','nggallery') ?>:</th>
155
+ <td><input type="text" name="maxImages" value="<?php echo $ngg_options['maxImages'] ?>" size="3" maxlength="3" /><br />
156
+ <?php _e('0 will show all images','nggallery') ?>
157
+ </td>
158
+ </tr>
159
+ </table>
160
+ <div class="submit"><input type="submit" name="updateoption" value="<?php _e('Update') ;?> &raquo;"/></div>
161
+ </form>
162
+ </div>
163
+
164
+ <!-- Thumbnail settings -->
165
+
166
+ <div id="thumbnails">
167
+ <h2><?php _e('Thumbnail settings','nggallery'); ?></h2>
168
+ <form name="thumbnailsettings" method="POST" action="<?php echo $filepath.'#thumbnails'; ?>" >
169
+ <?php wp_nonce_field('ngg_settings') ?>
170
+ <input type="hidden" name="page_options" value="thumbwidth,thumbheight,thumbfix,thumbcrop,thumbquality,thumbResampleMode" />
171
+ <p><?php _e('Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery .', 'nggallery') ?></p>
172
+ <table class="form-table">
173
+ <tr valign="top">
174
+ <th align="left"><?php _e('Width x height (in pixel)','nggallery') ?></th>
175
+ <td><input type="text" size="4" maxlength="4" name="thumbwidth" value="<?php echo $ngg_options['thumbwidth']; ?>" /> x <input type="text" size="4" maxlength="4" name="thumbheight" value="<?php echo $ngg_options['thumbheight']; ?>" /><br />
176
+ <?php _e('These values are maximum values ','nggallery') ?></td>
177
+ </tr>
178
+ <tr valign="top">
179
+ <th align="left"><?php _e('Set fix dimension','nggallery') ?></th>
180
+ <td><input type="checkbox" name="thumbfix" value="1" <?php checked('1', $ngg_options['thumbfix']); ?> /><br />
181
+ <?php _e('Ignore the aspect ratio, no portrait thumbnails','nggallery') ?></td>
182
+ </tr>
183
+ <tr valign="top">
184
+ <th align="left"><?php _e('Crop square thumbnail from image','nggallery') ?></th>
185
+ <td><input type="checkbox" name="thumbcrop" value="1" <?php checked('1', $ngg_options['thumbcrop']); ?> /><br />
186
+ <?php _e('Create square thumbnails, use only the width setting :','nggallery') ?> <?php echo $ngg_options['thumbwidth']; ?> x <?php echo $ngg_options['thumbwidth']; ?></td>
187
+ </tr>
188
+ <tr valign="top">
189
+ <th align="left"><?php _e('Thumbnail quality','nggallery') ?></th>
190
+ <td><input type="text" size="3" maxlength="3" name="thumbquality" value="<?php echo $ngg_options['thumbquality']; ?>" /> %</td>
191
+ </tr>
192
+ <tr valign="top">
193
+ <th align="left"><?php _e('Resample Mode','nggallery') ?></th>
194
+ <td><input type="text" size="1" maxlength="1" name="thumbResampleMode" value="<?php echo $ngg_options['thumbResampleMode']; ?>" /><br />
195
+ <?php _e('Value between 1-5 (higher value, more CPU load)','nggallery') ?></td>
196
+ </tr>
197
+ </table>
198
+ <div class="submit"><input type="submit" name="updateoption" value="<?php _e('Update') ;?> &raquo;"/></div>
199
+ </form>
200
+ </div>
201
+
202
+ <!-- Image settings -->
203
+
204
+ <div id="images">
205
+ <h2><?php _e('Image settings','nggallery'); ?></h2>
206
+ <form name="imagesettings" method="POST" action="<?php echo $filepath.'#images'; ?>" >
207
+ <?php wp_nonce_field('ngg_settings') ?>
208
+ <input type="hidden" name="page_options" value="imgResize,imgWidth,imgHeight,imgQuality,imgResampleMode,imgCacheSinglePic" />
209
+ <table class="form-table">
210
+ <tr valign="top">
211
+ <th scope="row"><label for="fixratio"><?php _e('Resize Images','nggallery') ?></label></th>
212
+ <!--TODO: checkbox fixratio can be used later -->
213
+ <td><input type="hidden" name="imgResize" value="1" <?php checked('1', $ngg_options['imgResize']); ?> /> </td>
214
+ <td><input type="text" size="5" name="imgWidth" value="<?php echo $ngg_options['imgWidth']; ?>" /> x <input type="text" size="5" name="imgHeight" value="<?php echo $ngg_options['imgHeight']; ?>" /><br />
215
+ <?php _e('Width x height (in pixel). NextGEN Gallery will keep ratio size','nggallery') ?></td>
216
+ </tr>
217
+ <tr valign="top">
218
+ <th align="left"><?php _e('Image quality','nggallery') ?></th>
219
+ <td></td>
220
+ <td><input type="text" size="3" maxlength="3" name="imgQuality" value="<?php echo $ngg_options['imgQuality']; ?>" /> %</td>
221
+ </tr>
222
+ <tr valign="top">
223
+ <th align="left"><?php _e('Resample Mode','nggallery') ?></th>
224
+ <td></td>
225
+ <td><input type="text" size="1" maxlength="1" name="imgResampleMode" value="<?php echo $ngg_options['imgResampleMode']; ?>" /><br />
226
+ <?php _e('Value between 1-5 (higher value, more CPU load)','nggallery') ?></td>
227
+ </tr>
228
+ </table>
229
+ <h3><?php _e('Single picture','nggallery') ?></h3>
230
+ <table class="form-table">
231
+ <tr valign="top">
232
+ <th align="left"><?php _e('Cache single pictures','nggallery') ?></th>
233
+ <td></td>
234
+ <td><input <?php if (IS_WPMU) echo 'readonly = "readonly"'; ?> type="checkbox" name="imgCacheSinglePic" value="1" <?php checked('1', $ngg_options['imgCacheSinglePic']); ?> />
235
+ <?php _e('Creates a file for each singlepic settings. Reduce the CPU load','nggallery') ?></td>
236
+ </tr>
237
+ <tr valign="top">
238
+ <th align="left"><?php _e('Clear cache folder','nggallery') ?></th>
239
+ <td></td>
240
+ <td><input type="submit" name="clearcache" value="<?php _e('Proceed now','nggallery') ;?> &raquo;"/></td>
241
+ </tr>
242
+ </table>
243
+ <div class="submit"><input type="submit" name="updateoption" value="<?php _e('Update') ;?> &raquo;"/></div>
244
+ </form>
245
+ </div>
246
+
247
+ <!-- Gallery settings -->
248
+
249
+ <div id="gallery">
250
+ <h2><?php _e('Gallery settings','nggallery'); ?></h2>
251
+ <form name="galleryform" method="POST" action="<?php echo $filepath.'#gallery'; ?>" >
252
+ <?php wp_nonce_field('ngg_settings') ?>
253
+ <input type="hidden" name="page_options" value="galUsejQuery,galNoPages,galImages,galShowSlide,galTextSlide,galTextGallery,galShowOrder,galShowDesc,galImgBrowser,galSort,galSortDir" />
254
+ <table class="form-table">
255
+ <!--TODO: Do better... -->
256
+ <!--
257
+ <tr>
258
+ <th valign="top"><?php //_e('Activate jQuery navigation','nggallery') ?>:</th>
259
+ <td><input name="galUsejQuery" type="checkbox" value="1" <?php // checked('1', $ngg_options['galUsejQuery']); ?> />
260
+ <?php //_e('Please note : This is still experimental. Requires the Thickbox effect','nggallery') ?>
261
+ </td>
262
+ </tr>
263
+ -->
264
+ <tr>
265
+ <th valign="top"><?php _e('Deactivate gallery page link','nggallery') ?>:</th>
266
+ <td><input name="galNoPages" type="checkbox" value="1" <?php checked('1', $ngg_options['galNoPages']); ?> />
267
+ <?php _e('The album will not link to a gallery subpage. The gallery is shown on the same page.','nggallery') ?>
268
+ </td>
269
+ </tr>
270
+ <tr>
271
+ <th valign="top"><?php _e('Number of images per page','nggallery') ?>:</th>
272
+ <td><input type="text" name="galImages" value="<?php echo $ngg_options['galImages'] ?>" size="3" maxlength="3" /><br />
273
+ <?php _e('0 will disable pagination, all images on one page','nggallery') ?>
274
+ </td>
275
+ </tr>
276
+ <tr>
277
+ <th valign="top"><?php _e('Integrate slideshow','nggallery') ?>:</th>
278
+ <td><input name="galShowSlide" type="checkbox" value="1" <?php checked('1', $ngg_options['galShowSlide']); ?> />
279
+ <input type="text" name="galTextSlide" value="<?php echo $ngg_options['galTextSlide'] ?>" size="20" />
280
+ <input type="text" name="galTextGallery" value="<?php echo $ngg_options['galTextGallery'] ?>" size="20" />
281
+ </td>
282
+ </tr>
283
+ <tr>
284
+ <th valign="top"><?php _e('Show first','nggallery') ?>:</th>
285
+ <td><label><input name="galShowOrder" type="radio" value="gallery" <?php checked('gallery', $ngg_options['galShowOrder']); ?> /> <?php _e('Thumbnails', 'nggallery') ;?></label><br />
286
+ <label><input name="galShowOrder" type="radio" value="slide" <?php checked('slide', $ngg_options['galShowOrder']); ?> /> <?php _e('Slideshow', 'nggallery') ;?></label>
287
+ </td>
288
+ </tr>
289
+ <tr>
290
+ <th valign="top"><?php _e('Show thumbnail description','nggallery') ?>:</th>
291
+ <td><label><input name="galShowDesc" type="radio" value="none" <?php checked('none', $ngg_options['galShowDesc']); ?> /> <?php _e('None', 'nggallery') ;?></label><br />
292
+ <label><input name="galShowDesc" type="radio" value="desc" <?php checked('desc', $ngg_options['galShowDesc']); ?> /> <?php _e('Description text', 'nggallery') ;?></label><br />
293
+ <label><input name="galShowDesc" type="radio" value="alttext" <?php checked('alttext', $ngg_options['galShowDesc']); ?> /> <?php _e('Alt / Title text', 'nggallery') ;?></label>
294
+ </td>
295
+ </tr>
296
+ <tr>
297
+ <th valign="top"><?php _e('Show ImageBrowser','nggallery') ?>:</th>
298
+ <td><input name="galImgBrowser" type="checkbox" value="1" <?php checked('1', $ngg_options['galImgBrowser']); ?> />
299
+ <?php _e('The gallery will open the ImageBrowser instead the effect.','nggallery') ?>
300
+ </td>
301
+ </tr>
302
+ </table>
303
+ <h3><?php _e('Sort options','nggallery') ?></h3>
304
+ <table class="form-table">
305
+ <tr>
306
+ <th valign="top"><?php _e('Sort thumbnails','nggallery') ?>:</th>
307
+ <td>
308
+ <label><input name="galSort" type="radio" value="sortorder" <?php checked('sortorder', $ngg_options['galSort']); ?> /> <?php _e('Custom order', 'nggallery') ;?></label><br />
309
+ <label><input name="galSort" type="radio" value="pid" <?php checked('pid', $ngg_options['galSort']); ?> /> <?php _e('Image ID', 'nggallery') ;?></label><br />
310
+ <label><input name="galSort" type="radio" value="filename" <?php checked('filename', $ngg_options['galSort']); ?> /> <?php _e('File name', 'nggallery') ;?></label><br />
311
+ <label><input name="galSort" type="radio" value="alttext" <?php checked('alttext', $ngg_options['galSort']); ?> /> <?php _e('Alt / Title text', 'nggallery') ;?></label>
312
+ </td>
313
+ </tr>
314
+ <tr>
315
+ <th valign="top"><?php _e('Sort direction','nggallery') ?>:</th>
316
+ <td><label><input name="galSortDir" type="radio" value="ASC" <?php checked('ASC', $ngg_options['galSortDir']); ?> /> <?php _e('Ascending', 'nggallery') ;?></label><br />
317
+ <label><input name="galSortDir" type="radio" value="DESC" <?php checked('DESC', $ngg_options['galSortDir']); ?> /> <?php _e('Descending', 'nggallery') ;?></label>
318
+ </td>
319
+ </tr>
320
+ </table>
321
+ <div class="submit"><input type="submit" name="updateoption" value="<?php _e('Update') ;?> &raquo;"/></div>
322
+ </form>
323
+ </div>
324
+
325
+ <!-- Effects settings -->
326
+
327
+ <div id="effects">
328
+ <h2><?php _e('Effects','nggallery'); ?></h2>
329
+ <form name="effectsform" method="POST" action="<?php echo $filepath.'#effects'; ?>" >
330
+ <?php wp_nonce_field('ngg_settings') ?>
331
+ <input type="hidden" name="page_options" value="thumbEffect,thumbCode,thickboxImage" />
332
+ <p><?php _e('Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Thickbox effect will automatic added to your theme.','nggallery'); ?>
333
+ <?php _e('With the placeholder','nggallery'); ?><strong> %GALLERY_NAME% </strong> <?php _e('you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do.','nggallery'); ?></p>
334
+ <table class="form-table">
335
+ <tr valign="top">
336
+ <th><?php _e('JavaScript Thumbnail effect','nggallery') ?>:</th>
337
+ <td>
338
+ <select size="1" id="thumbEffect" name="thumbEffect" onchange="insertcode(this.value)">
339
+ <option value="none" <?php selected('none', $ngg_options['thumbEffect']); ?> ><?php _e('None', 'nggallery') ;?></option>
340
+ <option value="thickbox" <?php selected('thickbox', $ngg_options['thumbEffect']); ?> ><?php _e('Thickbox', 'nggallery') ;?></option>
341
+ <option value="lightbox" <?php selected('lightbox', $ngg_options['thumbEffect']); ?> ><?php _e('Lightbox', 'nggallery') ;?></option>
342
+ <option value="highslide" <?php selected('highslide', $ngg_options['thumbEffect']); ?> ><?php _e('Highslide', 'nggallery') ;?></option>
343
+ <option value="shutter" <?php selected('shutter', $ngg_options['thumbEffect']); ?> ><?php _e('Shutter', 'nggallery') ;?></option>
344
+ <option value="custom" <?php selected('custom', $ngg_options['thumbEffect']); ?> ><?php _e('Custom', 'nggallery') ;?></option>
345
+ </select>
346
+ </td>
347
+ </tr>
348
+ <tr valign="top">
349
+ <th><?php _e('Link Code line','nggallery') ?> :</th>
350
+ <td><textarea id="thumbCode" name="thumbCode" cols="50" rows="5"><?php echo htmlspecialchars(stripslashes($ngg_options['thumbCode'])); ?></textarea></td>
351
+ </tr>
352
+ </table>
353
+
354
+ <div id="tbImage" <?php if ($ngg_options['thumbEffect'] != 'thickbox') echo 'style="display:none"'?> >
355
+ <table class="form-table">
356
+ <tr valign="top">
357
+ <th><?php _e('Select loading image','nggallery') ?> :</th>
358
+ <td>
359
+ <label><input name="thickboxImage" id="v2" type="radio" title="Version 2" value="loadingAnimationv2.gif" <?php checked('loadingAnimationv2.gif', $ngg_options['thickboxImage']); ?> /></label> <img src="<?php echo NGGALLERY_URLPATH.'thickbox/loadingAnimationv2.gif' ?>" alt="Version 2" />
360
+ <label><input name="thickboxImage" id="v3" type="radio" title="Version 3" value="loadingAnimationv3.gif" <?php checked('loadingAnimationv3.gif', $ngg_options['thickboxImage']); ?> /></label> <img src="<?php echo NGGALLERY_URLPATH.'thickbox/loadingAnimationv3.gif' ?>" alt="Version 3" />
361
+ </td>
362
+ </tr>
363
+ </table>
364
+ </div>
365
+
366
+ <div class="submit"><input type="submit" name="updateoption" value="<?php _e('Update') ;?> &raquo;"/></div>
367
+ </form>
368
+ </div>
369
+
370
+ <!-- Watermark settings -->
371
+
372
+ <?php
373
+ $imageID = $wpdb->get_var("SELECT MIN(pid) FROM $wpdb->nggpictures");
374
+ $imageID = $wpdb->get_row("SELECT * FROM $wpdb->nggpictures WHERE pid = '$imageID'");
375
+ if ($imageID) $imageURL = '<img width="75%" src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$imageID->pid.'&amp;mode=watermark&amp;width=320&amp;height=240" alt="'.$imageID->alttext.'" title="'.$imageID->alttext.'" />';
376
+
377
+ ?>
378
+ <div id="watermark">
379
+ <h2><?php _e('Watermark','nggallery'); ?></h2>
380
+ <p><?php _e('Please note : You can only activate the watermark under -> Manage Gallery . This action cannot be undone.', 'nggallery') ?></p>
381
+ <form name="watermarkform" method="POST" action="<?php echo $filepath.'#watermark'; ?>" >
382
+ <?php wp_nonce_field('ngg_settings') ?>
383
+ <input type="hidden" name="page_options" value="wmPos,wmXpos,wmYpos,wmType,wmPath,wmFont,wmSize,wmColor,wmText,wmOpaque" />
384
+ <div id="wm-preview">
385
+ <h3><?php _e('Preview','nggallery') ?></h3>
386
+ <p style="text-align:center;"><?php echo $imageURL; ?></p>
387
+ <h3><?php _e('Position','nggallery') ?></h3>
388
+ <div>
389
+ <table id="wm-position">
390
+ <tr>
391
+ <td valign="top">
392
+ <strong><?php _e('Position','nggallery') ?></strong>
393
+ <table border="1">
394
+ <tr>
395
+ <td><input type="radio" name="wmPos" value="topLeft" <?php checked('topLeft', $ngg_options['wmPos']); ?> /></td>
396
+ <td><input type="radio" name="wmPos" value="topCenter" <?php checked('topCenter', $ngg_options['wmPos']); ?> /></td>
397
+ <td><input type="radio" name="wmPos" value="topRight" <?php checked('topRight', $ngg_options['wmPos']); ?> /></td>
398
+ </tr>
399
+ <tr>
400
+ <td><input type="radio" name="wmPos" value="midLeft" <?php checked('midLeft', $ngg_options['wmPos']); ?> /></td>
401
+ <td><input type="radio" name="wmPos" value="midCenter" <?php checked('midCenter', $ngg_options['wmPos']); ?> /></td>
402
+ <td><input type="radio" name="wmPos" value="midRight" <?php checked('midRight', $ngg_options['wmPos']); ?> /></td>
403
+ </tr>
404
+ <tr>
405
+ <td><input type="radio" name="wmPos" value="botLeft" <?php checked('botLeft', $ngg_options['wmPos']); ?> /></td>
406
+ <td><input type="radio" name="wmPos" value="botCenter" <?php checked('botCenter', $ngg_options['wmPos']); ?> /></td>
407
+ <td><input type="radio" name="wmPos" value="botRight" <?php checked('botRight', $ngg_options['wmPos']); ?> /></td>
408
+ </tr>
409
+ </table>
410
+ </td>
411
+ <td valign="top">
412
+ <strong><?php _e('Offset','nggallery') ?></strong>
413
+ <table border="0">
414
+ <tr>
415
+ <td>x</td>
416
+ <td><input type="text" name="wmXpos" value="<?php echo $ngg_options['wmXpos'] ?>" size="4" /> px</td>
417
+ </tr>
418
+ <tr>
419
+ <td>y</td>
420
+ <td><input type="text" name="wmYpos" value="<?php echo $ngg_options['wmYpos'] ?>" size="4" /> px</td>
421
+ </tr>
422
+ </table>
423
+ </td>
424
+ </tr>
425
+ </table>
426
+ </div>
427
+ </div>
428
+ <h3><label><input type="radio" name="wmType" value="image" <?php checked('image', $ngg_options['wmType']); ?> /> <?php _e('Use image as watermark','nggallery') ?></label></h3>
429
+ <table class="wm-table">
430
+ <tr>
431
+ <th><?php _e('URL to file','nggallery') ?> :</th>
432
+ <td><input type="text" size="40" name="wmPath" value="<?php echo $ngg_options['wmPath']; ?>" /><br />
433
+ <?php if(!ini_get('allow_url_fopen')) _e('The accessing of URL files is disabled at your server (allow_url_fopen)','nggallery') ?> </td>
434
+ </tr>
435
+ </table>
436
+ <h3><label><input type="radio" name="wmType" value="text" <?php checked('text', $ngg_options['wmType']); ?> /> <?php _e('Use text as watermark','nggallery') ?></label></h3>
437
+ <table class="wm-table">
438
+ <tr>
439
+ <th><?php _e('Font','nggallery') ?>:</th>
440
+ <td><select name="wmFont" size="1"> <?php
441
+ $fontlist = ngg_get_TTFfont();
442
+ foreach ( $fontlist as $fontfile ) {
443
+ echo "\n".'<option value="'.$fontfile.'" '.ngg_input_selected($fontfile, $ngg_options['wmFont']).' >'.$fontfile.'</option>';
444
+ }
445
+ ?>
446
+ </select><br />
447
+ <?php if ( !function_exists(ImageTTFBBox) )
448
+ _e('This function will not work, cause you need the FreeType library','nggallery');
449
+ else
450
+ _e('You can upload more fonts in the folder <strong>nggallery/fonts</strong>','nggallery'); ?>
451
+ </td>
452
+ </tr>
453
+ <tr>
454
+ <th><?php _e('Size','nggallery') ?>:</th>
455
+ <td><input type="text" name="wmSize" value="<?php echo $ngg_options['wmSize'] ?>" size="4" maxlength="2" /> px</td>
456
+ </tr>
457
+ <tr>
458
+ <th><?php _e('Color','nggallery') ?>:</th>
459
+ <td><input type="text" size="6" maxlength="6" id="wmColor" name="wmColor" onchange="setcolor('#previewText', this.value)" value="<?php echo $ngg_options['wmColor'] ?>" />
460
+ <input type="text" size="1" readonly="readonly" id="previewText" style="background-color: #<?php echo $ngg_options['wmColor'] ?>" /> <?php _e('(hex w/o #)','nggallery') ?></td>
461
+ </tr>
462
+ <tr>
463
+ <th valign="top"><?php _e('Text','nggallery') ?>:</th>
464
+ <td><textarea name="wmText" cols="40" rows="4"><?php echo $ngg_options['wmText'] ?></textarea></td>
465
+ </tr>
466
+ <tr>
467
+ <th><?php _e('Opaque','nggallery') ?>:</th>
468
+ <td><input type="text" name="wmOpaque" value="<?php echo $ngg_options['wmOpaque'] ?>" size="3" maxlength="3" /> % </td>
469
+ </tr>
470
+ </table>
471
+ <div class="clear"> &nbsp; </div>
472
+ <div class="submit"><input type="submit" name="updateoption" value="<?php _e('Update') ;?> &raquo;"/></div>
473
+ </form>
474
+ </div>
475
+
476
+ <!-- Slideshow settings -->
477
+
478
+ <div id="slideshow">
479
+ <form name="player_options" method="POST" action="<?php echo $filepath.'#slideshow'; ?>" >
480
+ <?php wp_nonce_field('ngg_settings') ?>
481
+ <input type="hidden" name="page_options" value="irWidth,irHeight,irShuffle,irLinkfromdisplay,irShownavigation,irShowicons,irWatermark,irOverstretch,irRotatetime,irTransition,irKenburns,irBackcolor,irFrontcolor,irLightcolor,irScreencolor,irAudio,irXHTMLvalid" />
482
+ <h2><?php _e('Slideshow','nggallery'); ?></h2>
483
+ <?php if (!NGGALLERY_IREXIST) { ?><p><div id="message" class="error fade"><p><?php _e('The imagerotator.swf is not in the nggallery folder, the slideshow will not work.','nggallery') ?></p></div></p><?php }?>
484
+ <p><?php _e('The settings are used in the JW Image Rotator Version', 'nggallery') ?> 3.15 .
485
+ <?php _e('See more information for the Flash Player on the web page', 'nggallery') ?> <a href="http://www.jeroenwijering.com/?item=JW_Image_Rotator" target="_blank" >JW Image Rotator from Jeroen Wijering</a>.
486
+ </p>
487
+ <table class="form-table">
488
+ <tr>
489
+ <th><?php _e('Default size (W x H)','nggallery') ?>:</th>
490
+ <td><input type="text" size="3" maxlength="4" name="irWidth" value="<?php echo $ngg_options['irWidth'] ?>" /> x
491
+ <input type="text" size="3" maxlength="4" name="irHeight" value="<?php echo $ngg_options['irHeight'] ?>" /></td>
492
+ </tr>
493
+ <tr>
494
+ <th><?php _e('Shuffle mode','nggallery') ?>:</th>
495
+ <td><input name="irShuffle" type="checkbox" value="1" <?php checked('1', $ngg_options['irShuffle']); ?> /></td>
496
+ </tr>
497
+ <tr>
498
+ <th><?php _e('Show next image on click','nggallery') ?>:</th>
499
+ <td><input name="irLinkfromdisplay" type="checkbox" value="1" <?php checked('1', $ngg_options['irLinkfromdisplay']); ?> /></td>
500
+ </tr>
501
+ <tr>
502
+ <th><?php _e('Show navigation bar','nggallery') ?>:</th>
503
+ <td><input name="irShownavigation" type="checkbox" value="1" <?php checked('1', $ngg_options['irShownavigation']); ?> /></td>
504
+ </tr>
505
+ <tr>
506
+ <th><?php _e('Show loading icon','nggallery') ?>:</th>
507
+ <td><input name="irShowicons" type="checkbox" value="1" <?php checked('1', $ngg_options['irShowicons']); ?> /></td>
508
+ </tr>
509
+ <tr>
510
+ <th><?php _e('Use watermark logo','nggallery') ?>:</th>
511
+ <td><input name="irWatermark" type="checkbox" value="1" <?php checked('1', $ngg_options['irWatermark']); ?> />
512
+ <?php _e('You can change the logo at the watermark settings','nggallery') ?></td>
513
+ </tr>
514
+ <tr>
515
+ <th><?php _e('Stretch image','nggallery') ?>:</th>
516
+ <td>
517
+ <select size="1" name="irOverstretch">
518
+ <option value="true" <?php selected('true', $ngg_options['irOverstretch']); ?> ><?php _e('true', 'nggallery') ;?></option>
519
+ <option value="false" <?php selected('false', $ngg_options['irOverstretch']); ?> ><?php _e('false', 'nggallery') ;?></option>
520
+ <option value="fit" <?php selected('fit', $ngg_options['irOverstretch']); ?> ><?php _e('fit', 'nggallery') ;?></option>
521
+ <option value="none" <?php selected('none', $ngg_options['irOverstretch']); ?> ><?php _e('none', 'nggallery') ;?></option>
522
+ </select>
523
+ </td>
524
+ </tr>
525
+ <tr>
526
+ <th><?php _e('Duration time','nggallery') ?>:</th>
527
+ <td><input type="text" size="3" maxlength="3" name="irRotatetime" value="<?php echo $ngg_options['irRotatetime'] ?>" /> <?php _e('sec.', 'nggallery') ;?></td>
528
+ </tr>
529
+ <tr>
530
+ <th><?php _e('Transition / Fade effect','nggallery') ?>:</th>
531
+ <td>
532
+ <select size="1" name="irTransition">
533
+ <option value="fade" <?php selected('fade', $ngg_options['irTransition']); ?> ><?php _e('fade', 'nggallery') ;?></option>
534
+ <option value="bgfade" <?php selected('bgfade', $ngg_options['irTransition']); ?> ><?php _e('bgfade', 'nggallery') ;?></option>
535
+ <option value="slowfade" <?php selected('slowfade', $ngg_options['irTransition']); ?> ><?php _e('slowfade', 'nggallery') ;?></option>
536
+ <option value="circles" <?php selected('circles', $ngg_options['irTransition']); ?> ><?php _e('circles', 'nggallery') ;?></option>
537
+ <option value="bubbles" <?php selected('bubbles', $ngg_options['irTransition']); ?> ><?php _e('bubbles', 'nggallery') ;?></option>
538
+ <option value="blocks" <?php selected('blocks', $ngg_options['irTransition']); ?> ><?php _e('blocks', 'nggallery') ;?></option>
539
+ <option value="fluids" <?php selected('fluids', $ngg_options['irTransition']); ?> ><?php _e('fluids', 'nggallery') ;?></option>
540
+ <option value="flash" <?php selected('flash', $ngg_options['irTransition']); ?> ><?php _e('flash', 'nggallery') ;?></option>
541
+ <option value="lines" <?php selected('lines', $ngg_options['irTransition']); ?> ><?php _e('lines', 'nggallery') ;?></option>
542
+ <option value="random" <?php selected('random', $ngg_options['irTransition']); ?> ><?php _e('random', 'nggallery') ;?></option>
543
+ </select>
544
+ </tr>
545
+ <tr>
546
+ <th><?php _e('Use slow zooming effect','nggallery') ?>:</th>
547
+ <td><input name="irKenburns" type="checkbox" value="1" <?php checked('1', $ngg_options['irKenburns']); ?> /></td>
548
+ </tr>
549
+ <tr>
550
+ <th><?php _e('Background Color','nggallery') ?>:</th>
551
+ <td><input type="text" size="6" maxlength="6" id="irBackcolor" name="irBackcolor" onchange="setcolor('#previewBack', this.value)" value="<?php echo $ngg_options['irBackcolor'] ?>" />
552
+ <input type="text" size="1" readonly="readonly" id="previewBack" style="background-color: #<?php echo $ngg_options['irBackcolor'] ?>" /></td>
553
+ </tr>
554
+ <tr>
555
+ <th><?php _e('Texts / Buttons Color','nggallery') ?>:</th>
556
+ <td><input type="text" size="6" maxlength="6" id="irFrontcolor" name="irFrontcolor" onchange="setcolor('#previewFront', this.value)" value="<?php echo $ngg_options['irFrontcolor'] ?>" />
557
+ <input type="text" size="1" readonly="readonly" id="previewFront" style="background-color: #<?php echo $ngg_options['irFrontcolor'] ?>" /></td>
558
+ </tr>
559
+ <tr>
560
+ <th><?php _e('Rollover / Active Color','nggallery') ?>:</th>
561
+ <td><input type="text" size="6" maxlength="6" id="irLightcolor" name="irLightcolor" onchange="setcolor('#previewLight', this.value)" value="<?php echo $ngg_options['irLightcolor'] ?>" />
562
+ <input type="text" size="1" readonly="readonly" id="previewLight" style="background-color: #<?php echo $ngg_options['irLightcolor'] ?>" /></td>
563
+ </tr>
564
+ <tr>
565
+ <th><?php _e('Screen Color','nggallery') ?>:</th>
566
+ <td><input type="text" size="6" maxlength="6" id="irScreencolor" name="irScreencolor" onchange="setcolor('#previewScreen', this.value)" value="<?php echo $ngg_options['irScreencolor'] ?>" />
567
+ <input type="text" size="1" readonly="readonly" id="previewScreen" style="background-color: #<?php echo $ngg_options['irScreencolor'] ?>" /></td>
568
+ </tr>
569
+ <tr>
570
+ <th><?php _e('Background music (URL)','nggallery') ?>:</th>
571
+ <td><input type="text" size="50" id="irAudio" name="irAudio" value="<?php echo $ngg_options['irAudio'] ?>" /></td>
572
+ </tr>
573
+ <tr>
574
+ <th><?php _e('Try XHTML validation (with CDATA)','nggallery') ?>:</th>
575
+ <td><input name="irXHTMLvalid" type="checkbox" value="1" <?php checked('1', $ngg_options['irXHTMLvalid']); ?> />
576
+ <?php _e('Important : Could causes problem at some browser. Please recheck your page.','nggallery') ?></td>
577
+ </tr>
578
+ </table>
579
+ <div class="clear"> &nbsp; </div>
580
+ <div class="submit"><input type="submit" name="updateoption" value="<?php _e('Update') ;?> &raquo;"/></div>
581
+ </form>
582
+ </div>
583
+ </div>
584
+
585
+ <?php
586
+ }
587
+
588
+ function ngg_get_TTFfont() {
589
+
590
+ $ttf_fonts = array ();
591
+
592
+ // Files in wp-content/plugins/nggallery/fonts directory
593
+ $plugin_root = NGGALLERY_ABSPATH."fonts";
594
+
595
+ $plugins_dir = @ dir($plugin_root);
596
+ if ($plugins_dir) {
597
+ while (($file = $plugins_dir->read()) !== false) {
598
+ if (preg_match('|^\.+$|', $file))
599
+ continue;
600
+ if (is_dir($plugin_root.'/'.$file)) {
601
+ $plugins_subdir = @ dir($plugin_root.'/'.$file);
602
+ if ($plugins_subdir) {
603
+ while (($subfile = $plugins_subdir->read()) !== false) {
604
+ if (preg_match('|^\.+$|', $subfile))
605
+ continue;
606
+ if (preg_match('|\.ttf$|', $subfile))
607
+ $ttf_fonts[] = "$file/$subfile";
608
+ }
609
+ }
610
+ } else {
611
+ if (preg_match('|\.ttf$|', $file))
612
+ $ttf_fonts[] = $file;
613
+ }
614
+ }
615
+ }
616
+
617
+ return $ttf_fonts;
618
+ }
619
+
620
+ /**********************************************************/
621
+ // taken from WP Core
622
+
623
+ function ngg_input_selected( $selected, $current) {
624
+ if ( $selected == $current)
625
+ return ' selected="selected"';
626
+ }
627
+
628
+ function ngg_input_checked( $checked, $current) {
629
+ if ( $checked == $current)
630
+ return ' checked="checked"';
631
+ }
632
+ ?>
admin/wp25/setup.php ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
+
4
+ function nggallery_admin_setup() {
5
+ global $wpdb;
6
+
7
+ if (isset($_POST['resetdefault'])) {
8
+ check_admin_referer('ngg_uninstall');
9
+
10
+ ngg_default_options();
11
+
12
+ $messagetext = '<font color="green">'.__('Reset all settings to default parameter','nggallery').'</font>';
13
+ }
14
+
15
+ if (isset($_POST['uninstall'])) {
16
+
17
+ check_admin_referer('ngg_uninstall');
18
+
19
+ $wpdb->query("DROP TABLE $wpdb->nggpictures");
20
+ $wpdb->query("DROP TABLE $wpdb->nggallery");
21
+ $wpdb->query("DROP TABLE $wpdb->nggalbum");
22
+ $wpdb->query("DROP TABLE $wpdb->nggtags");
23
+ $wpdb->query("DROP TABLE $wpdb->nggpic2tags");
24
+
25
+ delete_option( "ngg_options" );
26
+ delete_option( "ngg_db_version");
27
+
28
+ // now remove the capability
29
+ ngg_remove_capability("NextGEN Gallery overview");
30
+ ngg_remove_capability("NextGEN Use TinyMCE");
31
+ ngg_remove_capability("NextGEN Upload images");
32
+ ngg_remove_capability("NextGEN Manage gallery");
33
+ ngg_remove_capability("NextGEN Edit album");
34
+ ngg_remove_capability("NextGEN Change style");
35
+ ngg_remove_capability("NextGEN Change options");
36
+
37
+ $messagetext = '<font color="green">'.__('Uninstall sucessfull ! Now delete the plugin and enjoy your life ! Good luck !','nggallery').'</font>';
38
+ }
39
+
40
+ // message windows
41
+ if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
42
+
43
+ ?>
44
+
45
+ <div class="wrap">
46
+ <h2><?php _e('Reset options', 'nggallery') ;?></h2>
47
+ <form name="resetsettings" method="post">
48
+ <?php wp_nonce_field('ngg_uninstall') ?>
49
+ <p><?php _e('Reset all options/settings to the default installation.', 'nggallery') ;?></p>
50
+ <div align="center"><input type="submit" class="button" name="resetdefault" value="<?php _e('Reset settings', 'nggallery') ;?>" onclick="javascript:check=confirm('<?php _e('Reset all options to default settings ?\n\nChoose [Cancel] to Stop, [OK] to proceed.\n','nggallery'); ?>');if(check==false) return false;" /></div>
51
+ </form>
52
+ </div>
53
+ <?php if (!IS_WPMU || wpmu_site_admin() ) : ?>
54
+ <div class="wrap">
55
+ <h2><?php _e('Uninstall plugin tables', 'nggallery') ;?></h2>
56
+
57
+ <form name="resetsettings" method="post">
58
+ <div class="tablenav">
59
+ <?php wp_nonce_field('ngg_uninstall') ?>
60
+ <p><?php _e('You don\'t like NextGEN Gallery ?', 'nggallery') ;?></p>
61
+ <p><?php _e('No problem, before you deactivate this plugin press the Uninstall Button, because deactivating NextGEN Gallery does not remove any data that may have been created. ', 'nggallery') ;?>
62
+ </div>
63
+ <p><font color="red"><strong><?php _e('WARNING:', 'nggallery') ;?></strong><br />
64
+ <?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to backup all the tables first. NextGEN gallery is stored in the tables', 'nggallery') ;?> <strong><?php echo $wpdb->nggpictures; ?></strong>, <strong><?php echo $wpdb->nggalbum; ?></strong>, <strong><?php echo $wpdb->nggtags; ?></strong>, <strong><?php echo $wpdb->nggpic2tags; ?></strong> <?php _e('and', 'nggallery') ;?> <strong><?php echo $wpdb->nggalbum; ?></strong>.</font></p>
65
+ <div align="center">
66
+ <input type="submit" name="uninstall" class="button delete" value="<?php _e('Uninstall plugin', 'nggallery') ?>" onclick="javascript:check=confirm('<?php _e('You are about to Uninstall this plugin from WordPress.\nThis action is not reversible.\n\nChoose [Cancel] to Stop, [OK] to Uninstall.\n','nggallery'); ?>');if(check==false) return false;"/>
67
+ </div>
68
+ </form>
69
+ </div>
70
+ <?php endif; ?>
71
+
72
+ <?php
73
+ }
74
+
75
+ function ngg_remove_capability($capability){
76
+ // This function remove the $capability
77
+ $check_order = array("subscriber", "contributor", "author", "editor", "administrator");
78
+
79
+ foreach ($check_order as $role) {
80
+
81
+ $role = get_role($role);
82
+ $role->remove_cap($capability) ;
83
+ }
84
+
85
+ }
86
+
87
+
88
+ ?>
admin/wp25/showmeta.php ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once(realpath("../../../../wp-config.php"));
4
+ require_once(NGGALLERY_ABSPATH.'/lib/nggmeta.lib.php');
5
+
6
+ if ( !is_user_logged_in() )
7
+ die(__('Cheatin&#8217; uh?'));
8
+
9
+ if ( !current_user_can('NextGEN Manage gallery') )
10
+ die(__('Cheatin&#8217; uh?'));
11
+
12
+ function get_out_now() { exit; }
13
+ add_action( 'shutdown', 'get_out_now', -1 );
14
+
15
+ global $wpdb;
16
+
17
+ $id = (int) $_GET['id'];
18
+ // let's get the image data
19
+ $picture = new nggImage($id );
20
+ // let's get the meta data'
21
+ $meta = new nggMeta($picture->absPath);
22
+ $exifdata = $meta->get_EXIF();
23
+ $iptcdata = $meta->get_IPTC();
24
+ $xmpdata = $meta->get_XMP();
25
+
26
+ ?>
27
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
28
+ <html xmlns="http://www.w3.org/1999/xhtml">
29
+ <head>
30
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
31
+ <link rel="stylesheet" href="<?php echo get_option( 'siteurl' ) ?>/wp-admin/wp-admin.css?version=<?php bloginfo('version'); ?>" type="text/css" />
32
+ <style type="text/css">
33
+ #TB_title{
34
+ background-color:#E5F3FF !important;
35
+ }
36
+ </style>
37
+ </head>
38
+ <body class="wp-admin">
39
+
40
+ <!-- EXIF DATA -->
41
+ <fieldset class="options nggallery">
42
+ <legend><?php _e('EXIF Data','nggallery'); ?></legend>
43
+ <?php if ($exifdata) { ?>
44
+ <table id="the-list-x" width="100%" cellspacing="3" cellpadding="3">
45
+ <thead>
46
+ <tr>
47
+ <th scope="col"><?php _e('Tag','nggallery'); ?></th>
48
+ <th scope="col"><?php _e('Value','nggallery'); ?></th>
49
+ </tr>
50
+ </thead>
51
+ <?php
52
+ foreach ($exifdata as $key => $value){
53
+ $class = ( $class == 'class="alternate"' ) ? '' : 'class="alternate"';
54
+ echo '<tr '.$class.'>
55
+ <td style="width:230px">'.$meta->i8n_name($key).'</td>
56
+ <td>'.$value.'</td>
57
+ </tr>';
58
+ }
59
+ ?>
60
+ </table>
61
+ <?php } else echo "<strong>". __('No exif data','nggallery'). "</strong>"; ?>
62
+ </fieldset>
63
+
64
+ <!-- IPTC DATA -->
65
+ <?php if ($iptcdata) { ?>
66
+ <fieldset class="options nggallery">
67
+ <legend><?php _e('IPTC Data','nggallery'); ?></legend>
68
+ <table id="the-list-x" width="100%" cellspacing="3" cellpadding="3">
69
+ <thead>
70
+ <tr>
71
+ <th scope="col"><?php _e('Tag','nggallery'); ?></th>
72
+ <th scope="col"><?php _e('Value','nggallery'); ?></th>
73
+ </tr>
74
+ </thead>
75
+ <?php
76
+ foreach ($iptcdata as $key => $value){
77
+ $class = ( $class == 'class="alternate"' ) ? '' : 'class="alternate"';
78
+ echo '<tr '.$class.'>
79
+ <td style="width:230px">'.$meta->i8n_name($key).'</td>
80
+ <td>'.$value.'</td>
81
+ </tr>';
82
+ }
83
+ ?>
84
+ </table>
85
+ </fieldset>
86
+ <?php } ?>
87
+
88
+ <!-- XMP DATA -->
89
+ <?php if ($xmpdata) { ?>
90
+ <fieldset class="options nggallery">
91
+ <legend><?php _e('XMP Data','nggallery'); ?></legend>
92
+ <table id="the-list-x" width="100%" cellspacing="3" cellpadding="3">
93
+ <thead>
94
+ <tr>
95
+ <th scope="col"><?php _e('Tag','nggallery'); ?></th>
96
+ <th scope="col"><?php _e('Value','nggallery'); ?></th>
97
+ </tr>
98
+ </thead>
99
+ <?php
100
+ foreach ($xmpdata as $key => $value){
101
+ $class = ( $class == 'class="alternate"' ) ? '' : 'class="alternate"';
102
+ echo '<tr '.$class.'>
103
+ <td style="width:230px">'.$meta->i8n_name($key).'</td>
104
+ <td>'.$value.'</td>
105
+ </tr>';
106
+ }
107
+ ?>
108
+ </table>
109
+ </fieldset>
110
+ <?php } ?>
111
+
112
+ </body>
113
+ </html>
114
+ <?php
115
+
116
+ ?>
admin/wp25/sort.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @author Alex Rabe
5
+ * @copyright 2008
6
+ */
7
+
8
+ function nggallery_sortorder($galleryID = 0){
9
+ global $wpdb;
10
+
11
+ if ($galleryID == 0) return;
12
+
13
+ $galleryID = (int) $galleryID;
14
+
15
+ // get the options
16
+ $ngg_options=get_option('ngg_options');
17
+
18
+ if (isset ($_POST['updateSortorder'])) {
19
+ check_admin_referer('ngg_updatesortorder');
20
+ // get variable new sortorder
21
+ parse_str($_POST['sortorder']);
22
+ if (is_array($sortArray)){
23
+ $neworder = array();
24
+ foreach($sortArray as $pid) {
25
+ $pid = substr($pid, 4); // get id from "pid-x"
26
+ $neworder[] = (int) $pid;
27
+ }
28
+ $sortindex = 1;
29
+ foreach($neworder as $pic_id) {
30
+ $wpdb->query("UPDATE $wpdb->nggpictures SET sortorder = '$sortindex' WHERE pid = $pic_id");
31
+ $sortindex++;
32
+ }
33
+ nggallery::show_message(__('Sort order changed','nggallery'));
34
+ }
35
+ }
36
+
37
+ //TODO:A unique gallery call must provide me with this information, like $gallery = new nggGallery($id);
38
+
39
+ // get gallery values
40
+ $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
41
+
42
+ // set gallery url
43
+ $act_gallery_url = get_option ('siteurl')."/".$act_gallery->path."/";
44
+ $act_thumbnail_url = get_option ('siteurl')."/".$act_gallery->path.nggallery::get_thumbnail_folder($act_gallery->path, FALSE);
45
+ $act_thumb_prefix = nggallery::get_thumbnail_prefix($act_gallery->path, FALSE);
46
+
47
+ $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' ORDER BY sortorder ASC");
48
+
49
+ ?>
50
+ <script type='text/javascript' src='<?php echo NGGALLERY_URLPATH ?>admin/js/sorter.js'></script>
51
+ <div class="wrap">
52
+ <div class="bordertitle">
53
+ <h2 style="border: medium none ; padding-bottom: 0px;"><?php _e('Sort Gallery', 'nggallery') ?></h2>
54
+ <form id="sortGallery" method="POST" action="<?php echo 'admin.php?page=nggallery-manage-gallery&amp;mode=sort&amp;gid='.$galleryID ?>" onsubmit="saveImageOrder()" accept-charset="utf-8">
55
+ <?php wp_nonce_field('ngg_updatesortorder') ?>
56
+ <input name="sortorder" type="hidden" />
57
+ <input class="button" type="submit" name="backToGallery" value="<?php _e('Back to gallery', 'nggallery') ?>" />
58
+ <input class="button" type="submit" name="updateSortorder" onclick="saveImageOrder()" value="<?php _e('Update Sort Order', 'nggallery') ?> &raquo;" />
59
+ </form>
60
+ </div>
61
+ <div id="debug" style="clear:both"></div>
62
+ <?php
63
+ if($picturelist) {
64
+ foreach($picturelist as $picture) {
65
+ ?>
66
+ <div class="imageBox" id="pid-<?php echo $picture->pid ?>">
67
+ <div class="imageBox_theImage" style="background-image:url('<?php echo $act_thumbnail_url.$act_thumb_prefix.$picture->filename ?>')"></div>
68
+ <div class="imageBox_label"><span><?php echo stripslashes($picture->alttext) ?></span></div>
69
+ </div>
70
+ <?php
71
+ }
72
+ }
73
+ ?>
74
+ <div id="insertionMarker">
75
+ <img src="<?php echo NGGALLERY_URLPATH ?>admin/images/marker_top.gif"/>
76
+ <img src="<?php echo NGGALLERY_URLPATH ?>admin/images/marker_middle.gif" id="insertionMarkerLine"/>
77
+ <img src="<?php echo NGGALLERY_URLPATH ?>admin/images/marker_bottom.gif"/>
78
+ </div>
79
+ <div id="dragDropContent"></div>
80
+ </div>
81
+
82
+ <?php
83
+
84
+ }
85
+
86
+ ?>
admin/wp25/style.php ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
+
4
+ function nggallery_admin_style() {
5
+
6
+ $ngg_options = get_option('ngg_options');
7
+
8
+ if (isset($_POST['css'])) {
9
+ check_admin_referer('ngg_style');
10
+ $act_cssfile = $_POST['css'];
11
+ if (isset($_POST['activate'])) {
12
+ // save option now
13
+ $ngg_options[activateCSS] = $_POST['activateCSS'];
14
+ $ngg_options[CSSfile] = $act_cssfile;
15
+ update_option('ngg_options', $ngg_options);
16
+ $messagetext = '<font color="green">'.__('Update successfully','nggallery').'</font>';
17
+ }
18
+ } else {
19
+ // get the options
20
+ if (isset($_POST['file']))
21
+ $act_cssfile = $_POST['file'];
22
+ else
23
+ $act_cssfile = $ngg_options[CSSfile];
24
+ }
25
+
26
+ // set the path
27
+ $real_file = NGGALLERY_ABSPATH."css/".$act_cssfile;
28
+
29
+ if (isset($_POST['updatecss'])) {
30
+
31
+ check_admin_referer('ngg_style');
32
+
33
+ if ( !current_user_can('edit_themes') )
34
+ wp_die('<p>'.__('You do not have sufficient permissions to edit templates for this blog.').'</p>');
35
+
36
+ $newcontent = stripslashes($_POST['newcontent']);
37
+
38
+ if (is_writeable($real_file)) {
39
+ $f = fopen($real_file, 'w+');
40
+ fwrite($f, $newcontent);
41
+
42
+ fclose($f);
43
+ $messagetext = '<font color="green">'.__('CSS file successfully updated','nggallery').'</font>';
44
+ }
45
+ }
46
+
47
+ // get the content of the file
48
+ //TODO: BUG : Read failed after write a file, maybe a Cache problem
49
+ if (!is_file($real_file))
50
+ $error = 1;
51
+
52
+ if (!$error && filesize($real_file) > 0) {
53
+ $f = fopen($real_file, 'r');
54
+ $content = fread($f, filesize($real_file));
55
+ $content = htmlspecialchars($content);
56
+ }
57
+
58
+ // message window
59
+ if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
60
+
61
+ ?>
62
+ <div class="wrap">
63
+
64
+ <div class="bordertitle">
65
+ <h2 style="border: medium none ; padding-bottom: 0px;"><?php _e('Style Editor','nggallery') ?></h2>
66
+ <form id="themeselector" name="cssfiles" method="post">
67
+ <?php wp_nonce_field('ngg_style') ?>
68
+ <strong><?php _e('Activate and use style sheet:','nggallery') ?></strong>
69
+ <input type="checkbox" name="activateCSS" value="1" <?php checked('1', $ngg_options['activateCSS']); ?> />
70
+ <select name="css" id="theme" style="margin: 0pt; padding: 0pt;" onchange="this.form.submit();">
71
+ <?php
72
+ $csslist = ngg_get_cssfiles();
73
+ foreach ($csslist as $key =>$a_cssfile) {
74
+ $css_name = $a_cssfile['Name'];
75
+ if ($key == $act_cssfile) {
76
+ $file_show = $key;
77
+ $selected = " selected='selected'";
78
+ $act_css_description = $a_cssfile['Description'];
79
+ $act_css_author = $a_cssfile['Author'];
80
+ $act_css_version = $a_cssfile['Version'];
81
+ }
82
+ else $selected = '';
83
+ $css_name = attribute_escape($css_name);
84
+ echo "\n\t<option value=\"$key\" $selected>$css_name</option>";
85
+ }
86
+ ?>
87
+ </select>
88
+ <input class="button" type="submit" name="activate" value="<?php _e('Activate','nggallery') ?> &raquo;" class="button" />
89
+ </form>
90
+ </div>
91
+ <br style="clear: both;"/>
92
+
93
+ <? if (!IS_WPMU || wpmu_site_admin() ) { ?>
94
+ <div class="tablenav" style="margin-right: 210px;">
95
+ <?php
96
+ if ( is_writeable($real_file) ) {
97
+ echo '<big>' . sprintf(__('Editing <strong>%s</strong>'), $file_show) . '</big>';
98
+ } else {
99
+ echo '<big>' . sprintf(__('Browsing <strong>%s</strong>'), $file_show) . '</big>';
100
+ }
101
+ ?>
102
+ </div>
103
+ <br style="clear: both;"/>
104
+
105
+ <div id="templateside">
106
+ <ul>
107
+ <li><strong><?php _e('Author','nggallery') ?> :</strong> <?php echo $act_css_author ?></li>
108
+ <li><strong><?php _e('Version','nggallery') ?> :</strong> <?php echo $act_css_version ?></li>
109
+ <li><strong><?php _e('Description','nggallery') ?> :<br /></strong> <?php echo $act_css_description ?></li>
110
+ </ul>
111
+ </div>
112
+
113
+ <?php
114
+ if (!$error) {
115
+ ?>
116
+ <form name="template" id="template" method="post">
117
+ <?php wp_nonce_field('ngg_style') ?>
118
+ <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea>
119
+ <input type="hidden" name="updatecss" value="updatecss" />
120
+ <input type="hidden" name="file" value="<?php echo $file_show ?>" />
121
+ </div>
122
+ <?php if ( is_writeable($real_file) ) : ?>
123
+ <p class="submit">
124
+ <input type="submit" name="submit" value="<?php _e('Update File &raquo;','nggallery') ?>" tabindex="2" />
125
+ </p>
126
+ <?php else : ?>
127
+ <p><em><?php _e('If this file were writable you could edit it.','nggallery'); ?></em></p>
128
+ <?php endif; ?>
129
+ </form>
130
+ <?php
131
+ } else {
132
+ echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.','nggallery') . '</p></div>';
133
+ }
134
+ ?>
135
+ <div class="clear"> &nbsp; </div>
136
+ </div> <!-- wrap-->
137
+
138
+ <?php
139
+ }
140
+
141
+ } // END nggallery_admin_style()
142
+
143
+ /**********************************************************/
144
+ // ### Code from wordpress plugin import
145
+ // read in the css files
146
+ function ngg_get_cssfiles() {
147
+ global $cssfiles;
148
+
149
+ if (isset ($cssfiles)) {
150
+ return $cssfiles;
151
+ }
152
+
153
+ $cssfiles = array ();
154
+
155
+ // Files in wp-content/plugins/nggallery/css directory
156
+ $plugin_root = NGGALLERY_ABSPATH."css";
157
+
158
+ $plugins_dir = @ dir($plugin_root);
159
+ if ($plugins_dir) {
160
+ while (($file = $plugins_dir->read()) !== false) {
161
+ if (preg_match('|^\.+$|', $file))
162
+ continue;
163
+ if (is_dir($plugin_root.'/'.$file)) {
164
+ $plugins_subdir = @ dir($plugin_root.'/'.$file);
165
+ if ($plugins_subdir) {
166
+ while (($subfile = $plugins_subdir->read()) !== false) {
167
+ if (preg_match('|^\.+$|', $subfile))
168
+ continue;
169
+ if (preg_match('|\.css$|', $subfile))
170
+ $plugin_files[] = "$file/$subfile";
171
+ }
172
+ }
173
+ } else {
174
+ if (preg_match('|\.css$|', $file))
175
+ $plugin_files[] = $file;
176
+ }
177
+ }
178
+ }
179
+
180
+ if ( !$plugins_dir || !$plugin_files )
181
+ return $cssfiles;
182
+
183
+ foreach ( $plugin_files as $plugin_file ) {
184
+ if ( !is_readable("$plugin_root/$plugin_file"))
185
+ continue;
186
+
187
+ $plugin_data = ngg_get_cssfiles_data("$plugin_root/$plugin_file");
188
+
189
+ if ( empty ($plugin_data['Name']) )
190
+ continue;
191
+
192
+ $cssfiles[plugin_basename($plugin_file)] = $plugin_data;
193
+ }
194
+
195
+ uasort($cssfiles, create_function('$a, $b', 'return strnatcasecmp($a["Name"], $b["Name"]);'));
196
+
197
+ return $cssfiles;
198
+ }
199
+
200
+ /**********************************************************/
201
+ // parse the Header information
202
+ function ngg_get_cssfiles_data($plugin_file) {
203
+ $plugin_data = implode('', file($plugin_file));
204
+ preg_match("|CSS Name:(.*)|i", $plugin_data, $plugin_name);
205
+ preg_match("|Description:(.*)|i", $plugin_data, $description);
206
+ preg_match("|Author:(.*)|i", $plugin_data, $author_name);
207
+ if (preg_match("|Version:(.*)|i", $plugin_data, $version))
208
+ $version = trim($version[1]);
209
+ else
210
+ $version = '';
211
+
212
+ $description = wptexturize(trim($description[1]));
213
+
214
+ $name = trim($plugin_name[1]);
215
+ $author = trim($author_name[1]);
216
+
217
+ return array ('Name' => $name, 'Description' => $description, 'Author' => $author, 'Version' => $version );
218
+ }
219
+
220
+ ?>
admin/wp25/upload.php ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once('../../../../../wp-config.php');
4
+
5
+ // Flash often fails to send cookies with the POST or upload, so we need to pass it in GET or POST instead
6
+ if ( empty($_COOKIE[AUTH_COOKIE]) && !empty($_REQUEST['auth_cookie']) )
7
+ $_COOKIE[AUTH_COOKIE] = $_REQUEST['auth_cookie'];
8
+
9
+ // don't ask me why, sometime needed, taken from wp core
10
+ unset($current_user);
11
+
12
+ // admin.php require a proper login cookie
13
+ require_once(ABSPATH . '/wp-admin/admin.php');
14
+
15
+ header('Content-Type: text/plain');
16
+
17
+ //check for correct capability
18
+ if ( !is_user_logged_in() )
19
+ die('Login failure. -1');
20
+
21
+ //check for correct capability
22
+ if ( !current_user_can('NextGEN Manage gallery') )
23
+ die('You do not have permission to upload files. -2');
24
+
25
+ function get_out_now() { exit; }
26
+ add_action( 'shutdown', 'get_out_now', -1 );
27
+
28
+ //check for correct nonce
29
+ check_admin_referer('ngg_swfupload');
30
+
31
+ //check for nggallery
32
+ if ( !defined('NGGALLERY_ABSPATH') )
33
+ die('NextGEN Gallery not available. -3');
34
+
35
+ include_once (NGGALLERY_ABSPATH. 'admin/wp25/functions.php');
36
+
37
+ // get the gallery
38
+ $galleryID = (int) $_POST['galleryselect'];
39
+
40
+ echo nggAdmin::swfupload_image($galleryID);
41
+
42
+ ?>
admin/wp25/wpmu.php ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
+
4
+ function nggallery_wpmu_setup() {
5
+ global $wpdb;
6
+
7
+ //to be sure
8
+ if (!is_site_admin())
9
+ die('You are not allowed to call this page.');
10
+
11
+ // get the options
12
+ $ngg_options = get_site_option('ngg_options');
13
+
14
+ // same as $_SERVER['REQUEST_URI'], but should work under IIS 6.0
15
+ $filepath = get_option('siteurl'). '/wp-admin/wpmu-admin.php?page='.$_GET['page'];
16
+
17
+ if ( isset($_POST['updateoption']) ) {
18
+ check_admin_referer('ngg_wpmu_settings');
19
+ // get the hidden option fields, taken from WP core
20
+ if ( $_POST['page_options'] )
21
+ $options = explode(',', stripslashes($_POST['page_options']));
22
+ if ($options) {
23
+ foreach ($options as $option) {
24
+ $option = trim($option);
25
+ $value = trim($_POST[$option]);
26
+ // $value = sanitize_option($option, $value); // This does strip slashes on those that need it
27
+ $ngg_options[$option] = $value;
28
+ }
29
+ }
30
+
31
+ update_site_option('ngg_options', $ngg_options);
32
+ $messagetext = '<font color="green">'.__('Update successfully','nggallery').'</font>';
33
+ }
34
+
35
+ // message windows
36
+ if(!empty($messagetext)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$messagetext.'</p></div>'; }
37
+
38
+ ?>
39
+
40
+ <div class="wrap">
41
+ <h2><?php _e('General WordPress MU Settings','nggallery'); ?></h2>
42
+ <form name="generaloptions" method="post">
43
+ <?php wp_nonce_field('ngg_wpmu_settings') ?>
44
+ <input type="hidden" name="page_options" value="gallerypath,wpmuQuotaCheck,wpmuZipUpload,wpmuStyle,wpmuRoles,wpmuCSSfile" />
45
+ <fieldset class="options">
46
+ <table class="optiontable editform">
47
+ <tr valign="top">
48
+ <th align="left"><?php _e('Gallery path','nggallery') ?></th>
49
+ <td><input type="text" size="50" name="gallerypath" value="<?php echo $ngg_options[gallerypath]; ?>" title="TEST" /><br />
50
+ <?php _e('This is the default path for all blogs. With the placeholder %BLOG_ID% you can organize the folder structure better. The path must end with a /.','nggallery') ?></td>
51
+ </tr>
52
+ <tr>
53
+ <th valign="top"><?php _e('Enable upload quota check','nggallery') ?>:</th>
54
+ <td><input name="wpmuQuotaCheck" type="checkbox" value="1" <?php checked('1', $ngg_options[wpmuQuotaCheck]); ?> />
55
+ <?php _e('Should work if the gallery is bellow the blog.dir','nggallery') ?>
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <th valign="top"><?php _e('Enable zip upload option','nggallery') ?>:</th>
60
+ <td><input name="wpmuZipUpload" type="checkbox" value="1" <?php checked('1', $ngg_options[wpmuZipUpload]); ?> />
61
+ <?php _e('Allow users to upload zip folders.','nggallery') ?>
62
+ </td>
63
+ </tr>
64
+ <tr>
65
+ <th valign="top"><?php _e('Enable style selection','nggallery') ?>:</th>
66
+ <td><input name="wpmuStyle" type="checkbox" value="1" <?php checked('1', $ngg_options[wpmuStyle]); ?> />
67
+ <?php _e('Allow users to choose a style for the gallery.','nggallery') ?>
68
+ </td>
69
+ </tr>
70
+ <tr>
71
+ <th valign="top"><?php _e('Enable roles/capabilities','nggallery') ?>:</th>
72
+ <td><input name="wpmuRoles" type="checkbox" value="1" <?php checked('1', $ngg_options[wpmuRoles]); ?> />
73
+ <?php _e('Allow users to change the roles for other blog authors.','nggallery') ?>
74
+ </td>
75
+ </tr>
76
+ <tr>
77
+ <th valign="top"><?php _e('Default style','nggallery') ?>:</th>
78
+ <td>
79
+ <select name="wpmuCSSfile">
80
+ <?php
81
+ $csslist = ngg_get_cssfiles();
82
+ foreach ($csslist as $key =>$a_cssfile) {
83
+ $css_name = $a_cssfile['Name'];
84
+ if ($key == $ngg_options[wpmuCSSfile]) {
85
+ $file_show = $key;
86
+ $selected = " selected='selected'";
87
+ }
88
+ else $selected = '';
89
+ $css_name = attribute_escape($css_name);
90
+ echo "\n\t<option value=\"$key\" $selected>$css_name</option>";
91
+ }
92
+ ?>
93
+ </select><br />
94
+ <?php _e('Choose the default style for the galleries.','nggallery') ?>
95
+ </td>
96
+ </tr>
97
+ </table>
98
+ <div class="submit"><input type="submit" name="updateoption" value="<?php _e('Update') ;?> &raquo;"/></div>
99
+ </fieldset>
100
+ </form>
101
+ </div>
102
+
103
+ <?php
104
+ }
105
+
106
+
107
+ ?>
changelog.txt CHANGED
@@ -1,6 +1,27 @@
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  V0.83 - 14.02.2008
5
  - Changed : New Interfaces.js from WP Core 2.5, for sortable bug under IE7
6
  - Changed : Update to jQuery V1.2.2, deregister older version from WP
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
4
+ V0.90 - 18.03.2008
5
+ - NEW : Sort order for images
6
+ - NEW : Updated style for Wp 2.5
7
+ - NEW : Media upload tab integration for WP 2.5
8
+ - Added : Change wp shortcode filter
9
+ - Added : TinyMCE V3 Button for WordPress 2.5
10
+ - Added : Singlepic center class
11
+ - Changed : New default parameter for ImageRotator 3.15
12
+ - Changed : By default enable metadata import
13
+ - Changed : Moved disable/enable flash setting to add gallery
14
+ - Changed : wpdb->escape gallerytag in nggfunctions
15
+ - Changed : Sort files after scan folder
16
+ - Changed : Check for filename during upload
17
+ - Changed : Remove jQuery plugin for navigation
18
+ - Changed : Remove myGallery import
19
+ - Changed : Resample mode default set to 5, causes problems at PHP 4.4.8 /PHP 5.2.4
20
+ - Bugfix : nggextractXML missing stripslashes
21
+ - Bugfix : P tags not closed in manage.php
22
+ - Bugfix : Remove " from singlepic class
23
+ - Bugfix : Rewrite rule for ImageBrowser added
24
+
25
  V0.83 - 14.02.2008
26
  - Changed : New Interfaces.js from WP Core 2.5, for sortable bug under IE7
27
  - Changed : Update to jQuery V1.2.2, deregister older version from WP
css/Black_Minimalism .css CHANGED
@@ -246,6 +246,10 @@ it's only a template design
246
  float: right;
247
  }
248
 
 
 
 
 
249
 
250
  /* ----------- Sidebar widget -------------*/
251
  .ngg-widget,
246
  float: right;
247
  }
248
 
249
+ .ngg-center {
250
+ margin-left: auto;
251
+ margin-right: auto;
252
+ }
253
 
254
  /* ----------- Sidebar widget -------------*/
255
  .ngg-widget,
css/hovereffect.css CHANGED
@@ -295,6 +295,10 @@ This is a template stylesheet which doesn't support description below the thumbn
295
  float: right;
296
  }
297
 
 
 
 
 
298
 
299
  /* ----------- Sidebar widget -------------*/
300
  .ngg-widget,
295
  float: right;
296
  }
297
 
298
+ .ngg-center {
299
+ margin-left: auto;
300
+ margin-right: auto;
301
+ }
302
 
303
  /* ----------- Sidebar widget -------------*/
304
  .ngg-widget,
css/ngg_dkret3.css CHANGED
@@ -240,6 +240,10 @@ it's only a template design
240
  float: right;
241
  }
242
 
 
 
 
 
243
 
244
  /* ----------- Sidebar widget -------------*/
245
 
240
  float: right;
241
  }
242
 
243
+ .ngg-center {
244
+ margin-left: auto;
245
+ margin-right: auto;
246
+ }
247
 
248
  /* ----------- Sidebar widget -------------*/
249
 
css/ngg_k2.css CHANGED
@@ -251,6 +251,10 @@ it's only a template design
251
  float: right;
252
  }
253
 
 
 
 
 
254
 
255
  /* ----------- Sidebar widget -------------*/
256
  .ngg-widget,
251
  float: right;
252
  }
253
 
254
+ .ngg-center {
255
+ margin-left: auto;
256
+ margin-right: auto;
257
+ }
258
 
259
  /* ----------- Sidebar widget -------------*/
260
  .ngg-widget,
css/ngg_shadow.css CHANGED
@@ -240,6 +240,10 @@ it's only a template design
240
  float: right;
241
  }
242
 
 
 
 
 
243
 
244
  /* ----------- Sidebar widget -------------*/
245
 
240
  float: right;
241
  }
242
 
243
+ .ngg-center {
244
+ margin-left: auto;
245
+ margin-right: auto;
246
+ }
247
 
248
  /* ----------- Sidebar widget -------------*/
249
 
css/ngg_shadow2.css CHANGED
@@ -248,6 +248,10 @@ it's only a template design
248
  float: right;
249
  }
250
 
 
 
 
 
251
 
252
  /* ----------- Sidebar widget -------------*/
253
 
248
  float: right;
249
  }
250
 
251
+ .ngg-center {
252
+ margin-left: auto;
253
+ margin-right: auto;
254
+ }
255
 
256
  /* ----------- Sidebar widget -------------*/
257
 
css/nggallery.css CHANGED
@@ -249,6 +249,10 @@ it's only a template design
249
  float: right;
250
  }
251
 
 
 
 
 
252
 
253
  /* ----------- Sidebar widget -------------*/
254
  .ngg-widget,
249
  float: right;
250
  }
251
 
252
+ .ngg-center {
253
+ margin-left: auto;
254
+ margin-right: auto;
255
+ }
256
 
257
  /* ----------- Sidebar widget -------------*/
258
  .ngg-widget,
lang/nggallery-de_DE.mo CHANGED
Binary file
lang/nggallery-de_DE.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2008-02-04 14:03+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
@@ -15,56 +15,58 @@ msgstr ""
15
  "X-Poedit-SearchPath-0: .\n"
16
  "X-Poedit-SearchPath-1: ..\n"
17
 
18
- #: ../nggallery.php:175
19
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
20
  msgstr "Tut mir leid aber NextGEN Galerie arbeitet nur ab WordPress 2.1 und aufwärts"
21
 
22
- #: ../nggfunctions.php:474
23
- #: ../nggfunctions.php:489
24
  msgid "Watch gallery"
25
  msgstr "Galerie ansehen"
26
 
27
- #: ../nggfunctions.php:483
28
- #: ../nggfunctions.php:495
29
- #: ../nggfunctions.php:772
30
  msgid "Photos"
31
  msgstr "Fotos"
32
 
33
- #: ../nggfunctions.php:569
34
  msgid "Back"
35
  msgstr "Zurück"
36
 
37
- #: ../nggfunctions.php:573
38
  msgid "Next"
39
  msgstr "Vor"
40
 
41
- #: ../nggfunctions.php:576
42
  #: ../admin/manage.php:85
 
43
  #: ../tinymce/window.php:37
 
44
  msgid "Picture"
45
  msgstr "Bild"
46
 
47
- #: ../nggfunctions.php:576
48
  msgid "from"
49
  msgstr "von"
50
 
51
- #: ../nggfunctions.php:742
52
  msgid "Overview"
53
  msgstr "Übersicht"
54
 
55
- #: ../ngginstall.php:20
56
  msgid "Sorry, NextGEN Gallery works only with a role called administrator"
57
  msgstr "Tut mir leid, aber NextGEN Galerie benötigt die Rolle \"Administrator\""
58
 
59
- #: ../ngginstall.php:143
60
  msgid "NextGEN Gallery : Tables could not created, please check your database settings"
61
  msgstr "NextGEN Gallery : Tabellen konnten nicht erstellt werden, überprüfe deine Datenbank"
62
 
63
- #: ../ngginstall.php:183
64
  msgid "[Show as slideshow]"
65
  msgstr "[Zeige als Diashow]"
66
 
67
- #: ../ngginstall.php:184
68
  msgid "[Show picture list]"
69
  msgstr "[Zeige Bilder-Liste]"
70
 
@@ -116,7 +118,9 @@ msgstr "Zeige als :"
116
 
117
  #: ../nggwidget.php:311
118
  #: ../admin/settings.php:104
119
- #: ../admin/settings.php:299
 
 
120
  msgid "Thumbnails"
121
  msgstr "Thumbnails"
122
 
@@ -126,6 +130,7 @@ msgstr "Orginal Bilder"
126
 
127
  #: ../nggwidget.php:318
128
  #: ../admin/settings.php:562
 
129
  msgid "random"
130
  msgstr "Zufall"
131
 
@@ -162,413 +167,547 @@ msgid "Gallery IDs, separated by commas."
162
  msgstr "Galerie ID's, mit Kommas getrennt"
163
 
164
  #: ../admin/about.php:9
 
165
  msgid "Copyright notes / Credits"
166
  msgstr "Copyright Hinweise / Credits"
167
 
168
  #: ../admin/about.php:11
 
169
  msgid "NextGEN DEV Team"
170
  msgstr "NextGEN DEV Team"
171
 
172
  #: ../admin/about.php:12
 
173
  msgid "This plugin is primarily developed, maintained, supported, documented by"
174
  msgstr "Dieses Plugin wird hauptsächlich entwickelt, dokumentiert und supportet von"
175
 
176
  #: ../admin/about.php:12
 
177
  msgid "There are many other folks who have made contributions to this project :"
178
  msgstr "Folgende Personen haben die Entwicklung bisher unterstützt :"
179
 
180
  #: ../admin/about.php:14
 
181
  msgid "Contributors / Tribute to"
182
  msgstr "Anerkennung / Hinweise"
183
 
184
  #: ../admin/about.php:15
 
185
  msgid "If you study the code of this plugin, you will find out that we mixed a lot of good already existing code and ideas together."
186
  msgstr "Falls Du Dir den Sourcecode dieses Plugins ansiehst wirst Du merken, das wir verschiedene gute Scripte sowie Ideen verwendet haben."
187
 
188
  #: ../admin/about.php:16
 
189
  msgid "So, we would like to thank the following people for their pioneer work (without this work it's impossible to create such a plugin so fast)"
190
  msgstr "Wir möchten folgenden Menschen für Ihre Pionier-Arbeit danken (ohne diese Vorleistung wäre es unmöglich ein Plugin so schnell zu entwickeln)"
191
 
192
  #: ../admin/about.php:18
 
193
  msgid "for their great documented code"
194
  msgstr "für Ihren großartig dokumentierten Code"
195
 
196
  #: ../admin/about.php:19
 
197
  msgid "for jQuery, which is the best Web2.0 framework"
198
  msgstr "für jQuery, das Beste Web2.0 Framework"
199
 
200
  #: ../admin/about.php:20
 
201
  msgid "for the fantastic PHP Thumbnail Class"
202
  msgstr "für die fantastische PHP Thumbnail Klasse"
203
 
204
  #: ../admin/about.php:21
 
205
  msgid "for PclZip , a PHP library that manage ZIP archives"
206
  msgstr "für PclZip, eine ZIP PHP Library"
207
 
208
  #: ../admin/about.php:22
 
209
  msgid "for a lot of very useful plugins and ideas"
210
  msgstr "für viele nützliche Plugins und Ideen"
211
 
212
  #: ../admin/about.php:23
213
- msgid "for RS-Discuss, it saved me a lot of time"
214
- msgstr "für RS-Discuss, welches mir viel Zeit sparte"
 
215
 
216
  #: ../admin/about.php:24
 
217
  msgid "for the best Media Flash Scripts on earth"
218
  msgstr "für die besten Media Flash Scripte"
219
 
220
  #: ../admin/about.php:25
 
221
  msgid "for the Watermark plugin"
222
  msgstr "für das Wasserzeichen Plugin"
223
 
224
  #: ../admin/about.php:27
 
225
  msgid "If you didn't find your name on this list and there is some code which I integrate in my plugin, don't hesitate to send me a mail."
226
  msgstr "Falls Du Deinen Namen hier nicht auf dieser Liste findest und es einigen Code gibt, den ich in meinem Plugin verwendet habe, so schicken mir bitte sofort einfach eine EMail."
227
 
228
  #: ../admin/about.php:28
 
229
  msgid "How to support ?"
230
  msgstr "Unterstützung / Hilfe"
231
 
232
  #: ../admin/about.php:29
 
233
  msgid "There exist several ways to contribute, help or support us in this work. Non of them are mandatory."
234
  msgstr "Es existieren verschiedene Möglichkeiten diese Arbeit zu unterstützen."
235
 
236
  #: ../admin/about.php:31
 
237
  msgid "Send us bugfixes / code changes"
238
  msgstr "Schicke uns Verbesserungen / Bugfixes"
239
 
240
  #: ../admin/about.php:31
 
241
  msgid "The most motivated support for this plugin are your ideas and brain work"
242
  msgstr "Der beste Support für dieses Plugin sind Deine Ideen und Gedanken"
243
 
244
  #: ../admin/about.php:32
 
245
  msgid "Translate the plugin"
246
  msgstr "Übersetze das Plugin"
247
 
248
  #: ../admin/about.php:32
 
249
  msgid "To help people to work with this plugin, I would like to have it in all avaivable languages"
250
  msgstr "Um jedem das Arbeiten mit diesem Plugin zu vereinfachen würde ich es gerne in allen verfügbaren Sprachen anbieten"
251
 
252
  #: ../admin/about.php:33
 
253
  msgid "Donate the work via paypal"
254
  msgstr "Zeig Dich für diese Arbeit per PayPal dankbar"
255
 
256
  #: ../admin/about.php:44
 
257
  msgid "No doubt a very usefull and easy motivation :-)"
258
  msgstr "Kein Zweifel, eine schöne und simple Motivationshilfe"
259
 
260
  #: ../admin/about.php:46
 
261
  msgid "Place a link to the plugin in your blog/webpage"
262
  msgstr "Setze einen Link zu diesem Plugin auf Deinen Blog"
263
 
264
  #: ../admin/about.php:46
 
265
  msgid "Yes, share and trackback is also a good support for this work "
266
  msgstr "Natürlich sind Trackbacks und Links auch ein guter Support für diese Arbeit"
267
 
268
  #: ../admin/about.php:48
 
269
  msgid "Thanks!"
270
  msgstr "Vielen Dank!"
271
 
272
  #: ../admin/about.php:49
 
273
  msgid "We would like to thank this people which support us in the work :"
274
  msgstr "Wir wollen diesen Menschen für Ihre Hilfe danken:"
275
 
276
  #: ../admin/addgallery.php:35
277
  #: ../admin/addgallery.php:51
 
 
278
  msgid "Upload failed!"
279
  msgstr "Upload fehlgeschlagen!"
280
 
281
  #: ../admin/addgallery.php:56
282
- #: ../admin/functions.php:573
283
- #: ../admin/functions.php:641
 
 
 
284
  msgid "No gallery selected !"
285
  msgstr "Keine Galerie ausgewählt !"
286
 
287
- #: ../admin/addgallery.php:102
 
288
  msgid "Image Files"
289
  msgstr "Bilder"
290
 
291
- #: ../admin/addgallery.php:122
292
- #: ../admin/addgallery.php:152
 
 
293
  msgid "remove"
294
  msgstr "Entfernen"
295
 
296
- #: ../admin/addgallery.php:123
 
297
  msgid "Browse..."
298
  msgstr "Durchsuche..."
299
 
300
- #: ../admin/addgallery.php:124
301
- #: ../admin/addgallery.php:297
 
 
302
  msgid "Upload images"
303
  msgstr "Bilder hochladen"
304
 
305
- #: ../admin/addgallery.php:168
306
  #: ../admin/addgallery.php:180
 
 
 
307
  msgid "Add new gallery"
308
  msgstr "Neue Galerie erstellen"
309
 
310
- #: ../admin/addgallery.php:170
311
- #: ../admin/addgallery.php:201
 
 
312
  msgid "Upload a Zip-File"
313
  msgstr "Zip-Datei hochladen"
314
 
315
- #: ../admin/addgallery.php:173
316
- #: ../admin/addgallery.php:241
 
 
317
  msgid "Import image folder"
318
  msgstr "Bilder-Verzeichnis importieren"
319
 
320
- #: ../admin/addgallery.php:175
321
- #: ../admin/addgallery.php:265
 
 
322
  msgid "Upload Images"
323
  msgstr "Bilder hochladen"
324
 
325
- #: ../admin/addgallery.php:186
 
326
  msgid "New Gallery"
327
  msgstr "Neue Galerie"
328
 
329
- #: ../admin/addgallery.php:189
 
330
  msgid "Create a new , empty gallery below the folder"
331
  msgstr "Erstelle eine neue, leere Galerie unter dem Verzeichnis"
332
 
333
- #: ../admin/addgallery.php:191
 
334
  msgid "Allowed characters for file and folder names are"
335
  msgstr "Erlaubte Charaktere für die Datei- und Verzeichnisnamen sind"
336
 
337
- #: ../admin/addgallery.php:194
 
338
  msgid "Add gallery"
339
  msgstr "Galerie hinzufügen"
340
 
341
- #: ../admin/addgallery.php:207
 
342
  msgid "Select Zip-File"
343
  msgstr "Wähle Zip-Datei"
344
 
345
- #: ../admin/addgallery.php:209
 
346
  msgid "Upload a zip file with images"
347
  msgstr "Lade eine Zip-Datei mit Bildern hoch"
348
 
349
- #: ../admin/addgallery.php:212
350
- #: ../admin/addgallery.php:275
 
 
351
  msgid "in to"
352
  msgstr "in"
353
 
354
- #: ../admin/addgallery.php:214
 
355
  msgid "a new gallery"
356
  msgstr "eine neue Galerie"
357
 
358
- #: ../admin/addgallery.php:224
359
- #: ../admin/addgallery.php:287
 
 
360
  msgid "Note : The upload limit on your server is "
361
  msgstr "Hinweis : Das Upload-Limit auf dem Server beträgt "
362
 
363
- #: ../admin/addgallery.php:228
364
- #: ../admin/addgallery.php:253
365
- #: ../admin/addgallery.php:291
 
 
 
366
  msgid "Add Metadata :"
367
  msgstr "Metadaten hinzufügen :"
368
 
369
- #: ../admin/addgallery.php:230
370
- #: ../admin/addgallery.php:255
371
- #: ../admin/addgallery.php:293
 
 
 
372
  msgid "Import EXIF, IPTC or XMP data (if available)"
373
  msgstr "EXIF, IPTC oder XMP Daten importieren (wenn verfügbar)"
374
 
375
- #: ../admin/addgallery.php:233
 
376
  msgid "Start upload"
377
  msgstr "Upload starten"
378
 
379
- #: ../admin/addgallery.php:247
 
380
  msgid "Import from Server path:"
381
  msgstr "Importieren aus Server-Pfad:"
382
 
383
- #: ../admin/addgallery.php:249
384
  msgid "Import a folder with images. Please note :"
385
  msgstr "Importiere ein Verzeichniss mit Bildern. Bitte beachte:"
386
 
387
- #: ../admin/addgallery.php:250
388
  msgid "For safe-mode = ON you need to add the subfolder thumbs manually"
389
  msgstr "Da der Safe-Mode (PHP.INI) eingeschaltet ist, mußt Du das Unterverzeichnis für die Vorschaubilder (\"thumbs\") manuell (per FTP) anlegen"
390
 
391
- #: ../admin/addgallery.php:258
 
392
  msgid "Import folder"
393
  msgstr "Verzeichnis importieren"
394
 
395
- #: ../admin/addgallery.php:271
 
396
  msgid "Upload image"
397
  msgstr "Bild hochladen"
398
 
399
- #: ../admin/addgallery.php:277
 
400
  msgid "Choose gallery"
401
  msgstr "Wähle Galerie"
402
 
403
- #: ../admin/admin.php:54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404
  #: ../admin/functions.php:78
405
  #: ../admin/functions.php:82
406
- #: ../admin/functions.php:129
407
  #: ../admin/manage.php:64
408
- #: ../admin/manage.php:424
409
  #: ../admin/settings.php:106
410
  #: ../admin/uploadtab.php:36
411
- #: ../admin/_manage.php:182
412
- #: ../admin/_manage.php:991
 
 
 
 
 
413
  #: ../tinymce/window.php:35
 
414
  msgid "Gallery"
415
  msgstr "Galerie"
416
 
417
- #: ../admin/admin.php:55
 
418
  msgid "Add Gallery"
419
  msgstr "Bilder/Galerie hinzufügen"
420
 
421
- #: ../admin/admin.php:56
 
422
  msgid "Manage Gallery"
423
  msgstr "Galerie verwalten"
424
 
425
- #: ../admin/admin.php:57
 
426
  #: ../tinymce/window.php:36
 
427
  msgid "Album"
428
  msgstr "Album"
429
 
430
- #: ../admin/admin.php:58
 
431
  msgid "Options"
432
  msgstr "Optionen"
433
 
434
- #: ../admin/admin.php:60
 
435
  msgid "Style"
436
  msgstr "Style"
437
 
438
- #: ../admin/admin.php:61
 
439
  msgid "Setup Gallery"
440
  msgstr "Galerie Setup"
441
 
442
- #: ../admin/admin.php:61
 
443
  msgid "Setup"
444
  msgstr "Setup"
445
 
446
- #: ../admin/admin.php:63
 
447
  msgid "Roles"
448
  msgstr "Zugriff"
449
 
450
- #: ../admin/admin.php:65
451
- #: ../admin/myimport.php:74
452
- msgid "Import"
453
- msgstr "Import "
454
-
455
- #: ../admin/admin.php:66
456
  msgid "About this Gallery"
457
  msgstr "Über diese Galerie"
458
 
459
- #: ../admin/admin.php:66
 
460
  msgid "About"
461
  msgstr "Über"
462
 
463
- #: ../admin/admin.php:68
 
 
464
  msgid "NextGEN Gallery"
465
  msgstr "NextGEN Gallery"
466
 
467
- #: ../admin/album.php:17
468
- #: ../admin/album.php:36
 
 
469
  msgid "Update Successfully"
470
  msgstr "Update erfolgreich"
471
 
472
- #: ../admin/album.php:44
 
473
  msgid "Album deleted"
474
  msgstr "Album gelöscht"
475
 
476
- #: ../admin/album.php:123
 
477
  msgid "Manage Albums"
478
  msgstr "Verwalte Alben"
479
 
480
- #: ../admin/album.php:129
 
481
  #: ../tinymce/window.php:74
 
482
  msgid "Select album"
483
  msgstr "Wähle Album"
484
 
485
- #: ../admin/album.php:132
 
486
  msgid "No album selected"
487
  msgstr "Kein Album ausgewählt"
488
 
489
- #: ../admin/album.php:145
 
490
  msgid "Add new album"
491
  msgstr "Album hinzufügen"
492
 
493
- #: ../admin/album.php:149
494
- #: ../admin/manage.php:302
495
- #: ../admin/manage.php:568
496
- #: ../admin/_manage.php:232
 
 
497
  msgid "Delete"
498
  msgstr "Lösche"
499
 
500
- #: ../admin/album.php:149
 
501
  msgid "Delete album ?"
502
  msgstr "Lösche Album ?"
503
 
504
- #: ../admin/album.php:151
505
- #: ../admin/settings.php:171
506
- #: ../admin/settings.php:211
507
- #: ../admin/settings.php:258
508
  #: ../admin/settings.php:333
509
  #: ../admin/settings.php:380
510
  #: ../admin/settings.php:492
511
  #: ../admin/settings.php:600
512
  #: ../admin/wpmu.php:98
 
 
 
 
 
 
 
 
 
513
  msgid "Update"
514
  msgstr "Aktualisiere"
515
 
516
- #: ../admin/album.php:159
 
517
  msgid "[Show all]"
518
  msgstr "[Alle zeigen]"
519
 
520
- #: ../admin/album.php:160
 
521
  msgid "[Maximize]"
522
  msgstr "[Vergrößern]"
523
 
524
- #: ../admin/album.php:161
 
525
  msgid "[Minimize]"
526
  msgstr "[Verkleinern]"
527
 
528
- #: ../admin/album.php:163
 
529
  msgid "After you create and select a album, you can drag and drop a gallery into your album below"
530
  msgstr "Nachdem du ein Album erstellt und ausgewählt hast, kannst du per Drag & Drop eine Galerie in das Album ziehen"
531
 
532
- #: ../admin/album.php:170
 
533
  msgid "Select Gallery"
534
  msgstr "Wähle Galerie"
535
 
536
- #: ../admin/album.php:209
 
537
  msgid "Album Page ID"
538
  msgstr "Album Seiten ID (Page ID)"
539
 
540
- #: ../admin/album.php:221
 
541
  msgid "No album selected!"
542
  msgstr "Kein Album ausgewählt"
543
 
544
- #: ../admin/album.php:257
545
- #: ../admin/manage.php:276
546
- #: ../admin/manage.php:523
547
- #: ../admin/myimport.php:49
548
- #: ../admin/_manage.php:206
 
549
  msgid "ID"
550
  msgstr "ID"
551
 
552
- #: ../admin/album.php:258
 
553
  msgid "Name"
554
  msgstr "Name"
555
 
556
- #: ../admin/album.php:259
557
- #: ../admin/manage.php:278
558
- #: ../admin/manage.php:436
559
- #: ../admin/myimport.php:51
560
- #: ../admin/_manage.php:208
561
- #: ../admin/_manage.php:1005
562
  #: ../admin/js/uploadtab.js.php:109
 
 
 
563
  #: ../lib/nggmeta.lib.php:373
564
  msgid "Title"
565
  msgstr "Titel"
566
 
567
- #: ../admin/album.php:260
 
568
  msgid "Page"
569
  msgstr "Seite"
570
 
571
  #: ../admin/functions.php:20
 
572
  msgid "No valid gallery name!"
573
  msgstr "Kein gültiger Galerie-Name!"
574
 
@@ -577,387 +716,462 @@ msgstr "Kein gültiger Galerie-Name!"
577
  #: ../admin/functions.php:50
578
  #: ../admin/functions.php:102
579
  #: ../admin/functions.php:109
 
 
 
 
 
580
  msgid "Directory"
581
  msgstr "Verzeichnis"
582
 
583
  #: ../admin/functions.php:27
 
584
  msgid "didn't exist. Please create first the main gallery folder "
585
  msgstr "nicht gefunden. Bitte erstelle zuerst das Hauptverzeichnis."
586
 
587
  #: ../admin/functions.php:28
588
  #: ../admin/functions.php:37
 
 
589
  msgid "Check this link, if you didn't know how to set the permission :"
590
  msgstr "Dieser Link zeigt dir wie man Verzeichnisrechte ändert :"
591
 
592
  #: ../admin/functions.php:36
593
  #: ../admin/functions.php:50
 
 
594
  msgid "is not writeable !"
595
  msgstr "ist schreibgeschützt !"
596
 
597
  #: ../admin/functions.php:45
598
  #: ../admin/functions.php:55
599
- #: ../admin/functions.php:521
 
 
 
600
  #: ../lib/nggallery.lib.php:297
601
  msgid "Unable to create directory "
602
  msgstr "Kann Verzeichnis nicht erstellen "
603
 
604
  #: ../admin/functions.php:59
 
605
  msgid "The server setting Safe-Mode is on !"
606
  msgstr "Auf dem Server ist Safe-Mode aktiviert (PHP.INI)"
607
 
608
  #: ../admin/functions.php:60
 
609
  msgid "If you have problems, please create directory"
610
  msgstr "Wenn Probleme auftreten, erstelle bitte das Verzeichnis"
611
 
612
  #: ../admin/functions.php:61
 
613
  msgid "and the thumbnails directory"
614
  msgstr "und das Thumbnails-Verzeichnis"
615
 
616
  #: ../admin/functions.php:61
 
617
  msgid "with permission 777 manually !"
618
  msgstr "mit den Berechtigungen 777 manuell !"
619
 
620
  #: ../admin/functions.php:78
 
621
  msgid "already exists"
622
  msgstr "gibt es bereits"
623
 
624
  #: ../admin/functions.php:82
625
- #: ../admin/functions.php:129
 
 
626
  msgid "successfully created!"
627
  msgstr "erfolgreich erstellt!"
628
 
629
  #: ../admin/functions.php:82
 
630
  msgid "You can show this gallery with the tag"
631
  msgstr "Du kannst diese Galerie mit dem Stichwort anzeigen :"
632
 
633
  #: ../admin/functions.php:102
 
634
  msgid "doesn&#96;t exist!"
635
  msgstr "gibt es nicht !"
636
 
637
  #: ../admin/functions.php:109
 
638
  msgid "contains no pictures"
639
  msgstr "enthält keine Bilder"
640
 
641
- #: ../admin/functions.php:126
642
- #: ../admin/myimport.php:38
643
  msgid "Database error. Could not add gallery!"
644
  msgstr "Datenbank-Fehler. Kann Galerie nicht hinzufügen!"
645
 
646
- #: ../admin/functions.php:145
 
647
  msgid " picture(s) successfully added"
648
  msgstr " Bild(er) erfolgreich hinzugefügt"
649
 
650
  #: ../admin/functions.php:175
651
- #: ../admin/functions.php:222
652
- #: ../admin/functions.php:283
 
 
 
653
  msgid "Running... Please wait"
654
  msgstr "Läuft... Bitte warten"
655
 
656
  #: ../admin/functions.php:176
657
- #: ../admin/manage.php:500
 
 
658
  msgid "Resize images"
659
  msgstr "Bilder verkleinern"
660
 
661
- #: ../admin/functions.php:198
 
662
  msgid " : Image resized..."
663
  msgstr " : Bild angepasst..."
664
 
665
- #: ../admin/functions.php:207
666
- #: ../admin/functions.php:262
 
 
667
  msgid "Some pictures are not writeable :"
668
  msgstr "Einige Bilder sind schreibgeschützt :"
669
 
670
- #: ../admin/functions.php:223
671
- #: ../admin/manage.php:498
 
 
672
  msgid "Set watermark"
673
  msgstr "Wasserzeichen setzen"
674
 
675
- #: ../admin/functions.php:253
 
676
  msgid " : Watermark created..."
677
  msgstr " : Wasserzeichen gesetzt..."
678
 
679
- #: ../admin/functions.php:284
680
- #: ../admin/manage.php:499
 
 
681
  msgid "Create new thumbnails"
682
  msgstr "Neue Thumbnails erstellen"
683
 
684
- #: ../admin/functions.php:349
 
685
  msgid " : Thumbnail created..."
686
  msgstr ": Thumbnail erstellt..."
687
 
688
- #: ../admin/functions.php:354
 
689
  msgid "Follow thumbnails could not created."
690
  msgstr "Folgende Thumbnails konnten nicht erstellt werden :"
691
 
692
- #: ../admin/functions.php:355
 
693
  msgid "Some thumbnails are not writeable :"
694
  msgstr "Einige Thumbnails sind schreibgeschützt :"
695
 
696
- #: ../admin/functions.php:456
 
697
  msgid "The Zip-file is too large. Exceed Memory limit !"
698
  msgstr "Das Zip-File ist zu groß. Speicherlimit überschritten !"
699
 
700
- #: ../admin/functions.php:497
 
701
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
702
  msgstr "Die hochgeladene Datei war keine korrekte Zip-Datei. Servermeldung :"
703
 
704
- #: ../admin/functions.php:516
 
705
  #, php-format
706
  msgid "Unable to create directory %s. Is its parent directory writable by the server?"
707
  msgstr "Kann das Verzeichnis %s nicht erstellen. Is das Hauptverzeichnis vielleicht schreibgeschützt ?"
708
 
709
- #: ../admin/functions.php:531
 
710
  msgid "Zip-File successfully unpacked"
711
  msgstr "Zip-Datei erfolgreich entpackt"
712
 
713
- #: ../admin/functions.php:572
714
- #: ../admin/functions.php:580
715
- msgid "Unable to unlink file "
716
- msgstr "Kann das Bild nicht löschen"
717
-
718
- #: ../admin/functions.php:581
719
- #: ../admin/functions.php:666
720
  msgid "Failure in database, no gallery path set !"
721
  msgstr "Datenbankfehler! Kein Galerie-Pfad gesetzt !"
722
 
723
- #: ../admin/functions.php:588
724
- #: ../admin/functions.php:659
 
 
725
  msgid "is no valid image file!"
726
  msgstr "ist keine zulässige Bilddatei !"
727
 
728
- #: ../admin/functions.php:596
 
729
  #, php-format
730
  msgid "Unable to write to directory %s. Is this directory writable by the server?"
731
  msgstr "Kann das Verzeichnis %s nicht erstellen. Is das Hauptverzeichnis vielleicht schreibgeschützt ?"
732
 
733
- #: ../admin/functions.php:603
734
- #: ../admin/functions.php:683
 
 
735
  msgid "Error, the file could not moved to : "
736
  msgstr "Fehler: Diese Datei kann nicht verschoben werden zu :"
737
 
738
- #: ../admin/functions.php:608
739
- #: ../admin/functions.php:687
 
 
740
  msgid "Error, the file permissions could not set"
741
  msgstr "Fehler: Die Berechtigungen für diese Datei können nicht gesetzt werden"
742
 
743
- #: ../admin/functions.php:626
 
744
  msgid " Image(s) successfully added"
745
  msgstr " Bild(er) erfolgreich hinzugefügt"
746
 
747
- #: ../admin/functions.php:646
 
748
  msgid "Invalid upload. Error Code : "
749
  msgstr "Ungültiger Upload. Fehler Code :"
750
 
751
- #: ../admin/functions.php:698
 
752
  msgid "Sorry, you have used your space allocation. Please delete some files to upload more files."
753
  msgstr "Schade, dein freier Speicher scheint aufgebraucht zu sein. Bitte lösche zuerst ein paar Bilder."
754
 
755
- #: ../admin/functions.php:725
 
756
  #, php-format
757
  msgid "SAFE MODE Restriction in effect! You need to create the folder <strong>%s</strong> manually"
758
  msgstr "SAFE MODE Einschränkungen ist aktiv. Du must das Verzeichnis <strong>%s</strong> manuell anlegen."
759
 
760
- #: ../admin/functions.php:726
 
761
  #, php-format
762
  msgid "When safe_mode is on, PHP checks to see if the owner (%s) of the current script matches the owner (%s) of the file to be operated on by a file function or its directory"
763
  msgstr "Wenn der Safe-Mode eingeschaltet ist, überprüft PHP ob der Besitzer (%s) des Skript mit dem Besitzer (%s) der Datei/Verzeichnis übereinstimmt."
764
 
765
  #: ../admin/manage.php:64
766
  #: ../admin/manage.php:85
767
- #: ../admin/_manage.php:182
 
768
  msgid "deleted successfully"
769
  msgstr "erfolgreich gelöscht"
770
 
771
  #: ../admin/manage.php:111
 
772
  msgid "Watermark successfully added"
773
  msgstr "Wasserzeichen erfolgreich erstellt"
774
 
775
  #: ../admin/manage.php:116
 
776
  msgid "Thumbnails successfully created. Please refresh your browser cache."
777
  msgstr "Thumbnails erfolgreich erstellt. Bitte Browser-Cache aktualisieren."
778
 
779
  #: ../admin/manage.php:121
 
780
  msgid "Images successfully resized"
781
  msgstr "Bilder erfolgreich verkleinert"
782
 
783
  #: ../admin/manage.php:139
 
784
  msgid "Pictures deleted successfully "
785
  msgstr "Bilder erfolgreich gelöscht"
786
 
787
  #: ../admin/manage.php:145
 
788
  msgid "Import metadata finished"
789
  msgstr "Import der Metadaten beendet"
790
 
791
  #: ../admin/manage.php:195
 
792
  msgid "Tags changed"
793
  msgstr "Stichwörter geändert"
794
 
795
  #: ../admin/manage.php:215
 
796
  msgid "Update successful"
797
  msgstr "Aktualisierung erfolgreich"
798
 
799
- #: ../admin/manage.php:249
 
800
  msgid "New gallery page ID"
801
  msgstr "Neue Galerie Seiten ID"
802
 
803
- #: ../admin/manage.php:249
 
804
  msgid "created"
805
  msgstr "erstellt"
806
 
807
- #: ../admin/manage.php:272
808
- #: ../admin/_manage.php:202
809
  msgid "Gallery Overview"
810
  msgstr "Galerie Übersicht"
811
 
812
- #: ../admin/manage.php:277
813
- #: ../admin/myimport.php:50
814
- #: ../admin/_manage.php:207
815
  msgid "Gallery name"
816
  msgstr "Galerie Name"
817
 
818
- #: ../admin/manage.php:279
819
- #: ../admin/manage.php:455
820
- #: ../admin/manage.php:529
821
- #: ../admin/myimport.php:52
822
  #: ../admin/style.php:102
823
  #: ../admin/uploadtab.php:180
824
- #: ../admin/_manage.php:209
825
- #: ../admin/_manage.php:1024
826
  #: ../admin/js/uploadtab.js.php:172
 
 
 
 
 
827
  msgid "Description"
828
  msgstr "Beschreibung"
829
 
830
- #: ../admin/manage.php:280
831
- #: ../admin/myimport.php:53
832
- #: ../admin/_manage.php:210
833
  msgid "Page ID"
834
  msgstr "Seiten ID (Page ID)"
835
 
836
- #: ../admin/manage.php:281
837
- #: ../admin/myimport.php:54
838
- #: ../admin/_manage.php:211
839
  msgid "Quantity"
840
  msgstr "Anzahl"
841
 
842
- #: ../admin/manage.php:282
843
- #: ../admin/manage.php:535
844
- #: ../admin/myimport.php:55
845
- #: ../admin/_manage.php:212
846
  msgid "Action"
847
  msgstr "Aktion"
848
 
849
- #: ../admin/manage.php:301
850
- #: ../admin/_manage.php:231
851
  #: ../admin/js/uploadtab.js.php:93
 
852
  msgid "Edit"
853
  msgstr "Bearbeiten"
854
 
855
- #: ../admin/manage.php:302
856
- #: ../admin/_manage.php:232
857
  msgid "Delete this gallery ?"
858
  msgstr "Diese Galerie löschen ?"
859
 
860
- #: ../admin/manage.php:307
861
- #: ../admin/manage.php:573
862
- #: ../admin/myimport.php:79
863
- #: ../admin/_manage.php:237
864
- #: ../admin/_manage.php:1155
865
  msgid "No entries found"
866
  msgstr "Keine Einträge gefunden"
867
 
868
- #: ../admin/manage.php:433
869
- #: ../admin/_manage.php:1001
870
  msgid "Main settings"
871
  msgstr "Haupteinstellungen"
872
 
873
- #: ../admin/manage.php:438
874
- #: ../admin/_manage.php:1007
875
  msgid "Page Link to"
876
  msgstr "Seite verlinkt zu"
877
 
878
- #: ../admin/manage.php:441
879
- #: ../admin/_manage.php:1010
880
  msgid "Not linked"
881
  msgstr "Nicht verlinkt"
882
 
883
- #: ../admin/manage.php:457
884
- #: ../admin/_manage.php:1026
885
  msgid "Preview image"
886
  msgstr "Vorschau-Bild"
887
 
888
- #: ../admin/manage.php:460
889
- #: ../admin/_manage.php:1029
890
  msgid "No Picture"
891
  msgstr "Kein Bild"
892
 
893
- #: ../admin/manage.php:475
894
- #: ../admin/_manage.php:1043
895
  msgid "Path"
896
  msgstr "Pfad"
897
 
898
- #: ../admin/manage.php:478
899
- #: ../admin/_manage.php:1045
900
  msgid "Create new page"
901
  msgstr "Neue Seite erstellen"
902
 
903
- #: ../admin/manage.php:481
904
- #: ../admin/_manage.php:1048
905
  msgid "Main page (No parent)"
906
  msgstr "Haupseite (keine Unterseite)"
907
 
908
- #: ../admin/manage.php:484
909
- #: ../admin/_manage.php:1051
910
  msgid "Add page"
911
  msgstr "Seite hinzufügen"
912
 
913
- #: ../admin/manage.php:490
914
- #: ../admin/_manage.php:1057
915
  msgid "Scan Folder for new images"
916
  msgstr "Überprüfe Verzeichniss nach neuen Bildern"
917
 
918
- #: ../admin/manage.php:491
919
- #: ../admin/manage.php:580
920
- #: ../admin/_manage.php:1058
 
 
921
  msgid "Save Changes"
922
  msgstr "Änderungen Speichern"
923
 
924
- #: ../admin/manage.php:496
 
925
  msgid "No action"
926
  msgstr "Keine Aktion"
927
 
928
- #: ../admin/manage.php:501
 
929
  msgid "Delete images"
930
  msgstr "Bilder löschen"
931
 
932
- #: ../admin/manage.php:502
 
933
  msgid "Import metadata"
934
  msgstr "Metadaten importieren"
935
 
936
- #: ../admin/manage.php:504
 
937
  msgid "Add tags"
938
  msgstr "Stichwörter hinzufügen"
939
 
940
- #: ../admin/manage.php:505
 
941
  msgid "Delete tags"
942
  msgstr "Stichwörter löschen"
943
 
944
- #: ../admin/manage.php:506
 
945
  msgid "Overwrite tags"
946
  msgstr "Stichwörter überschreiben"
947
 
948
- #: ../admin/manage.php:510
949
- #: ../admin/manage.php:511
950
- #: ../admin/manage.php:598
 
 
 
951
  msgid "OK"
952
  msgstr "OK"
953
 
954
- #: ../admin/manage.php:510
955
- #: ../admin/manage.php:598
 
 
956
  msgid "No images selected"
957
  msgstr "Keine Bilder ausgewählt"
958
 
959
- #: ../admin/manage.php:510
960
- #: ../admin/manage.php:598
 
 
961
  #, php-format
962
  msgid ""
963
  "You are about to start the bulk edit for %s images \n"
@@ -968,88 +1182,95 @@ msgstr ""
968
  " \n"
969
  " 'Abbrechenl' um zu stoppen, 'OK' um die Bearbeitung durchzuführen."
970
 
971
- #: ../admin/manage.php:512
 
972
  msgid "Hide thumbnails "
973
  msgstr "Thumbnails verstecken"
974
 
975
- #: ../admin/manage.php:513
 
976
  msgid "Show thumbnails "
977
  msgstr "Thumbnails zeigen"
978
 
979
- #: ../admin/manage.php:514
 
980
  msgid "Show tags"
981
  msgstr "Zeige Tags"
982
 
983
- #: ../admin/manage.php:515
 
984
  msgid "Hide tags"
985
  msgstr "Verstecke Tags"
986
 
987
- #: ../admin/manage.php:524
 
 
 
 
 
988
  #: ../admin/settings.php:322
 
 
989
  msgid "File name"
990
  msgstr "Dateiname"
991
 
992
- #: ../admin/manage.php:526
993
  #: ../admin/js/uploadtab.js.php:106
 
994
  msgid "Thumbnail"
995
  msgstr "Thumbnail"
996
 
997
- #: ../admin/manage.php:530
998
  #: ../admin/uploadtab.php:176
999
  #: ../admin/js/uploadtab.js.php:169
 
1000
  msgid "Alt &amp; Title Text"
1001
  msgstr "Alt &amp; Titel Text"
1002
 
1003
- #: ../admin/manage.php:531
 
1004
  msgid "exclude"
1005
  msgstr "ausschließen"
1006
 
1007
- #: ../admin/manage.php:533
 
1008
  msgid "Tags (comma separated list)"
1009
  msgstr "Stichwörter (Tags)"
1010
 
1011
- #: ../admin/manage.php:566
 
1012
  msgid "View"
1013
  msgstr "Ansehen"
1014
 
1015
- #: ../admin/manage.php:567
 
1016
  msgid "Show Meta data"
1017
  msgstr "Zeige Metadaten"
1018
 
1019
- #: ../admin/manage.php:567
 
1020
  msgid "Meta"
1021
  msgstr "Meta"
1022
 
1023
- #: ../admin/manage.php:568
 
1024
  msgid "Delete this file ?"
1025
  msgstr "Diese Datei löschen ?"
1026
 
1027
- #: ../admin/manage.php:595
 
1028
  msgid "Enter the tags"
1029
  msgstr "Stichwörter angeben"
1030
 
1031
- #: ../admin/manage.php:598
1032
- #: ../tinymce/window.php:146
 
 
1033
  msgid "Cancel"
1034
  msgstr "Abbrechen"
1035
 
1036
- #: ../admin/myimport.php:35
1037
- msgid "Gallery "
1038
- msgstr "Galerie"
1039
-
1040
- #: ../admin/myimport.php:35
1041
- msgid " : Import successfull"
1042
- msgstr " : Import erfolgreich"
1043
-
1044
- #: ../admin/myimport.php:45
1045
- msgid "myGallery Import"
1046
- msgstr "myGallery Import"
1047
-
1048
- #: ../admin/myimport.php:74
1049
- msgid "Import this gallery ?"
1050
- msgstr "Diese Galerie importieren ?"
1051
-
1052
  #: ../admin/overview.php:18
 
1053
  msgid "NextGEN Gallery Overview"
1054
  msgstr "NextGEN Galerie Übersicht"
1055
 
@@ -1058,23 +1279,28 @@ msgid "Summary"
1058
  msgstr "Zusammenfassung"
1059
 
1060
  #: ../admin/overview.php:30
 
1061
  #, php-format
1062
  msgid "There are totally %1$s pictures in %2$s galleries, which are spread across %3$s albums."
1063
  msgstr "Es gibt insgesamt %1$s Bilder in %2$s Galerien - verteilt in %3$s Alben."
1064
 
1065
  #: ../admin/overview.php:34
 
1066
  msgid "New Version available"
1067
  msgstr "Neue Version verfügbar !!"
1068
 
1069
  #: ../admin/overview.php:35
 
1070
  msgid "The server reports that a new NextGEN Gallery Version is now available. Please visit the plugin homepage for more information."
1071
  msgstr "Der Server benachrichtigt Dich über eine neu verfügbare Version der NextGEN Galerie. Bitte besuche die Plugin Homepage um weitere Informationen zu erhalten."
1072
 
1073
  #: ../admin/overview.php:36
 
1074
  msgid "Download here"
1075
  msgstr "Hier dowloaden"
1076
 
1077
  #: ../admin/overview.php:42
 
1078
  msgid "Server Settings"
1079
  msgstr "Server- Einstellungen"
1080
 
@@ -1083,10 +1309,12 @@ msgid "Welcome"
1083
  msgstr "Willkommen"
1084
 
1085
  #: ../admin/overview.php:54
 
1086
  msgid "gallery administrator"
1087
  msgstr "Galerie-Administrator"
1088
 
1089
  #: ../admin/overview.php:54
 
1090
  msgid "gallery editor"
1091
  msgstr "Galerie-Mitarbeiter"
1092
 
@@ -1112,19 +1340,23 @@ msgid "Change the settings of NextGEN Gallery"
1112
  msgstr "Ändere die Einstellungen von NextGEN Galerie"
1113
 
1114
  #: ../admin/overview.php:66
 
1115
  msgid "Latest News"
1116
  msgstr "Letzte Informationen"
1117
 
1118
  #: ../admin/overview.php:85
 
1119
  #, php-format
1120
  msgid "Newsfeed could not be loaded. Check the <a href=\"%s\">front page</a> to check for updates."
1121
  msgstr "Der Newsfeed kann nicht geladen werden. Schaue auf die <a href=\"%s\">Hauptseite</a> um Updates mitzubekommen."
1122
 
1123
  #: ../admin/overview.php:98
 
1124
  msgid "GD support"
1125
  msgstr "GD Unterstützung"
1126
 
1127
  #: ../admin/overview.php:109
 
1128
  msgid "No GD support"
1129
  msgstr "Keine GD Unterstützung"
1130
 
@@ -1132,6 +1364,10 @@ msgstr "Keine GD Unterstützung"
1132
  #: ../admin/overview.php:154
1133
  #: ../admin/overview.php:157
1134
  #: ../admin/overview.php:160
 
 
 
 
1135
  msgid "Yes"
1136
  msgstr "Ja"
1137
 
@@ -1139,20 +1375,29 @@ msgstr "Ja"
1139
  #: ../admin/overview.php:155
1140
  #: ../admin/overview.php:158
1141
  #: ../admin/overview.php:161
 
 
 
 
1142
  msgid "No"
1143
  msgstr "Nein"
1144
 
1145
  #: ../admin/overview.php:131
 
1146
  msgid "Not set"
1147
  msgstr "Nicht gesetzt"
1148
 
1149
  #: ../admin/overview.php:133
1150
  #: ../admin/overview.php:136
 
 
1151
  msgid "On"
1152
  msgstr "An"
1153
 
1154
  #: ../admin/overview.php:134
1155
  #: ../admin/overview.php:137
 
 
1156
  msgid "Off"
1157
  msgstr "Aus"
1158
 
@@ -1161,679 +1406,849 @@ msgstr "Aus"
1161
  #: ../admin/overview.php:146
1162
  #: ../admin/overview.php:149
1163
  #: ../admin/overview.php:152
 
 
 
 
 
1164
  msgid "N/A"
1165
  msgstr "N/A"
1166
 
1167
  #: ../admin/overview.php:151
 
1168
  msgid " MByte"
1169
  msgstr " MByte"
1170
 
1171
  #: ../admin/overview.php:164
 
1172
  msgid "Operating System"
1173
  msgstr "Betriebssystem"
1174
 
1175
  #: ../admin/overview.php:165
 
1176
  msgid "Server"
1177
  msgstr "Server"
1178
 
1179
  #: ../admin/overview.php:166
 
1180
  msgid "Memory usage"
1181
  msgstr "Speicherverbrauch"
1182
 
1183
  #: ../admin/overview.php:167
 
1184
  msgid "MYSQL Version"
1185
  msgstr "MySQL Version"
1186
 
1187
  #: ../admin/overview.php:168
 
1188
  msgid "SQL Mode"
1189
  msgstr "SQL Modus"
1190
 
1191
  #: ../admin/overview.php:169
 
1192
  msgid "PHP Version"
1193
  msgstr "PHP Version"
1194
 
1195
  #: ../admin/overview.php:170
 
1196
  msgid "PHP Safe Mode"
1197
  msgstr "PHP Safe Mode"
1198
 
1199
  #: ../admin/overview.php:171
 
1200
  msgid "PHP Allow URL fopen"
1201
  msgstr "PHP Allow URL fopen"
1202
 
1203
  #: ../admin/overview.php:172
 
1204
  msgid "PHP Memory Limit"
1205
  msgstr "PHP Memory Limit"
1206
 
1207
  #: ../admin/overview.php:173
 
1208
  msgid "PHP Max Upload Size"
1209
  msgstr "PHP Max Upload Size"
1210
 
1211
  #: ../admin/overview.php:174
 
1212
  msgid "PHP Max Post Size"
1213
  msgstr "PHP Max Post Size"
1214
 
1215
  #: ../admin/overview.php:175
 
1216
  msgid "PHP Max Script Execute Time"
1217
  msgstr "PHP Max Script Execute Time"
1218
 
1219
  #: ../admin/overview.php:176
 
1220
  msgid "PHP Exif support"
1221
  msgstr "PHP Exif Modul"
1222
 
1223
  #: ../admin/overview.php:177
 
1224
  msgid "PHP IPTC support"
1225
  msgstr "PHP IPTC Modul"
1226
 
1227
  #: ../admin/overview.php:178
 
1228
  msgid "PHP XML support"
1229
  msgstr "PHP XML Modul"
1230
 
1231
  #: ../admin/overview.php:319
 
1232
  msgid "Storage Space"
1233
  msgstr "Speicherplatz"
1234
 
1235
  #: ../admin/overview.php:322
 
1236
  msgid "Upload Space Used:"
1237
  msgstr "Verbrauchter Uploadspeicher:"
1238
 
1239
  #: ../admin/overview.php:328
 
1240
  msgid "Upload Space Remaining:"
1241
  msgstr "Verbleibender Speicher:"
1242
 
1243
  #: ../admin/roles.php:20
 
1244
  msgid "Updated capabilities"
1245
  msgstr "Zugriffsrechte geändert"
1246
 
1247
  #: ../admin/roles.php:25
 
1248
  msgid "Roles / capabilities"
1249
  msgstr "Rollen / Zugriffsrechte"
1250
 
1251
  #: ../admin/roles.php:26
 
1252
  msgid "Select the lowest role which should be able to access the follow capabilities. NextGEN Gallery supports the standard roles from WordPress."
1253
  msgstr "Wähle die niedrigste Rolle aus, die Zugriff haben soll. NextGEN Gallery unterstützt nur die Standard Wordpress Rollen/Fähigkeiten von WordPress."
1254
 
1255
  #: ../admin/roles.php:27
 
1256
  msgid "For a more flexible user management you can use the"
1257
  msgstr "Nutze für eine flexiblere Rechteverwaltung den "
1258
 
1259
  #: ../admin/roles.php:33
 
1260
  msgid "Main NextGEN Gallery overview"
1261
  msgstr "NextGEN Galerie Übersicht"
1262
 
1263
  #: ../admin/roles.php:37
 
1264
  msgid "Use TinyMCE Button / Upload tab"
1265
  msgstr "TinyMCE Button / Upload Tab"
1266
 
1267
  #: ../admin/roles.php:41
 
1268
  msgid "Add gallery / Upload images"
1269
  msgstr "Galerie einrichten / Bilder hochladen"
1270
 
1271
  #: ../admin/roles.php:45
 
1272
  msgid "Manage gallery"
1273
  msgstr "Galerie verwalten"
1274
 
1275
  #: ../admin/roles.php:49
 
1276
  msgid "Edit Album"
1277
  msgstr "Album erstellen"
1278
 
1279
  #: ../admin/roles.php:53
 
1280
  msgid "Change style"
1281
  msgstr "Style anpassen"
1282
 
1283
  #: ../admin/roles.php:57
 
1284
  msgid "Change options"
1285
  msgstr "Optionen änderen"
1286
 
1287
  #: ../admin/roles.php:61
 
1288
  msgid "Update capabilities"
1289
  msgstr "Rechte aktualisieren"
1290
 
1291
  #: ../admin/settings.php:33
1292
  #: ../admin/style.php:16
1293
  #: ../admin/wpmu.php:32
 
 
 
1294
  msgid "Update successfully"
1295
  msgstr "Aktualisierung erfolgreich"
1296
 
1297
  #: ../admin/settings.php:50
 
1298
  msgid "Cache cleared"
1299
  msgstr "Cache löschen"
1300
 
1301
  #: ../admin/settings.php:103
1302
  #: ../admin/settings.php:115
 
 
1303
  msgid "General Options"
1304
  msgstr "Allg. Optionen"
1305
 
1306
  #: ../admin/settings.php:105
 
1307
  msgid "Images"
1308
  msgstr "Bilder"
1309
 
1310
  #: ../admin/settings.php:107
1311
  #: ../admin/settings.php:341
 
 
1312
  msgid "Effects"
1313
  msgstr "Effekte"
1314
 
1315
  #: ../admin/settings.php:108
1316
  #: ../admin/settings.php:394
 
 
1317
  #: ../tinymce/window.php:123
 
1318
  msgid "Watermark"
1319
  msgstr "Wasserzeichen"
1320
 
1321
  #: ../admin/settings.php:109
1322
- #: ../admin/settings.php:300
1323
  #: ../admin/settings.php:502
 
 
 
1324
  #: ../tinymce/window.php:63
 
1325
  msgid "Slideshow"
1326
  msgstr "Slideshow"
1327
 
1328
  #: ../admin/settings.php:122
1329
  #: ../admin/wpmu.php:48
 
 
1330
  msgid "Gallery path"
1331
  msgstr "Galerie-Pfad"
1332
 
1333
  #: ../admin/settings.php:124
 
1334
  msgid "This is the default path for all galleries"
1335
  msgstr "Dies ist der Standard-Pfad für alle Galerien"
1336
 
1337
  #: ../admin/settings.php:135
 
1338
  msgid "Delete image files"
1339
  msgstr "Lösche Bilddateien"
1340
 
1341
  #: ../admin/settings.php:137
 
1342
  msgid "Delete files, when removing a gallery in the database"
1343
  msgstr "Löscht auch die Dateien, falls die Galerie aus der Datenbank entfernt wird"
1344
 
1345
  #: ../admin/settings.php:140
1346
- msgid "Activate batch upload"
1347
- msgstr "Aktiviere Batch-Upload"
1348
-
1349
- #: ../admin/settings.php:142
1350
- msgid "The batch upload requires Adobe Flash 9, disable it if you have problems"
1351
- msgstr "Das Batch-Upload-Skript benötigt Adbode Flash 9, wenn es Probleme gibt deaktiviere es besser."
1352
-
1353
- #: ../admin/settings.php:145
1354
  msgid "Activate permalinks"
1355
  msgstr "Aktiviere Permalinks"
1356
 
1357
- #: ../admin/settings.php:147
 
1358
  msgid "When you activate this option, you need to update your permalink structure one time."
1359
  msgstr "Wenn du diese Option aktivierst, muss du einmal die Permalink Struktur aktualisieren."
1360
 
1361
- #: ../admin/settings.php:150
 
1362
  msgid "Tags / Categories"
1363
  msgstr "Stichwörter / Kategorien"
1364
 
1365
- #: ../admin/settings.php:153
 
1366
  msgid "Activate related images"
1367
  msgstr "Verwandte Bilder anzeigen"
1368
 
1369
- #: ../admin/settings.php:155
 
1370
  msgid "This option will append related images to every post"
1371
  msgstr "Diese Option hängt verwandte Bilder an jeden Beitrag"
1372
 
1373
- #: ../admin/settings.php:159
 
1374
  msgid "Match with"
1375
  msgstr "Vergleiche mit"
1376
 
1377
- #: ../admin/settings.php:160
 
1378
  msgid "Categories"
1379
  msgstr "Kategorien"
1380
 
1381
- #: ../admin/settings.php:161
 
1382
  #: ../lib/nggmeta.lib.php:375
1383
  msgid "Tags"
1384
  msgstr "Stichwörter"
1385
 
1386
- #: ../admin/settings.php:161
 
1387
  msgid " (require WordPress 2.3 or higher)"
1388
  msgstr " (benötigt WordPress 2.3 oder höher)"
1389
 
1390
- #: ../admin/settings.php:165
 
1391
  msgid "Max. number of images"
1392
  msgstr "Max. Anzahl der Bilder"
1393
 
1394
- #: ../admin/settings.php:167
 
1395
  msgid "0 will show all images"
1396
  msgstr "0 zeige alle verwandten Bilder"
1397
 
1398
- #: ../admin/settings.php:179
 
1399
  msgid "Thumbnail settings"
1400
  msgstr "Thumbnail Einstellungen"
1401
 
1402
- #: ../admin/settings.php:184
 
1403
  msgid "Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery ."
1404
  msgstr "Bitte beachten : Änderungen der Einstellungen werden erst übernommen, wenn Du neue Thumbnails unter -> \"Gallery verwalten\" erstellst"
1405
 
1406
- #: ../admin/settings.php:187
 
1407
  msgid "Width x height (in pixel)"
1408
  msgstr "Breite x Höhe (in Pixel)"
1409
 
1410
- #: ../admin/settings.php:189
 
1411
  msgid "These values are maximum values "
1412
  msgstr "Diese Angaben sind maximale Angaben."
1413
 
1414
- #: ../admin/settings.php:192
 
1415
  msgid "Set fix dimension"
1416
  msgstr "Setze fixe Größe"
1417
 
1418
- #: ../admin/settings.php:194
 
1419
  msgid "Ignore the aspect ratio, no portrait thumbnails"
1420
  msgstr "Ignoriere Bildseitenverhältnis"
1421
 
1422
- #: ../admin/settings.php:197
 
1423
  msgid "Crop square thumbnail from image"
1424
  msgstr "Mittige Thumbnails aus Bildern ausschneiden"
1425
 
1426
- #: ../admin/settings.php:199
 
1427
  msgid "Create square thumbnails, use only the width setting :"
1428
  msgstr "Erstellt viereckige Thumbnails, nutzt nur den Wert der Breite :"
1429
 
1430
- #: ../admin/settings.php:202
 
1431
  msgid "Thumbnail quality"
1432
  msgstr "Thumbnail Qualität"
1433
 
1434
- #: ../admin/settings.php:206
1435
- #: ../admin/settings.php:238
 
 
1436
  msgid "Resample Mode"
1437
  msgstr "Resample Modus"
1438
 
1439
- #: ../admin/settings.php:208
1440
- #: ../admin/settings.php:241
 
 
1441
  msgid "Value between 1-5 (higher value, more CPU load)"
1442
  msgstr "Wähle zwischen 1-5 (je höhere desto länger braucht der Server)"
1443
 
1444
- #: ../admin/settings.php:219
 
1445
  msgid "Image settings"
1446
  msgstr "Bild Einstellungen"
1447
 
1448
- #: ../admin/settings.php:226
 
1449
  msgid "Resize Images"
1450
  msgstr "Bilder verkleinern"
1451
 
1452
- #: ../admin/settings.php:230
 
1453
  msgid "Width x height (in pixel). NextGEN Gallery will keep ratio size"
1454
  msgstr "Breite x Höhe (in Pixel). NextGEN Galerie beachtet das Seitenverhältnis."
1455
 
1456
- #: ../admin/settings.php:233
 
1457
  msgid "Image quality"
1458
  msgstr "Bild Qualität"
1459
 
1460
- #: ../admin/settings.php:244
 
1461
  msgid "Single picture"
1462
  msgstr "Einzelbilder"
1463
 
1464
- #: ../admin/settings.php:247
 
1465
  msgid "Cache single pictures"
1466
  msgstr "Nutze Cache für Einzelbidler"
1467
 
1468
- #: ../admin/settings.php:250
 
1469
  msgid "Creates a file for each singlepic settings. Reduce the CPU load"
1470
  msgstr "Erstellt ein Cache-Bild für jedes Einzelbild (singlepic). Reduziert die CPU Belastung."
1471
 
1472
- #: ../admin/settings.php:253
 
1473
  msgid "Clear cache folder"
1474
  msgstr "Lösche Cache Verzeichnis"
1475
 
1476
- #: ../admin/settings.php:255
 
1477
  msgid "Proceed now"
1478
  msgstr "Jetzt durchführen"
1479
 
1480
- #: ../admin/settings.php:266
 
1481
  msgid "Gallery settings"
1482
  msgstr "Galerie Einstellungen"
1483
 
1484
- #: ../admin/settings.php:273
1485
- msgid "Activate jQuery navigation"
1486
- msgstr "Aktiviere jQuery Navigation"
1487
-
1488
- #: ../admin/settings.php:275
1489
- msgid "Please note : This is still experimental. Requires the Thickbox effect"
1490
- msgstr "Bitte beachten : Diese Funktion befindet sich noch im Teststadium. Geht nur mit Thickbox."
1491
-
1492
- #: ../admin/settings.php:279
1493
  msgid "Deactivate gallery page link"
1494
  msgstr "Keine Seitenverzweigung"
1495
 
1496
- #: ../admin/settings.php:281
 
1497
  msgid "The album will not link to a gallery subpage. The gallery is shown on the same page."
1498
  msgstr "Ein Album benötigt dann keinen Link zur Seite. Die Galerie wird direkt angezeigt."
1499
 
1500
- #: ../admin/settings.php:285
 
1501
  msgid "Number of images per page"
1502
  msgstr "Anzahl der Bilder pro Seite"
1503
 
1504
- #: ../admin/settings.php:287
 
1505
  msgid "0 will disable pagination, all images on one page"
1506
  msgstr "0 schaltet Blätterfunktion ab ( = alle Bilder auf einer Seite )"
1507
 
1508
- #: ../admin/settings.php:291
 
1509
  msgid "Integrate slideshow"
1510
  msgstr "Slideshow verwenden"
1511
 
1512
- #: ../admin/settings.php:298
 
1513
  msgid "Show first"
1514
  msgstr "Zeige als Erstes"
1515
 
1516
- #: ../admin/settings.php:304
 
1517
  msgid "Show thumbnail description"
1518
  msgstr "Zeige Bildbeschreibung"
1519
 
1520
- #: ../admin/settings.php:305
1521
  #: ../admin/settings.php:353
1522
  #: ../admin/js/uploadtab.js.php:117
 
 
 
1523
  msgid "None"
1524
  msgstr "Keiner"
1525
 
1526
- #: ../admin/settings.php:306
 
1527
  msgid "Description text"
1528
  msgstr "Beschreibung"
1529
 
1530
- #: ../admin/settings.php:307
1531
  #: ../admin/settings.php:323
 
 
1532
  msgid "Alt / Title text"
1533
  msgstr "Alt / Titel Text"
1534
 
1535
- #: ../admin/settings.php:311
 
1536
  msgid "Show ImageBrowser"
1537
  msgstr "Zeige Bilder Browser"
1538
 
1539
- #: ../admin/settings.php:313
 
1540
  msgid "The gallery will open the ImageBrowser instead the effect."
1541
  msgstr "Es wird der Bilder Browser angezeigt (Kein JavaScript Effekt)"
1542
 
1543
- #: ../admin/settings.php:317
 
1544
  msgid "Sort options"
1545
  msgstr "Sortierung"
1546
 
1547
- #: ../admin/settings.php:320
 
1548
  msgid "Sort thumbnails"
1549
  msgstr "Thumbnails sortieren"
1550
 
 
 
 
 
 
1551
  #: ../admin/settings.php:321
 
1552
  msgid "Image ID"
1553
  msgstr "Bilder ID"
1554
 
1555
  #: ../admin/settings.php:327
 
1556
  msgid "Sort direction"
1557
  msgstr "Sortierreihenfolge"
1558
 
1559
  #: ../admin/settings.php:328
 
1560
  msgid "Ascending"
1561
  msgstr "Aufsteigend"
1562
 
1563
  #: ../admin/settings.php:329
 
1564
  msgid "Descending"
1565
  msgstr "Absteigend"
1566
 
1567
  #: ../admin/settings.php:345
 
1568
  msgid "Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Thickbox effect will automatic added to your theme."
1569
  msgstr "Hier kannst Du den Effekt für die Thumbnails auswählen. NextGEN Galerie wird den benötigten HTML Code verwenden. Bitte beachte, das nur der Thickbox Effekt automatisch in Dein Theme von Wordpress integriert wird. Alle anderen Effekte mußt Du selbst in die header.php eintragen (JS)."
1570
 
1571
  #: ../admin/settings.php:346
 
1572
  msgid "With the placeholder"
1573
  msgstr "Mit Platzhalter"
1574
 
1575
  #: ../admin/settings.php:346
 
1576
  msgid "you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do."
1577
  msgstr "Du kannst eine Navigation durch die Bilder aktivieren (hängt vom Effekt ab). Ändere nur die Codezeile falls Du einen anderen Effekt für die Thumbnails verwendest oder einfach weißt, was Du tust."
1578
 
1579
  #: ../admin/settings.php:350
 
1580
  msgid "JavaScript Thumbnail effect"
1581
  msgstr "JavaScript Thumbnail Effekt"
1582
 
1583
  #: ../admin/settings.php:354
 
1584
  msgid "Thickbox"
1585
  msgstr "Thickbox"
1586
 
1587
  #: ../admin/settings.php:355
 
1588
  msgid "Lightbox"
1589
  msgstr "Lightbox"
1590
 
1591
  #: ../admin/settings.php:356
 
1592
  msgid "Highslide"
1593
  msgstr "Highslide"
1594
 
1595
  #: ../admin/settings.php:357
 
1596
  msgid "Shutter"
1597
  msgstr "Shutter"
1598
 
1599
  #: ../admin/settings.php:358
 
1600
  msgid "Custom"
1601
  msgstr "Eigener"
1602
 
1603
  #: ../admin/settings.php:363
 
1604
  msgid "Link Code line"
1605
  msgstr "Link Code Zeile"
1606
 
1607
  #: ../admin/settings.php:371
 
1608
  msgid "Select loading image"
1609
  msgstr "Wähle Ladeanimation"
1610
 
1611
  #: ../admin/settings.php:395
 
1612
  msgid "Please note : You can only activate the watermark under -> Manage Gallery . This action cannot be undone."
1613
  msgstr "Bitte beachten : Das Wasserzeichen kann nur unter der Galerieverwaltung gesetzt werden. "
1614
 
1615
  #: ../admin/settings.php:400
 
1616
  msgid "Preview"
1617
  msgstr "Vorschau"
1618
 
1619
  #: ../admin/settings.php:402
1620
  #: ../admin/settings.php:406
 
 
1621
  msgid "Position"
1622
  msgstr "Position"
1623
 
1624
  #: ../admin/settings.php:426
 
1625
  msgid "Offset"
1626
  msgstr "Abstand"
1627
 
1628
  #: ../admin/settings.php:444
 
1629
  msgid "Use image as watermark"
1630
  msgstr "Benutze Bild als Wasserzeichen"
1631
 
1632
  #: ../admin/settings.php:447
 
1633
  msgid "URL to file"
1634
  msgstr "URL zur Datei"
1635
 
1636
  #: ../admin/settings.php:449
 
1637
  msgid "The accessing of URL files is disabled at your server (allow_url_fopen)"
1638
  msgstr "Der Dateizugriff von URL's ist auf diesem Server deaktiviert (allow_url_fopen)"
1639
 
1640
  #: ../admin/settings.php:455
 
1641
  msgid "Use text as watermark"
1642
  msgstr "Benutze Text als Wasserzeichen"
1643
 
1644
  #: ../admin/settings.php:458
 
1645
  msgid "Font"
1646
  msgstr "Schriftart"
1647
 
1648
  #: ../admin/settings.php:467
 
1649
  msgid "This function will not work, cause you need the FreeType library"
1650
  msgstr "Diese Funktion benötigt die FreeType Bibliothek"
1651
 
1652
  #: ../admin/settings.php:469
 
1653
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
1654
  msgstr "Du kannst mehr Schriftarten in das Verzeichniss <strong>nggallery/fonts</strong> hochladen."
1655
 
1656
  #: ../admin/settings.php:473
 
1657
  msgid "Size"
1658
  msgstr "Größe"
1659
 
1660
  #: ../admin/settings.php:477
 
1661
  msgid "Color"
1662
  msgstr "Farbe"
1663
 
1664
  #: ../admin/settings.php:479
 
1665
  msgid "(hex w/o #)"
1666
  msgstr "(hex w/o #)"
1667
 
1668
  #: ../admin/settings.php:482
 
1669
  msgid "Text"
1670
  msgstr "Text"
1671
 
1672
  #: ../admin/settings.php:486
 
1673
  msgid "Opaque"
1674
  msgstr "Transparenz"
1675
 
1676
  #: ../admin/settings.php:504
 
1677
  msgid "The imagerotator.swf is not in the nggallery folder, the slideshow will not work."
1678
  msgstr "Die Datei imagerotator.swf ist nicht im Plugin Verzeichniss -> so wird die Slideshow nicht funktionieren."
1679
 
1680
  #: ../admin/settings.php:505
1681
- msgid "The settings are used in the JW Image Rotator Version 3.13 ."
1682
- msgstr "Die Einstellungen werden im JW Image Rotator Version 3.13 benutzt."
 
1683
 
1684
  #: ../admin/settings.php:506
 
1685
  msgid "See more information for the Flash Player on the web page"
1686
  msgstr "Weitere Informationen auf der Flash Player Homepage"
1687
 
1688
  #: ../admin/settings.php:509
 
1689
  msgid "Default size (W x H)"
1690
  msgstr "Standard Größe (B x H)"
1691
 
1692
  #: ../admin/settings.php:514
 
1693
  msgid "Shuffle mode"
1694
  msgstr "Shuffle Modus"
1695
 
1696
  #: ../admin/settings.php:518
 
1697
  msgid "Show next image on click"
1698
  msgstr "Zeige nächstes Bild bei Klick"
1699
 
1700
  #: ../admin/settings.php:522
 
1701
  msgid "Show navigation bar"
1702
  msgstr "Zeige Navigations-Leiste"
1703
 
1704
  #: ../admin/settings.php:526
 
1705
  msgid "Show loading icon"
1706
  msgstr "Zeige Lade-Bildchen"
1707
 
1708
  #: ../admin/settings.php:530
 
1709
  msgid "Use watermark logo"
1710
  msgstr "Wasserzeichen anzeigen"
1711
 
1712
  #: ../admin/settings.php:532
 
1713
  msgid "You can change the logo at the watermark settings"
1714
  msgstr "Du kannst den Pfad in Einstellungen für da Wasserzeichen angeben"
1715
 
1716
  #: ../admin/settings.php:535
 
1717
  msgid "Stretch image"
1718
  msgstr "Bild dehnen"
1719
 
1720
  #: ../admin/settings.php:538
 
1721
  msgid "true"
1722
  msgstr "Ja"
1723
 
1724
  #: ../admin/settings.php:539
 
1725
  msgid "false"
1726
  msgstr "Nein"
1727
 
1728
  #: ../admin/settings.php:540
 
1729
  msgid "fit"
1730
  msgstr "Passend"
1731
 
1732
  #: ../admin/settings.php:541
 
1733
  msgid "none"
1734
  msgstr "keiner"
1735
 
1736
  #: ../admin/settings.php:546
 
1737
  msgid "Duration time"
1738
  msgstr "Dauer"
1739
 
1740
  #: ../admin/settings.php:547
 
1741
  msgid "sec."
1742
  msgstr "Sek."
1743
 
1744
  #: ../admin/settings.php:550
 
1745
  msgid "Transition / Fade effect"
1746
  msgstr "Fade Effekt"
1747
 
1748
  #: ../admin/settings.php:553
 
1749
  msgid "fade"
1750
  msgstr "Fade"
1751
 
1752
  #: ../admin/settings.php:554
 
1753
  msgid "bgfade"
1754
  msgstr "BGFade"
1755
 
1756
  #: ../admin/settings.php:555
 
1757
  msgid "slowfade"
1758
  msgstr "Slowfade"
1759
 
1760
  #: ../admin/settings.php:556
 
1761
  msgid "circles"
1762
  msgstr "Kreise"
1763
 
1764
  #: ../admin/settings.php:557
 
1765
  msgid "bubbles"
1766
  msgstr "Blasen"
1767
 
1768
  #: ../admin/settings.php:558
 
1769
  msgid "blocks"
1770
  msgstr "Blöcke"
1771
 
1772
  #: ../admin/settings.php:559
 
1773
  msgid "fluids"
1774
  msgstr "Fluids"
1775
 
1776
  #: ../admin/settings.php:560
 
1777
  msgid "flash"
1778
  msgstr "Flash"
1779
 
1780
  #: ../admin/settings.php:561
 
1781
  msgid "lines"
1782
  msgstr "Linien"
1783
 
1784
  #: ../admin/settings.php:566
 
1785
  msgid "Use slow zooming effect"
1786
  msgstr "nutze Zoom Effekt"
1787
 
1788
  #: ../admin/settings.php:570
 
1789
  msgid "Background Color"
1790
  msgstr "Hintergrund (BG) Farbe"
1791
 
1792
  #: ../admin/settings.php:575
 
1793
  msgid "Texts / Buttons Color"
1794
  msgstr "Text- / Button Farbe"
1795
 
1796
  #: ../admin/settings.php:580
 
1797
  msgid "Rollover / Active Color"
1798
  msgstr "Rollover / Aktiv (Link) Farbe"
1799
 
1800
  #: ../admin/settings.php:585
 
1801
  msgid "Screen Color"
1802
  msgstr "Seiten Farbe"
1803
 
1804
  #: ../admin/settings.php:590
 
1805
  msgid "Background music (URL)"
1806
  msgstr "Hintergrundmusik (URL)"
1807
 
1808
  #: ../admin/settings.php:594
 
1809
  msgid "Try XHTML validation (with CDATA)"
1810
  msgstr "Integriere XHTML Validierung (mittels CDATA)"
1811
 
1812
  #: ../admin/settings.php:596
 
1813
  msgid "Important : Could causes problem at some browser. Please recheck your page."
1814
  msgstr "Wichtig : Es könnnten Probleme bei einigen Browser auftauchen. Unbedingt Seite prüfen."
1815
 
1816
  #: ../admin/setup.php:12
 
1817
  msgid "Reset all settings to default parameter"
1818
  msgstr "Stelle alle Einstellungen auf Anfangswerte zurück"
1819
 
1820
  #: ../admin/setup.php:37
 
1821
  msgid "Uninstall sucessfull ! Now delete the plugin and enjoy your life ! Good luck !"
1822
  msgstr "Deinstallation erfolgreich ! Nun kannst Du das Plugin löschen und Dein Leben weiterhin genießen ! Stay geeky ! Viel Glück !"
1823
 
1824
  #: ../admin/setup.php:46
 
1825
  msgid "Reset options"
1826
  msgstr "Optionen zurücksetzen"
1827
 
1828
  #: ../admin/setup.php:49
 
1829
  msgid "Reset all options/settings to the default installation."
1830
  msgstr "Alle Optionen/Einstellungen zurücksetzen"
1831
 
1832
  #: ../admin/setup.php:50
 
1833
  msgid "Reset settings"
1834
  msgstr "Einstellungen zurücksetzen"
1835
 
1836
  #: ../admin/setup.php:50
 
1837
  msgid ""
1838
  "Reset all options to default settings ?\\n"
1839
  "\\n"
@@ -1844,34 +2259,42 @@ msgstr ""
1844
  "Wähle [Cancel] um abzubrechen, [OK] zum Durchführen.\\n"
1845
 
1846
  #: ../admin/setup.php:55
 
1847
  msgid "Uninstall plugin tables"
1848
  msgstr "Plugin Tabellen (DB) entfernen"
1849
 
1850
  #: ../admin/setup.php:58
 
1851
  msgid "You don't like NextGEN Gallery ?"
1852
  msgstr "Du magst die NextGEN Galerie nicht ?"
1853
 
1854
  #: ../admin/setup.php:59
 
1855
  msgid "No problem, before you deactivate this plugin press the Uninstall Button, because deactivating NextGEN Gallery does not remove any data that may have been created. "
1856
  msgstr "Null Problemo. Einfach nur vor dem Deaktivieren dieses Plugins den Uninstall-Button betätigen damit alle Tabellen der Galerie entfernt werden."
1857
 
1858
  #: ../admin/setup.php:60
 
1859
  msgid "WARNING:"
1860
  msgstr "WARNUNG:"
1861
 
1862
  #: ../admin/setup.php:61
 
1863
  msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to backup all the tables first. NextGEN gallery is stored in the tables"
1864
  msgstr "Einmal deinstalliert -> keine Rückgängigmachung! D.h. auf Deutsch, das eine einmalig durchgeführte Deinstallation nicht mehr rückgängig gemacht werden kann da alle Tabellen der Galerie aus der Datenbank entfernt werden und KEIN Backup dieser Galerie-Tabellen angelegt wird währenddessen."
1865
 
1866
  #: ../admin/setup.php:61
 
1867
  msgid "and"
1868
  msgstr "und"
1869
 
1870
  #: ../admin/setup.php:63
 
1871
  msgid "Uninstall plugin"
1872
  msgstr "Plugin deinstallieren"
1873
 
1874
  #: ../admin/setup.php:63
 
1875
  msgid ""
1876
  "You are about to Uninstall this plugin from WordPress.\\n"
1877
  "This action is not reversible.\\n"
@@ -1885,81 +2308,124 @@ msgstr ""
1885
 
1886
  #: ../admin/showmeta.php:7
1887
  #: ../admin/showmeta.php:10
 
 
1888
  msgid "Cheatin&#8217; uh?"
1889
  msgstr "Cheatin&#8217; uh?"
1890
 
1891
  #: ../admin/showmeta.php:42
 
1892
  msgid "EXIF Data"
1893
  msgstr "EXIF Daten"
1894
 
1895
  #: ../admin/showmeta.php:47
1896
  #: ../admin/showmeta.php:71
1897
  #: ../admin/showmeta.php:95
 
 
 
1898
  msgid "Tag"
1899
  msgstr "Stichwort"
1900
 
1901
  #: ../admin/showmeta.php:48
1902
  #: ../admin/showmeta.php:72
1903
  #: ../admin/showmeta.php:96
 
 
 
1904
  msgid "Value"
1905
  msgstr "Wert"
1906
 
1907
  #: ../admin/showmeta.php:61
 
1908
  msgid "No exif data"
1909
  msgstr "Keine Exif Daten"
1910
 
1911
  #: ../admin/showmeta.php:67
 
1912
  msgid "IPTC Data"
1913
  msgstr "IPTC Daten"
1914
 
1915
  #: ../admin/showmeta.php:91
 
1916
  msgid "XMP Data"
1917
  msgstr "XMP Daten"
1918
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1919
  #: ../admin/style.php:34
 
1920
  msgid "You do not have sufficient permissions to edit templates for this blog."
1921
  msgstr "Du hast nicht die benötigten Rechte um Templates in diesem Blog zu bearbeiten."
1922
 
1923
  #: ../admin/style.php:43
 
1924
  msgid "CSS file successfully updated"
1925
  msgstr "CSS Datei erfolgreich aktualisiert"
1926
 
1927
  #: ../admin/style.php:66
 
1928
  msgid "Activate and use style sheet:"
1929
  msgstr "Aktiviere und nutze Stylesheet:"
1930
 
1931
  #: ../admin/style.php:85
 
1932
  msgid "Activate"
1933
  msgstr "Aktiviere"
1934
 
1935
  #: ../admin/style.php:93
 
1936
  #, php-format
1937
  msgid "Editing <strong>%s</strong>"
1938
  msgstr "Bearbeite <strong>%s</strong>"
1939
 
1940
  #: ../admin/style.php:95
 
1941
  #, php-format
1942
  msgid "Browsing <strong>%s</strong>"
1943
  msgstr "Browse <strong>%s</strong>"
1944
 
1945
  #: ../admin/style.php:100
 
1946
  #: ../lib/nggmeta.lib.php:374
1947
  msgid "Author"
1948
  msgstr "Autor"
1949
 
1950
  #: ../admin/style.php:101
 
1951
  msgid "Version"
1952
  msgstr "Version"
1953
 
1954
  #: ../admin/style.php:118
 
1955
  msgid "Update File &raquo;"
1956
  msgstr "Datei aktualisieren"
1957
 
1958
  #: ../admin/style.php:122
 
1959
  msgid "If this file were writable you could edit it."
1960
  msgstr "Wenn diese Datei beschreibbar wäre, könntest Du sie bearbeiten."
1961
 
1962
  #: ../admin/style.php:127
 
1963
  msgid "Oops, no such file exists! Double check the name and try again, merci."
1964
  msgstr "Oha, eine solche Datei existiert nicht! Bitte überprüfe den Namen und probiere es erneut, danke."
1965
 
@@ -1968,7 +2434,9 @@ msgid "Select a gallery"
1968
  msgstr "Wähle Galerie"
1969
 
1970
  #: ../admin/uploadtab.php:107
 
1971
  #: ../tinymce/window.php:49
 
1972
  msgid "No gallery"
1973
  msgstr "Keine Galerie"
1974
 
@@ -1987,50 +2455,62 @@ msgid "Delete image ?"
1987
  msgstr "Bilder löschen ?"
1988
 
1989
  #: ../admin/wpmu.php:41
 
1990
  msgid "General WordPress MU Settings"
1991
  msgstr "WordPress MU Einstellungen"
1992
 
1993
  #: ../admin/wpmu.php:50
 
1994
  msgid "This is the default path for all blogs. With the placeholder %BLOG_ID% you can organize the folder structure better. The path must end with a /."
1995
  msgstr "Dieses ist der Default Pfad für alle Blogs. Mit dem Platzhalter %BLOG_ID% wird die Ordnerstruktur gesteuert. Der Pfad muss mit / enden."
1996
 
1997
  #: ../admin/wpmu.php:53
 
1998
  msgid "Enable upload quota check"
1999
  msgstr "Schalte die Uploadbegrenzung ein"
2000
 
2001
  #: ../admin/wpmu.php:55
 
2002
  msgid "Should work if the gallery is bellow the blog.dir"
2003
  msgstr "Sollte funktionieren wenn die Galerien sich unterhalb blog.dir befinden"
2004
 
2005
  #: ../admin/wpmu.php:59
 
2006
  msgid "Enable zip upload option"
2007
  msgstr "Erlaube ZIP-Upload"
2008
 
2009
  #: ../admin/wpmu.php:61
 
2010
  msgid "Allow users to upload zip folders."
2011
  msgstr "Erlaubt die Nutzung des ZIP-Upload"
2012
 
2013
  #: ../admin/wpmu.php:65
 
2014
  msgid "Enable style selection"
2015
  msgstr "Freie CSS Style Auswahl"
2016
 
2017
  #: ../admin/wpmu.php:67
 
2018
  msgid "Allow users to choose a style for the gallery."
2019
  msgstr "Erlaube dem User ein CSS für die Galerie zu wählen"
2020
 
2021
  #: ../admin/wpmu.php:71
 
2022
  msgid "Enable roles/capabilities"
2023
  msgstr "Rollen / Zugriffsrechte freischalten"
2024
 
2025
  #: ../admin/wpmu.php:73
 
2026
  msgid "Allow users to change the roles for other blog authors."
2027
  msgstr "Erlaube dem User die Anpassung der Zugangsberechtigung"
2028
 
2029
  #: ../admin/wpmu.php:77
 
2030
  msgid "Default style"
2031
  msgstr "Standard CSS-Style"
2032
 
2033
  #: ../admin/wpmu.php:94
 
2034
  msgid "Choose the default style for the galleries."
2035
  msgstr "Wähle das Default-Stylesheet für die Galerien"
2036
 
@@ -2074,7 +2554,8 @@ msgid "Send to editor &raquo;"
2074
  msgstr "Zum Editor schicken &raquo;"
2075
 
2076
  #: ../admin/js/uploadtab.js.php:156
2077
- #: ../tinymce/window.php:150
 
2078
  msgid "Insert"
2079
  msgstr "Einfügen"
2080
 
@@ -2089,6 +2570,89 @@ msgid ""
2089
  "Click ok to delete or cancel to go back."
2090
  msgstr "Bist du sicher das Du diese Datei '%s' löschen willst ?"
2091
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2092
  #: ../lib/nggmeta.lib.php:83
2093
  msgid " mm"
2094
  msgstr " mm"
@@ -2215,67 +2779,74 @@ msgid "Format"
2215
  msgstr "Format"
2216
 
2217
  #: ../tinymce/window.php:47
 
2218
  msgid "Select gallery"
2219
  msgstr "Wähle Galerie"
2220
 
2221
  #: ../tinymce/window.php:61
2222
  #: ../tinymce/window.php:88
 
 
2223
  msgid "Show as"
2224
  msgstr "Zeige als"
2225
 
2226
  #: ../tinymce/window.php:62
 
2227
  msgid "Image list"
2228
  msgstr "Bilder-Liste"
2229
 
2230
  #: ../tinymce/window.php:76
 
2231
  msgid "No album"
2232
  msgstr "Kein Album"
2233
 
2234
  #: ../tinymce/window.php:89
 
2235
  msgid "Extended version"
2236
  msgstr "Erweiterte Version"
2237
 
2238
  #: ../tinymce/window.php:90
 
2239
  msgid "Compact version"
2240
  msgstr "Kompakte Version"
2241
 
2242
  #: ../tinymce/window.php:101
 
2243
  msgid "Select picture"
2244
  msgstr "Wähle Bild"
2245
 
2246
  #: ../tinymce/window.php:103
 
2247
  msgid "No picture"
2248
  msgstr "Kein Bild"
2249
 
2250
  #: ../tinymce/window.php:115
 
2251
  msgid "Width x Height"
2252
  msgstr "Breite x Höhe"
2253
 
2254
  #: ../tinymce/window.php:119
 
2255
  msgid "Effect"
2256
  msgstr "Effekt"
2257
 
2258
  #: ../tinymce/window.php:122
 
2259
  msgid "No effect"
2260
  msgstr "Kein Effekt"
2261
 
2262
  #: ../tinymce/window.php:124
 
2263
  msgid "Web 2.0"
2264
  msgstr "Web 2.0"
2265
 
2266
  #: ../tinymce/window.php:129
 
2267
  msgid "Float"
2268
  msgstr "Float"
2269
 
2270
  #: ../tinymce/window.php:132
 
2271
  msgid "No float"
2272
  msgstr "Kein Float"
2273
 
2274
- #: ../tinymce/window.php:133
2275
- msgid "Left"
2276
- msgstr "Links"
2277
-
2278
- #: ../tinymce/window.php:134
2279
- msgid "Right"
2280
- msgstr "Rechts"
2281
-
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-03-18 19:54+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
  "X-Poedit-SearchPath-1: ..\n"
17
 
18
+ #: ../nggallery.php:53
19
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
20
  msgstr "Tut mir leid aber NextGEN Galerie arbeitet nur ab WordPress 2.1 und aufwärts"
21
 
22
+ #: ../nggfunctions.php:425
23
+ #: ../nggfunctions.php:440
24
  msgid "Watch gallery"
25
  msgstr "Galerie ansehen"
26
 
27
+ #: ../nggfunctions.php:434
28
+ #: ../nggfunctions.php:446
29
+ #: ../nggfunctions.php:729
30
  msgid "Photos"
31
  msgstr "Fotos"
32
 
33
+ #: ../nggfunctions.php:521
34
  msgid "Back"
35
  msgstr "Zurück"
36
 
37
+ #: ../nggfunctions.php:525
38
  msgid "Next"
39
  msgstr "Vor"
40
 
41
+ #: ../nggfunctions.php:528
42
  #: ../admin/manage.php:85
43
+ #: ../admin/wp25/manage.php:85
44
  #: ../tinymce/window.php:37
45
+ #: ../tinymce3/window.php:37
46
  msgid "Picture"
47
  msgstr "Bild"
48
 
49
+ #: ../nggfunctions.php:528
50
  msgid "from"
51
  msgstr "von"
52
 
53
+ #: ../nggfunctions.php:699
54
  msgid "Overview"
55
  msgstr "Übersicht"
56
 
57
+ #: ../ngginstall.php:16
58
  msgid "Sorry, NextGEN Gallery works only with a role called administrator"
59
  msgstr "Tut mir leid, aber NextGEN Galerie benötigt die Rolle \"Administrator\""
60
 
61
+ #: ../ngginstall.php:124
62
  msgid "NextGEN Gallery : Tables could not created, please check your database settings"
63
  msgstr "NextGEN Gallery : Tabellen konnten nicht erstellt werden, überprüfe deine Datenbank"
64
 
65
+ #: ../ngginstall.php:196
66
  msgid "[Show as slideshow]"
67
  msgstr "[Zeige als Diashow]"
68
 
69
+ #: ../ngginstall.php:197
70
  msgid "[Show picture list]"
71
  msgstr "[Zeige Bilder-Liste]"
72
 
118
 
119
  #: ../nggwidget.php:311
120
  #: ../admin/settings.php:104
121
+ #: ../admin/settings.php:297
122
+ #: ../admin/wp25/settings.php:99
123
+ #: ../admin/wp25/settings.php:285
124
  msgid "Thumbnails"
125
  msgstr "Thumbnails"
126
 
130
 
131
  #: ../nggwidget.php:318
132
  #: ../admin/settings.php:562
133
+ #: ../admin/wp25/settings.php:542
134
  msgid "random"
135
  msgstr "Zufall"
136
 
167
  msgstr "Galerie ID's, mit Kommas getrennt"
168
 
169
  #: ../admin/about.php:9
170
+ #: ../admin/wp25/about.php:9
171
  msgid "Copyright notes / Credits"
172
  msgstr "Copyright Hinweise / Credits"
173
 
174
  #: ../admin/about.php:11
175
+ #: ../admin/wp25/about.php:10
176
  msgid "NextGEN DEV Team"
177
  msgstr "NextGEN DEV Team"
178
 
179
  #: ../admin/about.php:12
180
+ #: ../admin/wp25/about.php:11
181
  msgid "This plugin is primarily developed, maintained, supported, documented by"
182
  msgstr "Dieses Plugin wird hauptsächlich entwickelt, dokumentiert und supportet von"
183
 
184
  #: ../admin/about.php:12
185
+ #: ../admin/wp25/about.php:11
186
  msgid "There are many other folks who have made contributions to this project :"
187
  msgstr "Folgende Personen haben die Entwicklung bisher unterstützt :"
188
 
189
  #: ../admin/about.php:14
190
+ #: ../admin/wp25/about.php:13
191
  msgid "Contributors / Tribute to"
192
  msgstr "Anerkennung / Hinweise"
193
 
194
  #: ../admin/about.php:15
195
+ #: ../admin/wp25/about.php:14
196
  msgid "If you study the code of this plugin, you will find out that we mixed a lot of good already existing code and ideas together."
197
  msgstr "Falls Du Dir den Sourcecode dieses Plugins ansiehst wirst Du merken, das wir verschiedene gute Scripte sowie Ideen verwendet haben."
198
 
199
  #: ../admin/about.php:16
200
+ #: ../admin/wp25/about.php:15
201
  msgid "So, we would like to thank the following people for their pioneer work (without this work it's impossible to create such a plugin so fast)"
202
  msgstr "Wir möchten folgenden Menschen für Ihre Pionier-Arbeit danken (ohne diese Vorleistung wäre es unmöglich ein Plugin so schnell zu entwickeln)"
203
 
204
  #: ../admin/about.php:18
205
+ #: ../admin/wp25/about.php:17
206
  msgid "for their great documented code"
207
  msgstr "für Ihren großartig dokumentierten Code"
208
 
209
  #: ../admin/about.php:19
210
+ #: ../admin/wp25/about.php:18
211
  msgid "for jQuery, which is the best Web2.0 framework"
212
  msgstr "für jQuery, das Beste Web2.0 Framework"
213
 
214
  #: ../admin/about.php:20
215
+ #: ../admin/wp25/about.php:19
216
  msgid "for the fantastic PHP Thumbnail Class"
217
  msgstr "für die fantastische PHP Thumbnail Klasse"
218
 
219
  #: ../admin/about.php:21
220
+ #: ../admin/wp25/about.php:20
221
  msgid "for PclZip , a PHP library that manage ZIP archives"
222
  msgstr "für PclZip, eine ZIP PHP Library"
223
 
224
  #: ../admin/about.php:22
225
+ #: ../admin/wp25/about.php:21
226
  msgid "for a lot of very useful plugins and ideas"
227
  msgstr "für viele nützliche Plugins und Ideen"
228
 
229
  #: ../admin/about.php:23
230
+ #: ../admin/wp25/about.php:22
231
+ msgid "for Simple:Press Forum, it saved me a lot of time"
232
+ msgstr "für das Simple:Press Forum, welches mir viel Zeit sparte"
233
 
234
  #: ../admin/about.php:24
235
+ #: ../admin/wp25/about.php:23
236
  msgid "for the best Media Flash Scripts on earth"
237
  msgstr "für die besten Media Flash Scripte"
238
 
239
  #: ../admin/about.php:25
240
+ #: ../admin/wp25/about.php:24
241
  msgid "for the Watermark plugin"
242
  msgstr "für das Wasserzeichen Plugin"
243
 
244
  #: ../admin/about.php:27
245
+ #: ../admin/wp25/about.php:26
246
  msgid "If you didn't find your name on this list and there is some code which I integrate in my plugin, don't hesitate to send me a mail."
247
  msgstr "Falls Du Deinen Namen hier nicht auf dieser Liste findest und es einigen Code gibt, den ich in meinem Plugin verwendet habe, so schicken mir bitte sofort einfach eine EMail."
248
 
249
  #: ../admin/about.php:28
250
+ #: ../admin/wp25/about.php:27
251
  msgid "How to support ?"
252
  msgstr "Unterstützung / Hilfe"
253
 
254
  #: ../admin/about.php:29
255
+ #: ../admin/wp25/about.php:28
256
  msgid "There exist several ways to contribute, help or support us in this work. Non of them are mandatory."
257
  msgstr "Es existieren verschiedene Möglichkeiten diese Arbeit zu unterstützen."
258
 
259
  #: ../admin/about.php:31
260
+ #: ../admin/wp25/about.php:30
261
  msgid "Send us bugfixes / code changes"
262
  msgstr "Schicke uns Verbesserungen / Bugfixes"
263
 
264
  #: ../admin/about.php:31
265
+ #: ../admin/wp25/about.php:30
266
  msgid "The most motivated support for this plugin are your ideas and brain work"
267
  msgstr "Der beste Support für dieses Plugin sind Deine Ideen und Gedanken"
268
 
269
  #: ../admin/about.php:32
270
+ #: ../admin/wp25/about.php:31
271
  msgid "Translate the plugin"
272
  msgstr "Übersetze das Plugin"
273
 
274
  #: ../admin/about.php:32
275
+ #: ../admin/wp25/about.php:31
276
  msgid "To help people to work with this plugin, I would like to have it in all avaivable languages"
277
  msgstr "Um jedem das Arbeiten mit diesem Plugin zu vereinfachen würde ich es gerne in allen verfügbaren Sprachen anbieten"
278
 
279
  #: ../admin/about.php:33
280
+ #: ../admin/wp25/about.php:32
281
  msgid "Donate the work via paypal"
282
  msgstr "Zeig Dich für diese Arbeit per PayPal dankbar"
283
 
284
  #: ../admin/about.php:44
285
+ #: ../admin/wp25/about.php:43
286
  msgid "No doubt a very usefull and easy motivation :-)"
287
  msgstr "Kein Zweifel, eine schöne und simple Motivationshilfe"
288
 
289
  #: ../admin/about.php:46
290
+ #: ../admin/wp25/about.php:45
291
  msgid "Place a link to the plugin in your blog/webpage"
292
  msgstr "Setze einen Link zu diesem Plugin auf Deinen Blog"
293
 
294
  #: ../admin/about.php:46
295
+ #: ../admin/wp25/about.php:45
296
  msgid "Yes, share and trackback is also a good support for this work "
297
  msgstr "Natürlich sind Trackbacks und Links auch ein guter Support für diese Arbeit"
298
 
299
  #: ../admin/about.php:48
300
+ #: ../admin/wp25/about.php:47
301
  msgid "Thanks!"
302
  msgstr "Vielen Dank!"
303
 
304
  #: ../admin/about.php:49
305
+ #: ../admin/wp25/about.php:48
306
  msgid "We would like to thank this people which support us in the work :"
307
  msgstr "Wir wollen diesen Menschen für Ihre Hilfe danken:"
308
 
309
  #: ../admin/addgallery.php:35
310
  #: ../admin/addgallery.php:51
311
+ #: ../admin/wp25/addgallery.php:35
312
+ #: ../admin/wp25/addgallery.php:51
313
  msgid "Upload failed!"
314
  msgstr "Upload fehlgeschlagen!"
315
 
316
  #: ../admin/addgallery.php:56
317
+ #: ../admin/functions.php:563
318
+ #: ../admin/functions.php:652
319
+ #: ../admin/wp25/addgallery.php:56
320
+ #: ../admin/wp25/functions.php:563
321
+ #: ../admin/wp25/functions.php:652
322
  msgid "No gallery selected !"
323
  msgstr "Keine Galerie ausgewählt !"
324
 
325
+ #: ../admin/addgallery.php:114
326
+ #: ../admin/wp25/addgallery.php:106
327
  msgid "Image Files"
328
  msgstr "Bilder"
329
 
330
+ #: ../admin/addgallery.php:134
331
+ #: ../admin/addgallery.php:164
332
+ #: ../admin/wp25/addgallery.php:125
333
+ #: ../admin/wp25/addgallery.php:155
334
  msgid "remove"
335
  msgstr "Entfernen"
336
 
337
+ #: ../admin/addgallery.php:135
338
+ #: ../admin/wp25/addgallery.php:126
339
  msgid "Browse..."
340
  msgstr "Durchsuche..."
341
 
342
+ #: ../admin/addgallery.php:136
343
+ #: ../admin/addgallery.php:314
344
+ #: ../admin/wp25/addgallery.php:127
345
+ #: ../admin/wp25/addgallery.php:298
346
  msgid "Upload images"
347
  msgstr "Bilder hochladen"
348
 
 
349
  #: ../admin/addgallery.php:180
350
+ #: ../admin/addgallery.php:192
351
+ #: ../admin/wp25/addgallery.php:171
352
+ #: ../admin/wp25/addgallery.php:183
353
  msgid "Add new gallery"
354
  msgstr "Neue Galerie erstellen"
355
 
356
+ #: ../admin/addgallery.php:182
357
+ #: ../admin/addgallery.php:213
358
+ #: ../admin/wp25/addgallery.php:173
359
+ #: ../admin/wp25/addgallery.php:202
360
  msgid "Upload a Zip-File"
361
  msgstr "Zip-Datei hochladen"
362
 
363
+ #: ../admin/addgallery.php:185
364
+ #: ../admin/addgallery.php:253
365
+ #: ../admin/wp25/addgallery.php:176
366
+ #: ../admin/wp25/addgallery.php:240
367
  msgid "Import image folder"
368
  msgstr "Bilder-Verzeichnis importieren"
369
 
370
+ #: ../admin/addgallery.php:187
371
+ #: ../admin/addgallery.php:277
372
+ #: ../admin/wp25/addgallery.php:178
373
+ #: ../admin/wp25/addgallery.php:262
374
  msgid "Upload Images"
375
  msgstr "Bilder hochladen"
376
 
377
+ #: ../admin/addgallery.php:198
378
+ #: ../admin/wp25/addgallery.php:188
379
  msgid "New Gallery"
380
  msgstr "Neue Galerie"
381
 
382
+ #: ../admin/addgallery.php:201
383
+ #: ../admin/wp25/addgallery.php:191
384
  msgid "Create a new , empty gallery below the folder"
385
  msgstr "Erstelle eine neue, leere Galerie unter dem Verzeichnis"
386
 
387
+ #: ../admin/addgallery.php:203
388
+ #: ../admin/wp25/addgallery.php:193
389
  msgid "Allowed characters for file and folder names are"
390
  msgstr "Erlaubte Charaktere für die Datei- und Verzeichnisnamen sind"
391
 
392
+ #: ../admin/addgallery.php:206
393
+ #: ../admin/wp25/addgallery.php:196
394
  msgid "Add gallery"
395
  msgstr "Galerie hinzufügen"
396
 
397
+ #: ../admin/addgallery.php:219
398
+ #: ../admin/wp25/addgallery.php:207
399
  msgid "Select Zip-File"
400
  msgstr "Wähle Zip-Datei"
401
 
402
+ #: ../admin/addgallery.php:221
403
+ #: ../admin/wp25/addgallery.php:209
404
  msgid "Upload a zip file with images"
405
  msgstr "Lade eine Zip-Datei mit Bildern hoch"
406
 
407
+ #: ../admin/addgallery.php:224
408
+ #: ../admin/addgallery.php:287
409
+ #: ../admin/wp25/addgallery.php:212
410
+ #: ../admin/wp25/addgallery.php:271
411
  msgid "in to"
412
  msgstr "in"
413
 
414
+ #: ../admin/addgallery.php:226
415
+ #: ../admin/wp25/addgallery.php:214
416
  msgid "a new gallery"
417
  msgstr "eine neue Galerie"
418
 
419
+ #: ../admin/addgallery.php:236
420
+ #: ../admin/addgallery.php:299
421
+ #: ../admin/wp25/addgallery.php:224
422
+ #: ../admin/wp25/addgallery.php:283
423
  msgid "Note : The upload limit on your server is "
424
  msgstr "Hinweis : Das Upload-Limit auf dem Server beträgt "
425
 
426
+ #: ../admin/addgallery.php:240
427
+ #: ../admin/addgallery.php:265
428
+ #: ../admin/addgallery.php:303
429
+ #: ../admin/wp25/addgallery.php:228
430
+ #: ../admin/wp25/addgallery.php:251
431
+ #: ../admin/wp25/addgallery.php:287
432
  msgid "Add Metadata :"
433
  msgstr "Metadaten hinzufügen :"
434
 
435
+ #: ../admin/addgallery.php:242
436
+ #: ../admin/addgallery.php:267
437
+ #: ../admin/addgallery.php:305
438
+ #: ../admin/wp25/addgallery.php:230
439
+ #: ../admin/wp25/addgallery.php:253
440
+ #: ../admin/wp25/addgallery.php:289
441
  msgid "Import EXIF, IPTC or XMP data (if available)"
442
  msgstr "EXIF, IPTC oder XMP Daten importieren (wenn verfügbar)"
443
 
444
+ #: ../admin/addgallery.php:245
445
+ #: ../admin/wp25/addgallery.php:233
446
  msgid "Start upload"
447
  msgstr "Upload starten"
448
 
449
+ #: ../admin/addgallery.php:259
450
+ #: ../admin/wp25/addgallery.php:245
451
  msgid "Import from Server path:"
452
  msgstr "Importieren aus Server-Pfad:"
453
 
454
+ #: ../admin/addgallery.php:261
455
  msgid "Import a folder with images. Please note :"
456
  msgstr "Importiere ein Verzeichniss mit Bildern. Bitte beachte:"
457
 
458
+ #: ../admin/addgallery.php:262
459
  msgid "For safe-mode = ON you need to add the subfolder thumbs manually"
460
  msgstr "Da der Safe-Mode (PHP.INI) eingeschaltet ist, mußt Du das Unterverzeichnis für die Vorschaubilder (\"thumbs\") manuell (per FTP) anlegen"
461
 
462
+ #: ../admin/addgallery.php:270
463
+ #: ../admin/wp25/addgallery.php:256
464
  msgid "Import folder"
465
  msgstr "Verzeichnis importieren"
466
 
467
+ #: ../admin/addgallery.php:283
468
+ #: ../admin/wp25/addgallery.php:267
469
  msgid "Upload image"
470
  msgstr "Bild hochladen"
471
 
472
+ #: ../admin/addgallery.php:289
473
+ #: ../admin/wp25/addgallery.php:273
474
  msgid "Choose gallery"
475
  msgstr "Wähle Galerie"
476
 
477
+ #: ../admin/addgallery.php:310
478
+ #: ../admin/wp25/addgallery.php:294
479
+ msgid "The batch upload requires Adobe Flash 9, disable it if you have problems"
480
+ msgstr "Das Batch-Upload-Skript benötigt Adbode Flash 9, wenn es Probleme gibt deaktiviere es besser."
481
+
482
+ #: ../admin/addgallery.php:310
483
+ #: ../admin/wp25/addgallery.php:294
484
+ msgid "Disable flash upload"
485
+ msgstr "Deaktiviere Batch-Upload"
486
+
487
+ #: ../admin/addgallery.php:312
488
+ #: ../admin/wp25/addgallery.php:296
489
+ msgid "Upload multiple files at once by ctrl/shift-selecting in dialog"
490
+ msgstr "Wähle im Dialog mit Ctrl/Shift mehrere Bilder gleichzeitig aus."
491
+
492
+ #: ../admin/addgallery.php:312
493
+ #: ../admin/wp25/addgallery.php:296
494
+ msgid "Enable flash based upload"
495
+ msgstr "Aktiviere Flash Batch Uplaod"
496
+
497
+ #: ../admin/admin.php:64
498
  #: ../admin/functions.php:78
499
  #: ../admin/functions.php:82
500
+ #: ../admin/functions.php:128
501
  #: ../admin/manage.php:64
502
+ #: ../admin/manage.php:434
503
  #: ../admin/settings.php:106
504
  #: ../admin/uploadtab.php:36
505
+ #: ../admin/wp25/admin.php:72
506
+ #: ../admin/wp25/functions.php:78
507
+ #: ../admin/wp25/functions.php:82
508
+ #: ../admin/wp25/functions.php:128
509
+ #: ../admin/wp25/manage.php:64
510
+ #: ../admin/wp25/manage.php:402
511
+ #: ../admin/wp25/settings.php:101
512
  #: ../tinymce/window.php:35
513
+ #: ../tinymce3/window.php:35
514
  msgid "Gallery"
515
  msgstr "Galerie"
516
 
517
+ #: ../admin/admin.php:65
518
+ #: ../admin/wp25/admin.php:73
519
  msgid "Add Gallery"
520
  msgstr "Bilder/Galerie hinzufügen"
521
 
522
+ #: ../admin/admin.php:66
523
+ #: ../admin/wp25/admin.php:74
524
  msgid "Manage Gallery"
525
  msgstr "Galerie verwalten"
526
 
527
+ #: ../admin/admin.php:67
528
+ #: ../admin/wp25/admin.php:75
529
  #: ../tinymce/window.php:36
530
+ #: ../tinymce3/window.php:36
531
  msgid "Album"
532
  msgstr "Album"
533
 
534
+ #: ../admin/admin.php:68
535
+ #: ../admin/wp25/admin.php:76
536
  msgid "Options"
537
  msgstr "Optionen"
538
 
539
+ #: ../admin/admin.php:70
540
+ #: ../admin/wp25/admin.php:78
541
  msgid "Style"
542
  msgstr "Style"
543
 
544
+ #: ../admin/admin.php:71
545
+ #: ../admin/wp25/admin.php:79
546
  msgid "Setup Gallery"
547
  msgstr "Galerie Setup"
548
 
549
+ #: ../admin/admin.php:71
550
+ #: ../admin/wp25/admin.php:79
551
  msgid "Setup"
552
  msgstr "Setup"
553
 
554
+ #: ../admin/admin.php:73
555
+ #: ../admin/wp25/admin.php:81
556
  msgid "Roles"
557
  msgstr "Zugriff"
558
 
559
+ #: ../admin/admin.php:74
560
+ #: ../admin/wp25/admin.php:82
 
 
 
 
561
  msgid "About this Gallery"
562
  msgstr "Über diese Galerie"
563
 
564
+ #: ../admin/admin.php:74
565
+ #: ../admin/wp25/admin.php:82
566
  msgid "About"
567
  msgstr "Über"
568
 
569
+ #: ../admin/admin.php:76
570
+ #: ../admin/wp25/admin.php:84
571
+ #: ../admin/wp25/media-upload.php:11
572
  msgid "NextGEN Gallery"
573
  msgstr "NextGEN Gallery"
574
 
575
+ #: ../admin/album.php:19
576
+ #: ../admin/album.php:37
577
+ #: ../admin/wp25/album.php:19
578
+ #: ../admin/wp25/album.php:36
579
  msgid "Update Successfully"
580
  msgstr "Update erfolgreich"
581
 
582
+ #: ../admin/album.php:45
583
+ #: ../admin/wp25/album.php:44
584
  msgid "Album deleted"
585
  msgstr "Album gelöscht"
586
 
587
+ #: ../admin/album.php:124
588
+ #: ../admin/wp25/album.php:119
589
  msgid "Manage Albums"
590
  msgstr "Verwalte Alben"
591
 
592
+ #: ../admin/album.php:130
593
+ #: ../admin/wp25/album.php:125
594
  #: ../tinymce/window.php:74
595
+ #: ../tinymce3/window.php:74
596
  msgid "Select album"
597
  msgstr "Wähle Album"
598
 
599
+ #: ../admin/album.php:133
600
+ #: ../admin/wp25/album.php:128
601
  msgid "No album selected"
602
  msgstr "Kein Album ausgewählt"
603
 
604
+ #: ../admin/album.php:146
605
+ #: ../admin/wp25/album.php:141
606
  msgid "Add new album"
607
  msgstr "Album hinzufügen"
608
 
609
+ #: ../admin/album.php:150
610
+ #: ../admin/manage.php:309
611
+ #: ../admin/manage.php:580
612
+ #: ../admin/wp25/album.php:146
613
+ #: ../admin/wp25/manage.php:314
614
+ #: ../admin/wp25/manage.php:556
615
  msgid "Delete"
616
  msgstr "Lösche"
617
 
618
+ #: ../admin/album.php:150
619
+ #: ../admin/wp25/album.php:146
620
  msgid "Delete album ?"
621
  msgstr "Lösche Album ?"
622
 
623
+ #: ../admin/album.php:152
624
+ #: ../admin/settings.php:166
625
+ #: ../admin/settings.php:206
626
+ #: ../admin/settings.php:253
627
  #: ../admin/settings.php:333
628
  #: ../admin/settings.php:380
629
  #: ../admin/settings.php:492
630
  #: ../admin/settings.php:600
631
  #: ../admin/wpmu.php:98
632
+ #: ../admin/wp25/album.php:148
633
+ #: ../admin/wp25/settings.php:160
634
+ #: ../admin/wp25/settings.php:198
635
+ #: ../admin/wp25/settings.php:243
636
+ #: ../admin/wp25/settings.php:321
637
+ #: ../admin/wp25/settings.php:366
638
+ #: ../admin/wp25/settings.php:472
639
+ #: ../admin/wp25/settings.php:580
640
+ #: ../admin/wp25/wpmu.php:98
641
  msgid "Update"
642
  msgstr "Aktualisiere"
643
 
644
+ #: ../admin/album.php:160
645
+ #: ../admin/wp25/album.php:157
646
  msgid "[Show all]"
647
  msgstr "[Alle zeigen]"
648
 
649
+ #: ../admin/album.php:161
650
+ #: ../admin/wp25/album.php:158
651
  msgid "[Maximize]"
652
  msgstr "[Vergrößern]"
653
 
654
+ #: ../admin/album.php:162
655
+ #: ../admin/wp25/album.php:159
656
  msgid "[Minimize]"
657
  msgstr "[Verkleinern]"
658
 
659
+ #: ../admin/album.php:164
660
+ #: ../admin/wp25/album.php:161
661
  msgid "After you create and select a album, you can drag and drop a gallery into your album below"
662
  msgstr "Nachdem du ein Album erstellt und ausgewählt hast, kannst du per Drag & Drop eine Galerie in das Album ziehen"
663
 
664
+ #: ../admin/album.php:171
665
+ #: ../admin/wp25/album.php:168
666
  msgid "Select Gallery"
667
  msgstr "Wähle Galerie"
668
 
669
+ #: ../admin/album.php:210
670
+ #: ../admin/wp25/album.php:207
671
  msgid "Album Page ID"
672
  msgstr "Album Seiten ID (Page ID)"
673
 
674
+ #: ../admin/album.php:222
675
+ #: ../admin/wp25/album.php:219
676
  msgid "No album selected!"
677
  msgstr "Kein Album ausgewählt"
678
 
679
+ #: ../admin/album.php:258
680
+ #: ../admin/manage.php:283
681
+ #: ../admin/manage.php:535
682
+ #: ../admin/wp25/album.php:255
683
+ #: ../admin/wp25/manage.php:288
684
+ #: ../admin/wp25/manage.php:511
685
  msgid "ID"
686
  msgstr "ID"
687
 
688
+ #: ../admin/album.php:259
689
+ #: ../admin/wp25/album.php:256
690
  msgid "Name"
691
  msgstr "Name"
692
 
693
+ #: ../admin/album.php:260
694
+ #: ../admin/manage.php:285
695
+ #: ../admin/manage.php:446
 
 
 
696
  #: ../admin/js/uploadtab.js.php:109
697
+ #: ../admin/wp25/album.php:257
698
+ #: ../admin/wp25/manage.php:290
699
+ #: ../admin/wp25/manage.php:415
700
  #: ../lib/nggmeta.lib.php:373
701
  msgid "Title"
702
  msgstr "Titel"
703
 
704
+ #: ../admin/album.php:261
705
+ #: ../admin/wp25/album.php:258
706
  msgid "Page"
707
  msgstr "Seite"
708
 
709
  #: ../admin/functions.php:20
710
+ #: ../admin/wp25/functions.php:20
711
  msgid "No valid gallery name!"
712
  msgstr "Kein gültiger Galerie-Name!"
713
 
716
  #: ../admin/functions.php:50
717
  #: ../admin/functions.php:102
718
  #: ../admin/functions.php:109
719
+ #: ../admin/wp25/functions.php:27
720
+ #: ../admin/wp25/functions.php:36
721
+ #: ../admin/wp25/functions.php:50
722
+ #: ../admin/wp25/functions.php:102
723
+ #: ../admin/wp25/functions.php:109
724
  msgid "Directory"
725
  msgstr "Verzeichnis"
726
 
727
  #: ../admin/functions.php:27
728
+ #: ../admin/wp25/functions.php:27
729
  msgid "didn't exist. Please create first the main gallery folder "
730
  msgstr "nicht gefunden. Bitte erstelle zuerst das Hauptverzeichnis."
731
 
732
  #: ../admin/functions.php:28
733
  #: ../admin/functions.php:37
734
+ #: ../admin/wp25/functions.php:28
735
+ #: ../admin/wp25/functions.php:37
736
  msgid "Check this link, if you didn't know how to set the permission :"
737
  msgstr "Dieser Link zeigt dir wie man Verzeichnisrechte ändert :"
738
 
739
  #: ../admin/functions.php:36
740
  #: ../admin/functions.php:50
741
+ #: ../admin/wp25/functions.php:36
742
+ #: ../admin/wp25/functions.php:50
743
  msgid "is not writeable !"
744
  msgstr "ist schreibgeschützt !"
745
 
746
  #: ../admin/functions.php:45
747
  #: ../admin/functions.php:55
748
+ #: ../admin/functions.php:525
749
+ #: ../admin/wp25/functions.php:45
750
+ #: ../admin/wp25/functions.php:55
751
+ #: ../admin/wp25/functions.php:525
752
  #: ../lib/nggallery.lib.php:297
753
  msgid "Unable to create directory "
754
  msgstr "Kann Verzeichnis nicht erstellen "
755
 
756
  #: ../admin/functions.php:59
757
+ #: ../admin/wp25/functions.php:59
758
  msgid "The server setting Safe-Mode is on !"
759
  msgstr "Auf dem Server ist Safe-Mode aktiviert (PHP.INI)"
760
 
761
  #: ../admin/functions.php:60
762
+ #: ../admin/wp25/functions.php:60
763
  msgid "If you have problems, please create directory"
764
  msgstr "Wenn Probleme auftreten, erstelle bitte das Verzeichnis"
765
 
766
  #: ../admin/functions.php:61
767
+ #: ../admin/wp25/functions.php:61
768
  msgid "and the thumbnails directory"
769
  msgstr "und das Thumbnails-Verzeichnis"
770
 
771
  #: ../admin/functions.php:61
772
+ #: ../admin/wp25/functions.php:61
773
  msgid "with permission 777 manually !"
774
  msgstr "mit den Berechtigungen 777 manuell !"
775
 
776
  #: ../admin/functions.php:78
777
+ #: ../admin/wp25/functions.php:78
778
  msgid "already exists"
779
  msgstr "gibt es bereits"
780
 
781
  #: ../admin/functions.php:82
782
+ #: ../admin/functions.php:128
783
+ #: ../admin/wp25/functions.php:82
784
+ #: ../admin/wp25/functions.php:128
785
  msgid "successfully created!"
786
  msgstr "erfolgreich erstellt!"
787
 
788
  #: ../admin/functions.php:82
789
+ #: ../admin/wp25/functions.php:82
790
  msgid "You can show this gallery with the tag"
791
  msgstr "Du kannst diese Galerie mit dem Stichwort anzeigen :"
792
 
793
  #: ../admin/functions.php:102
794
+ #: ../admin/wp25/functions.php:102
795
  msgid "doesn&#96;t exist!"
796
  msgstr "gibt es nicht !"
797
 
798
  #: ../admin/functions.php:109
799
+ #: ../admin/wp25/functions.php:109
800
  msgid "contains no pictures"
801
  msgstr "enthält keine Bilder"
802
 
803
+ #: ../admin/functions.php:125
804
+ #: ../admin/wp25/functions.php:125
805
  msgid "Database error. Could not add gallery!"
806
  msgstr "Datenbank-Fehler. Kann Galerie nicht hinzufügen!"
807
 
808
+ #: ../admin/functions.php:144
809
+ #: ../admin/wp25/functions.php:144
810
  msgid " picture(s) successfully added"
811
  msgstr " Bild(er) erfolgreich hinzugefügt"
812
 
813
  #: ../admin/functions.php:175
814
+ #: ../admin/functions.php:224
815
+ #: ../admin/functions.php:287
816
+ #: ../admin/wp25/functions.php:175
817
+ #: ../admin/wp25/functions.php:224
818
+ #: ../admin/wp25/functions.php:287
819
  msgid "Running... Please wait"
820
  msgstr "Läuft... Bitte warten"
821
 
822
  #: ../admin/functions.php:176
823
+ #: ../admin/manage.php:510
824
+ #: ../admin/wp25/functions.php:176
825
+ #: ../admin/wp25/manage.php:484
826
  msgid "Resize images"
827
  msgstr "Bilder verkleinern"
828
 
829
+ #: ../admin/functions.php:200
830
+ #: ../admin/wp25/functions.php:200
831
  msgid " : Image resized..."
832
  msgstr " : Bild angepasst..."
833
 
834
+ #: ../admin/functions.php:209
835
+ #: ../admin/functions.php:266
836
+ #: ../admin/wp25/functions.php:209
837
+ #: ../admin/wp25/functions.php:266
838
  msgid "Some pictures are not writeable :"
839
  msgstr "Einige Bilder sind schreibgeschützt :"
840
 
841
+ #: ../admin/functions.php:225
842
+ #: ../admin/manage.php:508
843
+ #: ../admin/wp25/functions.php:225
844
+ #: ../admin/wp25/manage.php:482
845
  msgid "Set watermark"
846
  msgstr "Wasserzeichen setzen"
847
 
848
+ #: ../admin/functions.php:257
849
+ #: ../admin/wp25/functions.php:257
850
  msgid " : Watermark created..."
851
  msgstr " : Wasserzeichen gesetzt..."
852
 
853
+ #: ../admin/functions.php:288
854
+ #: ../admin/manage.php:509
855
+ #: ../admin/wp25/functions.php:288
856
+ #: ../admin/wp25/manage.php:483
857
  msgid "Create new thumbnails"
858
  msgstr "Neue Thumbnails erstellen"
859
 
860
+ #: ../admin/functions.php:355
861
+ #: ../admin/wp25/functions.php:355
862
  msgid " : Thumbnail created..."
863
  msgstr ": Thumbnail erstellt..."
864
 
865
+ #: ../admin/functions.php:360
866
+ #: ../admin/wp25/functions.php:360
867
  msgid "Follow thumbnails could not created."
868
  msgstr "Folgende Thumbnails konnten nicht erstellt werden :"
869
 
870
+ #: ../admin/functions.php:361
871
+ #: ../admin/wp25/functions.php:361
872
  msgid "Some thumbnails are not writeable :"
873
  msgstr "Einige Thumbnails sind schreibgeschützt :"
874
 
875
+ #: ../admin/functions.php:460
876
+ #: ../admin/wp25/functions.php:460
877
  msgid "The Zip-file is too large. Exceed Memory limit !"
878
  msgstr "Das Zip-File ist zu groß. Speicherlimit überschritten !"
879
 
880
+ #: ../admin/functions.php:501
881
+ #: ../admin/wp25/functions.php:501
882
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
883
  msgstr "Die hochgeladene Datei war keine korrekte Zip-Datei. Servermeldung :"
884
 
885
+ #: ../admin/functions.php:520
886
+ #: ../admin/wp25/functions.php:520
887
  #, php-format
888
  msgid "Unable to create directory %s. Is its parent directory writable by the server?"
889
  msgstr "Kann das Verzeichnis %s nicht erstellen. Is das Hauptverzeichnis vielleicht schreibgeschützt ?"
890
 
891
+ #: ../admin/functions.php:535
892
+ #: ../admin/wp25/functions.php:535
893
  msgid "Zip-File successfully unpacked"
894
  msgstr "Zip-Datei erfolgreich entpackt"
895
 
896
+ #: ../admin/functions.php:571
897
+ #: ../admin/functions.php:681
898
+ #: ../admin/wp25/functions.php:571
899
+ #: ../admin/wp25/functions.php:681
 
 
 
900
  msgid "Failure in database, no gallery path set !"
901
  msgstr "Datenbankfehler! Kein Galerie-Pfad gesetzt !"
902
 
903
+ #: ../admin/functions.php:592
904
+ #: ../admin/functions.php:674
905
+ #: ../admin/wp25/functions.php:592
906
+ #: ../admin/wp25/functions.php:674
907
  msgid "is no valid image file!"
908
  msgstr "ist keine zulässige Bilddatei !"
909
 
910
+ #: ../admin/functions.php:606
911
+ #: ../admin/wp25/functions.php:606
912
  #, php-format
913
  msgid "Unable to write to directory %s. Is this directory writable by the server?"
914
  msgstr "Kann das Verzeichnis %s nicht erstellen. Is das Hauptverzeichnis vielleicht schreibgeschützt ?"
915
 
916
+ #: ../admin/functions.php:613
917
+ #: ../admin/functions.php:698
918
+ #: ../admin/wp25/functions.php:613
919
+ #: ../admin/wp25/functions.php:698
920
  msgid "Error, the file could not moved to : "
921
  msgstr "Fehler: Diese Datei kann nicht verschoben werden zu :"
922
 
923
+ #: ../admin/functions.php:618
924
+ #: ../admin/functions.php:702
925
+ #: ../admin/wp25/functions.php:618
926
+ #: ../admin/wp25/functions.php:702
927
  msgid "Error, the file permissions could not set"
928
  msgstr "Fehler: Die Berechtigungen für diese Datei können nicht gesetzt werden"
929
 
930
+ #: ../admin/functions.php:637
931
+ #: ../admin/wp25/functions.php:637
932
  msgid " Image(s) successfully added"
933
  msgstr " Bild(er) erfolgreich hinzugefügt"
934
 
935
+ #: ../admin/functions.php:661
936
+ #: ../admin/wp25/functions.php:661
937
  msgid "Invalid upload. Error Code : "
938
  msgstr "Ungültiger Upload. Fehler Code :"
939
 
940
+ #: ../admin/functions.php:713
941
+ #: ../admin/wp25/functions.php:713
942
  msgid "Sorry, you have used your space allocation. Please delete some files to upload more files."
943
  msgstr "Schade, dein freier Speicher scheint aufgebraucht zu sein. Bitte lösche zuerst ein paar Bilder."
944
 
945
+ #: ../admin/functions.php:740
946
+ #: ../admin/wp25/functions.php:740
947
  #, php-format
948
  msgid "SAFE MODE Restriction in effect! You need to create the folder <strong>%s</strong> manually"
949
  msgstr "SAFE MODE Einschränkungen ist aktiv. Du must das Verzeichnis <strong>%s</strong> manuell anlegen."
950
 
951
+ #: ../admin/functions.php:741
952
+ #: ../admin/wp25/functions.php:741
953
  #, php-format
954
  msgid "When safe_mode is on, PHP checks to see if the owner (%s) of the current script matches the owner (%s) of the file to be operated on by a file function or its directory"
955
  msgstr "Wenn der Safe-Mode eingeschaltet ist, überprüft PHP ob der Besitzer (%s) des Skript mit dem Besitzer (%s) der Datei/Verzeichnis übereinstimmt."
956
 
957
  #: ../admin/manage.php:64
958
  #: ../admin/manage.php:85
959
+ #: ../admin/wp25/manage.php:64
960
+ #: ../admin/wp25/manage.php:85
961
  msgid "deleted successfully"
962
  msgstr "erfolgreich gelöscht"
963
 
964
  #: ../admin/manage.php:111
965
+ #: ../admin/wp25/manage.php:111
966
  msgid "Watermark successfully added"
967
  msgstr "Wasserzeichen erfolgreich erstellt"
968
 
969
  #: ../admin/manage.php:116
970
+ #: ../admin/wp25/manage.php:116
971
  msgid "Thumbnails successfully created. Please refresh your browser cache."
972
  msgstr "Thumbnails erfolgreich erstellt. Bitte Browser-Cache aktualisieren."
973
 
974
  #: ../admin/manage.php:121
975
+ #: ../admin/wp25/manage.php:121
976
  msgid "Images successfully resized"
977
  msgstr "Bilder erfolgreich verkleinert"
978
 
979
  #: ../admin/manage.php:139
980
+ #: ../admin/wp25/manage.php:139
981
  msgid "Pictures deleted successfully "
982
  msgstr "Bilder erfolgreich gelöscht"
983
 
984
  #: ../admin/manage.php:145
985
+ #: ../admin/wp25/manage.php:145
986
  msgid "Import metadata finished"
987
  msgstr "Import der Metadaten beendet"
988
 
989
  #: ../admin/manage.php:195
990
+ #: ../admin/wp25/manage.php:195
991
  msgid "Tags changed"
992
  msgstr "Stichwörter geändert"
993
 
994
  #: ../admin/manage.php:215
995
+ #: ../admin/wp25/manage.php:215
996
  msgid "Update successful"
997
  msgstr "Aktualisierung erfolgreich"
998
 
999
+ #: ../admin/manage.php:248
1000
+ #: ../admin/wp25/manage.php:248
1001
  msgid "New gallery page ID"
1002
  msgstr "Neue Galerie Seiten ID"
1003
 
1004
+ #: ../admin/manage.php:248
1005
+ #: ../admin/wp25/manage.php:248
1006
  msgid "created"
1007
  msgstr "erstellt"
1008
 
1009
+ #: ../admin/manage.php:279
1010
+ #: ../admin/wp25/manage.php:283
1011
  msgid "Gallery Overview"
1012
  msgstr "Galerie Übersicht"
1013
 
1014
+ #: ../admin/manage.php:284
1015
+ #: ../admin/wp25/manage.php:289
 
1016
  msgid "Gallery name"
1017
  msgstr "Galerie Name"
1018
 
1019
+ #: ../admin/manage.php:286
1020
+ #: ../admin/manage.php:465
1021
+ #: ../admin/manage.php:541
 
1022
  #: ../admin/style.php:102
1023
  #: ../admin/uploadtab.php:180
 
 
1024
  #: ../admin/js/uploadtab.js.php:172
1025
+ #: ../admin/wp25/manage.php:291
1026
+ #: ../admin/wp25/manage.php:434
1027
+ #: ../admin/wp25/manage.php:517
1028
+ #: ../admin/wp25/media-upload.php:180
1029
+ #: ../admin/wp25/style.php:109
1030
  msgid "Description"
1031
  msgstr "Beschreibung"
1032
 
1033
+ #: ../admin/manage.php:287
1034
+ #: ../admin/wp25/manage.php:292
 
1035
  msgid "Page ID"
1036
  msgstr "Seiten ID (Page ID)"
1037
 
1038
+ #: ../admin/manage.php:288
1039
+ #: ../admin/wp25/manage.php:293
 
1040
  msgid "Quantity"
1041
  msgstr "Anzahl"
1042
 
1043
+ #: ../admin/manage.php:289
1044
+ #: ../admin/manage.php:547
1045
+ #: ../admin/wp25/manage.php:294
1046
+ #: ../admin/wp25/manage.php:523
1047
  msgid "Action"
1048
  msgstr "Aktion"
1049
 
1050
+ #: ../admin/manage.php:308
 
1051
  #: ../admin/js/uploadtab.js.php:93
1052
+ #: ../admin/wp25/manage.php:313
1053
  msgid "Edit"
1054
  msgstr "Bearbeiten"
1055
 
1056
+ #: ../admin/manage.php:309
1057
+ #: ../admin/wp25/manage.php:314
1058
  msgid "Delete this gallery ?"
1059
  msgstr "Diese Galerie löschen ?"
1060
 
1061
+ #: ../admin/manage.php:314
1062
+ #: ../admin/manage.php:585
1063
+ #: ../admin/wp25/manage.php:319
1064
+ #: ../admin/wp25/manage.php:561
 
1065
  msgid "No entries found"
1066
  msgstr "Keine Einträge gefunden"
1067
 
1068
+ #: ../admin/manage.php:443
 
1069
  msgid "Main settings"
1070
  msgstr "Haupteinstellungen"
1071
 
1072
+ #: ../admin/manage.php:448
1073
+ #: ../admin/wp25/manage.php:417
1074
  msgid "Page Link to"
1075
  msgstr "Seite verlinkt zu"
1076
 
1077
+ #: ../admin/manage.php:451
1078
+ #: ../admin/wp25/manage.php:420
1079
  msgid "Not linked"
1080
  msgstr "Nicht verlinkt"
1081
 
1082
+ #: ../admin/manage.php:467
1083
+ #: ../admin/wp25/manage.php:436
1084
  msgid "Preview image"
1085
  msgstr "Vorschau-Bild"
1086
 
1087
+ #: ../admin/manage.php:470
1088
+ #: ../admin/wp25/manage.php:439
1089
  msgid "No Picture"
1090
  msgstr "Kein Bild"
1091
 
1092
+ #: ../admin/manage.php:485
1093
+ #: ../admin/wp25/manage.php:454
1094
  msgid "Path"
1095
  msgstr "Pfad"
1096
 
1097
+ #: ../admin/manage.php:488
1098
+ #: ../admin/wp25/manage.php:457
1099
  msgid "Create new page"
1100
  msgstr "Neue Seite erstellen"
1101
 
1102
+ #: ../admin/manage.php:491
1103
+ #: ../admin/wp25/manage.php:460
1104
  msgid "Main page (No parent)"
1105
  msgstr "Haupseite (keine Unterseite)"
1106
 
1107
+ #: ../admin/manage.php:494
1108
+ #: ../admin/wp25/manage.php:463
1109
  msgid "Add page"
1110
  msgstr "Seite hinzufügen"
1111
 
1112
+ #: ../admin/manage.php:500
1113
+ #: ../admin/wp25/manage.php:470
1114
  msgid "Scan Folder for new images"
1115
  msgstr "Überprüfe Verzeichniss nach neuen Bildern"
1116
 
1117
+ #: ../admin/manage.php:501
1118
+ #: ../admin/manage.php:592
1119
+ #: ../admin/wp25/manage.php:471
1120
+ #: ../admin/wp25/manage.php:504
1121
+ #: ../admin/wp25/manage.php:567
1122
  msgid "Save Changes"
1123
  msgstr "Änderungen Speichern"
1124
 
1125
+ #: ../admin/manage.php:506
1126
+ #: ../admin/wp25/manage.php:480
1127
  msgid "No action"
1128
  msgstr "Keine Aktion"
1129
 
1130
+ #: ../admin/manage.php:511
1131
+ #: ../admin/wp25/manage.php:485
1132
  msgid "Delete images"
1133
  msgstr "Bilder löschen"
1134
 
1135
+ #: ../admin/manage.php:512
1136
+ #: ../admin/wp25/manage.php:486
1137
  msgid "Import metadata"
1138
  msgstr "Metadaten importieren"
1139
 
1140
+ #: ../admin/manage.php:514
1141
+ #: ../admin/wp25/manage.php:488
1142
  msgid "Add tags"
1143
  msgstr "Stichwörter hinzufügen"
1144
 
1145
+ #: ../admin/manage.php:515
1146
+ #: ../admin/wp25/manage.php:489
1147
  msgid "Delete tags"
1148
  msgstr "Stichwörter löschen"
1149
 
1150
+ #: ../admin/manage.php:516
1151
+ #: ../admin/wp25/manage.php:490
1152
  msgid "Overwrite tags"
1153
  msgstr "Stichwörter überschreiben"
1154
 
1155
+ #: ../admin/manage.php:520
1156
+ #: ../admin/manage.php:521
1157
+ #: ../admin/manage.php:610
1158
+ #: ../admin/wp25/manage.php:494
1159
+ #: ../admin/wp25/manage.php:495
1160
+ #: ../admin/wp25/manage.php:585
1161
  msgid "OK"
1162
  msgstr "OK"
1163
 
1164
+ #: ../admin/manage.php:520
1165
+ #: ../admin/manage.php:610
1166
+ #: ../admin/wp25/manage.php:494
1167
+ #: ../admin/wp25/manage.php:585
1168
  msgid "No images selected"
1169
  msgstr "Keine Bilder ausgewählt"
1170
 
1171
+ #: ../admin/manage.php:520
1172
+ #: ../admin/manage.php:610
1173
+ #: ../admin/wp25/manage.php:494
1174
+ #: ../admin/wp25/manage.php:585
1175
  #, php-format
1176
  msgid ""
1177
  "You are about to start the bulk edit for %s images \n"
1182
  " \n"
1183
  " 'Abbrechenl' um zu stoppen, 'OK' um die Bearbeitung durchzuführen."
1184
 
1185
+ #: ../admin/manage.php:522
1186
+ #: ../admin/wp25/manage.php:496
1187
  msgid "Hide thumbnails "
1188
  msgstr "Thumbnails verstecken"
1189
 
1190
+ #: ../admin/manage.php:523
1191
+ #: ../admin/wp25/manage.php:497
1192
  msgid "Show thumbnails "
1193
  msgstr "Thumbnails zeigen"
1194
 
1195
+ #: ../admin/manage.php:524
1196
+ #: ../admin/wp25/manage.php:498
1197
  msgid "Show tags"
1198
  msgstr "Zeige Tags"
1199
 
1200
+ #: ../admin/manage.php:525
1201
+ #: ../admin/wp25/manage.php:499
1202
  msgid "Hide tags"
1203
  msgstr "Verstecke Tags"
1204
 
1205
+ #: ../admin/manage.php:527
1206
+ #: ../admin/wp25/manage.php:501
1207
+ msgid "Sort gallery"
1208
+ msgstr "Sortiere Bilder"
1209
+
1210
+ #: ../admin/manage.php:536
1211
  #: ../admin/settings.php:322
1212
+ #: ../admin/wp25/manage.php:512
1213
+ #: ../admin/wp25/settings.php:310
1214
  msgid "File name"
1215
  msgstr "Dateiname"
1216
 
1217
+ #: ../admin/manage.php:538
1218
  #: ../admin/js/uploadtab.js.php:106
1219
+ #: ../admin/wp25/manage.php:514
1220
  msgid "Thumbnail"
1221
  msgstr "Thumbnail"
1222
 
1223
+ #: ../admin/manage.php:542
1224
  #: ../admin/uploadtab.php:176
1225
  #: ../admin/js/uploadtab.js.php:169
1226
+ #: ../admin/wp25/manage.php:518
1227
  msgid "Alt &amp; Title Text"
1228
  msgstr "Alt &amp; Titel Text"
1229
 
1230
+ #: ../admin/manage.php:543
1231
+ #: ../admin/wp25/manage.php:519
1232
  msgid "exclude"
1233
  msgstr "ausschließen"
1234
 
1235
+ #: ../admin/manage.php:545
1236
+ #: ../admin/wp25/manage.php:521
1237
  msgid "Tags (comma separated list)"
1238
  msgstr "Stichwörter (Tags)"
1239
 
1240
+ #: ../admin/manage.php:578
1241
+ #: ../admin/wp25/manage.php:554
1242
  msgid "View"
1243
  msgstr "Ansehen"
1244
 
1245
+ #: ../admin/manage.php:579
1246
+ #: ../admin/wp25/manage.php:555
1247
  msgid "Show Meta data"
1248
  msgstr "Zeige Metadaten"
1249
 
1250
+ #: ../admin/manage.php:579
1251
+ #: ../admin/wp25/manage.php:555
1252
  msgid "Meta"
1253
  msgstr "Meta"
1254
 
1255
+ #: ../admin/manage.php:580
1256
+ #: ../admin/wp25/manage.php:556
1257
  msgid "Delete this file ?"
1258
  msgstr "Diese Datei löschen ?"
1259
 
1260
+ #: ../admin/manage.php:607
1261
+ #: ../admin/wp25/manage.php:582
1262
  msgid "Enter the tags"
1263
  msgstr "Stichwörter angeben"
1264
 
1265
+ #: ../admin/manage.php:610
1266
+ #: ../admin/wp25/manage.php:585
1267
+ #: ../tinymce/window.php:147
1268
+ #: ../tinymce3/window.php:147
1269
  msgid "Cancel"
1270
  msgstr "Abbrechen"
1271
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1272
  #: ../admin/overview.php:18
1273
+ #: ../admin/wp25/overview.php:24
1274
  msgid "NextGEN Gallery Overview"
1275
  msgstr "NextGEN Galerie Übersicht"
1276
 
1279
  msgstr "Zusammenfassung"
1280
 
1281
  #: ../admin/overview.php:30
1282
+ #: ../admin/wp25/overview.php:49
1283
  #, php-format
1284
  msgid "There are totally %1$s pictures in %2$s galleries, which are spread across %3$s albums."
1285
  msgstr "Es gibt insgesamt %1$s Bilder in %2$s Galerien - verteilt in %3$s Alben."
1286
 
1287
  #: ../admin/overview.php:34
1288
+ #: ../admin/wp25/overview.php:28
1289
  msgid "New Version available"
1290
  msgstr "Neue Version verfügbar !!"
1291
 
1292
  #: ../admin/overview.php:35
1293
+ #: ../admin/wp25/overview.php:29
1294
  msgid "The server reports that a new NextGEN Gallery Version is now available. Please visit the plugin homepage for more information."
1295
  msgstr "Der Server benachrichtigt Dich über eine neu verfügbare Version der NextGEN Galerie. Bitte besuche die Plugin Homepage um weitere Informationen zu erhalten."
1296
 
1297
  #: ../admin/overview.php:36
1298
+ #: ../admin/wp25/overview.php:30
1299
  msgid "Download here"
1300
  msgstr "Hier dowloaden"
1301
 
1302
  #: ../admin/overview.php:42
1303
+ #: ../admin/wp25/overview.php:103
1304
  msgid "Server Settings"
1305
  msgstr "Server- Einstellungen"
1306
 
1309
  msgstr "Willkommen"
1310
 
1311
  #: ../admin/overview.php:54
1312
+ #: ../admin/wp25/overview.php:54
1313
  msgid "gallery administrator"
1314
  msgstr "Galerie-Administrator"
1315
 
1316
  #: ../admin/overview.php:54
1317
+ #: ../admin/wp25/overview.php:54
1318
  msgid "gallery editor"
1319
  msgstr "Galerie-Mitarbeiter"
1320
 
1340
  msgstr "Ändere die Einstellungen von NextGEN Galerie"
1341
 
1342
  #: ../admin/overview.php:66
1343
+ #: ../admin/wp25/overview.php:64
1344
  msgid "Latest News"
1345
  msgstr "Letzte Informationen"
1346
 
1347
  #: ../admin/overview.php:85
1348
+ #: ../admin/wp25/overview.php:85
1349
  #, php-format
1350
  msgid "Newsfeed could not be loaded. Check the <a href=\"%s\">front page</a> to check for updates."
1351
  msgstr "Der Newsfeed kann nicht geladen werden. Schaue auf die <a href=\"%s\">Hauptseite</a> um Updates mitzubekommen."
1352
 
1353
  #: ../admin/overview.php:98
1354
+ #: ../admin/wp25/overview.php:124
1355
  msgid "GD support"
1356
  msgstr "GD Unterstützung"
1357
 
1358
  #: ../admin/overview.php:109
1359
+ #: ../admin/wp25/overview.php:135
1360
  msgid "No GD support"
1361
  msgstr "Keine GD Unterstützung"
1362
 
1364
  #: ../admin/overview.php:154
1365
  #: ../admin/overview.php:157
1366
  #: ../admin/overview.php:160
1367
+ #: ../admin/wp25/overview.php:142
1368
+ #: ../admin/wp25/overview.php:180
1369
+ #: ../admin/wp25/overview.php:183
1370
+ #: ../admin/wp25/overview.php:186
1371
  msgid "Yes"
1372
  msgstr "Ja"
1373
 
1375
  #: ../admin/overview.php:155
1376
  #: ../admin/overview.php:158
1377
  #: ../admin/overview.php:161
1378
+ #: ../admin/wp25/overview.php:143
1379
+ #: ../admin/wp25/overview.php:181
1380
+ #: ../admin/wp25/overview.php:184
1381
+ #: ../admin/wp25/overview.php:187
1382
  msgid "No"
1383
  msgstr "Nein"
1384
 
1385
  #: ../admin/overview.php:131
1386
+ #: ../admin/wp25/overview.php:157
1387
  msgid "Not set"
1388
  msgstr "Nicht gesetzt"
1389
 
1390
  #: ../admin/overview.php:133
1391
  #: ../admin/overview.php:136
1392
+ #: ../admin/wp25/overview.php:159
1393
+ #: ../admin/wp25/overview.php:162
1394
  msgid "On"
1395
  msgstr "An"
1396
 
1397
  #: ../admin/overview.php:134
1398
  #: ../admin/overview.php:137
1399
+ #: ../admin/wp25/overview.php:160
1400
+ #: ../admin/wp25/overview.php:163
1401
  msgid "Off"
1402
  msgstr "Aus"
1403
 
1406
  #: ../admin/overview.php:146
1407
  #: ../admin/overview.php:149
1408
  #: ../admin/overview.php:152
1409
+ #: ../admin/wp25/overview.php:166
1410
+ #: ../admin/wp25/overview.php:169
1411
+ #: ../admin/wp25/overview.php:172
1412
+ #: ../admin/wp25/overview.php:175
1413
+ #: ../admin/wp25/overview.php:178
1414
  msgid "N/A"
1415
  msgstr "N/A"
1416
 
1417
  #: ../admin/overview.php:151
1418
+ #: ../admin/wp25/overview.php:177
1419
  msgid " MByte"
1420
  msgstr " MByte"
1421
 
1422
  #: ../admin/overview.php:164
1423
+ #: ../admin/wp25/overview.php:190
1424
  msgid "Operating System"
1425
  msgstr "Betriebssystem"
1426
 
1427
  #: ../admin/overview.php:165
1428
+ #: ../admin/wp25/overview.php:191
1429
  msgid "Server"
1430
  msgstr "Server"
1431
 
1432
  #: ../admin/overview.php:166
1433
+ #: ../admin/wp25/overview.php:192
1434
  msgid "Memory usage"
1435
  msgstr "Speicherverbrauch"
1436
 
1437
  #: ../admin/overview.php:167
1438
+ #: ../admin/wp25/overview.php:193
1439
  msgid "MYSQL Version"
1440
  msgstr "MySQL Version"
1441
 
1442
  #: ../admin/overview.php:168
1443
+ #: ../admin/wp25/overview.php:194
1444
  msgid "SQL Mode"
1445
  msgstr "SQL Modus"
1446
 
1447
  #: ../admin/overview.php:169
1448
+ #: ../admin/wp25/overview.php:195
1449
  msgid "PHP Version"
1450
  msgstr "PHP Version"
1451
 
1452
  #: ../admin/overview.php:170
1453
+ #: ../admin/wp25/overview.php:196
1454
  msgid "PHP Safe Mode"
1455
  msgstr "PHP Safe Mode"
1456
 
1457
  #: ../admin/overview.php:171
1458
+ #: ../admin/wp25/overview.php:197
1459
  msgid "PHP Allow URL fopen"
1460
  msgstr "PHP Allow URL fopen"
1461
 
1462
  #: ../admin/overview.php:172
1463
+ #: ../admin/wp25/overview.php:198
1464
  msgid "PHP Memory Limit"
1465
  msgstr "PHP Memory Limit"
1466
 
1467
  #: ../admin/overview.php:173
1468
+ #: ../admin/wp25/overview.php:199
1469
  msgid "PHP Max Upload Size"
1470
  msgstr "PHP Max Upload Size"
1471
 
1472
  #: ../admin/overview.php:174
1473
+ #: ../admin/wp25/overview.php:200
1474
  msgid "PHP Max Post Size"
1475
  msgstr "PHP Max Post Size"
1476
 
1477
  #: ../admin/overview.php:175
1478
+ #: ../admin/wp25/overview.php:201
1479
  msgid "PHP Max Script Execute Time"
1480
  msgstr "PHP Max Script Execute Time"
1481
 
1482
  #: ../admin/overview.php:176
1483
+ #: ../admin/wp25/overview.php:202
1484
  msgid "PHP Exif support"
1485
  msgstr "PHP Exif Modul"
1486
 
1487
  #: ../admin/overview.php:177
1488
+ #: ../admin/wp25/overview.php:203
1489
  msgid "PHP IPTC support"
1490
  msgstr "PHP IPTC Modul"
1491
 
1492
  #: ../admin/overview.php:178
1493
+ #: ../admin/wp25/overview.php:204
1494
  msgid "PHP XML support"
1495
  msgstr "PHP XML Modul"
1496
 
1497
  #: ../admin/overview.php:319
1498
+ #: ../admin/wp25/overview.php:345
1499
  msgid "Storage Space"
1500
  msgstr "Speicherplatz"
1501
 
1502
  #: ../admin/overview.php:322
1503
+ #: ../admin/wp25/overview.php:348
1504
  msgid "Upload Space Used:"
1505
  msgstr "Verbrauchter Uploadspeicher:"
1506
 
1507
  #: ../admin/overview.php:328
1508
+ #: ../admin/wp25/overview.php:354
1509
  msgid "Upload Space Remaining:"
1510
  msgstr "Verbleibender Speicher:"
1511
 
1512
  #: ../admin/roles.php:20
1513
+ #: ../admin/wp25/roles.php:20
1514
  msgid "Updated capabilities"
1515
  msgstr "Zugriffsrechte geändert"
1516
 
1517
  #: ../admin/roles.php:25
1518
+ #: ../admin/wp25/roles.php:25
1519
  msgid "Roles / capabilities"
1520
  msgstr "Rollen / Zugriffsrechte"
1521
 
1522
  #: ../admin/roles.php:26
1523
+ #: ../admin/wp25/roles.php:26
1524
  msgid "Select the lowest role which should be able to access the follow capabilities. NextGEN Gallery supports the standard roles from WordPress."
1525
  msgstr "Wähle die niedrigste Rolle aus, die Zugriff haben soll. NextGEN Gallery unterstützt nur die Standard Wordpress Rollen/Fähigkeiten von WordPress."
1526
 
1527
  #: ../admin/roles.php:27
1528
+ #: ../admin/wp25/roles.php:27
1529
  msgid "For a more flexible user management you can use the"
1530
  msgstr "Nutze für eine flexiblere Rechteverwaltung den "
1531
 
1532
  #: ../admin/roles.php:33
1533
+ #: ../admin/wp25/roles.php:32
1534
  msgid "Main NextGEN Gallery overview"
1535
  msgstr "NextGEN Galerie Übersicht"
1536
 
1537
  #: ../admin/roles.php:37
1538
+ #: ../admin/wp25/roles.php:36
1539
  msgid "Use TinyMCE Button / Upload tab"
1540
  msgstr "TinyMCE Button / Upload Tab"
1541
 
1542
  #: ../admin/roles.php:41
1543
+ #: ../admin/wp25/roles.php:40
1544
  msgid "Add gallery / Upload images"
1545
  msgstr "Galerie einrichten / Bilder hochladen"
1546
 
1547
  #: ../admin/roles.php:45
1548
+ #: ../admin/wp25/roles.php:44
1549
  msgid "Manage gallery"
1550
  msgstr "Galerie verwalten"
1551
 
1552
  #: ../admin/roles.php:49
1553
+ #: ../admin/wp25/roles.php:48
1554
  msgid "Edit Album"
1555
  msgstr "Album erstellen"
1556
 
1557
  #: ../admin/roles.php:53
1558
+ #: ../admin/wp25/roles.php:52
1559
  msgid "Change style"
1560
  msgstr "Style anpassen"
1561
 
1562
  #: ../admin/roles.php:57
1563
+ #: ../admin/wp25/roles.php:56
1564
  msgid "Change options"
1565
  msgstr "Optionen änderen"
1566
 
1567
  #: ../admin/roles.php:61
1568
+ #: ../admin/wp25/roles.php:60
1569
  msgid "Update capabilities"
1570
  msgstr "Rechte aktualisieren"
1571
 
1572
  #: ../admin/settings.php:33
1573
  #: ../admin/style.php:16
1574
  #: ../admin/wpmu.php:32
1575
+ #: ../admin/wp25/settings.php:33
1576
+ #: ../admin/wp25/style.php:16
1577
+ #: ../admin/wp25/wpmu.php:32
1578
  msgid "Update successfully"
1579
  msgstr "Aktualisierung erfolgreich"
1580
 
1581
  #: ../admin/settings.php:50
1582
+ #: ../admin/wp25/settings.php:50
1583
  msgid "Cache cleared"
1584
  msgstr "Cache löschen"
1585
 
1586
  #: ../admin/settings.php:103
1587
  #: ../admin/settings.php:115
1588
+ #: ../admin/wp25/settings.php:98
1589
+ #: ../admin/wp25/settings.php:110
1590
  msgid "General Options"
1591
  msgstr "Allg. Optionen"
1592
 
1593
  #: ../admin/settings.php:105
1594
+ #: ../admin/wp25/settings.php:100
1595
  msgid "Images"
1596
  msgstr "Bilder"
1597
 
1598
  #: ../admin/settings.php:107
1599
  #: ../admin/settings.php:341
1600
+ #: ../admin/wp25/settings.php:102
1601
+ #: ../admin/wp25/settings.php:328
1602
  msgid "Effects"
1603
  msgstr "Effekte"
1604
 
1605
  #: ../admin/settings.php:108
1606
  #: ../admin/settings.php:394
1607
+ #: ../admin/wp25/settings.php:103
1608
+ #: ../admin/wp25/settings.php:379
1609
  #: ../tinymce/window.php:123
1610
+ #: ../tinymce3/window.php:123
1611
  msgid "Watermark"
1612
  msgstr "Wasserzeichen"
1613
 
1614
  #: ../admin/settings.php:109
1615
+ #: ../admin/settings.php:298
1616
  #: ../admin/settings.php:502
1617
+ #: ../admin/wp25/settings.php:104
1618
+ #: ../admin/wp25/settings.php:286
1619
+ #: ../admin/wp25/settings.php:482
1620
  #: ../tinymce/window.php:63
1621
+ #: ../tinymce3/window.php:63
1622
  msgid "Slideshow"
1623
  msgstr "Slideshow"
1624
 
1625
  #: ../admin/settings.php:122
1626
  #: ../admin/wpmu.php:48
1627
+ #: ../admin/wp25/settings.php:116
1628
+ #: ../admin/wp25/wpmu.php:48
1629
  msgid "Gallery path"
1630
  msgstr "Galerie-Pfad"
1631
 
1632
  #: ../admin/settings.php:124
1633
+ #: ../admin/wp25/settings.php:118
1634
  msgid "This is the default path for all galleries"
1635
  msgstr "Dies ist der Standard-Pfad für alle Galerien"
1636
 
1637
  #: ../admin/settings.php:135
1638
+ #: ../admin/wp25/settings.php:129
1639
  msgid "Delete image files"
1640
  msgstr "Lösche Bilddateien"
1641
 
1642
  #: ../admin/settings.php:137
1643
+ #: ../admin/wp25/settings.php:131
1644
  msgid "Delete files, when removing a gallery in the database"
1645
  msgstr "Löscht auch die Dateien, falls die Galerie aus der Datenbank entfernt wird"
1646
 
1647
  #: ../admin/settings.php:140
1648
+ #: ../admin/wp25/settings.php:134
 
 
 
 
 
 
 
1649
  msgid "Activate permalinks"
1650
  msgstr "Aktiviere Permalinks"
1651
 
1652
+ #: ../admin/settings.php:142
1653
+ #: ../admin/wp25/settings.php:136
1654
  msgid "When you activate this option, you need to update your permalink structure one time."
1655
  msgstr "Wenn du diese Option aktivierst, muss du einmal die Permalink Struktur aktualisieren."
1656
 
1657
+ #: ../admin/settings.php:145
1658
+ #: ../admin/wp25/settings.php:139
1659
  msgid "Tags / Categories"
1660
  msgstr "Stichwörter / Kategorien"
1661
 
1662
+ #: ../admin/settings.php:148
1663
+ #: ../admin/wp25/settings.php:142
1664
  msgid "Activate related images"
1665
  msgstr "Verwandte Bilder anzeigen"
1666
 
1667
+ #: ../admin/settings.php:150
1668
+ #: ../admin/wp25/settings.php:144
1669
  msgid "This option will append related images to every post"
1670
  msgstr "Diese Option hängt verwandte Bilder an jeden Beitrag"
1671
 
1672
+ #: ../admin/settings.php:154
1673
+ #: ../admin/wp25/settings.php:148
1674
  msgid "Match with"
1675
  msgstr "Vergleiche mit"
1676
 
1677
+ #: ../admin/settings.php:155
1678
+ #: ../admin/wp25/settings.php:149
1679
  msgid "Categories"
1680
  msgstr "Kategorien"
1681
 
1682
+ #: ../admin/settings.php:156
1683
+ #: ../admin/wp25/settings.php:150
1684
  #: ../lib/nggmeta.lib.php:375
1685
  msgid "Tags"
1686
  msgstr "Stichwörter"
1687
 
1688
+ #: ../admin/settings.php:156
1689
+ #: ../admin/wp25/settings.php:150
1690
  msgid " (require WordPress 2.3 or higher)"
1691
  msgstr " (benötigt WordPress 2.3 oder höher)"
1692
 
1693
+ #: ../admin/settings.php:160
1694
+ #: ../admin/wp25/settings.php:154
1695
  msgid "Max. number of images"
1696
  msgstr "Max. Anzahl der Bilder"
1697
 
1698
+ #: ../admin/settings.php:162
1699
+ #: ../admin/wp25/settings.php:156
1700
  msgid "0 will show all images"
1701
  msgstr "0 zeige alle verwandten Bilder"
1702
 
1703
+ #: ../admin/settings.php:174
1704
+ #: ../admin/wp25/settings.php:167
1705
  msgid "Thumbnail settings"
1706
  msgstr "Thumbnail Einstellungen"
1707
 
1708
+ #: ../admin/settings.php:179
1709
+ #: ../admin/wp25/settings.php:171
1710
  msgid "Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery ."
1711
  msgstr "Bitte beachten : Änderungen der Einstellungen werden erst übernommen, wenn Du neue Thumbnails unter -> \"Gallery verwalten\" erstellst"
1712
 
1713
+ #: ../admin/settings.php:182
1714
+ #: ../admin/wp25/settings.php:174
1715
  msgid "Width x height (in pixel)"
1716
  msgstr "Breite x Höhe (in Pixel)"
1717
 
1718
+ #: ../admin/settings.php:184
1719
+ #: ../admin/wp25/settings.php:176
1720
  msgid "These values are maximum values "
1721
  msgstr "Diese Angaben sind maximale Angaben."
1722
 
1723
+ #: ../admin/settings.php:187
1724
+ #: ../admin/wp25/settings.php:179
1725
  msgid "Set fix dimension"
1726
  msgstr "Setze fixe Größe"
1727
 
1728
+ #: ../admin/settings.php:189
1729
+ #: ../admin/wp25/settings.php:181
1730
  msgid "Ignore the aspect ratio, no portrait thumbnails"
1731
  msgstr "Ignoriere Bildseitenverhältnis"
1732
 
1733
+ #: ../admin/settings.php:192
1734
+ #: ../admin/wp25/settings.php:184
1735
  msgid "Crop square thumbnail from image"
1736
  msgstr "Mittige Thumbnails aus Bildern ausschneiden"
1737
 
1738
+ #: ../admin/settings.php:194
1739
+ #: ../admin/wp25/settings.php:186
1740
  msgid "Create square thumbnails, use only the width setting :"
1741
  msgstr "Erstellt viereckige Thumbnails, nutzt nur den Wert der Breite :"
1742
 
1743
+ #: ../admin/settings.php:197
1744
+ #: ../admin/wp25/settings.php:189
1745
  msgid "Thumbnail quality"
1746
  msgstr "Thumbnail Qualität"
1747
 
1748
+ #: ../admin/settings.php:201
1749
+ #: ../admin/settings.php:233
1750
+ #: ../admin/wp25/settings.php:193
1751
+ #: ../admin/wp25/settings.php:223
1752
  msgid "Resample Mode"
1753
  msgstr "Resample Modus"
1754
 
1755
+ #: ../admin/settings.php:203
1756
+ #: ../admin/settings.php:236
1757
+ #: ../admin/wp25/settings.php:195
1758
+ #: ../admin/wp25/settings.php:226
1759
  msgid "Value between 1-5 (higher value, more CPU load)"
1760
  msgstr "Wähle zwischen 1-5 (je höhere desto länger braucht der Server)"
1761
 
1762
+ #: ../admin/settings.php:214
1763
+ #: ../admin/wp25/settings.php:205
1764
  msgid "Image settings"
1765
  msgstr "Bild Einstellungen"
1766
 
1767
+ #: ../admin/settings.php:221
1768
+ #: ../admin/wp25/settings.php:211
1769
  msgid "Resize Images"
1770
  msgstr "Bilder verkleinern"
1771
 
1772
+ #: ../admin/settings.php:225
1773
+ #: ../admin/wp25/settings.php:215
1774
  msgid "Width x height (in pixel). NextGEN Gallery will keep ratio size"
1775
  msgstr "Breite x Höhe (in Pixel). NextGEN Galerie beachtet das Seitenverhältnis."
1776
 
1777
+ #: ../admin/settings.php:228
1778
+ #: ../admin/wp25/settings.php:218
1779
  msgid "Image quality"
1780
  msgstr "Bild Qualität"
1781
 
1782
+ #: ../admin/settings.php:239
1783
+ #: ../admin/wp25/settings.php:229
1784
  msgid "Single picture"
1785
  msgstr "Einzelbilder"
1786
 
1787
+ #: ../admin/settings.php:242
1788
+ #: ../admin/wp25/settings.php:232
1789
  msgid "Cache single pictures"
1790
  msgstr "Nutze Cache für Einzelbidler"
1791
 
1792
+ #: ../admin/settings.php:245
1793
+ #: ../admin/wp25/settings.php:235
1794
  msgid "Creates a file for each singlepic settings. Reduce the CPU load"
1795
  msgstr "Erstellt ein Cache-Bild für jedes Einzelbild (singlepic). Reduziert die CPU Belastung."
1796
 
1797
+ #: ../admin/settings.php:248
1798
+ #: ../admin/wp25/settings.php:238
1799
  msgid "Clear cache folder"
1800
  msgstr "Lösche Cache Verzeichnis"
1801
 
1802
+ #: ../admin/settings.php:250
1803
+ #: ../admin/wp25/settings.php:240
1804
  msgid "Proceed now"
1805
  msgstr "Jetzt durchführen"
1806
 
1807
+ #: ../admin/settings.php:261
1808
+ #: ../admin/wp25/settings.php:250
1809
  msgid "Gallery settings"
1810
  msgstr "Galerie Einstellungen"
1811
 
1812
+ #: ../admin/settings.php:277
1813
+ #: ../admin/wp25/settings.php:265
 
 
 
 
 
 
 
1814
  msgid "Deactivate gallery page link"
1815
  msgstr "Keine Seitenverzweigung"
1816
 
1817
+ #: ../admin/settings.php:279
1818
+ #: ../admin/wp25/settings.php:267
1819
  msgid "The album will not link to a gallery subpage. The gallery is shown on the same page."
1820
  msgstr "Ein Album benötigt dann keinen Link zur Seite. Die Galerie wird direkt angezeigt."
1821
 
1822
+ #: ../admin/settings.php:283
1823
+ #: ../admin/wp25/settings.php:271
1824
  msgid "Number of images per page"
1825
  msgstr "Anzahl der Bilder pro Seite"
1826
 
1827
+ #: ../admin/settings.php:285
1828
+ #: ../admin/wp25/settings.php:273
1829
  msgid "0 will disable pagination, all images on one page"
1830
  msgstr "0 schaltet Blätterfunktion ab ( = alle Bilder auf einer Seite )"
1831
 
1832
+ #: ../admin/settings.php:289
1833
+ #: ../admin/wp25/settings.php:277
1834
  msgid "Integrate slideshow"
1835
  msgstr "Slideshow verwenden"
1836
 
1837
+ #: ../admin/settings.php:296
1838
+ #: ../admin/wp25/settings.php:284
1839
  msgid "Show first"
1840
  msgstr "Zeige als Erstes"
1841
 
1842
+ #: ../admin/settings.php:302
1843
+ #: ../admin/wp25/settings.php:290
1844
  msgid "Show thumbnail description"
1845
  msgstr "Zeige Bildbeschreibung"
1846
 
1847
+ #: ../admin/settings.php:303
1848
  #: ../admin/settings.php:353
1849
  #: ../admin/js/uploadtab.js.php:117
1850
+ #: ../admin/wp25/media-upload.php:187
1851
+ #: ../admin/wp25/settings.php:291
1852
+ #: ../admin/wp25/settings.php:339
1853
  msgid "None"
1854
  msgstr "Keiner"
1855
 
1856
+ #: ../admin/settings.php:304
1857
+ #: ../admin/wp25/settings.php:292
1858
  msgid "Description text"
1859
  msgstr "Beschreibung"
1860
 
1861
+ #: ../admin/settings.php:305
1862
  #: ../admin/settings.php:323
1863
+ #: ../admin/wp25/settings.php:293
1864
+ #: ../admin/wp25/settings.php:311
1865
  msgid "Alt / Title text"
1866
  msgstr "Alt / Titel Text"
1867
 
1868
+ #: ../admin/settings.php:309
1869
+ #: ../admin/wp25/settings.php:297
1870
  msgid "Show ImageBrowser"
1871
  msgstr "Zeige Bilder Browser"
1872
 
1873
+ #: ../admin/settings.php:311
1874
+ #: ../admin/wp25/settings.php:299
1875
  msgid "The gallery will open the ImageBrowser instead the effect."
1876
  msgstr "Es wird der Bilder Browser angezeigt (Kein JavaScript Effekt)"
1877
 
1878
+ #: ../admin/settings.php:315
1879
+ #: ../admin/wp25/settings.php:303
1880
  msgid "Sort options"
1881
  msgstr "Sortierung"
1882
 
1883
+ #: ../admin/settings.php:318
1884
+ #: ../admin/wp25/settings.php:306
1885
  msgid "Sort thumbnails"
1886
  msgstr "Thumbnails sortieren"
1887
 
1888
+ #: ../admin/settings.php:320
1889
+ #: ../admin/wp25/settings.php:308
1890
+ msgid "Custom order"
1891
+ msgstr "Benutzerdefiniert"
1892
+
1893
  #: ../admin/settings.php:321
1894
+ #: ../admin/wp25/settings.php:309
1895
  msgid "Image ID"
1896
  msgstr "Bilder ID"
1897
 
1898
  #: ../admin/settings.php:327
1899
+ #: ../admin/wp25/settings.php:315
1900
  msgid "Sort direction"
1901
  msgstr "Sortierreihenfolge"
1902
 
1903
  #: ../admin/settings.php:328
1904
+ #: ../admin/wp25/settings.php:316
1905
  msgid "Ascending"
1906
  msgstr "Aufsteigend"
1907
 
1908
  #: ../admin/settings.php:329
1909
+ #: ../admin/wp25/settings.php:317
1910
  msgid "Descending"
1911
  msgstr "Absteigend"
1912
 
1913
  #: ../admin/settings.php:345
1914
+ #: ../admin/wp25/settings.php:332
1915
  msgid "Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Thickbox effect will automatic added to your theme."
1916
  msgstr "Hier kannst Du den Effekt für die Thumbnails auswählen. NextGEN Galerie wird den benötigten HTML Code verwenden. Bitte beachte, das nur der Thickbox Effekt automatisch in Dein Theme von Wordpress integriert wird. Alle anderen Effekte mußt Du selbst in die header.php eintragen (JS)."
1917
 
1918
  #: ../admin/settings.php:346
1919
+ #: ../admin/wp25/settings.php:333
1920
  msgid "With the placeholder"
1921
  msgstr "Mit Platzhalter"
1922
 
1923
  #: ../admin/settings.php:346
1924
+ #: ../admin/wp25/settings.php:333
1925
  msgid "you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do."
1926
  msgstr "Du kannst eine Navigation durch die Bilder aktivieren (hängt vom Effekt ab). Ändere nur die Codezeile falls Du einen anderen Effekt für die Thumbnails verwendest oder einfach weißt, was Du tust."
1927
 
1928
  #: ../admin/settings.php:350
1929
+ #: ../admin/wp25/settings.php:336
1930
  msgid "JavaScript Thumbnail effect"
1931
  msgstr "JavaScript Thumbnail Effekt"
1932
 
1933
  #: ../admin/settings.php:354
1934
+ #: ../admin/wp25/settings.php:340
1935
  msgid "Thickbox"
1936
  msgstr "Thickbox"
1937
 
1938
  #: ../admin/settings.php:355
1939
+ #: ../admin/wp25/settings.php:341
1940
  msgid "Lightbox"
1941
  msgstr "Lightbox"
1942
 
1943
  #: ../admin/settings.php:356
1944
+ #: ../admin/wp25/settings.php:342
1945
  msgid "Highslide"
1946
  msgstr "Highslide"
1947
 
1948
  #: ../admin/settings.php:357
1949
+ #: ../admin/wp25/settings.php:343
1950
  msgid "Shutter"
1951
  msgstr "Shutter"
1952
 
1953
  #: ../admin/settings.php:358
1954
+ #: ../admin/wp25/settings.php:344
1955
  msgid "Custom"
1956
  msgstr "Eigener"
1957
 
1958
  #: ../admin/settings.php:363
1959
+ #: ../admin/wp25/settings.php:349
1960
  msgid "Link Code line"
1961
  msgstr "Link Code Zeile"
1962
 
1963
  #: ../admin/settings.php:371
1964
+ #: ../admin/wp25/settings.php:357
1965
  msgid "Select loading image"
1966
  msgstr "Wähle Ladeanimation"
1967
 
1968
  #: ../admin/settings.php:395
1969
+ #: ../admin/wp25/settings.php:380
1970
  msgid "Please note : You can only activate the watermark under -> Manage Gallery . This action cannot be undone."
1971
  msgstr "Bitte beachten : Das Wasserzeichen kann nur unter der Galerieverwaltung gesetzt werden. "
1972
 
1973
  #: ../admin/settings.php:400
1974
+ #: ../admin/wp25/settings.php:385
1975
  msgid "Preview"
1976
  msgstr "Vorschau"
1977
 
1978
  #: ../admin/settings.php:402
1979
  #: ../admin/settings.php:406
1980
+ #: ../admin/wp25/settings.php:387
1981
+ #: ../admin/wp25/settings.php:392
1982
  msgid "Position"
1983
  msgstr "Position"
1984
 
1985
  #: ../admin/settings.php:426
1986
+ #: ../admin/wp25/settings.php:412
1987
  msgid "Offset"
1988
  msgstr "Abstand"
1989
 
1990
  #: ../admin/settings.php:444
1991
+ #: ../admin/wp25/settings.php:428
1992
  msgid "Use image as watermark"
1993
  msgstr "Benutze Bild als Wasserzeichen"
1994
 
1995
  #: ../admin/settings.php:447
1996
+ #: ../admin/wp25/settings.php:431
1997
  msgid "URL to file"
1998
  msgstr "URL zur Datei"
1999
 
2000
  #: ../admin/settings.php:449
2001
+ #: ../admin/wp25/settings.php:433
2002
  msgid "The accessing of URL files is disabled at your server (allow_url_fopen)"
2003
  msgstr "Der Dateizugriff von URL's ist auf diesem Server deaktiviert (allow_url_fopen)"
2004
 
2005
  #: ../admin/settings.php:455
2006
+ #: ../admin/wp25/settings.php:436
2007
  msgid "Use text as watermark"
2008
  msgstr "Benutze Text als Wasserzeichen"
2009
 
2010
  #: ../admin/settings.php:458
2011
+ #: ../admin/wp25/settings.php:439
2012
  msgid "Font"
2013
  msgstr "Schriftart"
2014
 
2015
  #: ../admin/settings.php:467
2016
+ #: ../admin/wp25/settings.php:448
2017
  msgid "This function will not work, cause you need the FreeType library"
2018
  msgstr "Diese Funktion benötigt die FreeType Bibliothek"
2019
 
2020
  #: ../admin/settings.php:469
2021
+ #: ../admin/wp25/settings.php:450
2022
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
2023
  msgstr "Du kannst mehr Schriftarten in das Verzeichniss <strong>nggallery/fonts</strong> hochladen."
2024
 
2025
  #: ../admin/settings.php:473
2026
+ #: ../admin/wp25/settings.php:454
2027
  msgid "Size"
2028
  msgstr "Größe"
2029
 
2030
  #: ../admin/settings.php:477
2031
+ #: ../admin/wp25/settings.php:458
2032
  msgid "Color"
2033
  msgstr "Farbe"
2034
 
2035
  #: ../admin/settings.php:479
2036
+ #: ../admin/wp25/settings.php:460
2037
  msgid "(hex w/o #)"
2038
  msgstr "(hex w/o #)"
2039
 
2040
  #: ../admin/settings.php:482
2041
+ #: ../admin/wp25/settings.php:463
2042
  msgid "Text"
2043
  msgstr "Text"
2044
 
2045
  #: ../admin/settings.php:486
2046
+ #: ../admin/wp25/settings.php:467
2047
  msgid "Opaque"
2048
  msgstr "Transparenz"
2049
 
2050
  #: ../admin/settings.php:504
2051
+ #: ../admin/wp25/settings.php:483
2052
  msgid "The imagerotator.swf is not in the nggallery folder, the slideshow will not work."
2053
  msgstr "Die Datei imagerotator.swf ist nicht im Plugin Verzeichniss -> so wird die Slideshow nicht funktionieren."
2054
 
2055
  #: ../admin/settings.php:505
2056
+ #: ../admin/wp25/settings.php:484
2057
+ msgid "The settings are used in the JW Image Rotator Version"
2058
+ msgstr "Die Einstellungen werden im JW Image Rotator benutzt , in der Version"
2059
 
2060
  #: ../admin/settings.php:506
2061
+ #: ../admin/wp25/settings.php:485
2062
  msgid "See more information for the Flash Player on the web page"
2063
  msgstr "Weitere Informationen auf der Flash Player Homepage"
2064
 
2065
  #: ../admin/settings.php:509
2066
+ #: ../admin/wp25/settings.php:489
2067
  msgid "Default size (W x H)"
2068
  msgstr "Standard Größe (B x H)"
2069
 
2070
  #: ../admin/settings.php:514
2071
+ #: ../admin/wp25/settings.php:494
2072
  msgid "Shuffle mode"
2073
  msgstr "Shuffle Modus"
2074
 
2075
  #: ../admin/settings.php:518
2076
+ #: ../admin/wp25/settings.php:498
2077
  msgid "Show next image on click"
2078
  msgstr "Zeige nächstes Bild bei Klick"
2079
 
2080
  #: ../admin/settings.php:522
2081
+ #: ../admin/wp25/settings.php:502
2082
  msgid "Show navigation bar"
2083
  msgstr "Zeige Navigations-Leiste"
2084
 
2085
  #: ../admin/settings.php:526
2086
+ #: ../admin/wp25/settings.php:506
2087
  msgid "Show loading icon"
2088
  msgstr "Zeige Lade-Bildchen"
2089
 
2090
  #: ../admin/settings.php:530
2091
+ #: ../admin/wp25/settings.php:510
2092
  msgid "Use watermark logo"
2093
  msgstr "Wasserzeichen anzeigen"
2094
 
2095
  #: ../admin/settings.php:532
2096
+ #: ../admin/wp25/settings.php:512
2097
  msgid "You can change the logo at the watermark settings"
2098
  msgstr "Du kannst den Pfad in Einstellungen für da Wasserzeichen angeben"
2099
 
2100
  #: ../admin/settings.php:535
2101
+ #: ../admin/wp25/settings.php:515
2102
  msgid "Stretch image"
2103
  msgstr "Bild dehnen"
2104
 
2105
  #: ../admin/settings.php:538
2106
+ #: ../admin/wp25/settings.php:518
2107
  msgid "true"
2108
  msgstr "Ja"
2109
 
2110
  #: ../admin/settings.php:539
2111
+ #: ../admin/wp25/settings.php:519
2112
  msgid "false"
2113
  msgstr "Nein"
2114
 
2115
  #: ../admin/settings.php:540
2116
+ #: ../admin/wp25/settings.php:520
2117
  msgid "fit"
2118
  msgstr "Passend"
2119
 
2120
  #: ../admin/settings.php:541
2121
+ #: ../admin/wp25/settings.php:521
2122
  msgid "none"
2123
  msgstr "keiner"
2124
 
2125
  #: ../admin/settings.php:546
2126
+ #: ../admin/wp25/settings.php:526
2127
  msgid "Duration time"
2128
  msgstr "Dauer"
2129
 
2130
  #: ../admin/settings.php:547
2131
+ #: ../admin/wp25/settings.php:527
2132
  msgid "sec."
2133
  msgstr "Sek."
2134
 
2135
  #: ../admin/settings.php:550
2136
+ #: ../admin/wp25/settings.php:530
2137
  msgid "Transition / Fade effect"
2138
  msgstr "Fade Effekt"
2139
 
2140
  #: ../admin/settings.php:553
2141
+ #: ../admin/wp25/settings.php:533
2142
  msgid "fade"
2143
  msgstr "Fade"
2144
 
2145
  #: ../admin/settings.php:554
2146
+ #: ../admin/wp25/settings.php:534
2147
  msgid "bgfade"
2148
  msgstr "BGFade"
2149
 
2150
  #: ../admin/settings.php:555
2151
+ #: ../admin/wp25/settings.php:535
2152
  msgid "slowfade"
2153
  msgstr "Slowfade"
2154
 
2155
  #: ../admin/settings.php:556
2156
+ #: ../admin/wp25/settings.php:536
2157
  msgid "circles"
2158
  msgstr "Kreise"
2159
 
2160
  #: ../admin/settings.php:557
2161
+ #: ../admin/wp25/settings.php:537
2162
  msgid "bubbles"
2163
  msgstr "Blasen"
2164
 
2165
  #: ../admin/settings.php:558
2166
+ #: ../admin/wp25/settings.php:538
2167
  msgid "blocks"
2168
  msgstr "Blöcke"
2169
 
2170
  #: ../admin/settings.php:559
2171
+ #: ../admin/wp25/settings.php:539
2172
  msgid "fluids"
2173
  msgstr "Fluids"
2174
 
2175
  #: ../admin/settings.php:560
2176
+ #: ../admin/wp25/settings.php:540
2177
  msgid "flash"
2178
  msgstr "Flash"
2179
 
2180
  #: ../admin/settings.php:561
2181
+ #: ../admin/wp25/settings.php:541
2182
  msgid "lines"
2183
  msgstr "Linien"
2184
 
2185
  #: ../admin/settings.php:566
2186
+ #: ../admin/wp25/settings.php:546
2187
  msgid "Use slow zooming effect"
2188
  msgstr "nutze Zoom Effekt"
2189
 
2190
  #: ../admin/settings.php:570
2191
+ #: ../admin/wp25/settings.php:550
2192
  msgid "Background Color"
2193
  msgstr "Hintergrund (BG) Farbe"
2194
 
2195
  #: ../admin/settings.php:575
2196
+ #: ../admin/wp25/settings.php:555
2197
  msgid "Texts / Buttons Color"
2198
  msgstr "Text- / Button Farbe"
2199
 
2200
  #: ../admin/settings.php:580
2201
+ #: ../admin/wp25/settings.php:560
2202
  msgid "Rollover / Active Color"
2203
  msgstr "Rollover / Aktiv (Link) Farbe"
2204
 
2205
  #: ../admin/settings.php:585
2206
+ #: ../admin/wp25/settings.php:565
2207
  msgid "Screen Color"
2208
  msgstr "Seiten Farbe"
2209
 
2210
  #: ../admin/settings.php:590
2211
+ #: ../admin/wp25/settings.php:570
2212
  msgid "Background music (URL)"
2213
  msgstr "Hintergrundmusik (URL)"
2214
 
2215
  #: ../admin/settings.php:594
2216
+ #: ../admin/wp25/settings.php:574
2217
  msgid "Try XHTML validation (with CDATA)"
2218
  msgstr "Integriere XHTML Validierung (mittels CDATA)"
2219
 
2220
  #: ../admin/settings.php:596
2221
+ #: ../admin/wp25/settings.php:576
2222
  msgid "Important : Could causes problem at some browser. Please recheck your page."
2223
  msgstr "Wichtig : Es könnnten Probleme bei einigen Browser auftauchen. Unbedingt Seite prüfen."
2224
 
2225
  #: ../admin/setup.php:12
2226
+ #: ../admin/wp25/setup.php:12
2227
  msgid "Reset all settings to default parameter"
2228
  msgstr "Stelle alle Einstellungen auf Anfangswerte zurück"
2229
 
2230
  #: ../admin/setup.php:37
2231
+ #: ../admin/wp25/setup.php:37
2232
  msgid "Uninstall sucessfull ! Now delete the plugin and enjoy your life ! Good luck !"
2233
  msgstr "Deinstallation erfolgreich ! Nun kannst Du das Plugin löschen und Dein Leben weiterhin genießen ! Stay geeky ! Viel Glück !"
2234
 
2235
  #: ../admin/setup.php:46
2236
+ #: ../admin/wp25/setup.php:46
2237
  msgid "Reset options"
2238
  msgstr "Optionen zurücksetzen"
2239
 
2240
  #: ../admin/setup.php:49
2241
+ #: ../admin/wp25/setup.php:49
2242
  msgid "Reset all options/settings to the default installation."
2243
  msgstr "Alle Optionen/Einstellungen zurücksetzen"
2244
 
2245
  #: ../admin/setup.php:50
2246
+ #: ../admin/wp25/setup.php:50
2247
  msgid "Reset settings"
2248
  msgstr "Einstellungen zurücksetzen"
2249
 
2250
  #: ../admin/setup.php:50
2251
+ #: ../admin/wp25/setup.php:50
2252
  msgid ""
2253
  "Reset all options to default settings ?\\n"
2254
  "\\n"
2259
  "Wähle [Cancel] um abzubrechen, [OK] zum Durchführen.\\n"
2260
 
2261
  #: ../admin/setup.php:55
2262
+ #: ../admin/wp25/setup.php:55
2263
  msgid "Uninstall plugin tables"
2264
  msgstr "Plugin Tabellen (DB) entfernen"
2265
 
2266
  #: ../admin/setup.php:58
2267
+ #: ../admin/wp25/setup.php:60
2268
  msgid "You don't like NextGEN Gallery ?"
2269
  msgstr "Du magst die NextGEN Galerie nicht ?"
2270
 
2271
  #: ../admin/setup.php:59
2272
+ #: ../admin/wp25/setup.php:61
2273
  msgid "No problem, before you deactivate this plugin press the Uninstall Button, because deactivating NextGEN Gallery does not remove any data that may have been created. "
2274
  msgstr "Null Problemo. Einfach nur vor dem Deaktivieren dieses Plugins den Uninstall-Button betätigen damit alle Tabellen der Galerie entfernt werden."
2275
 
2276
  #: ../admin/setup.php:60
2277
+ #: ../admin/wp25/setup.php:63
2278
  msgid "WARNING:"
2279
  msgstr "WARNUNG:"
2280
 
2281
  #: ../admin/setup.php:61
2282
+ #: ../admin/wp25/setup.php:64
2283
  msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to backup all the tables first. NextGEN gallery is stored in the tables"
2284
  msgstr "Einmal deinstalliert -> keine Rückgängigmachung! D.h. auf Deutsch, das eine einmalig durchgeführte Deinstallation nicht mehr rückgängig gemacht werden kann da alle Tabellen der Galerie aus der Datenbank entfernt werden und KEIN Backup dieser Galerie-Tabellen angelegt wird währenddessen."
2285
 
2286
  #: ../admin/setup.php:61
2287
+ #: ../admin/wp25/setup.php:64
2288
  msgid "and"
2289
  msgstr "und"
2290
 
2291
  #: ../admin/setup.php:63
2292
+ #: ../admin/wp25/setup.php:66
2293
  msgid "Uninstall plugin"
2294
  msgstr "Plugin deinstallieren"
2295
 
2296
  #: ../admin/setup.php:63
2297
+ #: ../admin/wp25/setup.php:66
2298
  msgid ""
2299
  "You are about to Uninstall this plugin from WordPress.\\n"
2300
  "This action is not reversible.\\n"
2308
 
2309
  #: ../admin/showmeta.php:7
2310
  #: ../admin/showmeta.php:10
2311
+ #: ../admin/wp25/showmeta.php:7
2312
+ #: ../admin/wp25/showmeta.php:10
2313
  msgid "Cheatin&#8217; uh?"
2314
  msgstr "Cheatin&#8217; uh?"
2315
 
2316
  #: ../admin/showmeta.php:42
2317
+ #: ../admin/wp25/showmeta.php:42
2318
  msgid "EXIF Data"
2319
  msgstr "EXIF Daten"
2320
 
2321
  #: ../admin/showmeta.php:47
2322
  #: ../admin/showmeta.php:71
2323
  #: ../admin/showmeta.php:95
2324
+ #: ../admin/wp25/showmeta.php:47
2325
+ #: ../admin/wp25/showmeta.php:71
2326
+ #: ../admin/wp25/showmeta.php:95
2327
  msgid "Tag"
2328
  msgstr "Stichwort"
2329
 
2330
  #: ../admin/showmeta.php:48
2331
  #: ../admin/showmeta.php:72
2332
  #: ../admin/showmeta.php:96
2333
+ #: ../admin/wp25/showmeta.php:48
2334
+ #: ../admin/wp25/showmeta.php:72
2335
+ #: ../admin/wp25/showmeta.php:96
2336
  msgid "Value"
2337
  msgstr "Wert"
2338
 
2339
  #: ../admin/showmeta.php:61
2340
+ #: ../admin/wp25/showmeta.php:61
2341
  msgid "No exif data"
2342
  msgstr "Keine Exif Daten"
2343
 
2344
  #: ../admin/showmeta.php:67
2345
+ #: ../admin/wp25/showmeta.php:67
2346
  msgid "IPTC Data"
2347
  msgstr "IPTC Daten"
2348
 
2349
  #: ../admin/showmeta.php:91
2350
+ #: ../admin/wp25/showmeta.php:91
2351
  msgid "XMP Data"
2352
  msgstr "XMP Daten"
2353
 
2354
+ #: ../admin/sort.php:35
2355
+ #: ../admin/wp25/sort.php:33
2356
+ msgid "Sort order changed"
2357
+ msgstr "Reihenfolge aktualisiert"
2358
+
2359
+ #: ../admin/sort.php:53
2360
+ #: ../admin/wp25/sort.php:53
2361
+ msgid "Sort Gallery"
2362
+ msgstr "Sortiere Bilder"
2363
+
2364
+ #: ../admin/sort.php:58
2365
+ #: ../admin/wp25/sort.php:57
2366
+ msgid "Back to gallery"
2367
+ msgstr "Zurück zur Galerie"
2368
+
2369
+ #: ../admin/sort.php:59
2370
+ #: ../admin/wp25/sort.php:58
2371
+ msgid "Update Sort Order"
2372
+ msgstr "Sortierung speichern"
2373
+
2374
  #: ../admin/style.php:34
2375
+ #: ../admin/wp25/style.php:34
2376
  msgid "You do not have sufficient permissions to edit templates for this blog."
2377
  msgstr "Du hast nicht die benötigten Rechte um Templates in diesem Blog zu bearbeiten."
2378
 
2379
  #: ../admin/style.php:43
2380
+ #: ../admin/wp25/style.php:43
2381
  msgid "CSS file successfully updated"
2382
  msgstr "CSS Datei erfolgreich aktualisiert"
2383
 
2384
  #: ../admin/style.php:66
2385
+ #: ../admin/wp25/style.php:68
2386
  msgid "Activate and use style sheet:"
2387
  msgstr "Aktiviere und nutze Stylesheet:"
2388
 
2389
  #: ../admin/style.php:85
2390
+ #: ../admin/wp25/style.php:88
2391
  msgid "Activate"
2392
  msgstr "Aktiviere"
2393
 
2394
  #: ../admin/style.php:93
2395
+ #: ../admin/wp25/style.php:97
2396
  #, php-format
2397
  msgid "Editing <strong>%s</strong>"
2398
  msgstr "Bearbeite <strong>%s</strong>"
2399
 
2400
  #: ../admin/style.php:95
2401
+ #: ../admin/wp25/style.php:99
2402
  #, php-format
2403
  msgid "Browsing <strong>%s</strong>"
2404
  msgstr "Browse <strong>%s</strong>"
2405
 
2406
  #: ../admin/style.php:100
2407
+ #: ../admin/wp25/style.php:107
2408
  #: ../lib/nggmeta.lib.php:374
2409
  msgid "Author"
2410
  msgstr "Autor"
2411
 
2412
  #: ../admin/style.php:101
2413
+ #: ../admin/wp25/style.php:108
2414
  msgid "Version"
2415
  msgstr "Version"
2416
 
2417
  #: ../admin/style.php:118
2418
+ #: ../admin/wp25/style.php:124
2419
  msgid "Update File &raquo;"
2420
  msgstr "Datei aktualisieren"
2421
 
2422
  #: ../admin/style.php:122
2423
+ #: ../admin/wp25/style.php:127
2424
  msgid "If this file were writable you could edit it."
2425
  msgstr "Wenn diese Datei beschreibbar wäre, könntest Du sie bearbeiten."
2426
 
2427
  #: ../admin/style.php:127
2428
+ #: ../admin/wp25/style.php:132
2429
  msgid "Oops, no such file exists! Double check the name and try again, merci."
2430
  msgstr "Oha, eine solche Datei existiert nicht! Bitte überprüfe den Namen und probiere es erneut, danke."
2431
 
2434
  msgstr "Wähle Galerie"
2435
 
2436
  #: ../admin/uploadtab.php:107
2437
+ #: ../admin/wp25/media-upload.php:120
2438
  #: ../tinymce/window.php:49
2439
+ #: ../tinymce3/window.php:49
2440
  msgid "No gallery"
2441
  msgstr "Keine Galerie"
2442
 
2455
  msgstr "Bilder löschen ?"
2456
 
2457
  #: ../admin/wpmu.php:41
2458
+ #: ../admin/wp25/wpmu.php:41
2459
  msgid "General WordPress MU Settings"
2460
  msgstr "WordPress MU Einstellungen"
2461
 
2462
  #: ../admin/wpmu.php:50
2463
+ #: ../admin/wp25/wpmu.php:50
2464
  msgid "This is the default path for all blogs. With the placeholder %BLOG_ID% you can organize the folder structure better. The path must end with a /."
2465
  msgstr "Dieses ist der Default Pfad für alle Blogs. Mit dem Platzhalter %BLOG_ID% wird die Ordnerstruktur gesteuert. Der Pfad muss mit / enden."
2466
 
2467
  #: ../admin/wpmu.php:53
2468
+ #: ../admin/wp25/wpmu.php:53
2469
  msgid "Enable upload quota check"
2470
  msgstr "Schalte die Uploadbegrenzung ein"
2471
 
2472
  #: ../admin/wpmu.php:55
2473
+ #: ../admin/wp25/wpmu.php:55
2474
  msgid "Should work if the gallery is bellow the blog.dir"
2475
  msgstr "Sollte funktionieren wenn die Galerien sich unterhalb blog.dir befinden"
2476
 
2477
  #: ../admin/wpmu.php:59
2478
+ #: ../admin/wp25/wpmu.php:59
2479
  msgid "Enable zip upload option"
2480
  msgstr "Erlaube ZIP-Upload"
2481
 
2482
  #: ../admin/wpmu.php:61
2483
+ #: ../admin/wp25/wpmu.php:61
2484
  msgid "Allow users to upload zip folders."
2485
  msgstr "Erlaubt die Nutzung des ZIP-Upload"
2486
 
2487
  #: ../admin/wpmu.php:65
2488
+ #: ../admin/wp25/wpmu.php:65
2489
  msgid "Enable style selection"
2490
  msgstr "Freie CSS Style Auswahl"
2491
 
2492
  #: ../admin/wpmu.php:67
2493
+ #: ../admin/wp25/wpmu.php:67
2494
  msgid "Allow users to choose a style for the gallery."
2495
  msgstr "Erlaube dem User ein CSS für die Galerie zu wählen"
2496
 
2497
  #: ../admin/wpmu.php:71
2498
+ #: ../admin/wp25/wpmu.php:71
2499
  msgid "Enable roles/capabilities"
2500
  msgstr "Rollen / Zugriffsrechte freischalten"
2501
 
2502
  #: ../admin/wpmu.php:73
2503
+ #: ../admin/wp25/wpmu.php:73
2504
  msgid "Allow users to change the roles for other blog authors."
2505
  msgstr "Erlaube dem User die Anpassung der Zugangsberechtigung"
2506
 
2507
  #: ../admin/wpmu.php:77
2508
+ #: ../admin/wp25/wpmu.php:77
2509
  msgid "Default style"
2510
  msgstr "Standard CSS-Style"
2511
 
2512
  #: ../admin/wpmu.php:94
2513
+ #: ../admin/wp25/wpmu.php:94
2514
  msgid "Choose the default style for the galleries."
2515
  msgstr "Wähle das Default-Stylesheet für die Galerien"
2516
 
2554
  msgstr "Zum Editor schicken &raquo;"
2555
 
2556
  #: ../admin/js/uploadtab.js.php:156
2557
+ #: ../tinymce/window.php:151
2558
+ #: ../tinymce3/window.php:151
2559
  msgid "Insert"
2560
  msgstr "Einfügen"
2561
 
2570
  "Click ok to delete or cancel to go back."
2571
  msgstr "Bist du sicher das Du diese Datei '%s' löschen willst ?"
2572
 
2573
+ #: ../admin/wp25/addgallery.php:247
2574
+ msgid "Import a folder with all images."
2575
+ msgstr "Importiere ein Verzeichniss mit Bildern."
2576
+
2577
+ #: ../admin/wp25/addgallery.php:248
2578
+ msgid " Please note : For safe-mode = ON you need to add the subfolder thumbs manually"
2579
+ msgstr "Achtung : Da der Safe-Mode (PHP.INI) eingeschaltet ist, mußt Du das Unterverzeichnis für die Vorschaubilder (\"thumbs\") manuell (per FTP) anlegen"
2580
+
2581
+ #: ../admin/wp25/manage.php:404
2582
+ msgid "Edit gallery"
2583
+ msgstr "Galerie ändern"
2584
+
2585
+ #: ../admin/wp25/media-upload.php:132
2586
+ msgid "Select Gallery &#187;"
2587
+ msgstr "Wähle Galerie &#187;"
2588
+
2589
+ #: ../admin/wp25/media-upload.php:164
2590
+ msgid "Show"
2591
+ msgstr "Zeige"
2592
+
2593
+ #: ../admin/wp25/media-upload.php:165
2594
+ msgid "Hide"
2595
+ msgstr "Verstecke"
2596
+
2597
+ #: ../admin/wp25/media-upload.php:170
2598
+ msgid "Image ID:"
2599
+ msgstr "Bilder ID:"
2600
+
2601
+ #: ../admin/wp25/media-upload.php:176
2602
+ msgid "Alt/Titel text"
2603
+ msgstr "Alt / Titel Text"
2604
+
2605
+ #: ../admin/wp25/media-upload.php:184
2606
+ msgid "Alignment"
2607
+ msgstr "Ausrichtung"
2608
+
2609
+ #: ../admin/wp25/media-upload.php:189
2610
+ #: ../tinymce/window.php:133
2611
+ #: ../tinymce3/window.php:133
2612
+ msgid "Left"
2613
+ msgstr "Links"
2614
+
2615
+ #: ../admin/wp25/media-upload.php:191
2616
+ #: ../tinymce/window.php:134
2617
+ #: ../tinymce3/window.php:134
2618
+ msgid "Center"
2619
+ msgstr "Zentrieren"
2620
+
2621
+ #: ../admin/wp25/media-upload.php:193
2622
+ #: ../tinymce/window.php:135
2623
+ #: ../tinymce3/window.php:135
2624
+ msgid "Right"
2625
+ msgstr "Rechts"
2626
+
2627
+ #: ../admin/wp25/media-upload.php:201
2628
+ msgid "Insert into Post"
2629
+ msgstr ""
2630
+
2631
+ #: ../admin/wp25/media-upload.php:210
2632
+ msgid "Save all changes"
2633
+ msgstr "Änderungen Speichern"
2634
+
2635
+ #: ../admin/wp25/overview.php:35
2636
+ msgid "Welcome to NextGEN Gallery !"
2637
+ msgstr "Willkomen bei NextGEN Gallery"
2638
+
2639
+ #: ../admin/wp25/overview.php:36
2640
+ msgid "Upload pictures"
2641
+ msgstr "Bilder hochladen"
2642
+
2643
+ #: ../admin/wp25/overview.php:37
2644
+ msgid "Manage galleries"
2645
+ msgstr "Galerie verwalten"
2646
+
2647
+ #: ../admin/wp25/overview.php:55
2648
+ #, php-format
2649
+ msgid "Here you can control your images, galleries and albums. You currently have %s rights."
2650
+ msgstr "Hier kannst Du Deine Bilder, Galerien und Alben verwalten. Du hast im Moment %s Rechte."
2651
+
2652
+ #: ../admin/wp25/style.php:65
2653
+ msgid "Style Editor"
2654
+ msgstr "CSS Editor"
2655
+
2656
  #: ../lib/nggmeta.lib.php:83
2657
  msgid " mm"
2658
  msgstr " mm"
2779
  msgstr "Format"
2780
 
2781
  #: ../tinymce/window.php:47
2782
+ #: ../tinymce3/window.php:47
2783
  msgid "Select gallery"
2784
  msgstr "Wähle Galerie"
2785
 
2786
  #: ../tinymce/window.php:61
2787
  #: ../tinymce/window.php:88
2788
+ #: ../tinymce3/window.php:61
2789
+ #: ../tinymce3/window.php:88
2790
  msgid "Show as"
2791
  msgstr "Zeige als"
2792
 
2793
  #: ../tinymce/window.php:62
2794
+ #: ../tinymce3/window.php:62
2795
  msgid "Image list"
2796
  msgstr "Bilder-Liste"
2797
 
2798
  #: ../tinymce/window.php:76
2799
+ #: ../tinymce3/window.php:76
2800
  msgid "No album"
2801
  msgstr "Kein Album"
2802
 
2803
  #: ../tinymce/window.php:89
2804
+ #: ../tinymce3/window.php:89
2805
  msgid "Extended version"
2806
  msgstr "Erweiterte Version"
2807
 
2808
  #: ../tinymce/window.php:90
2809
+ #: ../tinymce3/window.php:90
2810
  msgid "Compact version"
2811
  msgstr "Kompakte Version"
2812
 
2813
  #: ../tinymce/window.php:101
2814
+ #: ../tinymce3/window.php:101
2815
  msgid "Select picture"
2816
  msgstr "Wähle Bild"
2817
 
2818
  #: ../tinymce/window.php:103
2819
+ #: ../tinymce3/window.php:103
2820
  msgid "No picture"
2821
  msgstr "Kein Bild"
2822
 
2823
  #: ../tinymce/window.php:115
2824
+ #: ../tinymce3/window.php:115
2825
  msgid "Width x Height"
2826
  msgstr "Breite x Höhe"
2827
 
2828
  #: ../tinymce/window.php:119
2829
+ #: ../tinymce3/window.php:119
2830
  msgid "Effect"
2831
  msgstr "Effekt"
2832
 
2833
  #: ../tinymce/window.php:122
2834
+ #: ../tinymce3/window.php:122
2835
  msgid "No effect"
2836
  msgstr "Kein Effekt"
2837
 
2838
  #: ../tinymce/window.php:124
2839
+ #: ../tinymce3/window.php:124
2840
  msgid "Web 2.0"
2841
  msgstr "Web 2.0"
2842
 
2843
  #: ../tinymce/window.php:129
2844
+ #: ../tinymce3/window.php:129
2845
  msgid "Float"
2846
  msgstr "Float"
2847
 
2848
  #: ../tinymce/window.php:132
2849
+ #: ../tinymce3/window.php:132
2850
  msgid "No float"
2851
  msgstr "Kein Float"
2852
 
 
 
 
 
 
 
 
 
lang/nggallery.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2008-02-04 13:38+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
@@ -15,56 +15,58 @@ msgstr ""
15
  "X-Poedit-SearchPath-0: .\n"
16
  "X-Poedit-SearchPath-1: ..\n"
17
 
18
- #: ../nggallery.php:175
19
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
20
  msgstr ""
21
 
22
- #: ../nggfunctions.php:474
23
- #: ../nggfunctions.php:489
24
  msgid "Watch gallery"
25
  msgstr ""
26
 
27
- #: ../nggfunctions.php:483
28
- #: ../nggfunctions.php:495
29
- #: ../nggfunctions.php:772
30
  msgid "Photos"
31
  msgstr ""
32
 
33
- #: ../nggfunctions.php:569
34
  msgid "Back"
35
  msgstr ""
36
 
37
- #: ../nggfunctions.php:573
38
  msgid "Next"
39
  msgstr ""
40
 
41
- #: ../nggfunctions.php:576
42
  #: ../admin/manage.php:85
 
43
  #: ../tinymce/window.php:37
 
44
  msgid "Picture"
45
  msgstr ""
46
 
47
- #: ../nggfunctions.php:576
48
  msgid "from"
49
  msgstr ""
50
 
51
- #: ../nggfunctions.php:742
52
  msgid "Overview"
53
  msgstr ""
54
 
55
- #: ../ngginstall.php:20
56
  msgid "Sorry, NextGEN Gallery works only with a role called administrator"
57
  msgstr ""
58
 
59
- #: ../ngginstall.php:143
60
  msgid "NextGEN Gallery : Tables could not created, please check your database settings"
61
  msgstr ""
62
 
63
- #: ../ngginstall.php:183
64
  msgid "[Show as slideshow]"
65
  msgstr ""
66
 
67
- #: ../ngginstall.php:184
68
  msgid "[Show picture list]"
69
  msgstr ""
70
 
@@ -116,7 +118,9 @@ msgstr ""
116
 
117
  #: ../nggwidget.php:311
118
  #: ../admin/settings.php:104
119
- #: ../admin/settings.php:299
 
 
120
  msgid "Thumbnails"
121
  msgstr ""
122
 
@@ -126,6 +130,7 @@ msgstr ""
126
 
127
  #: ../nggwidget.php:318
128
  #: ../admin/settings.php:562
 
129
  msgid "random"
130
  msgstr ""
131
 
@@ -162,802 +167,1011 @@ msgid "Gallery IDs, separated by commas."
162
  msgstr ""
163
 
164
  #: ../admin/about.php:9
 
165
  msgid "Copyright notes / Credits"
166
  msgstr ""
167
 
168
  #: ../admin/about.php:11
 
169
  msgid "NextGEN DEV Team"
170
  msgstr ""
171
 
172
  #: ../admin/about.php:12
 
173
  msgid "This plugin is primarily developed, maintained, supported, documented by"
174
  msgstr ""
175
 
176
  #: ../admin/about.php:12
 
177
  msgid "There are many other folks who have made contributions to this project :"
178
  msgstr ""
179
 
180
  #: ../admin/about.php:14
 
181
  msgid "Contributors / Tribute to"
182
  msgstr ""
183
 
184
  #: ../admin/about.php:15
 
185
  msgid "If you study the code of this plugin, you will find out that we mixed a lot of good already existing code and ideas together."
186
  msgstr ""
187
 
188
  #: ../admin/about.php:16
 
189
  msgid "So, we would like to thank the following people for their pioneer work (without this work it's impossible to create such a plugin so fast)"
190
  msgstr ""
191
 
192
  #: ../admin/about.php:18
 
193
  msgid "for their great documented code"
194
  msgstr ""
195
 
196
  #: ../admin/about.php:19
 
197
  msgid "for jQuery, which is the best Web2.0 framework"
198
  msgstr ""
199
 
200
  #: ../admin/about.php:20
 
201
  msgid "for the fantastic PHP Thumbnail Class"
202
  msgstr ""
203
 
204
  #: ../admin/about.php:21
 
205
  msgid "for PclZip , a PHP library that manage ZIP archives"
206
  msgstr ""
207
 
208
  #: ../admin/about.php:22
 
209
  msgid "for a lot of very useful plugins and ideas"
210
  msgstr ""
211
 
212
  #: ../admin/about.php:23
213
- msgid "for RS-Discuss, it saved me a lot of time"
 
214
  msgstr ""
215
 
216
  #: ../admin/about.php:24
 
217
  msgid "for the best Media Flash Scripts on earth"
218
  msgstr ""
219
 
220
  #: ../admin/about.php:25
 
221
  msgid "for the Watermark plugin"
222
  msgstr ""
223
 
224
  #: ../admin/about.php:27
 
225
  msgid "If you didn't find your name on this list and there is some code which I integrate in my plugin, don't hesitate to send me a mail."
226
  msgstr ""
227
 
228
  #: ../admin/about.php:28
 
229
  msgid "How to support ?"
230
  msgstr ""
231
 
232
  #: ../admin/about.php:29
 
233
  msgid "There exist several ways to contribute, help or support us in this work. Non of them are mandatory."
234
  msgstr ""
235
 
236
  #: ../admin/about.php:31
 
237
  msgid "Send us bugfixes / code changes"
238
  msgstr ""
239
 
240
  #: ../admin/about.php:31
 
241
  msgid "The most motivated support for this plugin are your ideas and brain work"
242
  msgstr ""
243
 
244
  #: ../admin/about.php:32
 
245
  msgid "Translate the plugin"
246
  msgstr ""
247
 
248
  #: ../admin/about.php:32
 
249
  msgid "To help people to work with this plugin, I would like to have it in all avaivable languages"
250
  msgstr ""
251
 
252
  #: ../admin/about.php:33
 
253
  msgid "Donate the work via paypal"
254
  msgstr ""
255
 
256
  #: ../admin/about.php:44
 
257
  msgid "No doubt a very usefull and easy motivation :-)"
258
  msgstr ""
259
 
260
  #: ../admin/about.php:46
 
261
  msgid "Place a link to the plugin in your blog/webpage"
262
  msgstr ""
263
 
264
  #: ../admin/about.php:46
 
265
  msgid "Yes, share and trackback is also a good support for this work "
266
  msgstr ""
267
 
268
  #: ../admin/about.php:48
 
269
  msgid "Thanks!"
270
  msgstr ""
271
 
272
  #: ../admin/about.php:49
 
273
  msgid "We would like to thank this people which support us in the work :"
274
  msgstr ""
275
 
276
  #: ../admin/addgallery.php:35
277
  #: ../admin/addgallery.php:51
 
 
278
  msgid "Upload failed!"
279
  msgstr ""
280
 
281
  #: ../admin/addgallery.php:56
282
- #: ../admin/functions.php:572
283
- #: ../admin/functions.php:640
 
 
 
284
  msgid "No gallery selected !"
285
  msgstr ""
286
 
287
- #: ../admin/addgallery.php:102
 
288
  msgid "Image Files"
289
  msgstr ""
290
 
291
- #: ../admin/addgallery.php:122
292
- #: ../admin/addgallery.php:152
 
 
293
  msgid "remove"
294
  msgstr ""
295
 
296
- #: ../admin/addgallery.php:123
 
297
  msgid "Browse..."
298
  msgstr ""
299
 
300
- #: ../admin/addgallery.php:124
301
- #: ../admin/addgallery.php:297
 
 
302
  msgid "Upload images"
303
  msgstr ""
304
 
305
- #: ../admin/addgallery.php:168
306
  #: ../admin/addgallery.php:180
 
 
 
307
  msgid "Add new gallery"
308
  msgstr ""
309
 
310
- #: ../admin/addgallery.php:170
311
- #: ../admin/addgallery.php:201
 
 
312
  msgid "Upload a Zip-File"
313
  msgstr ""
314
 
315
- #: ../admin/addgallery.php:173
316
- #: ../admin/addgallery.php:241
 
 
317
  msgid "Import image folder"
318
  msgstr ""
319
 
320
- #: ../admin/addgallery.php:175
321
- #: ../admin/addgallery.php:265
 
 
322
  msgid "Upload Images"
323
  msgstr ""
324
 
325
- #: ../admin/addgallery.php:186
 
326
  msgid "New Gallery"
327
  msgstr ""
328
 
329
- #: ../admin/addgallery.php:189
 
330
  msgid "Create a new , empty gallery below the folder"
331
  msgstr ""
332
 
333
- #: ../admin/addgallery.php:191
 
334
  msgid "Allowed characters for file and folder names are"
335
  msgstr ""
336
 
337
- #: ../admin/addgallery.php:194
 
338
  msgid "Add gallery"
339
  msgstr ""
340
 
341
- #: ../admin/addgallery.php:207
 
342
  msgid "Select Zip-File"
343
  msgstr ""
344
 
345
- #: ../admin/addgallery.php:209
 
346
  msgid "Upload a zip file with images"
347
  msgstr ""
348
 
349
- #: ../admin/addgallery.php:212
350
- #: ../admin/addgallery.php:275
 
 
351
  msgid "in to"
352
  msgstr ""
353
 
354
- #: ../admin/addgallery.php:214
 
355
  msgid "a new gallery"
356
  msgstr ""
357
 
358
- #: ../admin/addgallery.php:224
359
- #: ../admin/addgallery.php:287
 
 
360
  msgid "Note : The upload limit on your server is "
361
  msgstr ""
362
 
363
- #: ../admin/addgallery.php:228
364
- #: ../admin/addgallery.php:253
365
- #: ../admin/addgallery.php:291
 
 
 
366
  msgid "Add Metadata :"
367
  msgstr ""
368
 
369
- #: ../admin/addgallery.php:230
370
- #: ../admin/addgallery.php:255
371
- #: ../admin/addgallery.php:293
 
 
 
372
  msgid "Import EXIF, IPTC or XMP data (if available)"
373
  msgstr ""
374
 
375
- #: ../admin/addgallery.php:233
 
376
  msgid "Start upload"
377
  msgstr ""
378
 
379
- #: ../admin/addgallery.php:247
 
380
  msgid "Import from Server path:"
381
  msgstr ""
382
 
383
- #: ../admin/addgallery.php:249
384
  msgid "Import a folder with images. Please note :"
385
  msgstr ""
386
 
387
- #: ../admin/addgallery.php:250
388
  msgid "For safe-mode = ON you need to add the subfolder thumbs manually"
389
  msgstr ""
390
 
391
- #: ../admin/addgallery.php:258
 
392
  msgid "Import folder"
393
  msgstr ""
394
 
395
- #: ../admin/addgallery.php:271
 
396
  msgid "Upload image"
397
  msgstr ""
398
 
399
- #: ../admin/addgallery.php:277
 
400
  msgid "Choose gallery"
401
  msgstr ""
402
 
403
- #: ../admin/admin.php:54
404
- #: ../admin/functions.php:77
405
- #: ../admin/functions.php:81
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
406
  #: ../admin/functions.php:128
407
  #: ../admin/manage.php:64
408
- #: ../admin/manage.php:424
409
  #: ../admin/settings.php:106
410
  #: ../admin/uploadtab.php:36
411
- #: ../admin/_manage.php:182
412
- #: ../admin/_manage.php:991
 
 
 
 
 
413
  #: ../tinymce/window.php:35
 
414
  msgid "Gallery"
415
  msgstr ""
416
 
417
- #: ../admin/admin.php:55
 
418
  msgid "Add Gallery"
419
  msgstr ""
420
 
421
- #: ../admin/admin.php:56
 
422
  msgid "Manage Gallery"
423
  msgstr ""
424
 
425
- #: ../admin/admin.php:57
 
426
  #: ../tinymce/window.php:36
 
427
  msgid "Album"
428
  msgstr ""
429
 
430
- #: ../admin/admin.php:58
 
431
  msgid "Options"
432
  msgstr ""
433
 
434
- #: ../admin/admin.php:60
 
435
  msgid "Style"
436
  msgstr ""
437
 
438
- #: ../admin/admin.php:61
 
439
  msgid "Setup Gallery"
440
  msgstr ""
441
 
442
- #: ../admin/admin.php:61
 
443
  msgid "Setup"
444
  msgstr ""
445
 
446
- #: ../admin/admin.php:63
 
447
  msgid "Roles"
448
  msgstr ""
449
 
450
- #: ../admin/admin.php:65
451
- #: ../admin/myimport.php:74
452
- msgid "Import"
453
- msgstr ""
454
-
455
- #: ../admin/admin.php:66
456
  msgid "About this Gallery"
457
  msgstr ""
458
 
459
- #: ../admin/admin.php:66
 
460
  msgid "About"
461
  msgstr ""
462
 
463
- #: ../admin/admin.php:68
 
 
464
  msgid "NextGEN Gallery"
465
  msgstr ""
466
 
467
- #: ../admin/album.php:17
468
- #: ../admin/album.php:36
 
 
469
  msgid "Update Successfully"
470
  msgstr ""
471
 
472
- #: ../admin/album.php:44
 
473
  msgid "Album deleted"
474
  msgstr ""
475
 
476
- #: ../admin/album.php:123
 
477
  msgid "Manage Albums"
478
  msgstr ""
479
 
480
- #: ../admin/album.php:129
 
481
  #: ../tinymce/window.php:74
 
482
  msgid "Select album"
483
  msgstr ""
484
 
485
- #: ../admin/album.php:132
 
486
  msgid "No album selected"
487
  msgstr ""
488
 
489
- #: ../admin/album.php:145
 
490
  msgid "Add new album"
491
  msgstr ""
492
 
493
- #: ../admin/album.php:149
494
- #: ../admin/manage.php:302
495
- #: ../admin/manage.php:568
496
- #: ../admin/_manage.php:232
 
 
497
  msgid "Delete"
498
  msgstr ""
499
 
500
- #: ../admin/album.php:149
 
501
  msgid "Delete album ?"
502
  msgstr ""
503
 
504
- #: ../admin/album.php:151
505
- #: ../admin/settings.php:171
506
- #: ../admin/settings.php:211
507
- #: ../admin/settings.php:258
508
  #: ../admin/settings.php:333
509
  #: ../admin/settings.php:380
510
  #: ../admin/settings.php:492
511
  #: ../admin/settings.php:600
512
  #: ../admin/wpmu.php:98
 
 
 
 
 
 
 
 
 
513
  msgid "Update"
514
  msgstr ""
515
 
516
- #: ../admin/album.php:159
 
517
  msgid "[Show all]"
518
  msgstr ""
519
 
520
- #: ../admin/album.php:160
 
521
  msgid "[Maximize]"
522
  msgstr ""
523
 
524
- #: ../admin/album.php:161
 
525
  msgid "[Minimize]"
526
  msgstr ""
527
 
528
- #: ../admin/album.php:163
 
529
  msgid "After you create and select a album, you can drag and drop a gallery into your album below"
530
  msgstr ""
531
 
532
- #: ../admin/album.php:170
 
533
  msgid "Select Gallery"
534
  msgstr ""
535
 
536
- #: ../admin/album.php:209
 
537
  msgid "Album Page ID"
538
  msgstr ""
539
 
540
- #: ../admin/album.php:221
 
541
  msgid "No album selected!"
542
  msgstr ""
543
 
544
- #: ../admin/album.php:257
545
- #: ../admin/manage.php:276
546
- #: ../admin/manage.php:523
547
- #: ../admin/myimport.php:49
548
- #: ../admin/_manage.php:206
 
549
  msgid "ID"
550
  msgstr ""
551
 
552
- #: ../admin/album.php:258
 
553
  msgid "Name"
554
  msgstr ""
555
 
556
- #: ../admin/album.php:259
557
- #: ../admin/manage.php:278
558
- #: ../admin/manage.php:436
559
- #: ../admin/myimport.php:51
560
- #: ../admin/_manage.php:208
561
- #: ../admin/_manage.php:1005
562
  #: ../admin/js/uploadtab.js.php:109
 
 
 
563
  #: ../lib/nggmeta.lib.php:373
564
  msgid "Title"
565
  msgstr ""
566
 
567
- #: ../admin/album.php:260
 
568
  msgid "Page"
569
  msgstr ""
570
 
571
  #: ../admin/functions.php:20
 
572
  msgid "No valid gallery name!"
573
  msgstr ""
574
 
575
  #: ../admin/functions.php:27
576
  #: ../admin/functions.php:36
577
- #: ../admin/functions.php:49
578
- #: ../admin/functions.php:101
579
- #: ../admin/functions.php:108
 
 
 
 
 
580
  msgid "Directory"
581
  msgstr ""
582
 
583
  #: ../admin/functions.php:27
 
584
  msgid "didn't exist. Please create first the main gallery folder "
585
  msgstr ""
586
 
587
  #: ../admin/functions.php:28
588
  #: ../admin/functions.php:37
 
 
589
  msgid "Check this link, if you didn't know how to set the permission :"
590
  msgstr ""
591
 
592
  #: ../admin/functions.php:36
593
- #: ../admin/functions.php:49
 
 
594
  msgid "is not writeable !"
595
  msgstr ""
596
 
597
  #: ../admin/functions.php:45
598
- #: ../admin/functions.php:54
599
- #: ../admin/functions.php:520
 
 
 
600
  #: ../lib/nggallery.lib.php:297
601
  msgid "Unable to create directory "
602
  msgstr ""
603
 
604
- #: ../admin/functions.php:58
 
605
  msgid "The server setting Safe-Mode is on !"
606
  msgstr ""
607
 
608
- #: ../admin/functions.php:59
 
609
  msgid "If you have problems, please create directory"
610
  msgstr ""
611
 
612
- #: ../admin/functions.php:60
 
613
  msgid "and the thumbnails directory"
614
  msgstr ""
615
 
616
- #: ../admin/functions.php:60
 
617
  msgid "with permission 777 manually !"
618
  msgstr ""
619
 
620
- #: ../admin/functions.php:77
 
621
  msgid "already exists"
622
  msgstr ""
623
 
624
- #: ../admin/functions.php:81
625
  #: ../admin/functions.php:128
 
 
626
  msgid "successfully created!"
627
  msgstr ""
628
 
629
- #: ../admin/functions.php:81
 
630
  msgid "You can show this gallery with the tag"
631
  msgstr ""
632
 
633
- #: ../admin/functions.php:101
 
634
  msgid "doesn&#96;t exist!"
635
  msgstr ""
636
 
637
- #: ../admin/functions.php:108
 
638
  msgid "contains no pictures"
639
  msgstr ""
640
 
641
  #: ../admin/functions.php:125
642
- #: ../admin/myimport.php:38
643
  msgid "Database error. Could not add gallery!"
644
  msgstr ""
645
 
646
  #: ../admin/functions.php:144
 
647
  msgid " picture(s) successfully added"
648
  msgstr ""
649
 
650
- #: ../admin/functions.php:174
651
- #: ../admin/functions.php:221
652
- #: ../admin/functions.php:282
 
 
 
653
  msgid "Running... Please wait"
654
  msgstr ""
655
 
656
- #: ../admin/functions.php:175
657
- #: ../admin/manage.php:500
 
 
658
  msgid "Resize images"
659
  msgstr ""
660
 
661
- #: ../admin/functions.php:197
 
662
  msgid " : Image resized..."
663
  msgstr ""
664
 
665
- #: ../admin/functions.php:206
666
- #: ../admin/functions.php:261
 
 
667
  msgid "Some pictures are not writeable :"
668
  msgstr ""
669
 
670
- #: ../admin/functions.php:222
671
- #: ../admin/manage.php:498
 
 
672
  msgid "Set watermark"
673
  msgstr ""
674
 
675
- #: ../admin/functions.php:252
 
676
  msgid " : Watermark created..."
677
  msgstr ""
678
 
679
- #: ../admin/functions.php:283
680
- #: ../admin/manage.php:499
 
 
681
  msgid "Create new thumbnails"
682
  msgstr ""
683
 
684
- #: ../admin/functions.php:348
 
685
  msgid " : Thumbnail created..."
686
  msgstr ""
687
 
688
- #: ../admin/functions.php:353
 
689
  msgid "Follow thumbnails could not created."
690
  msgstr ""
691
 
692
- #: ../admin/functions.php:354
 
693
  msgid "Some thumbnails are not writeable :"
694
  msgstr ""
695
 
696
- #: ../admin/functions.php:455
 
697
  msgid "The Zip-file is too large. Exceed Memory limit !"
698
  msgstr ""
699
 
700
- #: ../admin/functions.php:496
 
701
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
702
  msgstr ""
703
 
704
- #: ../admin/functions.php:515
 
705
  #, php-format
706
  msgid "Unable to create directory %s. Is its parent directory writable by the server?"
707
  msgstr ""
708
 
709
- #: ../admin/functions.php:530
 
710
  msgid "Zip-File successfully unpacked"
711
  msgstr ""
712
 
713
  #: ../admin/functions.php:571
714
- #: ../admin/functions.php:579
715
- msgid "Unable to unlink file "
716
- msgstr ""
717
-
718
- #: ../admin/functions.php:580
719
- #: ../admin/functions.php:665
720
  msgid "Failure in database, no gallery path set !"
721
  msgstr ""
722
 
723
- #: ../admin/functions.php:587
724
- #: ../admin/functions.php:658
 
 
725
  msgid "is no valid image file!"
726
  msgstr ""
727
 
728
- #: ../admin/functions.php:595
 
729
  #, php-format
730
  msgid "Unable to write to directory %s. Is this directory writable by the server?"
731
  msgstr ""
732
 
733
- #: ../admin/functions.php:602
734
- #: ../admin/functions.php:682
 
 
735
  msgid "Error, the file could not moved to : "
736
  msgstr ""
737
 
738
- #: ../admin/functions.php:607
739
- #: ../admin/functions.php:686
 
 
740
  msgid "Error, the file permissions could not set"
741
  msgstr ""
742
 
743
- #: ../admin/functions.php:625
 
744
  msgid " Image(s) successfully added"
745
  msgstr ""
746
 
747
- #: ../admin/functions.php:645
 
748
  msgid "Invalid upload. Error Code : "
749
  msgstr ""
750
 
751
- #: ../admin/functions.php:697
 
752
  msgid "Sorry, you have used your space allocation. Please delete some files to upload more files."
753
  msgstr ""
754
 
755
- #: ../admin/functions.php:724
 
756
  #, php-format
757
  msgid "SAFE MODE Restriction in effect! You need to create the folder <strong>%s</strong> manually"
758
  msgstr ""
759
 
760
- #: ../admin/functions.php:725
 
761
  #, php-format
762
  msgid "When safe_mode is on, PHP checks to see if the owner (%s) of the current script matches the owner (%s) of the file to be operated on by a file function or its directory"
763
  msgstr ""
764
 
765
  #: ../admin/manage.php:64
766
  #: ../admin/manage.php:85
767
- #: ../admin/_manage.php:182
 
768
  msgid "deleted successfully"
769
  msgstr ""
770
 
771
  #: ../admin/manage.php:111
 
772
  msgid "Watermark successfully added"
773
  msgstr ""
774
 
775
  #: ../admin/manage.php:116
 
776
  msgid "Thumbnails successfully created. Please refresh your browser cache."
777
  msgstr ""
778
 
779
  #: ../admin/manage.php:121
 
780
  msgid "Images successfully resized"
781
  msgstr ""
782
 
783
  #: ../admin/manage.php:139
 
784
  msgid "Pictures deleted successfully "
785
  msgstr ""
786
 
787
  #: ../admin/manage.php:145
 
788
  msgid "Import metadata finished"
789
  msgstr ""
790
 
791
  #: ../admin/manage.php:195
 
792
  msgid "Tags changed"
793
  msgstr ""
794
 
795
  #: ../admin/manage.php:215
 
796
  msgid "Update successful"
797
  msgstr ""
798
 
799
- #: ../admin/manage.php:249
 
800
  msgid "New gallery page ID"
801
  msgstr ""
802
 
803
- #: ../admin/manage.php:249
 
804
  msgid "created"
805
  msgstr ""
806
 
807
- #: ../admin/manage.php:272
808
- #: ../admin/_manage.php:202
809
  msgid "Gallery Overview"
810
  msgstr ""
811
 
812
- #: ../admin/manage.php:277
813
- #: ../admin/myimport.php:50
814
- #: ../admin/_manage.php:207
815
  msgid "Gallery name"
816
  msgstr ""
817
 
818
- #: ../admin/manage.php:279
819
- #: ../admin/manage.php:455
820
- #: ../admin/manage.php:529
821
- #: ../admin/myimport.php:52
822
  #: ../admin/style.php:102
823
  #: ../admin/uploadtab.php:180
824
- #: ../admin/_manage.php:209
825
- #: ../admin/_manage.php:1024
826
  #: ../admin/js/uploadtab.js.php:172
 
 
 
 
 
827
  msgid "Description"
828
  msgstr ""
829
 
830
- #: ../admin/manage.php:280
831
- #: ../admin/myimport.php:53
832
- #: ../admin/_manage.php:210
833
  msgid "Page ID"
834
  msgstr ""
835
 
836
- #: ../admin/manage.php:281
837
- #: ../admin/myimport.php:54
838
- #: ../admin/_manage.php:211
839
  msgid "Quantity"
840
  msgstr ""
841
 
842
- #: ../admin/manage.php:282
843
- #: ../admin/manage.php:535
844
- #: ../admin/myimport.php:55
845
- #: ../admin/_manage.php:212
846
  msgid "Action"
847
  msgstr ""
848
 
849
- #: ../admin/manage.php:301
850
- #: ../admin/_manage.php:231
851
  #: ../admin/js/uploadtab.js.php:93
 
852
  msgid "Edit"
853
  msgstr ""
854
 
855
- #: ../admin/manage.php:302
856
- #: ../admin/_manage.php:232
857
  msgid "Delete this gallery ?"
858
  msgstr ""
859
 
860
- #: ../admin/manage.php:307
861
- #: ../admin/manage.php:573
862
- #: ../admin/myimport.php:79
863
- #: ../admin/_manage.php:237
864
- #: ../admin/_manage.php:1155
865
  msgid "No entries found"
866
  msgstr ""
867
 
868
- #: ../admin/manage.php:433
869
- #: ../admin/_manage.php:1001
870
  msgid "Main settings"
871
  msgstr ""
872
 
873
- #: ../admin/manage.php:438
874
- #: ../admin/_manage.php:1007
875
  msgid "Page Link to"
876
  msgstr ""
877
 
878
- #: ../admin/manage.php:441
879
- #: ../admin/_manage.php:1010
880
  msgid "Not linked"
881
  msgstr ""
882
 
883
- #: ../admin/manage.php:457
884
- #: ../admin/_manage.php:1026
885
  msgid "Preview image"
886
  msgstr ""
887
 
888
- #: ../admin/manage.php:460
889
- #: ../admin/_manage.php:1029
890
  msgid "No Picture"
891
  msgstr ""
892
 
893
- #: ../admin/manage.php:475
894
- #: ../admin/_manage.php:1043
895
  msgid "Path"
896
  msgstr ""
897
 
898
- #: ../admin/manage.php:478
899
- #: ../admin/_manage.php:1045
900
  msgid "Create new page"
901
  msgstr ""
902
 
903
- #: ../admin/manage.php:481
904
- #: ../admin/_manage.php:1048
905
  msgid "Main page (No parent)"
906
  msgstr ""
907
 
908
- #: ../admin/manage.php:484
909
- #: ../admin/_manage.php:1051
910
  msgid "Add page"
911
  msgstr ""
912
 
913
- #: ../admin/manage.php:490
914
- #: ../admin/_manage.php:1057
915
  msgid "Scan Folder for new images"
916
  msgstr ""
917
 
918
- #: ../admin/manage.php:491
919
- #: ../admin/manage.php:580
920
- #: ../admin/_manage.php:1058
 
 
921
  msgid "Save Changes"
922
  msgstr ""
923
 
924
- #: ../admin/manage.php:496
 
925
  msgid "No action"
926
  msgstr ""
927
 
928
- #: ../admin/manage.php:501
 
929
  msgid "Delete images"
930
  msgstr ""
931
 
932
- #: ../admin/manage.php:502
 
933
  msgid "Import metadata"
934
  msgstr ""
935
 
936
- #: ../admin/manage.php:504
 
937
  msgid "Add tags"
938
  msgstr ""
939
 
940
- #: ../admin/manage.php:505
 
941
  msgid "Delete tags"
942
  msgstr ""
943
 
944
- #: ../admin/manage.php:506
 
945
  msgid "Overwrite tags"
946
  msgstr ""
947
 
948
- #: ../admin/manage.php:510
949
- #: ../admin/manage.php:511
950
- #: ../admin/manage.php:598
 
 
 
951
  msgid "OK"
952
  msgstr ""
953
 
954
- #: ../admin/manage.php:510
955
- #: ../admin/manage.php:598
 
 
956
  msgid "No images selected"
957
  msgstr ""
958
 
959
- #: ../admin/manage.php:510
960
- #: ../admin/manage.php:598
 
 
961
  #, php-format
962
  msgid ""
963
  "You are about to start the bulk edit for %s images \n"
@@ -965,88 +1179,95 @@ msgid ""
965
  " 'Cancel' to stop, 'OK' to proceed."
966
  msgstr ""
967
 
968
- #: ../admin/manage.php:512
 
969
  msgid "Hide thumbnails "
970
  msgstr ""
971
 
972
- #: ../admin/manage.php:513
 
973
  msgid "Show thumbnails "
974
  msgstr ""
975
 
976
- #: ../admin/manage.php:514
 
977
  msgid "Show tags"
978
  msgstr ""
979
 
980
- #: ../admin/manage.php:515
 
981
  msgid "Hide tags"
982
  msgstr ""
983
 
984
- #: ../admin/manage.php:524
 
 
 
 
 
985
  #: ../admin/settings.php:322
 
 
986
  msgid "File name"
987
  msgstr ""
988
 
989
- #: ../admin/manage.php:526
990
  #: ../admin/js/uploadtab.js.php:106
 
991
  msgid "Thumbnail"
992
  msgstr ""
993
 
994
- #: ../admin/manage.php:530
995
  #: ../admin/uploadtab.php:176
996
  #: ../admin/js/uploadtab.js.php:169
 
997
  msgid "Alt &amp; Title Text"
998
  msgstr ""
999
 
1000
- #: ../admin/manage.php:531
 
1001
  msgid "exclude"
1002
  msgstr ""
1003
 
1004
- #: ../admin/manage.php:533
 
1005
  msgid "Tags (comma separated list)"
1006
  msgstr ""
1007
 
1008
- #: ../admin/manage.php:566
 
1009
  msgid "View"
1010
  msgstr ""
1011
 
1012
- #: ../admin/manage.php:567
 
1013
  msgid "Show Meta data"
1014
  msgstr ""
1015
 
1016
- #: ../admin/manage.php:567
 
1017
  msgid "Meta"
1018
  msgstr ""
1019
 
1020
- #: ../admin/manage.php:568
 
1021
  msgid "Delete this file ?"
1022
  msgstr ""
1023
 
1024
- #: ../admin/manage.php:595
 
1025
  msgid "Enter the tags"
1026
  msgstr ""
1027
 
1028
- #: ../admin/manage.php:598
1029
- #: ../tinymce/window.php:146
 
 
1030
  msgid "Cancel"
1031
  msgstr ""
1032
 
1033
- #: ../admin/myimport.php:35
1034
- msgid "Gallery "
1035
- msgstr ""
1036
-
1037
- #: ../admin/myimport.php:35
1038
- msgid " : Import successfull"
1039
- msgstr ""
1040
-
1041
- #: ../admin/myimport.php:45
1042
- msgid "myGallery Import"
1043
- msgstr ""
1044
-
1045
- #: ../admin/myimport.php:74
1046
- msgid "Import this gallery ?"
1047
- msgstr ""
1048
-
1049
  #: ../admin/overview.php:18
 
1050
  msgid "NextGEN Gallery Overview"
1051
  msgstr ""
1052
 
@@ -1055,23 +1276,28 @@ msgid "Summary"
1055
  msgstr ""
1056
 
1057
  #: ../admin/overview.php:30
 
1058
  #, php-format
1059
  msgid "There are totally %1$s pictures in %2$s galleries, which are spread across %3$s albums."
1060
  msgstr ""
1061
 
1062
  #: ../admin/overview.php:34
 
1063
  msgid "New Version available"
1064
  msgstr ""
1065
 
1066
  #: ../admin/overview.php:35
 
1067
  msgid "The server reports that a new NextGEN Gallery Version is now available. Please visit the plugin homepage for more information."
1068
  msgstr ""
1069
 
1070
  #: ../admin/overview.php:36
 
1071
  msgid "Download here"
1072
  msgstr ""
1073
 
1074
  #: ../admin/overview.php:42
 
1075
  msgid "Server Settings"
1076
  msgstr ""
1077
 
@@ -1080,10 +1306,12 @@ msgid "Welcome"
1080
  msgstr ""
1081
 
1082
  #: ../admin/overview.php:54
 
1083
  msgid "gallery administrator"
1084
  msgstr ""
1085
 
1086
  #: ../admin/overview.php:54
 
1087
  msgid "gallery editor"
1088
  msgstr ""
1089
 
@@ -1109,19 +1337,23 @@ msgid "Change the settings of NextGEN Gallery"
1109
  msgstr ""
1110
 
1111
  #: ../admin/overview.php:66
 
1112
  msgid "Latest News"
1113
  msgstr ""
1114
 
1115
  #: ../admin/overview.php:85
 
1116
  #, php-format
1117
  msgid "Newsfeed could not be loaded. Check the <a href=\"%s\">front page</a> to check for updates."
1118
  msgstr ""
1119
 
1120
  #: ../admin/overview.php:98
 
1121
  msgid "GD support"
1122
  msgstr ""
1123
 
1124
  #: ../admin/overview.php:109
 
1125
  msgid "No GD support"
1126
  msgstr ""
1127
 
@@ -1129,6 +1361,10 @@ msgstr ""
1129
  #: ../admin/overview.php:154
1130
  #: ../admin/overview.php:157
1131
  #: ../admin/overview.php:160
 
 
 
 
1132
  msgid "Yes"
1133
  msgstr ""
1134
 
@@ -1136,20 +1372,29 @@ msgstr ""
1136
  #: ../admin/overview.php:155
1137
  #: ../admin/overview.php:158
1138
  #: ../admin/overview.php:161
 
 
 
 
1139
  msgid "No"
1140
  msgstr ""
1141
 
1142
  #: ../admin/overview.php:131
 
1143
  msgid "Not set"
1144
  msgstr ""
1145
 
1146
  #: ../admin/overview.php:133
1147
  #: ../admin/overview.php:136
 
 
1148
  msgid "On"
1149
  msgstr ""
1150
 
1151
  #: ../admin/overview.php:134
1152
  #: ../admin/overview.php:137
 
 
1153
  msgid "Off"
1154
  msgstr ""
1155
 
@@ -1158,679 +1403,849 @@ msgstr ""
1158
  #: ../admin/overview.php:146
1159
  #: ../admin/overview.php:149
1160
  #: ../admin/overview.php:152
 
 
 
 
 
1161
  msgid "N/A"
1162
  msgstr ""
1163
 
1164
  #: ../admin/overview.php:151
 
1165
  msgid " MByte"
1166
  msgstr ""
1167
 
1168
  #: ../admin/overview.php:164
 
1169
  msgid "Operating System"
1170
  msgstr ""
1171
 
1172
  #: ../admin/overview.php:165
 
1173
  msgid "Server"
1174
  msgstr ""
1175
 
1176
  #: ../admin/overview.php:166
 
1177
  msgid "Memory usage"
1178
  msgstr ""
1179
 
1180
  #: ../admin/overview.php:167
 
1181
  msgid "MYSQL Version"
1182
  msgstr ""
1183
 
1184
  #: ../admin/overview.php:168
 
1185
  msgid "SQL Mode"
1186
  msgstr ""
1187
 
1188
  #: ../admin/overview.php:169
 
1189
  msgid "PHP Version"
1190
  msgstr ""
1191
 
1192
  #: ../admin/overview.php:170
 
1193
  msgid "PHP Safe Mode"
1194
  msgstr ""
1195
 
1196
  #: ../admin/overview.php:171
 
1197
  msgid "PHP Allow URL fopen"
1198
  msgstr ""
1199
 
1200
  #: ../admin/overview.php:172
 
1201
  msgid "PHP Memory Limit"
1202
  msgstr ""
1203
 
1204
  #: ../admin/overview.php:173
 
1205
  msgid "PHP Max Upload Size"
1206
  msgstr ""
1207
 
1208
  #: ../admin/overview.php:174
 
1209
  msgid "PHP Max Post Size"
1210
  msgstr ""
1211
 
1212
  #: ../admin/overview.php:175
 
1213
  msgid "PHP Max Script Execute Time"
1214
  msgstr ""
1215
 
1216
  #: ../admin/overview.php:176
 
1217
  msgid "PHP Exif support"
1218
  msgstr ""
1219
 
1220
  #: ../admin/overview.php:177
 
1221
  msgid "PHP IPTC support"
1222
  msgstr ""
1223
 
1224
  #: ../admin/overview.php:178
 
1225
  msgid "PHP XML support"
1226
  msgstr ""
1227
 
1228
  #: ../admin/overview.php:319
 
1229
  msgid "Storage Space"
1230
  msgstr ""
1231
 
1232
  #: ../admin/overview.php:322
 
1233
  msgid "Upload Space Used:"
1234
  msgstr ""
1235
 
1236
  #: ../admin/overview.php:328
 
1237
  msgid "Upload Space Remaining:"
1238
  msgstr ""
1239
 
1240
  #: ../admin/roles.php:20
 
1241
  msgid "Updated capabilities"
1242
  msgstr ""
1243
 
1244
  #: ../admin/roles.php:25
 
1245
  msgid "Roles / capabilities"
1246
  msgstr ""
1247
 
1248
  #: ../admin/roles.php:26
 
1249
  msgid "Select the lowest role which should be able to access the follow capabilities. NextGEN Gallery supports the standard roles from WordPress."
1250
  msgstr ""
1251
 
1252
  #: ../admin/roles.php:27
 
1253
  msgid "For a more flexible user management you can use the"
1254
  msgstr ""
1255
 
1256
  #: ../admin/roles.php:33
 
1257
  msgid "Main NextGEN Gallery overview"
1258
  msgstr ""
1259
 
1260
  #: ../admin/roles.php:37
 
1261
  msgid "Use TinyMCE Button / Upload tab"
1262
  msgstr ""
1263
 
1264
  #: ../admin/roles.php:41
 
1265
  msgid "Add gallery / Upload images"
1266
  msgstr ""
1267
 
1268
  #: ../admin/roles.php:45
 
1269
  msgid "Manage gallery"
1270
  msgstr ""
1271
 
1272
  #: ../admin/roles.php:49
 
1273
  msgid "Edit Album"
1274
  msgstr ""
1275
 
1276
  #: ../admin/roles.php:53
 
1277
  msgid "Change style"
1278
  msgstr ""
1279
 
1280
  #: ../admin/roles.php:57
 
1281
  msgid "Change options"
1282
  msgstr ""
1283
 
1284
  #: ../admin/roles.php:61
 
1285
  msgid "Update capabilities"
1286
  msgstr ""
1287
 
1288
  #: ../admin/settings.php:33
1289
  #: ../admin/style.php:16
1290
  #: ../admin/wpmu.php:32
 
 
 
1291
  msgid "Update successfully"
1292
  msgstr ""
1293
 
1294
  #: ../admin/settings.php:50
 
1295
  msgid "Cache cleared"
1296
  msgstr ""
1297
 
1298
  #: ../admin/settings.php:103
1299
  #: ../admin/settings.php:115
 
 
1300
  msgid "General Options"
1301
  msgstr ""
1302
 
1303
  #: ../admin/settings.php:105
 
1304
  msgid "Images"
1305
  msgstr ""
1306
 
1307
  #: ../admin/settings.php:107
1308
  #: ../admin/settings.php:341
 
 
1309
  msgid "Effects"
1310
  msgstr ""
1311
 
1312
  #: ../admin/settings.php:108
1313
  #: ../admin/settings.php:394
 
 
1314
  #: ../tinymce/window.php:123
 
1315
  msgid "Watermark"
1316
  msgstr ""
1317
 
1318
  #: ../admin/settings.php:109
1319
- #: ../admin/settings.php:300
1320
  #: ../admin/settings.php:502
 
 
 
1321
  #: ../tinymce/window.php:63
 
1322
  msgid "Slideshow"
1323
  msgstr ""
1324
 
1325
  #: ../admin/settings.php:122
1326
  #: ../admin/wpmu.php:48
 
 
1327
  msgid "Gallery path"
1328
  msgstr ""
1329
 
1330
  #: ../admin/settings.php:124
 
1331
  msgid "This is the default path for all galleries"
1332
  msgstr ""
1333
 
1334
  #: ../admin/settings.php:135
 
1335
  msgid "Delete image files"
1336
  msgstr ""
1337
 
1338
  #: ../admin/settings.php:137
 
1339
  msgid "Delete files, when removing a gallery in the database"
1340
  msgstr ""
1341
 
1342
  #: ../admin/settings.php:140
1343
- msgid "Activate batch upload"
1344
- msgstr ""
1345
-
1346
- #: ../admin/settings.php:142
1347
- msgid "The batch upload requires Adobe Flash 9, disable it if you have problems"
1348
- msgstr ""
1349
-
1350
- #: ../admin/settings.php:145
1351
  msgid "Activate permalinks"
1352
  msgstr ""
1353
 
1354
- #: ../admin/settings.php:147
 
1355
  msgid "When you activate this option, you need to update your permalink structure one time."
1356
  msgstr ""
1357
 
1358
- #: ../admin/settings.php:150
 
1359
  msgid "Tags / Categories"
1360
  msgstr ""
1361
 
1362
- #: ../admin/settings.php:153
 
1363
  msgid "Activate related images"
1364
  msgstr ""
1365
 
1366
- #: ../admin/settings.php:155
 
1367
  msgid "This option will append related images to every post"
1368
  msgstr ""
1369
 
1370
- #: ../admin/settings.php:159
 
1371
  msgid "Match with"
1372
  msgstr ""
1373
 
1374
- #: ../admin/settings.php:160
 
1375
  msgid "Categories"
1376
  msgstr ""
1377
 
1378
- #: ../admin/settings.php:161
 
1379
  #: ../lib/nggmeta.lib.php:375
1380
  msgid "Tags"
1381
  msgstr ""
1382
 
1383
- #: ../admin/settings.php:161
 
1384
  msgid " (require WordPress 2.3 or higher)"
1385
  msgstr ""
1386
 
1387
- #: ../admin/settings.php:165
 
1388
  msgid "Max. number of images"
1389
  msgstr ""
1390
 
1391
- #: ../admin/settings.php:167
 
1392
  msgid "0 will show all images"
1393
  msgstr ""
1394
 
1395
- #: ../admin/settings.php:179
 
1396
  msgid "Thumbnail settings"
1397
  msgstr ""
1398
 
1399
- #: ../admin/settings.php:184
 
1400
  msgid "Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery ."
1401
  msgstr ""
1402
 
1403
- #: ../admin/settings.php:187
 
1404
  msgid "Width x height (in pixel)"
1405
  msgstr ""
1406
 
1407
- #: ../admin/settings.php:189
 
1408
  msgid "These values are maximum values "
1409
  msgstr ""
1410
 
1411
- #: ../admin/settings.php:192
 
1412
  msgid "Set fix dimension"
1413
  msgstr ""
1414
 
1415
- #: ../admin/settings.php:194
 
1416
  msgid "Ignore the aspect ratio, no portrait thumbnails"
1417
  msgstr ""
1418
 
1419
- #: ../admin/settings.php:197
 
1420
  msgid "Crop square thumbnail from image"
1421
  msgstr ""
1422
 
1423
- #: ../admin/settings.php:199
 
1424
  msgid "Create square thumbnails, use only the width setting :"
1425
  msgstr ""
1426
 
1427
- #: ../admin/settings.php:202
 
1428
  msgid "Thumbnail quality"
1429
  msgstr ""
1430
 
1431
- #: ../admin/settings.php:206
1432
- #: ../admin/settings.php:238
 
 
1433
  msgid "Resample Mode"
1434
  msgstr ""
1435
 
1436
- #: ../admin/settings.php:208
1437
- #: ../admin/settings.php:241
 
 
1438
  msgid "Value between 1-5 (higher value, more CPU load)"
1439
  msgstr ""
1440
 
1441
- #: ../admin/settings.php:219
 
1442
  msgid "Image settings"
1443
  msgstr ""
1444
 
1445
- #: ../admin/settings.php:226
 
1446
  msgid "Resize Images"
1447
  msgstr ""
1448
 
1449
- #: ../admin/settings.php:230
 
1450
  msgid "Width x height (in pixel). NextGEN Gallery will keep ratio size"
1451
  msgstr ""
1452
 
1453
- #: ../admin/settings.php:233
 
1454
  msgid "Image quality"
1455
  msgstr ""
1456
 
1457
- #: ../admin/settings.php:244
 
1458
  msgid "Single picture"
1459
  msgstr ""
1460
 
1461
- #: ../admin/settings.php:247
 
1462
  msgid "Cache single pictures"
1463
  msgstr ""
1464
 
1465
- #: ../admin/settings.php:250
 
1466
  msgid "Creates a file for each singlepic settings. Reduce the CPU load"
1467
  msgstr ""
1468
 
1469
- #: ../admin/settings.php:253
 
1470
  msgid "Clear cache folder"
1471
  msgstr ""
1472
 
1473
- #: ../admin/settings.php:255
 
1474
  msgid "Proceed now"
1475
  msgstr ""
1476
 
1477
- #: ../admin/settings.php:266
 
1478
  msgid "Gallery settings"
1479
  msgstr ""
1480
 
1481
- #: ../admin/settings.php:273
1482
- msgid "Activate jQuery navigation"
1483
- msgstr ""
1484
-
1485
- #: ../admin/settings.php:275
1486
- msgid "Please note : This is still experimental. Requires the Thickbox effect"
1487
- msgstr ""
1488
-
1489
- #: ../admin/settings.php:279
1490
  msgid "Deactivate gallery page link"
1491
  msgstr ""
1492
 
1493
- #: ../admin/settings.php:281
 
1494
  msgid "The album will not link to a gallery subpage. The gallery is shown on the same page."
1495
  msgstr ""
1496
 
1497
- #: ../admin/settings.php:285
 
1498
  msgid "Number of images per page"
1499
  msgstr ""
1500
 
1501
- #: ../admin/settings.php:287
 
1502
  msgid "0 will disable pagination, all images on one page"
1503
  msgstr ""
1504
 
1505
- #: ../admin/settings.php:291
 
1506
  msgid "Integrate slideshow"
1507
  msgstr ""
1508
 
1509
- #: ../admin/settings.php:298
 
1510
  msgid "Show first"
1511
  msgstr ""
1512
 
1513
- #: ../admin/settings.php:304
 
1514
  msgid "Show thumbnail description"
1515
  msgstr ""
1516
 
1517
- #: ../admin/settings.php:305
1518
  #: ../admin/settings.php:353
1519
  #: ../admin/js/uploadtab.js.php:117
 
 
 
1520
  msgid "None"
1521
  msgstr ""
1522
 
1523
- #: ../admin/settings.php:306
 
1524
  msgid "Description text"
1525
  msgstr ""
1526
 
1527
- #: ../admin/settings.php:307
1528
  #: ../admin/settings.php:323
 
 
1529
  msgid "Alt / Title text"
1530
  msgstr ""
1531
 
1532
- #: ../admin/settings.php:311
 
1533
  msgid "Show ImageBrowser"
1534
  msgstr ""
1535
 
1536
- #: ../admin/settings.php:313
 
1537
  msgid "The gallery will open the ImageBrowser instead the effect."
1538
  msgstr ""
1539
 
1540
- #: ../admin/settings.php:317
 
1541
  msgid "Sort options"
1542
  msgstr ""
1543
 
1544
- #: ../admin/settings.php:320
 
1545
  msgid "Sort thumbnails"
1546
  msgstr ""
1547
 
 
 
 
 
 
1548
  #: ../admin/settings.php:321
 
1549
  msgid "Image ID"
1550
  msgstr ""
1551
 
1552
  #: ../admin/settings.php:327
 
1553
  msgid "Sort direction"
1554
  msgstr ""
1555
 
1556
  #: ../admin/settings.php:328
 
1557
  msgid "Ascending"
1558
  msgstr ""
1559
 
1560
  #: ../admin/settings.php:329
 
1561
  msgid "Descending"
1562
  msgstr ""
1563
 
1564
  #: ../admin/settings.php:345
 
1565
  msgid "Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Thickbox effect will automatic added to your theme."
1566
  msgstr ""
1567
 
1568
  #: ../admin/settings.php:346
 
1569
  msgid "With the placeholder"
1570
  msgstr ""
1571
 
1572
  #: ../admin/settings.php:346
 
1573
  msgid "you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do."
1574
  msgstr ""
1575
 
1576
  #: ../admin/settings.php:350
 
1577
  msgid "JavaScript Thumbnail effect"
1578
  msgstr ""
1579
 
1580
  #: ../admin/settings.php:354
 
1581
  msgid "Thickbox"
1582
  msgstr ""
1583
 
1584
  #: ../admin/settings.php:355
 
1585
  msgid "Lightbox"
1586
  msgstr ""
1587
 
1588
  #: ../admin/settings.php:356
 
1589
  msgid "Highslide"
1590
  msgstr ""
1591
 
1592
  #: ../admin/settings.php:357
 
1593
  msgid "Shutter"
1594
  msgstr ""
1595
 
1596
  #: ../admin/settings.php:358
 
1597
  msgid "Custom"
1598
  msgstr ""
1599
 
1600
  #: ../admin/settings.php:363
 
1601
  msgid "Link Code line"
1602
  msgstr ""
1603
 
1604
  #: ../admin/settings.php:371
 
1605
  msgid "Select loading image"
1606
  msgstr ""
1607
 
1608
  #: ../admin/settings.php:395
 
1609
  msgid "Please note : You can only activate the watermark under -> Manage Gallery . This action cannot be undone."
1610
  msgstr ""
1611
 
1612
  #: ../admin/settings.php:400
 
1613
  msgid "Preview"
1614
  msgstr ""
1615
 
1616
  #: ../admin/settings.php:402
1617
  #: ../admin/settings.php:406
 
 
1618
  msgid "Position"
1619
  msgstr ""
1620
 
1621
  #: ../admin/settings.php:426
 
1622
  msgid "Offset"
1623
  msgstr ""
1624
 
1625
  #: ../admin/settings.php:444
 
1626
  msgid "Use image as watermark"
1627
  msgstr ""
1628
 
1629
  #: ../admin/settings.php:447
 
1630
  msgid "URL to file"
1631
  msgstr ""
1632
 
1633
  #: ../admin/settings.php:449
 
1634
  msgid "The accessing of URL files is disabled at your server (allow_url_fopen)"
1635
  msgstr ""
1636
 
1637
  #: ../admin/settings.php:455
 
1638
  msgid "Use text as watermark"
1639
  msgstr ""
1640
 
1641
  #: ../admin/settings.php:458
 
1642
  msgid "Font"
1643
  msgstr ""
1644
 
1645
  #: ../admin/settings.php:467
 
1646
  msgid "This function will not work, cause you need the FreeType library"
1647
  msgstr ""
1648
 
1649
  #: ../admin/settings.php:469
 
1650
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
1651
  msgstr ""
1652
 
1653
  #: ../admin/settings.php:473
 
1654
  msgid "Size"
1655
  msgstr ""
1656
 
1657
  #: ../admin/settings.php:477
 
1658
  msgid "Color"
1659
  msgstr ""
1660
 
1661
  #: ../admin/settings.php:479
 
1662
  msgid "(hex w/o #)"
1663
  msgstr ""
1664
 
1665
  #: ../admin/settings.php:482
 
1666
  msgid "Text"
1667
  msgstr ""
1668
 
1669
  #: ../admin/settings.php:486
 
1670
  msgid "Opaque"
1671
  msgstr ""
1672
 
1673
  #: ../admin/settings.php:504
 
1674
  msgid "The imagerotator.swf is not in the nggallery folder, the slideshow will not work."
1675
  msgstr ""
1676
 
1677
  #: ../admin/settings.php:505
1678
- msgid "The settings are used in the JW Image Rotator Version 3.13 ."
 
1679
  msgstr ""
1680
 
1681
  #: ../admin/settings.php:506
 
1682
  msgid "See more information for the Flash Player on the web page"
1683
  msgstr ""
1684
 
1685
  #: ../admin/settings.php:509
 
1686
  msgid "Default size (W x H)"
1687
  msgstr ""
1688
 
1689
  #: ../admin/settings.php:514
 
1690
  msgid "Shuffle mode"
1691
  msgstr ""
1692
 
1693
  #: ../admin/settings.php:518
 
1694
  msgid "Show next image on click"
1695
  msgstr ""
1696
 
1697
  #: ../admin/settings.php:522
 
1698
  msgid "Show navigation bar"
1699
  msgstr ""
1700
 
1701
  #: ../admin/settings.php:526
 
1702
  msgid "Show loading icon"
1703
  msgstr ""
1704
 
1705
  #: ../admin/settings.php:530
 
1706
  msgid "Use watermark logo"
1707
  msgstr ""
1708
 
1709
  #: ../admin/settings.php:532
 
1710
  msgid "You can change the logo at the watermark settings"
1711
  msgstr ""
1712
 
1713
  #: ../admin/settings.php:535
 
1714
  msgid "Stretch image"
1715
  msgstr ""
1716
 
1717
  #: ../admin/settings.php:538
 
1718
  msgid "true"
1719
  msgstr ""
1720
 
1721
  #: ../admin/settings.php:539
 
1722
  msgid "false"
1723
  msgstr ""
1724
 
1725
  #: ../admin/settings.php:540
 
1726
  msgid "fit"
1727
  msgstr ""
1728
 
1729
  #: ../admin/settings.php:541
 
1730
  msgid "none"
1731
  msgstr ""
1732
 
1733
  #: ../admin/settings.php:546
 
1734
  msgid "Duration time"
1735
  msgstr ""
1736
 
1737
  #: ../admin/settings.php:547
 
1738
  msgid "sec."
1739
  msgstr ""
1740
 
1741
  #: ../admin/settings.php:550
 
1742
  msgid "Transition / Fade effect"
1743
  msgstr ""
1744
 
1745
  #: ../admin/settings.php:553
 
1746
  msgid "fade"
1747
  msgstr ""
1748
 
1749
  #: ../admin/settings.php:554
 
1750
  msgid "bgfade"
1751
  msgstr ""
1752
 
1753
  #: ../admin/settings.php:555
 
1754
  msgid "slowfade"
1755
  msgstr ""
1756
 
1757
  #: ../admin/settings.php:556
 
1758
  msgid "circles"
1759
  msgstr ""
1760
 
1761
  #: ../admin/settings.php:557
 
1762
  msgid "bubbles"
1763
  msgstr ""
1764
 
1765
  #: ../admin/settings.php:558
 
1766
  msgid "blocks"
1767
  msgstr ""
1768
 
1769
  #: ../admin/settings.php:559
 
1770
  msgid "fluids"
1771
  msgstr ""
1772
 
1773
  #: ../admin/settings.php:560
 
1774
  msgid "flash"
1775
  msgstr ""
1776
 
1777
  #: ../admin/settings.php:561
 
1778
  msgid "lines"
1779
  msgstr ""
1780
 
1781
  #: ../admin/settings.php:566
 
1782
  msgid "Use slow zooming effect"
1783
  msgstr ""
1784
 
1785
  #: ../admin/settings.php:570
 
1786
  msgid "Background Color"
1787
  msgstr ""
1788
 
1789
  #: ../admin/settings.php:575
 
1790
  msgid "Texts / Buttons Color"
1791
  msgstr ""
1792
 
1793
  #: ../admin/settings.php:580
 
1794
  msgid "Rollover / Active Color"
1795
  msgstr ""
1796
 
1797
  #: ../admin/settings.php:585
 
1798
  msgid "Screen Color"
1799
  msgstr ""
1800
 
1801
  #: ../admin/settings.php:590
 
1802
  msgid "Background music (URL)"
1803
  msgstr ""
1804
 
1805
  #: ../admin/settings.php:594
 
1806
  msgid "Try XHTML validation (with CDATA)"
1807
  msgstr ""
1808
 
1809
  #: ../admin/settings.php:596
 
1810
  msgid "Important : Could causes problem at some browser. Please recheck your page."
1811
  msgstr ""
1812
 
1813
  #: ../admin/setup.php:12
 
1814
  msgid "Reset all settings to default parameter"
1815
  msgstr ""
1816
 
1817
  #: ../admin/setup.php:37
 
1818
  msgid "Uninstall sucessfull ! Now delete the plugin and enjoy your life ! Good luck !"
1819
  msgstr ""
1820
 
1821
  #: ../admin/setup.php:46
 
1822
  msgid "Reset options"
1823
  msgstr ""
1824
 
1825
  #: ../admin/setup.php:49
 
1826
  msgid "Reset all options/settings to the default installation."
1827
  msgstr ""
1828
 
1829
  #: ../admin/setup.php:50
 
1830
  msgid "Reset settings"
1831
  msgstr ""
1832
 
1833
  #: ../admin/setup.php:50
 
1834
  msgid ""
1835
  "Reset all options to default settings ?\\n"
1836
  "\\n"
@@ -1838,34 +2253,42 @@ msgid ""
1838
  msgstr ""
1839
 
1840
  #: ../admin/setup.php:55
 
1841
  msgid "Uninstall plugin tables"
1842
  msgstr ""
1843
 
1844
  #: ../admin/setup.php:58
 
1845
  msgid "You don't like NextGEN Gallery ?"
1846
  msgstr ""
1847
 
1848
  #: ../admin/setup.php:59
 
1849
  msgid "No problem, before you deactivate this plugin press the Uninstall Button, because deactivating NextGEN Gallery does not remove any data that may have been created. "
1850
  msgstr ""
1851
 
1852
  #: ../admin/setup.php:60
 
1853
  msgid "WARNING:"
1854
  msgstr ""
1855
 
1856
  #: ../admin/setup.php:61
 
1857
  msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to backup all the tables first. NextGEN gallery is stored in the tables"
1858
  msgstr ""
1859
 
1860
  #: ../admin/setup.php:61
 
1861
  msgid "and"
1862
  msgstr ""
1863
 
1864
  #: ../admin/setup.php:63
 
1865
  msgid "Uninstall plugin"
1866
  msgstr ""
1867
 
1868
  #: ../admin/setup.php:63
 
1869
  msgid ""
1870
  "You are about to Uninstall this plugin from WordPress.\\n"
1871
  "This action is not reversible.\\n"
@@ -1875,81 +2298,124 @@ msgstr ""
1875
 
1876
  #: ../admin/showmeta.php:7
1877
  #: ../admin/showmeta.php:10
 
 
1878
  msgid "Cheatin&#8217; uh?"
1879
  msgstr ""
1880
 
1881
  #: ../admin/showmeta.php:42
 
1882
  msgid "EXIF Data"
1883
  msgstr ""
1884
 
1885
  #: ../admin/showmeta.php:47
1886
  #: ../admin/showmeta.php:71
1887
  #: ../admin/showmeta.php:95
 
 
 
1888
  msgid "Tag"
1889
  msgstr ""
1890
 
1891
  #: ../admin/showmeta.php:48
1892
  #: ../admin/showmeta.php:72
1893
  #: ../admin/showmeta.php:96
 
 
 
1894
  msgid "Value"
1895
  msgstr ""
1896
 
1897
  #: ../admin/showmeta.php:61
 
1898
  msgid "No exif data"
1899
  msgstr ""
1900
 
1901
  #: ../admin/showmeta.php:67
 
1902
  msgid "IPTC Data"
1903
  msgstr ""
1904
 
1905
  #: ../admin/showmeta.php:91
 
1906
  msgid "XMP Data"
1907
  msgstr ""
1908
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1909
  #: ../admin/style.php:34
 
1910
  msgid "You do not have sufficient permissions to edit templates for this blog."
1911
  msgstr ""
1912
 
1913
  #: ../admin/style.php:43
 
1914
  msgid "CSS file successfully updated"
1915
  msgstr ""
1916
 
1917
  #: ../admin/style.php:66
 
1918
  msgid "Activate and use style sheet:"
1919
  msgstr ""
1920
 
1921
  #: ../admin/style.php:85
 
1922
  msgid "Activate"
1923
  msgstr ""
1924
 
1925
  #: ../admin/style.php:93
 
1926
  #, php-format
1927
  msgid "Editing <strong>%s</strong>"
1928
  msgstr ""
1929
 
1930
  #: ../admin/style.php:95
 
1931
  #, php-format
1932
  msgid "Browsing <strong>%s</strong>"
1933
  msgstr ""
1934
 
1935
  #: ../admin/style.php:100
 
1936
  #: ../lib/nggmeta.lib.php:374
1937
  msgid "Author"
1938
  msgstr ""
1939
 
1940
  #: ../admin/style.php:101
 
1941
  msgid "Version"
1942
  msgstr ""
1943
 
1944
  #: ../admin/style.php:118
 
1945
  msgid "Update File &raquo;"
1946
  msgstr ""
1947
 
1948
  #: ../admin/style.php:122
 
1949
  msgid "If this file were writable you could edit it."
1950
  msgstr ""
1951
 
1952
  #: ../admin/style.php:127
 
1953
  msgid "Oops, no such file exists! Double check the name and try again, merci."
1954
  msgstr ""
1955
 
@@ -1958,7 +2424,9 @@ msgid "Select a gallery"
1958
  msgstr ""
1959
 
1960
  #: ../admin/uploadtab.php:107
 
1961
  #: ../tinymce/window.php:49
 
1962
  msgid "No gallery"
1963
  msgstr ""
1964
 
@@ -1977,50 +2445,62 @@ msgid "Delete image ?"
1977
  msgstr ""
1978
 
1979
  #: ../admin/wpmu.php:41
 
1980
  msgid "General WordPress MU Settings"
1981
  msgstr ""
1982
 
1983
  #: ../admin/wpmu.php:50
 
1984
  msgid "This is the default path for all blogs. With the placeholder %BLOG_ID% you can organize the folder structure better. The path must end with a /."
1985
  msgstr ""
1986
 
1987
  #: ../admin/wpmu.php:53
 
1988
  msgid "Enable upload quota check"
1989
  msgstr ""
1990
 
1991
  #: ../admin/wpmu.php:55
 
1992
  msgid "Should work if the gallery is bellow the blog.dir"
1993
  msgstr ""
1994
 
1995
  #: ../admin/wpmu.php:59
 
1996
  msgid "Enable zip upload option"
1997
  msgstr ""
1998
 
1999
  #: ../admin/wpmu.php:61
 
2000
  msgid "Allow users to upload zip folders."
2001
  msgstr ""
2002
 
2003
  #: ../admin/wpmu.php:65
 
2004
  msgid "Enable style selection"
2005
  msgstr ""
2006
 
2007
  #: ../admin/wpmu.php:67
 
2008
  msgid "Allow users to choose a style for the gallery."
2009
  msgstr ""
2010
 
2011
  #: ../admin/wpmu.php:71
 
2012
  msgid "Enable roles/capabilities"
2013
  msgstr ""
2014
 
2015
  #: ../admin/wpmu.php:73
 
2016
  msgid "Allow users to change the roles for other blog authors."
2017
  msgstr ""
2018
 
2019
  #: ../admin/wpmu.php:77
 
2020
  msgid "Default style"
2021
  msgstr ""
2022
 
2023
  #: ../admin/wpmu.php:94
 
2024
  msgid "Choose the default style for the galleries."
2025
  msgstr ""
2026
 
@@ -2064,7 +2544,8 @@ msgid "Send to editor &raquo;"
2064
  msgstr ""
2065
 
2066
  #: ../admin/js/uploadtab.js.php:156
2067
- #: ../tinymce/window.php:150
 
2068
  msgid "Insert"
2069
  msgstr ""
2070
 
@@ -2079,6 +2560,89 @@ msgid ""
2079
  "Click ok to delete or cancel to go back."
2080
  msgstr ""
2081
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2082
  #: ../lib/nggmeta.lib.php:83
2083
  msgid " mm"
2084
  msgstr ""
@@ -2205,67 +2769,74 @@ msgid "Format"
2205
  msgstr ""
2206
 
2207
  #: ../tinymce/window.php:47
 
2208
  msgid "Select gallery"
2209
  msgstr ""
2210
 
2211
  #: ../tinymce/window.php:61
2212
  #: ../tinymce/window.php:88
 
 
2213
  msgid "Show as"
2214
  msgstr ""
2215
 
2216
  #: ../tinymce/window.php:62
 
2217
  msgid "Image list"
2218
  msgstr ""
2219
 
2220
  #: ../tinymce/window.php:76
 
2221
  msgid "No album"
2222
  msgstr ""
2223
 
2224
  #: ../tinymce/window.php:89
 
2225
  msgid "Extended version"
2226
  msgstr ""
2227
 
2228
  #: ../tinymce/window.php:90
 
2229
  msgid "Compact version"
2230
  msgstr ""
2231
 
2232
  #: ../tinymce/window.php:101
 
2233
  msgid "Select picture"
2234
  msgstr ""
2235
 
2236
  #: ../tinymce/window.php:103
 
2237
  msgid "No picture"
2238
  msgstr ""
2239
 
2240
  #: ../tinymce/window.php:115
 
2241
  msgid "Width x Height"
2242
  msgstr ""
2243
 
2244
  #: ../tinymce/window.php:119
 
2245
  msgid "Effect"
2246
  msgstr ""
2247
 
2248
  #: ../tinymce/window.php:122
 
2249
  msgid "No effect"
2250
  msgstr ""
2251
 
2252
  #: ../tinymce/window.php:124
 
2253
  msgid "Web 2.0"
2254
  msgstr ""
2255
 
2256
  #: ../tinymce/window.php:129
 
2257
  msgid "Float"
2258
  msgstr ""
2259
 
2260
  #: ../tinymce/window.php:132
 
2261
  msgid "No float"
2262
  msgstr ""
2263
 
2264
- #: ../tinymce/window.php:133
2265
- msgid "Left"
2266
- msgstr ""
2267
-
2268
- #: ../tinymce/window.php:134
2269
- msgid "Right"
2270
- msgstr ""
2271
-
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2008-03-18 19:52+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
  "X-Poedit-SearchPath-1: ..\n"
17
 
18
+ #: ../nggallery.php:53
19
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
20
  msgstr ""
21
 
22
+ #: ../nggfunctions.php:425
23
+ #: ../nggfunctions.php:440
24
  msgid "Watch gallery"
25
  msgstr ""
26
 
27
+ #: ../nggfunctions.php:434
28
+ #: ../nggfunctions.php:446
29
+ #: ../nggfunctions.php:729
30
  msgid "Photos"
31
  msgstr ""
32
 
33
+ #: ../nggfunctions.php:521
34
  msgid "Back"
35
  msgstr ""
36
 
37
+ #: ../nggfunctions.php:525
38
  msgid "Next"
39
  msgstr ""
40
 
41
+ #: ../nggfunctions.php:528
42
  #: ../admin/manage.php:85
43
+ #: ../admin/wp25/manage.php:85
44
  #: ../tinymce/window.php:37
45
+ #: ../tinymce3/window.php:37
46
  msgid "Picture"
47
  msgstr ""
48
 
49
+ #: ../nggfunctions.php:528
50
  msgid "from"
51
  msgstr ""
52
 
53
+ #: ../nggfunctions.php:699
54
  msgid "Overview"
55
  msgstr ""
56
 
57
+ #: ../ngginstall.php:16
58
  msgid "Sorry, NextGEN Gallery works only with a role called administrator"
59
  msgstr ""
60
 
61
+ #: ../ngginstall.php:124
62
  msgid "NextGEN Gallery : Tables could not created, please check your database settings"
63
  msgstr ""
64
 
65
+ #: ../ngginstall.php:196
66
  msgid "[Show as slideshow]"
67
  msgstr ""
68
 
69
+ #: ../ngginstall.php:197
70
  msgid "[Show picture list]"
71
  msgstr ""
72
 
118
 
119
  #: ../nggwidget.php:311
120
  #: ../admin/settings.php:104
121
+ #: ../admin/settings.php:297
122
+ #: ../admin/wp25/settings.php:99
123
+ #: ../admin/wp25/settings.php:285
124
  msgid "Thumbnails"
125
  msgstr ""
126
 
130
 
131
  #: ../nggwidget.php:318
132
  #: ../admin/settings.php:562
133
+ #: ../admin/wp25/settings.php:542
134
  msgid "random"
135
  msgstr ""
136
 
167
  msgstr ""
168
 
169
  #: ../admin/about.php:9
170
+ #: ../admin/wp25/about.php:9
171
  msgid "Copyright notes / Credits"
172
  msgstr ""
173
 
174
  #: ../admin/about.php:11
175
+ #: ../admin/wp25/about.php:10
176
  msgid "NextGEN DEV Team"
177
  msgstr ""
178
 
179
  #: ../admin/about.php:12
180
+ #: ../admin/wp25/about.php:11
181
  msgid "This plugin is primarily developed, maintained, supported, documented by"
182
  msgstr ""
183
 
184
  #: ../admin/about.php:12
185
+ #: ../admin/wp25/about.php:11
186
  msgid "There are many other folks who have made contributions to this project :"
187
  msgstr ""
188
 
189
  #: ../admin/about.php:14
190
+ #: ../admin/wp25/about.php:13
191
  msgid "Contributors / Tribute to"
192
  msgstr ""
193
 
194
  #: ../admin/about.php:15
195
+ #: ../admin/wp25/about.php:14
196
  msgid "If you study the code of this plugin, you will find out that we mixed a lot of good already existing code and ideas together."
197
  msgstr ""
198
 
199
  #: ../admin/about.php:16
200
+ #: ../admin/wp25/about.php:15
201
  msgid "So, we would like to thank the following people for their pioneer work (without this work it's impossible to create such a plugin so fast)"
202
  msgstr ""
203
 
204
  #: ../admin/about.php:18
205
+ #: ../admin/wp25/about.php:17
206
  msgid "for their great documented code"
207
  msgstr ""
208
 
209
  #: ../admin/about.php:19
210
+ #: ../admin/wp25/about.php:18
211
  msgid "for jQuery, which is the best Web2.0 framework"
212
  msgstr ""
213
 
214
  #: ../admin/about.php:20
215
+ #: ../admin/wp25/about.php:19
216
  msgid "for the fantastic PHP Thumbnail Class"
217
  msgstr ""
218
 
219
  #: ../admin/about.php:21
220
+ #: ../admin/wp25/about.php:20
221
  msgid "for PclZip , a PHP library that manage ZIP archives"
222
  msgstr ""
223
 
224
  #: ../admin/about.php:22
225
+ #: ../admin/wp25/about.php:21
226
  msgid "for a lot of very useful plugins and ideas"
227
  msgstr ""
228
 
229
  #: ../admin/about.php:23
230
+ #: ../admin/wp25/about.php:22
231
+ msgid "for Simple:Press Forum, it saved me a lot of time"
232
  msgstr ""
233
 
234
  #: ../admin/about.php:24
235
+ #: ../admin/wp25/about.php:23
236
  msgid "for the best Media Flash Scripts on earth"
237
  msgstr ""
238
 
239
  #: ../admin/about.php:25
240
+ #: ../admin/wp25/about.php:24
241
  msgid "for the Watermark plugin"
242
  msgstr ""
243
 
244
  #: ../admin/about.php:27
245
+ #: ../admin/wp25/about.php:26
246
  msgid "If you didn't find your name on this list and there is some code which I integrate in my plugin, don't hesitate to send me a mail."
247
  msgstr ""
248
 
249
  #: ../admin/about.php:28
250
+ #: ../admin/wp25/about.php:27
251
  msgid "How to support ?"
252
  msgstr ""
253
 
254
  #: ../admin/about.php:29
255
+ #: ../admin/wp25/about.php:28
256
  msgid "There exist several ways to contribute, help or support us in this work. Non of them are mandatory."
257
  msgstr ""
258
 
259
  #: ../admin/about.php:31
260
+ #: ../admin/wp25/about.php:30
261
  msgid "Send us bugfixes / code changes"
262
  msgstr ""
263
 
264
  #: ../admin/about.php:31
265
+ #: ../admin/wp25/about.php:30
266
  msgid "The most motivated support for this plugin are your ideas and brain work"
267
  msgstr ""
268
 
269
  #: ../admin/about.php:32
270
+ #: ../admin/wp25/about.php:31
271
  msgid "Translate the plugin"
272
  msgstr ""
273
 
274
  #: ../admin/about.php:32
275
+ #: ../admin/wp25/about.php:31
276
  msgid "To help people to work with this plugin, I would like to have it in all avaivable languages"
277
  msgstr ""
278
 
279
  #: ../admin/about.php:33
280
+ #: ../admin/wp25/about.php:32
281
  msgid "Donate the work via paypal"
282
  msgstr ""
283
 
284
  #: ../admin/about.php:44
285
+ #: ../admin/wp25/about.php:43
286
  msgid "No doubt a very usefull and easy motivation :-)"
287
  msgstr ""
288
 
289
  #: ../admin/about.php:46
290
+ #: ../admin/wp25/about.php:45
291
  msgid "Place a link to the plugin in your blog/webpage"
292
  msgstr ""
293
 
294
  #: ../admin/about.php:46
295
+ #: ../admin/wp25/about.php:45
296
  msgid "Yes, share and trackback is also a good support for this work "
297
  msgstr ""
298
 
299
  #: ../admin/about.php:48
300
+ #: ../admin/wp25/about.php:47
301
  msgid "Thanks!"
302
  msgstr ""
303
 
304
  #: ../admin/about.php:49
305
+ #: ../admin/wp25/about.php:48
306
  msgid "We would like to thank this people which support us in the work :"
307
  msgstr ""
308
 
309
  #: ../admin/addgallery.php:35
310
  #: ../admin/addgallery.php:51
311
+ #: ../admin/wp25/addgallery.php:35
312
+ #: ../admin/wp25/addgallery.php:51
313
  msgid "Upload failed!"
314
  msgstr ""
315
 
316
  #: ../admin/addgallery.php:56
317
+ #: ../admin/functions.php:563
318
+ #: ../admin/functions.php:652
319
+ #: ../admin/wp25/addgallery.php:56
320
+ #: ../admin/wp25/functions.php:563
321
+ #: ../admin/wp25/functions.php:652
322
  msgid "No gallery selected !"
323
  msgstr ""
324
 
325
+ #: ../admin/addgallery.php:114
326
+ #: ../admin/wp25/addgallery.php:106
327
  msgid "Image Files"
328
  msgstr ""
329
 
330
+ #: ../admin/addgallery.php:134
331
+ #: ../admin/addgallery.php:164
332
+ #: ../admin/wp25/addgallery.php:125
333
+ #: ../admin/wp25/addgallery.php:155
334
  msgid "remove"
335
  msgstr ""
336
 
337
+ #: ../admin/addgallery.php:135
338
+ #: ../admin/wp25/addgallery.php:126
339
  msgid "Browse..."
340
  msgstr ""
341
 
342
+ #: ../admin/addgallery.php:136
343
+ #: ../admin/addgallery.php:314
344
+ #: ../admin/wp25/addgallery.php:127
345
+ #: ../admin/wp25/addgallery.php:298
346
  msgid "Upload images"
347
  msgstr ""
348
 
 
349
  #: ../admin/addgallery.php:180
350
+ #: ../admin/addgallery.php:192
351
+ #: ../admin/wp25/addgallery.php:171
352
+ #: ../admin/wp25/addgallery.php:183
353
  msgid "Add new gallery"
354
  msgstr ""
355
 
356
+ #: ../admin/addgallery.php:182
357
+ #: ../admin/addgallery.php:213
358
+ #: ../admin/wp25/addgallery.php:173
359
+ #: ../admin/wp25/addgallery.php:202
360
  msgid "Upload a Zip-File"
361
  msgstr ""
362
 
363
+ #: ../admin/addgallery.php:185
364
+ #: ../admin/addgallery.php:253
365
+ #: ../admin/wp25/addgallery.php:176
366
+ #: ../admin/wp25/addgallery.php:240
367
  msgid "Import image folder"
368
  msgstr ""
369
 
370
+ #: ../admin/addgallery.php:187
371
+ #: ../admin/addgallery.php:277
372
+ #: ../admin/wp25/addgallery.php:178
373
+ #: ../admin/wp25/addgallery.php:262
374
  msgid "Upload Images"
375
  msgstr ""
376
 
377
+ #: ../admin/addgallery.php:198
378
+ #: ../admin/wp25/addgallery.php:188
379
  msgid "New Gallery"
380
  msgstr ""
381
 
382
+ #: ../admin/addgallery.php:201
383
+ #: ../admin/wp25/addgallery.php:191
384
  msgid "Create a new , empty gallery below the folder"
385
  msgstr ""
386
 
387
+ #: ../admin/addgallery.php:203
388
+ #: ../admin/wp25/addgallery.php:193
389
  msgid "Allowed characters for file and folder names are"
390
  msgstr ""
391
 
392
+ #: ../admin/addgallery.php:206
393
+ #: ../admin/wp25/addgallery.php:196
394
  msgid "Add gallery"
395
  msgstr ""
396
 
397
+ #: ../admin/addgallery.php:219
398
+ #: ../admin/wp25/addgallery.php:207
399
  msgid "Select Zip-File"
400
  msgstr ""
401
 
402
+ #: ../admin/addgallery.php:221
403
+ #: ../admin/wp25/addgallery.php:209
404
  msgid "Upload a zip file with images"
405
  msgstr ""
406
 
407
+ #: ../admin/addgallery.php:224
408
+ #: ../admin/addgallery.php:287
409
+ #: ../admin/wp25/addgallery.php:212
410
+ #: ../admin/wp25/addgallery.php:271
411
  msgid "in to"
412
  msgstr ""
413
 
414
+ #: ../admin/addgallery.php:226
415
+ #: ../admin/wp25/addgallery.php:214
416
  msgid "a new gallery"
417
  msgstr ""
418
 
419
+ #: ../admin/addgallery.php:236
420
+ #: ../admin/addgallery.php:299
421
+ #: ../admin/wp25/addgallery.php:224
422
+ #: ../admin/wp25/addgallery.php:283
423
  msgid "Note : The upload limit on your server is "
424
  msgstr ""
425
 
426
+ #: ../admin/addgallery.php:240
427
+ #: ../admin/addgallery.php:265
428
+ #: ../admin/addgallery.php:303
429
+ #: ../admin/wp25/addgallery.php:228
430
+ #: ../admin/wp25/addgallery.php:251
431
+ #: ../admin/wp25/addgallery.php:287
432
  msgid "Add Metadata :"
433
  msgstr ""
434
 
435
+ #: ../admin/addgallery.php:242
436
+ #: ../admin/addgallery.php:267
437
+ #: ../admin/addgallery.php:305
438
+ #: ../admin/wp25/addgallery.php:230
439
+ #: ../admin/wp25/addgallery.php:253
440
+ #: ../admin/wp25/addgallery.php:289
441
  msgid "Import EXIF, IPTC or XMP data (if available)"
442
  msgstr ""
443
 
444
+ #: ../admin/addgallery.php:245
445
+ #: ../admin/wp25/addgallery.php:233
446
  msgid "Start upload"
447
  msgstr ""
448
 
449
+ #: ../admin/addgallery.php:259
450
+ #: ../admin/wp25/addgallery.php:245
451
  msgid "Import from Server path:"
452
  msgstr ""
453
 
454
+ #: ../admin/addgallery.php:261
455
  msgid "Import a folder with images. Please note :"
456
  msgstr ""
457
 
458
+ #: ../admin/addgallery.php:262
459
  msgid "For safe-mode = ON you need to add the subfolder thumbs manually"
460
  msgstr ""
461
 
462
+ #: ../admin/addgallery.php:270
463
+ #: ../admin/wp25/addgallery.php:256
464
  msgid "Import folder"
465
  msgstr ""
466
 
467
+ #: ../admin/addgallery.php:283
468
+ #: ../admin/wp25/addgallery.php:267
469
  msgid "Upload image"
470
  msgstr ""
471
 
472
+ #: ../admin/addgallery.php:289
473
+ #: ../admin/wp25/addgallery.php:273
474
  msgid "Choose gallery"
475
  msgstr ""
476
 
477
+ #: ../admin/addgallery.php:310
478
+ #: ../admin/wp25/addgallery.php:294
479
+ msgid "The batch upload requires Adobe Flash 9, disable it if you have problems"
480
+ msgstr ""
481
+
482
+ #: ../admin/addgallery.php:310
483
+ #: ../admin/wp25/addgallery.php:294
484
+ msgid "Disable flash upload"
485
+ msgstr ""
486
+
487
+ #: ../admin/addgallery.php:312
488
+ #: ../admin/wp25/addgallery.php:296
489
+ msgid "Upload multiple files at once by ctrl/shift-selecting in dialog"
490
+ msgstr ""
491
+
492
+ #: ../admin/addgallery.php:312
493
+ #: ../admin/wp25/addgallery.php:296
494
+ msgid "Enable flash based upload"
495
+ msgstr ""
496
+
497
+ #: ../admin/admin.php:64
498
+ #: ../admin/functions.php:78
499
+ #: ../admin/functions.php:82
500
  #: ../admin/functions.php:128
501
  #: ../admin/manage.php:64
502
+ #: ../admin/manage.php:434
503
  #: ../admin/settings.php:106
504
  #: ../admin/uploadtab.php:36
505
+ #: ../admin/wp25/admin.php:72
506
+ #: ../admin/wp25/functions.php:78
507
+ #: ../admin/wp25/functions.php:82
508
+ #: ../admin/wp25/functions.php:128
509
+ #: ../admin/wp25/manage.php:64
510
+ #: ../admin/wp25/manage.php:402
511
+ #: ../admin/wp25/settings.php:101
512
  #: ../tinymce/window.php:35
513
+ #: ../tinymce3/window.php:35
514
  msgid "Gallery"
515
  msgstr ""
516
 
517
+ #: ../admin/admin.php:65
518
+ #: ../admin/wp25/admin.php:73
519
  msgid "Add Gallery"
520
  msgstr ""
521
 
522
+ #: ../admin/admin.php:66
523
+ #: ../admin/wp25/admin.php:74
524
  msgid "Manage Gallery"
525
  msgstr ""
526
 
527
+ #: ../admin/admin.php:67
528
+ #: ../admin/wp25/admin.php:75
529
  #: ../tinymce/window.php:36
530
+ #: ../tinymce3/window.php:36
531
  msgid "Album"
532
  msgstr ""
533
 
534
+ #: ../admin/admin.php:68
535
+ #: ../admin/wp25/admin.php:76
536
  msgid "Options"
537
  msgstr ""
538
 
539
+ #: ../admin/admin.php:70
540
+ #: ../admin/wp25/admin.php:78
541
  msgid "Style"
542
  msgstr ""
543
 
544
+ #: ../admin/admin.php:71
545
+ #: ../admin/wp25/admin.php:79
546
  msgid "Setup Gallery"
547
  msgstr ""
548
 
549
+ #: ../admin/admin.php:71
550
+ #: ../admin/wp25/admin.php:79
551
  msgid "Setup"
552
  msgstr ""
553
 
554
+ #: ../admin/admin.php:73
555
+ #: ../admin/wp25/admin.php:81
556
  msgid "Roles"
557
  msgstr ""
558
 
559
+ #: ../admin/admin.php:74
560
+ #: ../admin/wp25/admin.php:82
 
 
 
 
561
  msgid "About this Gallery"
562
  msgstr ""
563
 
564
+ #: ../admin/admin.php:74
565
+ #: ../admin/wp25/admin.php:82
566
  msgid "About"
567
  msgstr ""
568
 
569
+ #: ../admin/admin.php:76
570
+ #: ../admin/wp25/admin.php:84
571
+ #: ../admin/wp25/media-upload.php:11
572
  msgid "NextGEN Gallery"
573
  msgstr ""
574
 
575
+ #: ../admin/album.php:19
576
+ #: ../admin/album.php:37
577
+ #: ../admin/wp25/album.php:19
578
+ #: ../admin/wp25/album.php:36
579
  msgid "Update Successfully"
580
  msgstr ""
581
 
582
+ #: ../admin/album.php:45
583
+ #: ../admin/wp25/album.php:44
584
  msgid "Album deleted"
585
  msgstr ""
586
 
587
+ #: ../admin/album.php:124
588
+ #: ../admin/wp25/album.php:119
589
  msgid "Manage Albums"
590
  msgstr ""
591
 
592
+ #: ../admin/album.php:130
593
+ #: ../admin/wp25/album.php:125
594
  #: ../tinymce/window.php:74
595
+ #: ../tinymce3/window.php:74
596
  msgid "Select album"
597
  msgstr ""
598
 
599
+ #: ../admin/album.php:133
600
+ #: ../admin/wp25/album.php:128
601
  msgid "No album selected"
602
  msgstr ""
603
 
604
+ #: ../admin/album.php:146
605
+ #: ../admin/wp25/album.php:141
606
  msgid "Add new album"
607
  msgstr ""
608
 
609
+ #: ../admin/album.php:150
610
+ #: ../admin/manage.php:309
611
+ #: ../admin/manage.php:580
612
+ #: ../admin/wp25/album.php:146
613
+ #: ../admin/wp25/manage.php:314
614
+ #: ../admin/wp25/manage.php:556
615
  msgid "Delete"
616
  msgstr ""
617
 
618
+ #: ../admin/album.php:150
619
+ #: ../admin/wp25/album.php:146
620
  msgid "Delete album ?"
621
  msgstr ""
622
 
623
+ #: ../admin/album.php:152
624
+ #: ../admin/settings.php:166
625
+ #: ../admin/settings.php:206
626
+ #: ../admin/settings.php:253
627
  #: ../admin/settings.php:333
628
  #: ../admin/settings.php:380
629
  #: ../admin/settings.php:492
630
  #: ../admin/settings.php:600
631
  #: ../admin/wpmu.php:98
632
+ #: ../admin/wp25/album.php:148
633
+ #: ../admin/wp25/settings.php:160
634
+ #: ../admin/wp25/settings.php:198
635
+ #: ../admin/wp25/settings.php:243
636
+ #: ../admin/wp25/settings.php:321
637
+ #: ../admin/wp25/settings.php:366
638
+ #: ../admin/wp25/settings.php:472
639
+ #: ../admin/wp25/settings.php:580
640
+ #: ../admin/wp25/wpmu.php:98
641
  msgid "Update"
642
  msgstr ""
643
 
644
+ #: ../admin/album.php:160
645
+ #: ../admin/wp25/album.php:157
646
  msgid "[Show all]"
647
  msgstr ""
648
 
649
+ #: ../admin/album.php:161
650
+ #: ../admin/wp25/album.php:158
651
  msgid "[Maximize]"
652
  msgstr ""
653
 
654
+ #: ../admin/album.php:162
655
+ #: ../admin/wp25/album.php:159
656
  msgid "[Minimize]"
657
  msgstr ""
658
 
659
+ #: ../admin/album.php:164
660
+ #: ../admin/wp25/album.php:161
661
  msgid "After you create and select a album, you can drag and drop a gallery into your album below"
662
  msgstr ""
663
 
664
+ #: ../admin/album.php:171
665
+ #: ../admin/wp25/album.php:168
666
  msgid "Select Gallery"
667
  msgstr ""
668
 
669
+ #: ../admin/album.php:210
670
+ #: ../admin/wp25/album.php:207
671
  msgid "Album Page ID"
672
  msgstr ""
673
 
674
+ #: ../admin/album.php:222
675
+ #: ../admin/wp25/album.php:219
676
  msgid "No album selected!"
677
  msgstr ""
678
 
679
+ #: ../admin/album.php:258
680
+ #: ../admin/manage.php:283
681
+ #: ../admin/manage.php:535
682
+ #: ../admin/wp25/album.php:255
683
+ #: ../admin/wp25/manage.php:288
684
+ #: ../admin/wp25/manage.php:511
685
  msgid "ID"
686
  msgstr ""
687
 
688
+ #: ../admin/album.php:259
689
+ #: ../admin/wp25/album.php:256
690
  msgid "Name"
691
  msgstr ""
692
 
693
+ #: ../admin/album.php:260
694
+ #: ../admin/manage.php:285
695
+ #: ../admin/manage.php:446
 
 
 
696
  #: ../admin/js/uploadtab.js.php:109
697
+ #: ../admin/wp25/album.php:257
698
+ #: ../admin/wp25/manage.php:290
699
+ #: ../admin/wp25/manage.php:415
700
  #: ../lib/nggmeta.lib.php:373
701
  msgid "Title"
702
  msgstr ""
703
 
704
+ #: ../admin/album.php:261
705
+ #: ../admin/wp25/album.php:258
706
  msgid "Page"
707
  msgstr ""
708
 
709
  #: ../admin/functions.php:20
710
+ #: ../admin/wp25/functions.php:20
711
  msgid "No valid gallery name!"
712
  msgstr ""
713
 
714
  #: ../admin/functions.php:27
715
  #: ../admin/functions.php:36
716
+ #: ../admin/functions.php:50
717
+ #: ../admin/functions.php:102
718
+ #: ../admin/functions.php:109
719
+ #: ../admin/wp25/functions.php:27
720
+ #: ../admin/wp25/functions.php:36
721
+ #: ../admin/wp25/functions.php:50
722
+ #: ../admin/wp25/functions.php:102
723
+ #: ../admin/wp25/functions.php:109
724
  msgid "Directory"
725
  msgstr ""
726
 
727
  #: ../admin/functions.php:27
728
+ #: ../admin/wp25/functions.php:27
729
  msgid "didn't exist. Please create first the main gallery folder "
730
  msgstr ""
731
 
732
  #: ../admin/functions.php:28
733
  #: ../admin/functions.php:37
734
+ #: ../admin/wp25/functions.php:28
735
+ #: ../admin/wp25/functions.php:37
736
  msgid "Check this link, if you didn't know how to set the permission :"
737
  msgstr ""
738
 
739
  #: ../admin/functions.php:36
740
+ #: ../admin/functions.php:50
741
+ #: ../admin/wp25/functions.php:36
742
+ #: ../admin/wp25/functions.php:50
743
  msgid "is not writeable !"
744
  msgstr ""
745
 
746
  #: ../admin/functions.php:45
747
+ #: ../admin/functions.php:55
748
+ #: ../admin/functions.php:525
749
+ #: ../admin/wp25/functions.php:45
750
+ #: ../admin/wp25/functions.php:55
751
+ #: ../admin/wp25/functions.php:525
752
  #: ../lib/nggallery.lib.php:297
753
  msgid "Unable to create directory "
754
  msgstr ""
755
 
756
+ #: ../admin/functions.php:59
757
+ #: ../admin/wp25/functions.php:59
758
  msgid "The server setting Safe-Mode is on !"
759
  msgstr ""
760
 
761
+ #: ../admin/functions.php:60
762
+ #: ../admin/wp25/functions.php:60
763
  msgid "If you have problems, please create directory"
764
  msgstr ""
765
 
766
+ #: ../admin/functions.php:61
767
+ #: ../admin/wp25/functions.php:61
768
  msgid "and the thumbnails directory"
769
  msgstr ""
770
 
771
+ #: ../admin/functions.php:61
772
+ #: ../admin/wp25/functions.php:61
773
  msgid "with permission 777 manually !"
774
  msgstr ""
775
 
776
+ #: ../admin/functions.php:78
777
+ #: ../admin/wp25/functions.php:78
778
  msgid "already exists"
779
  msgstr ""
780
 
781
+ #: ../admin/functions.php:82
782
  #: ../admin/functions.php:128
783
+ #: ../admin/wp25/functions.php:82
784
+ #: ../admin/wp25/functions.php:128
785
  msgid "successfully created!"
786
  msgstr ""
787
 
788
+ #: ../admin/functions.php:82
789
+ #: ../admin/wp25/functions.php:82
790
  msgid "You can show this gallery with the tag"
791
  msgstr ""
792
 
793
+ #: ../admin/functions.php:102
794
+ #: ../admin/wp25/functions.php:102
795
  msgid "doesn&#96;t exist!"
796
  msgstr ""
797
 
798
+ #: ../admin/functions.php:109
799
+ #: ../admin/wp25/functions.php:109
800
  msgid "contains no pictures"
801
  msgstr ""
802
 
803
  #: ../admin/functions.php:125
804
+ #: ../admin/wp25/functions.php:125
805
  msgid "Database error. Could not add gallery!"
806
  msgstr ""
807
 
808
  #: ../admin/functions.php:144
809
+ #: ../admin/wp25/functions.php:144
810
  msgid " picture(s) successfully added"
811
  msgstr ""
812
 
813
+ #: ../admin/functions.php:175
814
+ #: ../admin/functions.php:224
815
+ #: ../admin/functions.php:287
816
+ #: ../admin/wp25/functions.php:175
817
+ #: ../admin/wp25/functions.php:224
818
+ #: ../admin/wp25/functions.php:287
819
  msgid "Running... Please wait"
820
  msgstr ""
821
 
822
+ #: ../admin/functions.php:176
823
+ #: ../admin/manage.php:510
824
+ #: ../admin/wp25/functions.php:176
825
+ #: ../admin/wp25/manage.php:484
826
  msgid "Resize images"
827
  msgstr ""
828
 
829
+ #: ../admin/functions.php:200
830
+ #: ../admin/wp25/functions.php:200
831
  msgid " : Image resized..."
832
  msgstr ""
833
 
834
+ #: ../admin/functions.php:209
835
+ #: ../admin/functions.php:266
836
+ #: ../admin/wp25/functions.php:209
837
+ #: ../admin/wp25/functions.php:266
838
  msgid "Some pictures are not writeable :"
839
  msgstr ""
840
 
841
+ #: ../admin/functions.php:225
842
+ #: ../admin/manage.php:508
843
+ #: ../admin/wp25/functions.php:225
844
+ #: ../admin/wp25/manage.php:482
845
  msgid "Set watermark"
846
  msgstr ""
847
 
848
+ #: ../admin/functions.php:257
849
+ #: ../admin/wp25/functions.php:257
850
  msgid " : Watermark created..."
851
  msgstr ""
852
 
853
+ #: ../admin/functions.php:288
854
+ #: ../admin/manage.php:509
855
+ #: ../admin/wp25/functions.php:288
856
+ #: ../admin/wp25/manage.php:483
857
  msgid "Create new thumbnails"
858
  msgstr ""
859
 
860
+ #: ../admin/functions.php:355
861
+ #: ../admin/wp25/functions.php:355
862
  msgid " : Thumbnail created..."
863
  msgstr ""
864
 
865
+ #: ../admin/functions.php:360
866
+ #: ../admin/wp25/functions.php:360
867
  msgid "Follow thumbnails could not created."
868
  msgstr ""
869
 
870
+ #: ../admin/functions.php:361
871
+ #: ../admin/wp25/functions.php:361
872
  msgid "Some thumbnails are not writeable :"
873
  msgstr ""
874
 
875
+ #: ../admin/functions.php:460
876
+ #: ../admin/wp25/functions.php:460
877
  msgid "The Zip-file is too large. Exceed Memory limit !"
878
  msgstr ""
879
 
880
+ #: ../admin/functions.php:501
881
+ #: ../admin/wp25/functions.php:501
882
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
883
  msgstr ""
884
 
885
+ #: ../admin/functions.php:520
886
+ #: ../admin/wp25/functions.php:520
887
  #, php-format
888
  msgid "Unable to create directory %s. Is its parent directory writable by the server?"
889
  msgstr ""
890
 
891
+ #: ../admin/functions.php:535
892
+ #: ../admin/wp25/functions.php:535
893
  msgid "Zip-File successfully unpacked"
894
  msgstr ""
895
 
896
  #: ../admin/functions.php:571
897
+ #: ../admin/functions.php:681
898
+ #: ../admin/wp25/functions.php:571
899
+ #: ../admin/wp25/functions.php:681
 
 
 
900
  msgid "Failure in database, no gallery path set !"
901
  msgstr ""
902
 
903
+ #: ../admin/functions.php:592
904
+ #: ../admin/functions.php:674
905
+ #: ../admin/wp25/functions.php:592
906
+ #: ../admin/wp25/functions.php:674
907
  msgid "is no valid image file!"
908
  msgstr ""
909
 
910
+ #: ../admin/functions.php:606
911
+ #: ../admin/wp25/functions.php:606
912
  #, php-format
913
  msgid "Unable to write to directory %s. Is this directory writable by the server?"
914
  msgstr ""
915
 
916
+ #: ../admin/functions.php:613
917
+ #: ../admin/functions.php:698
918
+ #: ../admin/wp25/functions.php:613
919
+ #: ../admin/wp25/functions.php:698
920
  msgid "Error, the file could not moved to : "
921
  msgstr ""
922
 
923
+ #: ../admin/functions.php:618
924
+ #: ../admin/functions.php:702
925
+ #: ../admin/wp25/functions.php:618
926
+ #: ../admin/wp25/functions.php:702
927
  msgid "Error, the file permissions could not set"
928
  msgstr ""
929
 
930
+ #: ../admin/functions.php:637
931
+ #: ../admin/wp25/functions.php:637
932
  msgid " Image(s) successfully added"
933
  msgstr ""
934
 
935
+ #: ../admin/functions.php:661
936
+ #: ../admin/wp25/functions.php:661
937
  msgid "Invalid upload. Error Code : "
938
  msgstr ""
939
 
940
+ #: ../admin/functions.php:713
941
+ #: ../admin/wp25/functions.php:713
942
  msgid "Sorry, you have used your space allocation. Please delete some files to upload more files."
943
  msgstr ""
944
 
945
+ #: ../admin/functions.php:740
946
+ #: ../admin/wp25/functions.php:740
947
  #, php-format
948
  msgid "SAFE MODE Restriction in effect! You need to create the folder <strong>%s</strong> manually"
949
  msgstr ""
950
 
951
+ #: ../admin/functions.php:741
952
+ #: ../admin/wp25/functions.php:741
953
  #, php-format
954
  msgid "When safe_mode is on, PHP checks to see if the owner (%s) of the current script matches the owner (%s) of the file to be operated on by a file function or its directory"
955
  msgstr ""
956
 
957
  #: ../admin/manage.php:64
958
  #: ../admin/manage.php:85
959
+ #: ../admin/wp25/manage.php:64
960
+ #: ../admin/wp25/manage.php:85
961
  msgid "deleted successfully"
962
  msgstr ""
963
 
964
  #: ../admin/manage.php:111
965
+ #: ../admin/wp25/manage.php:111
966
  msgid "Watermark successfully added"
967
  msgstr ""
968
 
969
  #: ../admin/manage.php:116
970
+ #: ../admin/wp25/manage.php:116
971
  msgid "Thumbnails successfully created. Please refresh your browser cache."
972
  msgstr ""
973
 
974
  #: ../admin/manage.php:121
975
+ #: ../admin/wp25/manage.php:121
976
  msgid "Images successfully resized"
977
  msgstr ""
978
 
979
  #: ../admin/manage.php:139
980
+ #: ../admin/wp25/manage.php:139
981
  msgid "Pictures deleted successfully "
982
  msgstr ""
983
 
984
  #: ../admin/manage.php:145
985
+ #: ../admin/wp25/manage.php:145
986
  msgid "Import metadata finished"
987
  msgstr ""
988
 
989
  #: ../admin/manage.php:195
990
+ #: ../admin/wp25/manage.php:195
991
  msgid "Tags changed"
992
  msgstr ""
993
 
994
  #: ../admin/manage.php:215
995
+ #: ../admin/wp25/manage.php:215
996
  msgid "Update successful"
997
  msgstr ""
998
 
999
+ #: ../admin/manage.php:248
1000
+ #: ../admin/wp25/manage.php:248
1001
  msgid "New gallery page ID"
1002
  msgstr ""
1003
 
1004
+ #: ../admin/manage.php:248
1005
+ #: ../admin/wp25/manage.php:248
1006
  msgid "created"
1007
  msgstr ""
1008
 
1009
+ #: ../admin/manage.php:279
1010
+ #: ../admin/wp25/manage.php:283
1011
  msgid "Gallery Overview"
1012
  msgstr ""
1013
 
1014
+ #: ../admin/manage.php:284
1015
+ #: ../admin/wp25/manage.php:289
 
1016
  msgid "Gallery name"
1017
  msgstr ""
1018
 
1019
+ #: ../admin/manage.php:286
1020
+ #: ../admin/manage.php:465
1021
+ #: ../admin/manage.php:541
 
1022
  #: ../admin/style.php:102
1023
  #: ../admin/uploadtab.php:180
 
 
1024
  #: ../admin/js/uploadtab.js.php:172
1025
+ #: ../admin/wp25/manage.php:291
1026
+ #: ../admin/wp25/manage.php:434
1027
+ #: ../admin/wp25/manage.php:517
1028
+ #: ../admin/wp25/media-upload.php:180
1029
+ #: ../admin/wp25/style.php:109
1030
  msgid "Description"
1031
  msgstr ""
1032
 
1033
+ #: ../admin/manage.php:287
1034
+ #: ../admin/wp25/manage.php:292
 
1035
  msgid "Page ID"
1036
  msgstr ""
1037
 
1038
+ #: ../admin/manage.php:288
1039
+ #: ../admin/wp25/manage.php:293
 
1040
  msgid "Quantity"
1041
  msgstr ""
1042
 
1043
+ #: ../admin/manage.php:289
1044
+ #: ../admin/manage.php:547
1045
+ #: ../admin/wp25/manage.php:294
1046
+ #: ../admin/wp25/manage.php:523
1047
  msgid "Action"
1048
  msgstr ""
1049
 
1050
+ #: ../admin/manage.php:308
 
1051
  #: ../admin/js/uploadtab.js.php:93
1052
+ #: ../admin/wp25/manage.php:313
1053
  msgid "Edit"
1054
  msgstr ""
1055
 
1056
+ #: ../admin/manage.php:309
1057
+ #: ../admin/wp25/manage.php:314
1058
  msgid "Delete this gallery ?"
1059
  msgstr ""
1060
 
1061
+ #: ../admin/manage.php:314
1062
+ #: ../admin/manage.php:585
1063
+ #: ../admin/wp25/manage.php:319
1064
+ #: ../admin/wp25/manage.php:561
 
1065
  msgid "No entries found"
1066
  msgstr ""
1067
 
1068
+ #: ../admin/manage.php:443
 
1069
  msgid "Main settings"
1070
  msgstr ""
1071
 
1072
+ #: ../admin/manage.php:448
1073
+ #: ../admin/wp25/manage.php:417
1074
  msgid "Page Link to"
1075
  msgstr ""
1076
 
1077
+ #: ../admin/manage.php:451
1078
+ #: ../admin/wp25/manage.php:420
1079
  msgid "Not linked"
1080
  msgstr ""
1081
 
1082
+ #: ../admin/manage.php:467
1083
+ #: ../admin/wp25/manage.php:436
1084
  msgid "Preview image"
1085
  msgstr ""
1086
 
1087
+ #: ../admin/manage.php:470
1088
+ #: ../admin/wp25/manage.php:439
1089
  msgid "No Picture"
1090
  msgstr ""
1091
 
1092
+ #: ../admin/manage.php:485
1093
+ #: ../admin/wp25/manage.php:454
1094
  msgid "Path"
1095
  msgstr ""
1096
 
1097
+ #: ../admin/manage.php:488
1098
+ #: ../admin/wp25/manage.php:457
1099
  msgid "Create new page"
1100
  msgstr ""
1101
 
1102
+ #: ../admin/manage.php:491
1103
+ #: ../admin/wp25/manage.php:460
1104
  msgid "Main page (No parent)"
1105
  msgstr ""
1106
 
1107
+ #: ../admin/manage.php:494
1108
+ #: ../admin/wp25/manage.php:463
1109
  msgid "Add page"
1110
  msgstr ""
1111
 
1112
+ #: ../admin/manage.php:500
1113
+ #: ../admin/wp25/manage.php:470
1114
  msgid "Scan Folder for new images"
1115
  msgstr ""
1116
 
1117
+ #: ../admin/manage.php:501
1118
+ #: ../admin/manage.php:592
1119
+ #: ../admin/wp25/manage.php:471
1120
+ #: ../admin/wp25/manage.php:504
1121
+ #: ../admin/wp25/manage.php:567
1122
  msgid "Save Changes"
1123
  msgstr ""
1124
 
1125
+ #: ../admin/manage.php:506
1126
+ #: ../admin/wp25/manage.php:480
1127
  msgid "No action"
1128
  msgstr ""
1129
 
1130
+ #: ../admin/manage.php:511
1131
+ #: ../admin/wp25/manage.php:485
1132
  msgid "Delete images"
1133
  msgstr ""
1134
 
1135
+ #: ../admin/manage.php:512
1136
+ #: ../admin/wp25/manage.php:486
1137
  msgid "Import metadata"
1138
  msgstr ""
1139
 
1140
+ #: ../admin/manage.php:514
1141
+ #: ../admin/wp25/manage.php:488
1142
  msgid "Add tags"
1143
  msgstr ""
1144
 
1145
+ #: ../admin/manage.php:515
1146
+ #: ../admin/wp25/manage.php:489
1147
  msgid "Delete tags"
1148
  msgstr ""
1149
 
1150
+ #: ../admin/manage.php:516
1151
+ #: ../admin/wp25/manage.php:490
1152
  msgid "Overwrite tags"
1153
  msgstr ""
1154
 
1155
+ #: ../admin/manage.php:520
1156
+ #: ../admin/manage.php:521
1157
+ #: ../admin/manage.php:610
1158
+ #: ../admin/wp25/manage.php:494
1159
+ #: ../admin/wp25/manage.php:495
1160
+ #: ../admin/wp25/manage.php:585
1161
  msgid "OK"
1162
  msgstr ""
1163
 
1164
+ #: ../admin/manage.php:520
1165
+ #: ../admin/manage.php:610
1166
+ #: ../admin/wp25/manage.php:494
1167
+ #: ../admin/wp25/manage.php:585
1168
  msgid "No images selected"
1169
  msgstr ""
1170
 
1171
+ #: ../admin/manage.php:520
1172
+ #: ../admin/manage.php:610
1173
+ #: ../admin/wp25/manage.php:494
1174
+ #: ../admin/wp25/manage.php:585
1175
  #, php-format
1176
  msgid ""
1177
  "You are about to start the bulk edit for %s images \n"
1179
  " 'Cancel' to stop, 'OK' to proceed."
1180
  msgstr ""
1181
 
1182
+ #: ../admin/manage.php:522
1183
+ #: ../admin/wp25/manage.php:496
1184
  msgid "Hide thumbnails "
1185
  msgstr ""
1186
 
1187
+ #: ../admin/manage.php:523
1188
+ #: ../admin/wp25/manage.php:497
1189
  msgid "Show thumbnails "
1190
  msgstr ""
1191
 
1192
+ #: ../admin/manage.php:524
1193
+ #: ../admin/wp25/manage.php:498
1194
  msgid "Show tags"
1195
  msgstr ""
1196
 
1197
+ #: ../admin/manage.php:525
1198
+ #: ../admin/wp25/manage.php:499
1199
  msgid "Hide tags"
1200
  msgstr ""
1201
 
1202
+ #: ../admin/manage.php:527
1203
+ #: ../admin/wp25/manage.php:501
1204
+ msgid "Sort gallery"
1205
+ msgstr ""
1206
+
1207
+ #: ../admin/manage.php:536
1208
  #: ../admin/settings.php:322
1209
+ #: ../admin/wp25/manage.php:512
1210
+ #: ../admin/wp25/settings.php:310
1211
  msgid "File name"
1212
  msgstr ""
1213
 
1214
+ #: ../admin/manage.php:538
1215
  #: ../admin/js/uploadtab.js.php:106
1216
+ #: ../admin/wp25/manage.php:514
1217
  msgid "Thumbnail"
1218
  msgstr ""
1219
 
1220
+ #: ../admin/manage.php:542
1221
  #: ../admin/uploadtab.php:176
1222
  #: ../admin/js/uploadtab.js.php:169
1223
+ #: ../admin/wp25/manage.php:518
1224
  msgid "Alt &amp; Title Text"
1225
  msgstr ""
1226
 
1227
+ #: ../admin/manage.php:543
1228
+ #: ../admin/wp25/manage.php:519
1229
  msgid "exclude"
1230
  msgstr ""
1231
 
1232
+ #: ../admin/manage.php:545
1233
+ #: ../admin/wp25/manage.php:521
1234
  msgid "Tags (comma separated list)"
1235
  msgstr ""
1236
 
1237
+ #: ../admin/manage.php:578
1238
+ #: ../admin/wp25/manage.php:554
1239
  msgid "View"
1240
  msgstr ""
1241
 
1242
+ #: ../admin/manage.php:579
1243
+ #: ../admin/wp25/manage.php:555
1244
  msgid "Show Meta data"
1245
  msgstr ""
1246
 
1247
+ #: ../admin/manage.php:579
1248
+ #: ../admin/wp25/manage.php:555
1249
  msgid "Meta"
1250
  msgstr ""
1251
 
1252
+ #: ../admin/manage.php:580
1253
+ #: ../admin/wp25/manage.php:556
1254
  msgid "Delete this file ?"
1255
  msgstr ""
1256
 
1257
+ #: ../admin/manage.php:607
1258
+ #: ../admin/wp25/manage.php:582
1259
  msgid "Enter the tags"
1260
  msgstr ""
1261
 
1262
+ #: ../admin/manage.php:610
1263
+ #: ../admin/wp25/manage.php:585
1264
+ #: ../tinymce/window.php:147
1265
+ #: ../tinymce3/window.php:147
1266
  msgid "Cancel"
1267
  msgstr ""
1268
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1269
  #: ../admin/overview.php:18
1270
+ #: ../admin/wp25/overview.php:24
1271
  msgid "NextGEN Gallery Overview"
1272
  msgstr ""
1273
 
1276
  msgstr ""
1277
 
1278
  #: ../admin/overview.php:30
1279
+ #: ../admin/wp25/overview.php:49
1280
  #, php-format
1281
  msgid "There are totally %1$s pictures in %2$s galleries, which are spread across %3$s albums."
1282
  msgstr ""
1283
 
1284
  #: ../admin/overview.php:34
1285
+ #: ../admin/wp25/overview.php:28
1286
  msgid "New Version available"
1287
  msgstr ""
1288
 
1289
  #: ../admin/overview.php:35
1290
+ #: ../admin/wp25/overview.php:29
1291
  msgid "The server reports that a new NextGEN Gallery Version is now available. Please visit the plugin homepage for more information."
1292
  msgstr ""
1293
 
1294
  #: ../admin/overview.php:36
1295
+ #: ../admin/wp25/overview.php:30
1296
  msgid "Download here"
1297
  msgstr ""
1298
 
1299
  #: ../admin/overview.php:42
1300
+ #: ../admin/wp25/overview.php:103
1301
  msgid "Server Settings"
1302
  msgstr ""
1303
 
1306
  msgstr ""
1307
 
1308
  #: ../admin/overview.php:54
1309
+ #: ../admin/wp25/overview.php:54
1310
  msgid "gallery administrator"
1311
  msgstr ""
1312
 
1313
  #: ../admin/overview.php:54
1314
+ #: ../admin/wp25/overview.php:54
1315
  msgid "gallery editor"
1316
  msgstr ""
1317
 
1337
  msgstr ""
1338
 
1339
  #: ../admin/overview.php:66
1340
+ #: ../admin/wp25/overview.php:64
1341
  msgid "Latest News"
1342
  msgstr ""
1343
 
1344
  #: ../admin/overview.php:85
1345
+ #: ../admin/wp25/overview.php:85
1346
  #, php-format
1347
  msgid "Newsfeed could not be loaded. Check the <a href=\"%s\">front page</a> to check for updates."
1348
  msgstr ""
1349
 
1350
  #: ../admin/overview.php:98
1351
+ #: ../admin/wp25/overview.php:124
1352
  msgid "GD support"
1353
  msgstr ""
1354
 
1355
  #: ../admin/overview.php:109
1356
+ #: ../admin/wp25/overview.php:135
1357
  msgid "No GD support"
1358
  msgstr ""
1359
 
1361
  #: ../admin/overview.php:154
1362
  #: ../admin/overview.php:157
1363
  #: ../admin/overview.php:160
1364
+ #: ../admin/wp25/overview.php:142
1365
+ #: ../admin/wp25/overview.php:180
1366
+ #: ../admin/wp25/overview.php:183
1367
+ #: ../admin/wp25/overview.php:186
1368
  msgid "Yes"
1369
  msgstr ""
1370
 
1372
  #: ../admin/overview.php:155
1373
  #: ../admin/overview.php:158
1374
  #: ../admin/overview.php:161
1375
+ #: ../admin/wp25/overview.php:143
1376
+ #: ../admin/wp25/overview.php:181
1377
+ #: ../admin/wp25/overview.php:184
1378
+ #: ../admin/wp25/overview.php:187
1379
  msgid "No"
1380
  msgstr ""
1381
 
1382
  #: ../admin/overview.php:131
1383
+ #: ../admin/wp25/overview.php:157
1384
  msgid "Not set"
1385
  msgstr ""
1386
 
1387
  #: ../admin/overview.php:133
1388
  #: ../admin/overview.php:136
1389
+ #: ../admin/wp25/overview.php:159
1390
+ #: ../admin/wp25/overview.php:162
1391
  msgid "On"
1392
  msgstr ""
1393
 
1394
  #: ../admin/overview.php:134
1395
  #: ../admin/overview.php:137
1396
+ #: ../admin/wp25/overview.php:160
1397
+ #: ../admin/wp25/overview.php:163
1398
  msgid "Off"
1399
  msgstr ""
1400
 
1403
  #: ../admin/overview.php:146
1404
  #: ../admin/overview.php:149
1405
  #: ../admin/overview.php:152
1406
+ #: ../admin/wp25/overview.php:166
1407
+ #: ../admin/wp25/overview.php:169
1408
+ #: ../admin/wp25/overview.php:172
1409
+ #: ../admin/wp25/overview.php:175
1410
+ #: ../admin/wp25/overview.php:178
1411
  msgid "N/A"
1412
  msgstr ""
1413
 
1414
  #: ../admin/overview.php:151
1415
+ #: ../admin/wp25/overview.php:177
1416
  msgid " MByte"
1417
  msgstr ""
1418
 
1419
  #: ../admin/overview.php:164
1420
+ #: ../admin/wp25/overview.php:190
1421
  msgid "Operating System"
1422
  msgstr ""
1423
 
1424
  #: ../admin/overview.php:165
1425
+ #: ../admin/wp25/overview.php:191
1426
  msgid "Server"
1427
  msgstr ""
1428
 
1429
  #: ../admin/overview.php:166
1430
+ #: ../admin/wp25/overview.php:192
1431
  msgid "Memory usage"
1432
  msgstr ""
1433
 
1434
  #: ../admin/overview.php:167
1435
+ #: ../admin/wp25/overview.php:193
1436
  msgid "MYSQL Version"
1437
  msgstr ""
1438
 
1439
  #: ../admin/overview.php:168
1440
+ #: ../admin/wp25/overview.php:194
1441
  msgid "SQL Mode"
1442
  msgstr ""
1443
 
1444
  #: ../admin/overview.php:169
1445
+ #: ../admin/wp25/overview.php:195
1446
  msgid "PHP Version"
1447
  msgstr ""
1448
 
1449
  #: ../admin/overview.php:170
1450
+ #: ../admin/wp25/overview.php:196
1451
  msgid "PHP Safe Mode"
1452
  msgstr ""
1453
 
1454
  #: ../admin/overview.php:171
1455
+ #: ../admin/wp25/overview.php:197
1456
  msgid "PHP Allow URL fopen"
1457
  msgstr ""
1458
 
1459
  #: ../admin/overview.php:172
1460
+ #: ../admin/wp25/overview.php:198
1461
  msgid "PHP Memory Limit"
1462
  msgstr ""
1463
 
1464
  #: ../admin/overview.php:173
1465
+ #: ../admin/wp25/overview.php:199
1466
  msgid "PHP Max Upload Size"
1467
  msgstr ""
1468
 
1469
  #: ../admin/overview.php:174
1470
+ #: ../admin/wp25/overview.php:200
1471
  msgid "PHP Max Post Size"
1472
  msgstr ""
1473
 
1474
  #: ../admin/overview.php:175
1475
+ #: ../admin/wp25/overview.php:201
1476
  msgid "PHP Max Script Execute Time"
1477
  msgstr ""
1478
 
1479
  #: ../admin/overview.php:176
1480
+ #: ../admin/wp25/overview.php:202
1481
  msgid "PHP Exif support"
1482
  msgstr ""
1483
 
1484
  #: ../admin/overview.php:177
1485
+ #: ../admin/wp25/overview.php:203
1486
  msgid "PHP IPTC support"
1487
  msgstr ""
1488
 
1489
  #: ../admin/overview.php:178
1490
+ #: ../admin/wp25/overview.php:204
1491
  msgid "PHP XML support"
1492
  msgstr ""
1493
 
1494
  #: ../admin/overview.php:319
1495
+ #: ../admin/wp25/overview.php:345
1496
  msgid "Storage Space"
1497
  msgstr ""
1498
 
1499
  #: ../admin/overview.php:322
1500
+ #: ../admin/wp25/overview.php:348
1501
  msgid "Upload Space Used:"
1502
  msgstr ""
1503
 
1504
  #: ../admin/overview.php:328
1505
+ #: ../admin/wp25/overview.php:354
1506
  msgid "Upload Space Remaining:"
1507
  msgstr ""
1508
 
1509
  #: ../admin/roles.php:20
1510
+ #: ../admin/wp25/roles.php:20
1511
  msgid "Updated capabilities"
1512
  msgstr ""
1513
 
1514
  #: ../admin/roles.php:25
1515
+ #: ../admin/wp25/roles.php:25
1516
  msgid "Roles / capabilities"
1517
  msgstr ""
1518
 
1519
  #: ../admin/roles.php:26
1520
+ #: ../admin/wp25/roles.php:26
1521
  msgid "Select the lowest role which should be able to access the follow capabilities. NextGEN Gallery supports the standard roles from WordPress."
1522
  msgstr ""
1523
 
1524
  #: ../admin/roles.php:27
1525
+ #: ../admin/wp25/roles.php:27
1526
  msgid "For a more flexible user management you can use the"
1527
  msgstr ""
1528
 
1529
  #: ../admin/roles.php:33
1530
+ #: ../admin/wp25/roles.php:32
1531
  msgid "Main NextGEN Gallery overview"
1532
  msgstr ""
1533
 
1534
  #: ../admin/roles.php:37
1535
+ #: ../admin/wp25/roles.php:36
1536
  msgid "Use TinyMCE Button / Upload tab"
1537
  msgstr ""
1538
 
1539
  #: ../admin/roles.php:41
1540
+ #: ../admin/wp25/roles.php:40
1541
  msgid "Add gallery / Upload images"
1542
  msgstr ""
1543
 
1544
  #: ../admin/roles.php:45
1545
+ #: ../admin/wp25/roles.php:44
1546
  msgid "Manage gallery"
1547
  msgstr ""
1548
 
1549
  #: ../admin/roles.php:49
1550
+ #: ../admin/wp25/roles.php:48
1551
  msgid "Edit Album"
1552
  msgstr ""
1553
 
1554
  #: ../admin/roles.php:53
1555
+ #: ../admin/wp25/roles.php:52
1556
  msgid "Change style"
1557
  msgstr ""
1558
 
1559
  #: ../admin/roles.php:57
1560
+ #: ../admin/wp25/roles.php:56
1561
  msgid "Change options"
1562
  msgstr ""
1563
 
1564
  #: ../admin/roles.php:61
1565
+ #: ../admin/wp25/roles.php:60
1566
  msgid "Update capabilities"
1567
  msgstr ""
1568
 
1569
  #: ../admin/settings.php:33
1570
  #: ../admin/style.php:16
1571
  #: ../admin/wpmu.php:32
1572
+ #: ../admin/wp25/settings.php:33
1573
+ #: ../admin/wp25/style.php:16
1574
+ #: ../admin/wp25/wpmu.php:32
1575
  msgid "Update successfully"
1576
  msgstr ""
1577
 
1578
  #: ../admin/settings.php:50
1579
+ #: ../admin/wp25/settings.php:50
1580
  msgid "Cache cleared"
1581
  msgstr ""
1582
 
1583
  #: ../admin/settings.php:103
1584
  #: ../admin/settings.php:115
1585
+ #: ../admin/wp25/settings.php:98
1586
+ #: ../admin/wp25/settings.php:110
1587
  msgid "General Options"
1588
  msgstr ""
1589
 
1590
  #: ../admin/settings.php:105
1591
+ #: ../admin/wp25/settings.php:100
1592
  msgid "Images"
1593
  msgstr ""
1594
 
1595
  #: ../admin/settings.php:107
1596
  #: ../admin/settings.php:341
1597
+ #: ../admin/wp25/settings.php:102
1598
+ #: ../admin/wp25/settings.php:328
1599
  msgid "Effects"
1600
  msgstr ""
1601
 
1602
  #: ../admin/settings.php:108
1603
  #: ../admin/settings.php:394
1604
+ #: ../admin/wp25/settings.php:103
1605
+ #: ../admin/wp25/settings.php:379
1606
  #: ../tinymce/window.php:123
1607
+ #: ../tinymce3/window.php:123
1608
  msgid "Watermark"
1609
  msgstr ""
1610
 
1611
  #: ../admin/settings.php:109
1612
+ #: ../admin/settings.php:298
1613
  #: ../admin/settings.php:502
1614
+ #: ../admin/wp25/settings.php:104
1615
+ #: ../admin/wp25/settings.php:286
1616
+ #: ../admin/wp25/settings.php:482
1617
  #: ../tinymce/window.php:63
1618
+ #: ../tinymce3/window.php:63
1619
  msgid "Slideshow"
1620
  msgstr ""
1621
 
1622
  #: ../admin/settings.php:122
1623
  #: ../admin/wpmu.php:48
1624
+ #: ../admin/wp25/settings.php:116
1625
+ #: ../admin/wp25/wpmu.php:48
1626
  msgid "Gallery path"
1627
  msgstr ""
1628
 
1629
  #: ../admin/settings.php:124
1630
+ #: ../admin/wp25/settings.php:118
1631
  msgid "This is the default path for all galleries"
1632
  msgstr ""
1633
 
1634
  #: ../admin/settings.php:135
1635
+ #: ../admin/wp25/settings.php:129
1636
  msgid "Delete image files"
1637
  msgstr ""
1638
 
1639
  #: ../admin/settings.php:137
1640
+ #: ../admin/wp25/settings.php:131
1641
  msgid "Delete files, when removing a gallery in the database"
1642
  msgstr ""
1643
 
1644
  #: ../admin/settings.php:140
1645
+ #: ../admin/wp25/settings.php:134
 
 
 
 
 
 
 
1646
  msgid "Activate permalinks"
1647
  msgstr ""
1648
 
1649
+ #: ../admin/settings.php:142
1650
+ #: ../admin/wp25/settings.php:136
1651
  msgid "When you activate this option, you need to update your permalink structure one time."
1652
  msgstr ""
1653
 
1654
+ #: ../admin/settings.php:145
1655
+ #: ../admin/wp25/settings.php:139
1656
  msgid "Tags / Categories"
1657
  msgstr ""
1658
 
1659
+ #: ../admin/settings.php:148
1660
+ #: ../admin/wp25/settings.php:142
1661
  msgid "Activate related images"
1662
  msgstr ""
1663
 
1664
+ #: ../admin/settings.php:150
1665
+ #: ../admin/wp25/settings.php:144
1666
  msgid "This option will append related images to every post"
1667
  msgstr ""
1668
 
1669
+ #: ../admin/settings.php:154
1670
+ #: ../admin/wp25/settings.php:148
1671
  msgid "Match with"
1672
  msgstr ""
1673
 
1674
+ #: ../admin/settings.php:155
1675
+ #: ../admin/wp25/settings.php:149
1676
  msgid "Categories"
1677
  msgstr ""
1678
 
1679
+ #: ../admin/settings.php:156
1680
+ #: ../admin/wp25/settings.php:150
1681
  #: ../lib/nggmeta.lib.php:375
1682
  msgid "Tags"
1683
  msgstr ""
1684
 
1685
+ #: ../admin/settings.php:156
1686
+ #: ../admin/wp25/settings.php:150
1687
  msgid " (require WordPress 2.3 or higher)"
1688
  msgstr ""
1689
 
1690
+ #: ../admin/settings.php:160
1691
+ #: ../admin/wp25/settings.php:154
1692
  msgid "Max. number of images"
1693
  msgstr ""
1694
 
1695
+ #: ../admin/settings.php:162
1696
+ #: ../admin/wp25/settings.php:156
1697
  msgid "0 will show all images"
1698
  msgstr ""
1699
 
1700
+ #: ../admin/settings.php:174
1701
+ #: ../admin/wp25/settings.php:167
1702
  msgid "Thumbnail settings"
1703
  msgstr ""
1704
 
1705
+ #: ../admin/settings.php:179
1706
+ #: ../admin/wp25/settings.php:171
1707
  msgid "Please note : If you change the settings, you need to recreate the thumbnails under -> Manage Gallery ."
1708
  msgstr ""
1709
 
1710
+ #: ../admin/settings.php:182
1711
+ #: ../admin/wp25/settings.php:174
1712
  msgid "Width x height (in pixel)"
1713
  msgstr ""
1714
 
1715
+ #: ../admin/settings.php:184
1716
+ #: ../admin/wp25/settings.php:176
1717
  msgid "These values are maximum values "
1718
  msgstr ""
1719
 
1720
+ #: ../admin/settings.php:187
1721
+ #: ../admin/wp25/settings.php:179
1722
  msgid "Set fix dimension"
1723
  msgstr ""
1724
 
1725
+ #: ../admin/settings.php:189
1726
+ #: ../admin/wp25/settings.php:181
1727
  msgid "Ignore the aspect ratio, no portrait thumbnails"
1728
  msgstr ""
1729
 
1730
+ #: ../admin/settings.php:192
1731
+ #: ../admin/wp25/settings.php:184
1732
  msgid "Crop square thumbnail from image"
1733
  msgstr ""
1734
 
1735
+ #: ../admin/settings.php:194
1736
+ #: ../admin/wp25/settings.php:186
1737
  msgid "Create square thumbnails, use only the width setting :"
1738
  msgstr ""
1739
 
1740
+ #: ../admin/settings.php:197
1741
+ #: ../admin/wp25/settings.php:189
1742
  msgid "Thumbnail quality"
1743
  msgstr ""
1744
 
1745
+ #: ../admin/settings.php:201
1746
+ #: ../admin/settings.php:233
1747
+ #: ../admin/wp25/settings.php:193
1748
+ #: ../admin/wp25/settings.php:223
1749
  msgid "Resample Mode"
1750
  msgstr ""
1751
 
1752
+ #: ../admin/settings.php:203
1753
+ #: ../admin/settings.php:236
1754
+ #: ../admin/wp25/settings.php:195
1755
+ #: ../admin/wp25/settings.php:226
1756
  msgid "Value between 1-5 (higher value, more CPU load)"
1757
  msgstr ""
1758
 
1759
+ #: ../admin/settings.php:214
1760
+ #: ../admin/wp25/settings.php:205
1761
  msgid "Image settings"
1762
  msgstr ""
1763
 
1764
+ #: ../admin/settings.php:221
1765
+ #: ../admin/wp25/settings.php:211
1766
  msgid "Resize Images"
1767
  msgstr ""
1768
 
1769
+ #: ../admin/settings.php:225
1770
+ #: ../admin/wp25/settings.php:215
1771
  msgid "Width x height (in pixel). NextGEN Gallery will keep ratio size"
1772
  msgstr ""
1773
 
1774
+ #: ../admin/settings.php:228
1775
+ #: ../admin/wp25/settings.php:218
1776
  msgid "Image quality"
1777
  msgstr ""
1778
 
1779
+ #: ../admin/settings.php:239
1780
+ #: ../admin/wp25/settings.php:229
1781
  msgid "Single picture"
1782
  msgstr ""
1783
 
1784
+ #: ../admin/settings.php:242
1785
+ #: ../admin/wp25/settings.php:232
1786
  msgid "Cache single pictures"
1787
  msgstr ""
1788
 
1789
+ #: ../admin/settings.php:245
1790
+ #: ../admin/wp25/settings.php:235
1791
  msgid "Creates a file for each singlepic settings. Reduce the CPU load"
1792
  msgstr ""
1793
 
1794
+ #: ../admin/settings.php:248
1795
+ #: ../admin/wp25/settings.php:238
1796
  msgid "Clear cache folder"
1797
  msgstr ""
1798
 
1799
+ #: ../admin/settings.php:250
1800
+ #: ../admin/wp25/settings.php:240
1801
  msgid "Proceed now"
1802
  msgstr ""
1803
 
1804
+ #: ../admin/settings.php:261
1805
+ #: ../admin/wp25/settings.php:250
1806
  msgid "Gallery settings"
1807
  msgstr ""
1808
 
1809
+ #: ../admin/settings.php:277
1810
+ #: ../admin/wp25/settings.php:265
 
 
 
 
 
 
 
1811
  msgid "Deactivate gallery page link"
1812
  msgstr ""
1813
 
1814
+ #: ../admin/settings.php:279
1815
+ #: ../admin/wp25/settings.php:267
1816
  msgid "The album will not link to a gallery subpage. The gallery is shown on the same page."
1817
  msgstr ""
1818
 
1819
+ #: ../admin/settings.php:283
1820
+ #: ../admin/wp25/settings.php:271
1821
  msgid "Number of images per page"
1822
  msgstr ""
1823
 
1824
+ #: ../admin/settings.php:285
1825
+ #: ../admin/wp25/settings.php:273
1826
  msgid "0 will disable pagination, all images on one page"
1827
  msgstr ""
1828
 
1829
+ #: ../admin/settings.php:289
1830
+ #: ../admin/wp25/settings.php:277
1831
  msgid "Integrate slideshow"
1832
  msgstr ""
1833
 
1834
+ #: ../admin/settings.php:296
1835
+ #: ../admin/wp25/settings.php:284
1836
  msgid "Show first"
1837
  msgstr ""
1838
 
1839
+ #: ../admin/settings.php:302
1840
+ #: ../admin/wp25/settings.php:290
1841
  msgid "Show thumbnail description"
1842
  msgstr ""
1843
 
1844
+ #: ../admin/settings.php:303
1845
  #: ../admin/settings.php:353
1846
  #: ../admin/js/uploadtab.js.php:117
1847
+ #: ../admin/wp25/media-upload.php:187
1848
+ #: ../admin/wp25/settings.php:291
1849
+ #: ../admin/wp25/settings.php:339
1850
  msgid "None"
1851
  msgstr ""
1852
 
1853
+ #: ../admin/settings.php:304
1854
+ #: ../admin/wp25/settings.php:292
1855
  msgid "Description text"
1856
  msgstr ""
1857
 
1858
+ #: ../admin/settings.php:305
1859
  #: ../admin/settings.php:323
1860
+ #: ../admin/wp25/settings.php:293
1861
+ #: ../admin/wp25/settings.php:311
1862
  msgid "Alt / Title text"
1863
  msgstr ""
1864
 
1865
+ #: ../admin/settings.php:309
1866
+ #: ../admin/wp25/settings.php:297
1867
  msgid "Show ImageBrowser"
1868
  msgstr ""
1869
 
1870
+ #: ../admin/settings.php:311
1871
+ #: ../admin/wp25/settings.php:299
1872
  msgid "The gallery will open the ImageBrowser instead the effect."
1873
  msgstr ""
1874
 
1875
+ #: ../admin/settings.php:315
1876
+ #: ../admin/wp25/settings.php:303
1877
  msgid "Sort options"
1878
  msgstr ""
1879
 
1880
+ #: ../admin/settings.php:318
1881
+ #: ../admin/wp25/settings.php:306
1882
  msgid "Sort thumbnails"
1883
  msgstr ""
1884
 
1885
+ #: ../admin/settings.php:320
1886
+ #: ../admin/wp25/settings.php:308
1887
+ msgid "Custom order"
1888
+ msgstr ""
1889
+
1890
  #: ../admin/settings.php:321
1891
+ #: ../admin/wp25/settings.php:309
1892
  msgid "Image ID"
1893
  msgstr ""
1894
 
1895
  #: ../admin/settings.php:327
1896
+ #: ../admin/wp25/settings.php:315
1897
  msgid "Sort direction"
1898
  msgstr ""
1899
 
1900
  #: ../admin/settings.php:328
1901
+ #: ../admin/wp25/settings.php:316
1902
  msgid "Ascending"
1903
  msgstr ""
1904
 
1905
  #: ../admin/settings.php:329
1906
+ #: ../admin/wp25/settings.php:317
1907
  msgid "Descending"
1908
  msgstr ""
1909
 
1910
  #: ../admin/settings.php:345
1911
+ #: ../admin/wp25/settings.php:332
1912
  msgid "Here you can select the thumbnail effect, NextGEN Gallery will integrate the required HTML code in the images. Please note that only the Thickbox effect will automatic added to your theme."
1913
  msgstr ""
1914
 
1915
  #: ../admin/settings.php:346
1916
+ #: ../admin/wp25/settings.php:333
1917
  msgid "With the placeholder"
1918
  msgstr ""
1919
 
1920
  #: ../admin/settings.php:346
1921
+ #: ../admin/wp25/settings.php:333
1922
  msgid "you can activate a navigation through the images (depend on the effect). Change the code line only , when you use a different thumbnail effect or you know what you do."
1923
  msgstr ""
1924
 
1925
  #: ../admin/settings.php:350
1926
+ #: ../admin/wp25/settings.php:336
1927
  msgid "JavaScript Thumbnail effect"
1928
  msgstr ""
1929
 
1930
  #: ../admin/settings.php:354
1931
+ #: ../admin/wp25/settings.php:340
1932
  msgid "Thickbox"
1933
  msgstr ""
1934
 
1935
  #: ../admin/settings.php:355
1936
+ #: ../admin/wp25/settings.php:341
1937
  msgid "Lightbox"
1938
  msgstr ""
1939
 
1940
  #: ../admin/settings.php:356
1941
+ #: ../admin/wp25/settings.php:342
1942
  msgid "Highslide"
1943
  msgstr ""
1944
 
1945
  #: ../admin/settings.php:357
1946
+ #: ../admin/wp25/settings.php:343
1947
  msgid "Shutter"
1948
  msgstr ""
1949
 
1950
  #: ../admin/settings.php:358
1951
+ #: ../admin/wp25/settings.php:344
1952
  msgid "Custom"
1953
  msgstr ""
1954
 
1955
  #: ../admin/settings.php:363
1956
+ #: ../admin/wp25/settings.php:349
1957
  msgid "Link Code line"
1958
  msgstr ""
1959
 
1960
  #: ../admin/settings.php:371
1961
+ #: ../admin/wp25/settings.php:357
1962
  msgid "Select loading image"
1963
  msgstr ""
1964
 
1965
  #: ../admin/settings.php:395
1966
+ #: ../admin/wp25/settings.php:380
1967
  msgid "Please note : You can only activate the watermark under -> Manage Gallery . This action cannot be undone."
1968
  msgstr ""
1969
 
1970
  #: ../admin/settings.php:400
1971
+ #: ../admin/wp25/settings.php:385
1972
  msgid "Preview"
1973
  msgstr ""
1974
 
1975
  #: ../admin/settings.php:402
1976
  #: ../admin/settings.php:406
1977
+ #: ../admin/wp25/settings.php:387
1978
+ #: ../admin/wp25/settings.php:392
1979
  msgid "Position"
1980
  msgstr ""
1981
 
1982
  #: ../admin/settings.php:426
1983
+ #: ../admin/wp25/settings.php:412
1984
  msgid "Offset"
1985
  msgstr ""
1986
 
1987
  #: ../admin/settings.php:444
1988
+ #: ../admin/wp25/settings.php:428
1989
  msgid "Use image as watermark"
1990
  msgstr ""
1991
 
1992
  #: ../admin/settings.php:447
1993
+ #: ../admin/wp25/settings.php:431
1994
  msgid "URL to file"
1995
  msgstr ""
1996
 
1997
  #: ../admin/settings.php:449
1998
+ #: ../admin/wp25/settings.php:433
1999
  msgid "The accessing of URL files is disabled at your server (allow_url_fopen)"
2000
  msgstr ""
2001
 
2002
  #: ../admin/settings.php:455
2003
+ #: ../admin/wp25/settings.php:436
2004
  msgid "Use text as watermark"
2005
  msgstr ""
2006
 
2007
  #: ../admin/settings.php:458
2008
+ #: ../admin/wp25/settings.php:439
2009
  msgid "Font"
2010
  msgstr ""
2011
 
2012
  #: ../admin/settings.php:467
2013
+ #: ../admin/wp25/settings.php:448
2014
  msgid "This function will not work, cause you need the FreeType library"
2015
  msgstr ""
2016
 
2017
  #: ../admin/settings.php:469
2018
+ #: ../admin/wp25/settings.php:450
2019
  msgid "You can upload more fonts in the folder <strong>nggallery/fonts</strong>"
2020
  msgstr ""
2021
 
2022
  #: ../admin/settings.php:473
2023
+ #: ../admin/wp25/settings.php:454
2024
  msgid "Size"
2025
  msgstr ""
2026
 
2027
  #: ../admin/settings.php:477
2028
+ #: ../admin/wp25/settings.php:458
2029
  msgid "Color"
2030
  msgstr ""
2031
 
2032
  #: ../admin/settings.php:479
2033
+ #: ../admin/wp25/settings.php:460
2034
  msgid "(hex w/o #)"
2035
  msgstr ""
2036
 
2037
  #: ../admin/settings.php:482
2038
+ #: ../admin/wp25/settings.php:463
2039
  msgid "Text"
2040
  msgstr ""
2041
 
2042
  #: ../admin/settings.php:486
2043
+ #: ../admin/wp25/settings.php:467
2044
  msgid "Opaque"
2045
  msgstr ""
2046
 
2047
  #: ../admin/settings.php:504
2048
+ #: ../admin/wp25/settings.php:483
2049
  msgid "The imagerotator.swf is not in the nggallery folder, the slideshow will not work."
2050
  msgstr ""
2051
 
2052
  #: ../admin/settings.php:505
2053
+ #: ../admin/wp25/settings.php:484
2054
+ msgid "The settings are used in the JW Image Rotator Version"
2055
  msgstr ""
2056
 
2057
  #: ../admin/settings.php:506
2058
+ #: ../admin/wp25/settings.php:485
2059
  msgid "See more information for the Flash Player on the web page"
2060
  msgstr ""
2061
 
2062
  #: ../admin/settings.php:509
2063
+ #: ../admin/wp25/settings.php:489
2064
  msgid "Default size (W x H)"
2065
  msgstr ""
2066
 
2067
  #: ../admin/settings.php:514
2068
+ #: ../admin/wp25/settings.php:494
2069
  msgid "Shuffle mode"
2070
  msgstr ""
2071
 
2072
  #: ../admin/settings.php:518
2073
+ #: ../admin/wp25/settings.php:498
2074
  msgid "Show next image on click"
2075
  msgstr ""
2076
 
2077
  #: ../admin/settings.php:522
2078
+ #: ../admin/wp25/settings.php:502
2079
  msgid "Show navigation bar"
2080
  msgstr ""
2081
 
2082
  #: ../admin/settings.php:526
2083
+ #: ../admin/wp25/settings.php:506
2084
  msgid "Show loading icon"
2085
  msgstr ""
2086
 
2087
  #: ../admin/settings.php:530
2088
+ #: ../admin/wp25/settings.php:510
2089
  msgid "Use watermark logo"
2090
  msgstr ""
2091
 
2092
  #: ../admin/settings.php:532
2093
+ #: ../admin/wp25/settings.php:512
2094
  msgid "You can change the logo at the watermark settings"
2095
  msgstr ""
2096
 
2097
  #: ../admin/settings.php:535
2098
+ #: ../admin/wp25/settings.php:515
2099
  msgid "Stretch image"
2100
  msgstr ""
2101
 
2102
  #: ../admin/settings.php:538
2103
+ #: ../admin/wp25/settings.php:518
2104
  msgid "true"
2105
  msgstr ""
2106
 
2107
  #: ../admin/settings.php:539
2108
+ #: ../admin/wp25/settings.php:519
2109
  msgid "false"
2110
  msgstr ""
2111
 
2112
  #: ../admin/settings.php:540
2113
+ #: ../admin/wp25/settings.php:520
2114
  msgid "fit"
2115
  msgstr ""
2116
 
2117
  #: ../admin/settings.php:541
2118
+ #: ../admin/wp25/settings.php:521
2119
  msgid "none"
2120
  msgstr ""
2121
 
2122
  #: ../admin/settings.php:546
2123
+ #: ../admin/wp25/settings.php:526
2124
  msgid "Duration time"
2125
  msgstr ""
2126
 
2127
  #: ../admin/settings.php:547
2128
+ #: ../admin/wp25/settings.php:527
2129
  msgid "sec."
2130
  msgstr ""
2131
 
2132
  #: ../admin/settings.php:550
2133
+ #: ../admin/wp25/settings.php:530
2134
  msgid "Transition / Fade effect"
2135
  msgstr ""
2136
 
2137
  #: ../admin/settings.php:553
2138
+ #: ../admin/wp25/settings.php:533
2139
  msgid "fade"
2140
  msgstr ""
2141
 
2142
  #: ../admin/settings.php:554
2143
+ #: ../admin/wp25/settings.php:534
2144
  msgid "bgfade"
2145
  msgstr ""
2146
 
2147
  #: ../admin/settings.php:555
2148
+ #: ../admin/wp25/settings.php:535
2149
  msgid "slowfade"
2150
  msgstr ""
2151
 
2152
  #: ../admin/settings.php:556
2153
+ #: ../admin/wp25/settings.php:536
2154
  msgid "circles"
2155
  msgstr ""
2156
 
2157
  #: ../admin/settings.php:557
2158
+ #: ../admin/wp25/settings.php:537
2159
  msgid "bubbles"
2160
  msgstr ""
2161
 
2162
  #: ../admin/settings.php:558
2163
+ #: ../admin/wp25/settings.php:538
2164
  msgid "blocks"
2165
  msgstr ""
2166
 
2167
  #: ../admin/settings.php:559
2168
+ #: ../admin/wp25/settings.php:539
2169
  msgid "fluids"
2170
  msgstr ""
2171
 
2172
  #: ../admin/settings.php:560
2173
+ #: ../admin/wp25/settings.php:540
2174
  msgid "flash"
2175
  msgstr ""
2176
 
2177
  #: ../admin/settings.php:561
2178
+ #: ../admin/wp25/settings.php:541
2179
  msgid "lines"
2180
  msgstr ""
2181
 
2182
  #: ../admin/settings.php:566
2183
+ #: ../admin/wp25/settings.php:546
2184
  msgid "Use slow zooming effect"
2185
  msgstr ""
2186
 
2187
  #: ../admin/settings.php:570
2188
+ #: ../admin/wp25/settings.php:550
2189
  msgid "Background Color"
2190
  msgstr ""
2191
 
2192
  #: ../admin/settings.php:575
2193
+ #: ../admin/wp25/settings.php:555
2194
  msgid "Texts / Buttons Color"
2195
  msgstr ""
2196
 
2197
  #: ../admin/settings.php:580
2198
+ #: ../admin/wp25/settings.php:560
2199
  msgid "Rollover / Active Color"
2200
  msgstr ""
2201
 
2202
  #: ../admin/settings.php:585
2203
+ #: ../admin/wp25/settings.php:565
2204
  msgid "Screen Color"
2205
  msgstr ""
2206
 
2207
  #: ../admin/settings.php:590
2208
+ #: ../admin/wp25/settings.php:570
2209
  msgid "Background music (URL)"
2210
  msgstr ""
2211
 
2212
  #: ../admin/settings.php:594
2213
+ #: ../admin/wp25/settings.php:574
2214
  msgid "Try XHTML validation (with CDATA)"
2215
  msgstr ""
2216
 
2217
  #: ../admin/settings.php:596
2218
+ #: ../admin/wp25/settings.php:576
2219
  msgid "Important : Could causes problem at some browser. Please recheck your page."
2220
  msgstr ""
2221
 
2222
  #: ../admin/setup.php:12
2223
+ #: ../admin/wp25/setup.php:12
2224
  msgid "Reset all settings to default parameter"
2225
  msgstr ""
2226
 
2227
  #: ../admin/setup.php:37
2228
+ #: ../admin/wp25/setup.php:37
2229
  msgid "Uninstall sucessfull ! Now delete the plugin and enjoy your life ! Good luck !"
2230
  msgstr ""
2231
 
2232
  #: ../admin/setup.php:46
2233
+ #: ../admin/wp25/setup.php:46
2234
  msgid "Reset options"
2235
  msgstr ""
2236
 
2237
  #: ../admin/setup.php:49
2238
+ #: ../admin/wp25/setup.php:49
2239
  msgid "Reset all options/settings to the default installation."
2240
  msgstr ""
2241
 
2242
  #: ../admin/setup.php:50
2243
+ #: ../admin/wp25/setup.php:50
2244
  msgid "Reset settings"
2245
  msgstr ""
2246
 
2247
  #: ../admin/setup.php:50
2248
+ #: ../admin/wp25/setup.php:50
2249
  msgid ""
2250
  "Reset all options to default settings ?\\n"
2251
  "\\n"
2253
  msgstr ""
2254
 
2255
  #: ../admin/setup.php:55
2256
+ #: ../admin/wp25/setup.php:55
2257
  msgid "Uninstall plugin tables"
2258
  msgstr ""
2259
 
2260
  #: ../admin/setup.php:58
2261
+ #: ../admin/wp25/setup.php:60
2262
  msgid "You don't like NextGEN Gallery ?"
2263
  msgstr ""
2264
 
2265
  #: ../admin/setup.php:59
2266
+ #: ../admin/wp25/setup.php:61
2267
  msgid "No problem, before you deactivate this plugin press the Uninstall Button, because deactivating NextGEN Gallery does not remove any data that may have been created. "
2268
  msgstr ""
2269
 
2270
  #: ../admin/setup.php:60
2271
+ #: ../admin/wp25/setup.php:63
2272
  msgid "WARNING:"
2273
  msgstr ""
2274
 
2275
  #: ../admin/setup.php:61
2276
+ #: ../admin/wp25/setup.php:64
2277
  msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to backup all the tables first. NextGEN gallery is stored in the tables"
2278
  msgstr ""
2279
 
2280
  #: ../admin/setup.php:61
2281
+ #: ../admin/wp25/setup.php:64
2282
  msgid "and"
2283
  msgstr ""
2284
 
2285
  #: ../admin/setup.php:63
2286
+ #: ../admin/wp25/setup.php:66
2287
  msgid "Uninstall plugin"
2288
  msgstr ""
2289
 
2290
  #: ../admin/setup.php:63
2291
+ #: ../admin/wp25/setup.php:66
2292
  msgid ""
2293
  "You are about to Uninstall this plugin from WordPress.\\n"
2294
  "This action is not reversible.\\n"
2298
 
2299
  #: ../admin/showmeta.php:7
2300
  #: ../admin/showmeta.php:10
2301
+ #: ../admin/wp25/showmeta.php:7
2302
+ #: ../admin/wp25/showmeta.php:10
2303
  msgid "Cheatin&#8217; uh?"
2304
  msgstr ""
2305
 
2306
  #: ../admin/showmeta.php:42
2307
+ #: ../admin/wp25/showmeta.php:42
2308
  msgid "EXIF Data"
2309
  msgstr ""
2310
 
2311
  #: ../admin/showmeta.php:47
2312
  #: ../admin/showmeta.php:71
2313
  #: ../admin/showmeta.php:95
2314
+ #: ../admin/wp25/showmeta.php:47
2315
+ #: ../admin/wp25/showmeta.php:71
2316
+ #: ../admin/wp25/showmeta.php:95
2317
  msgid "Tag"
2318
  msgstr ""
2319
 
2320
  #: ../admin/showmeta.php:48
2321
  #: ../admin/showmeta.php:72
2322
  #: ../admin/showmeta.php:96
2323
+ #: ../admin/wp25/showmeta.php:48
2324
+ #: ../admin/wp25/showmeta.php:72
2325
+ #: ../admin/wp25/showmeta.php:96
2326
  msgid "Value"
2327
  msgstr ""
2328
 
2329
  #: ../admin/showmeta.php:61
2330
+ #: ../admin/wp25/showmeta.php:61
2331
  msgid "No exif data"
2332
  msgstr ""
2333
 
2334
  #: ../admin/showmeta.php:67
2335
+ #: ../admin/wp25/showmeta.php:67
2336
  msgid "IPTC Data"
2337
  msgstr ""
2338
 
2339
  #: ../admin/showmeta.php:91
2340
+ #: ../admin/wp25/showmeta.php:91
2341
  msgid "XMP Data"
2342
  msgstr ""
2343
 
2344
+ #: ../admin/sort.php:35
2345
+ #: ../admin/wp25/sort.php:33
2346
+ msgid "Sort order changed"
2347
+ msgstr ""
2348
+
2349
+ #: ../admin/sort.php:53
2350
+ #: ../admin/wp25/sort.php:53
2351
+ msgid "Sort Gallery"
2352
+ msgstr ""
2353
+
2354
+ #: ../admin/sort.php:58
2355
+ #: ../admin/wp25/sort.php:57
2356
+ msgid "Back to gallery"
2357
+ msgstr ""
2358
+
2359
+ #: ../admin/sort.php:59
2360
+ #: ../admin/wp25/sort.php:58
2361
+ msgid "Update Sort Order"
2362
+ msgstr ""
2363
+
2364
  #: ../admin/style.php:34
2365
+ #: ../admin/wp25/style.php:34
2366
  msgid "You do not have sufficient permissions to edit templates for this blog."
2367
  msgstr ""
2368
 
2369
  #: ../admin/style.php:43
2370
+ #: ../admin/wp25/style.php:43
2371
  msgid "CSS file successfully updated"
2372
  msgstr ""
2373
 
2374
  #: ../admin/style.php:66
2375
+ #: ../admin/wp25/style.php:68
2376
  msgid "Activate and use style sheet:"
2377
  msgstr ""
2378
 
2379
  #: ../admin/style.php:85
2380
+ #: ../admin/wp25/style.php:88
2381
  msgid "Activate"
2382
  msgstr ""
2383
 
2384
  #: ../admin/style.php:93
2385
+ #: ../admin/wp25/style.php:97
2386
  #, php-format
2387
  msgid "Editing <strong>%s</strong>"
2388
  msgstr ""
2389
 
2390
  #: ../admin/style.php:95
2391
+ #: ../admin/wp25/style.php:99
2392
  #, php-format
2393
  msgid "Browsing <strong>%s</strong>"
2394
  msgstr ""
2395
 
2396
  #: ../admin/style.php:100
2397
+ #: ../admin/wp25/style.php:107
2398
  #: ../lib/nggmeta.lib.php:374
2399
  msgid "Author"
2400
  msgstr ""
2401
 
2402
  #: ../admin/style.php:101
2403
+ #: ../admin/wp25/style.php:108
2404
  msgid "Version"
2405
  msgstr ""
2406
 
2407
  #: ../admin/style.php:118
2408
+ #: ../admin/wp25/style.php:124
2409
  msgid "Update File &raquo;"
2410
  msgstr ""
2411
 
2412
  #: ../admin/style.php:122
2413
+ #: ../admin/wp25/style.php:127
2414
  msgid "If this file were writable you could edit it."
2415
  msgstr ""
2416
 
2417
  #: ../admin/style.php:127
2418
+ #: ../admin/wp25/style.php:132
2419
  msgid "Oops, no such file exists! Double check the name and try again, merci."
2420
  msgstr ""
2421
 
2424
  msgstr ""
2425
 
2426
  #: ../admin/uploadtab.php:107
2427
+ #: ../admin/wp25/media-upload.php:120
2428
  #: ../tinymce/window.php:49
2429
+ #: ../tinymce3/window.php:49
2430
  msgid "No gallery"
2431
  msgstr ""
2432
 
2445
  msgstr ""
2446
 
2447
  #: ../admin/wpmu.php:41
2448
+ #: ../admin/wp25/wpmu.php:41
2449
  msgid "General WordPress MU Settings"
2450
  msgstr ""
2451
 
2452
  #: ../admin/wpmu.php:50
2453
+ #: ../admin/wp25/wpmu.php:50
2454
  msgid "This is the default path for all blogs. With the placeholder %BLOG_ID% you can organize the folder structure better. The path must end with a /."
2455
  msgstr ""
2456
 
2457
  #: ../admin/wpmu.php:53
2458
+ #: ../admin/wp25/wpmu.php:53
2459
  msgid "Enable upload quota check"
2460
  msgstr ""
2461
 
2462
  #: ../admin/wpmu.php:55
2463
+ #: ../admin/wp25/wpmu.php:55
2464
  msgid "Should work if the gallery is bellow the blog.dir"
2465
  msgstr ""
2466
 
2467
  #: ../admin/wpmu.php:59
2468
+ #: ../admin/wp25/wpmu.php:59
2469
  msgid "Enable zip upload option"
2470
  msgstr ""
2471
 
2472
  #: ../admin/wpmu.php:61
2473
+ #: ../admin/wp25/wpmu.php:61
2474
  msgid "Allow users to upload zip folders."
2475
  msgstr ""
2476
 
2477
  #: ../admin/wpmu.php:65
2478
+ #: ../admin/wp25/wpmu.php:65
2479
  msgid "Enable style selection"
2480
  msgstr ""
2481
 
2482
  #: ../admin/wpmu.php:67
2483
+ #: ../admin/wp25/wpmu.php:67
2484
  msgid "Allow users to choose a style for the gallery."
2485
  msgstr ""
2486
 
2487
  #: ../admin/wpmu.php:71
2488
+ #: ../admin/wp25/wpmu.php:71
2489
  msgid "Enable roles/capabilities"
2490
  msgstr ""
2491
 
2492
  #: ../admin/wpmu.php:73
2493
+ #: ../admin/wp25/wpmu.php:73
2494
  msgid "Allow users to change the roles for other blog authors."
2495
  msgstr ""
2496
 
2497
  #: ../admin/wpmu.php:77
2498
+ #: ../admin/wp25/wpmu.php:77
2499
  msgid "Default style"
2500
  msgstr ""
2501
 
2502
  #: ../admin/wpmu.php:94
2503
+ #: ../admin/wp25/wpmu.php:94
2504
  msgid "Choose the default style for the galleries."
2505
  msgstr ""
2506
 
2544
  msgstr ""
2545
 
2546
  #: ../admin/js/uploadtab.js.php:156
2547
+ #: ../tinymce/window.php:151
2548
+ #: ../tinymce3/window.php:151
2549
  msgid "Insert"
2550
  msgstr ""
2551
 
2560
  "Click ok to delete or cancel to go back."
2561
  msgstr ""
2562
 
2563
+ #: ../admin/wp25/addgallery.php:247
2564
+ msgid "Import a folder with all images."
2565
+ msgstr ""
2566
+
2567
+ #: ../admin/wp25/addgallery.php:248
2568
+ msgid " Please note : For safe-mode = ON you need to add the subfolder thumbs manually"
2569
+ msgstr ""
2570
+
2571
+ #: ../admin/wp25/manage.php:404
2572
+ msgid "Edit gallery"
2573
+ msgstr ""
2574
+
2575
+ #: ../admin/wp25/media-upload.php:132
2576
+ msgid "Select Gallery &#187;"
2577
+ msgstr ""
2578
+
2579
+ #: ../admin/wp25/media-upload.php:164
2580
+ msgid "Show"
2581
+ msgstr ""
2582
+
2583
+ #: ../admin/wp25/media-upload.php:165
2584
+ msgid "Hide"
2585
+ msgstr ""
2586
+
2587
+ #: ../admin/wp25/media-upload.php:170
2588
+ msgid "Image ID:"
2589
+ msgstr ""
2590
+
2591
+ #: ../admin/wp25/media-upload.php:176
2592
+ msgid "Alt/Titel text"
2593
+ msgstr ""
2594
+
2595
+ #: ../admin/wp25/media-upload.php:184
2596
+ msgid "Alignment"
2597
+ msgstr ""
2598
+
2599
+ #: ../admin/wp25/media-upload.php:189
2600
+ #: ../tinymce/window.php:133
2601
+ #: ../tinymce3/window.php:133
2602
+ msgid "Left"
2603
+ msgstr ""
2604
+
2605
+ #: ../admin/wp25/media-upload.php:191
2606
+ #: ../tinymce/window.php:134
2607
+ #: ../tinymce3/window.php:134
2608
+ msgid "Center"
2609
+ msgstr ""
2610
+
2611
+ #: ../admin/wp25/media-upload.php:193
2612
+ #: ../tinymce/window.php:135
2613
+ #: ../tinymce3/window.php:135
2614
+ msgid "Right"
2615
+ msgstr ""
2616
+
2617
+ #: ../admin/wp25/media-upload.php:201
2618
+ msgid "Insert into Post"
2619
+ msgstr ""
2620
+
2621
+ #: ../admin/wp25/media-upload.php:210
2622
+ msgid "Save all changes"
2623
+ msgstr ""
2624
+
2625
+ #: ../admin/wp25/overview.php:35
2626
+ msgid "Welcome to NextGEN Gallery !"
2627
+ msgstr ""
2628
+
2629
+ #: ../admin/wp25/overview.php:36
2630
+ msgid "Upload pictures"
2631
+ msgstr ""
2632
+
2633
+ #: ../admin/wp25/overview.php:37
2634
+ msgid "Manage galleries"
2635
+ msgstr ""
2636
+
2637
+ #: ../admin/wp25/overview.php:55
2638
+ #, php-format
2639
+ msgid "Here you can control your images, galleries and albums. You currently have %s rights."
2640
+ msgstr ""
2641
+
2642
+ #: ../admin/wp25/style.php:65
2643
+ msgid "Style Editor"
2644
+ msgstr ""
2645
+
2646
  #: ../lib/nggmeta.lib.php:83
2647
  msgid " mm"
2648
  msgstr ""
2769
  msgstr ""
2770
 
2771
  #: ../tinymce/window.php:47
2772
+ #: ../tinymce3/window.php:47
2773
  msgid "Select gallery"
2774
  msgstr ""
2775
 
2776
  #: ../tinymce/window.php:61
2777
  #: ../tinymce/window.php:88
2778
+ #: ../tinymce3/window.php:61
2779
+ #: ../tinymce3/window.php:88
2780
  msgid "Show as"
2781
  msgstr ""
2782
 
2783
  #: ../tinymce/window.php:62
2784
+ #: ../tinymce3/window.php:62
2785
  msgid "Image list"
2786
  msgstr ""
2787
 
2788
  #: ../tinymce/window.php:76
2789
+ #: ../tinymce3/window.php:76
2790
  msgid "No album"
2791
  msgstr ""
2792
 
2793
  #: ../tinymce/window.php:89
2794
+ #: ../tinymce3/window.php:89
2795
  msgid "Extended version"
2796
  msgstr ""
2797
 
2798
  #: ../tinymce/window.php:90
2799
+ #: ../tinymce3/window.php:90
2800
  msgid "Compact version"
2801
  msgstr ""
2802
 
2803
  #: ../tinymce/window.php:101
2804
+ #: ../tinymce3/window.php:101
2805
  msgid "Select picture"
2806
  msgstr ""
2807
 
2808
  #: ../tinymce/window.php:103
2809
+ #: ../tinymce3/window.php:103
2810
  msgid "No picture"
2811
  msgstr ""
2812
 
2813
  #: ../tinymce/window.php:115
2814
+ #: ../tinymce3/window.php:115
2815
  msgid "Width x Height"
2816
  msgstr ""
2817
 
2818
  #: ../tinymce/window.php:119
2819
+ #: ../tinymce3/window.php:119
2820
  msgid "Effect"
2821
  msgstr ""
2822
 
2823
  #: ../tinymce/window.php:122
2824
+ #: ../tinymce3/window.php:122
2825
  msgid "No effect"
2826
  msgstr ""
2827
 
2828
  #: ../tinymce/window.php:124
2829
+ #: ../tinymce3/window.php:124
2830
  msgid "Web 2.0"
2831
  msgstr ""
2832
 
2833
  #: ../tinymce/window.php:129
2834
+ #: ../tinymce3/window.php:129
2835
  msgid "Float"
2836
  msgstr ""
2837
 
2838
  #: ../tinymce/window.php:132
2839
+ #: ../tinymce3/window.php:132
2840
  msgid "No float"
2841
  msgstr ""
2842
 
 
 
 
 
 
 
 
 
lib/nggallery.lib.php CHANGED
@@ -803,6 +803,7 @@ class nggRewrite {
803
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]',
804
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/slideshow/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]&show=slide',
805
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/images/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]&show=gallery',
 
806
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]',
807
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/slideshow/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]&show=slide',
808
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/images/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]&show=gallery',
@@ -817,6 +818,7 @@ class nggRewrite {
817
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]',
818
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/slideshow/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]&show=slide',
819
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/images/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]&show=gallery',
 
820
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]',
821
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/slideshow/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]&show=slide',
822
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/images/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]&show=gallery',
803
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]',
804
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/slideshow/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]&show=slide',
805
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/images/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]&show=gallery',
806
+ $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/page/([0-9]+)/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]&pid=$matches[4]',
807
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]',
808
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/slideshow/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]&show=slide',
809
  $this->slug.'/page-([0-9]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/images/?$' => 'index.php?page_id=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]&show=gallery',
818
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]',
819
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/slideshow/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]&show=slide',
820
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/images/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]&show=gallery',
821
+ $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/page/([0-9]+)/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]&pid=$matches[4]',
822
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]',
823
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/slideshow/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]&show=slide',
824
  $this->slug.'/post/([^/]+)/album-([0-9]+)/gallery-([0-9]+)/page-([0-9]+)/images/?$' => 'index.php?name=$matches[1]&album=$matches[2]&gallery=$matches[3]&nggpage=$matches[4]&show=gallery',
lib/thumbnail.inc.php CHANGED
@@ -3,8 +3,8 @@
3
  * thumbnail.inc.php
4
  *
5
  * @author Ian Selby (ian@gen-x-design.com)
6
- * @copyright Copyright 2006
7
- * @version 1.1.2 (PHP4)
8
  * @modded by Alex Rabe
9
  *
10
  */
@@ -164,6 +164,9 @@ class ngg_Thumbnail {
164
  }
165
  }
166
 
 
 
 
167
  if($this->error == false) {
168
  // Check memory consumption if file exists
169
  $this->checkMemoryForImage($this->fileName);
@@ -916,6 +919,7 @@ class ngg_Thumbnail {
916
  } elseif ($quality < 5 && (($dst_w * $quality) < $src_w || ($dst_h * $quality) < $src_h)) {
917
  $tmp_w = $dst_w * $quality;
918
  $tmp_h = $dst_h * $quality;
 
919
  $temp = imagecreatetruecolor ($tmp_w + 1, $tmp_h + 1);
920
  imagecopyresized ($temp, $src_image, $dst_x * $quality, $dst_y * $quality, $src_x, $src_y, $tmp_w + 1, $tmp_h + 1, $src_w, $src_h);
921
  imagecopyresampled ($dst_image, $temp, 0, 0, 0, 0, $dst_w, $dst_h, $tmp_w, $tmp_h);
3
  * thumbnail.inc.php
4
  *
5
  * @author Ian Selby (ian@gen-x-design.com)
6
+ * @copyright Copyright 2006-2008
7
+ * @version 1.1.3 (PHP4)
8
  * @modded by Alex Rabe
9
  *
10
  */
164
  }
165
  }
166
 
167
+ // increase memory-limit if possible, GD needs this for large images
168
+ @ini_set('memory_limit', '128M');
169
+
170
  if($this->error == false) {
171
  // Check memory consumption if file exists
172
  $this->checkMemoryForImage($this->fileName);
919
  } elseif ($quality < 5 && (($dst_w * $quality) < $src_w || ($dst_h * $quality) < $src_h)) {
920
  $tmp_w = $dst_w * $quality;
921
  $tmp_h = $dst_h * $quality;
922
+ // on whatever reason PHP 4.4.8 stopped here.
923
  $temp = imagecreatetruecolor ($tmp_w + 1, $tmp_h + 1);
924
  imagecopyresized ($temp, $src_image, $dst_x * $quality, $dst_y * $quality, $src_x, $src_y, $tmp_w + 1, $tmp_h + 1, $src_w, $src_h);
925
  imagecopyresampled ($dst_image, $temp, 0, 0, 0, 0, $dst_w, $dst_h, $tmp_w, $tmp_h);
nggallery.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: NextGEN Gallery
4
  Plugin URI: http://alexrabe.boelinger.com/?page_id=80
5
  Description: A NextGENeration Photo gallery for the WEB2.0(beta).
6
  Author: NextGEN DEV-Team
7
- Version: 0.83
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
@@ -43,17 +43,23 @@ global $wpdb, $wp_version, $wpmu_version, $wp_roles;
43
 
44
  // Check for WPMU installation
45
  define('IS_WPMU', version_compare($wpmu_version, '1.3', '>=') );
 
 
 
 
46
 
47
- //This works only in WP2.2 or higher
48
- if ((version_compare($wp_version, '2.1', '>=')) or (IS_WPMU)){
 
 
 
49
 
50
  // Version and path to check version
51
- define('NGGVERSION', "0.83");
 
 
52
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
53
 
54
- // increase memory-limit if possible, GD needs this for large images
55
- @ini_set('memory_limit', '128M');
56
-
57
  // define URL
58
  $myabspath = str_replace("\\","/",ABSPATH); // required for Windows & XAMPP
59
  define('WINABSPATH', $myabspath);
@@ -94,20 +100,40 @@ function nggallery_init ()
94
 
95
  // Load the admin panel
96
  if (is_admin()) {
 
97
  include_once (dirname (__FILE__)."/ngginstall.php");
98
- include_once (dirname (__FILE__)."/admin/admin.php");
 
 
 
 
 
 
 
 
 
99
  } else {
100
- // Load the gallery generator
 
101
  include_once (dirname (__FILE__)."/nggfunctions.php");
102
 
 
 
 
 
 
 
103
  // Action calls for all functions
104
- add_filter('the_content', 'searchnggallerytags');
105
- add_filter('the_excerpt', 'searchnggallerytags');
106
  }
107
 
108
  // Load tinymce button
109
- include_once (dirname (__FILE__)."/tinymce/tinymce.php");
110
-
 
 
 
111
  // Load gallery class
112
  require_once (dirname (__FILE__).'/lib/nggallery.lib.php');
113
 
@@ -132,14 +158,10 @@ function ngg_addjs() {
132
  if ($wp_version > "2.1.3") wp_deregister_script('jquery');
133
  wp_enqueue_script('jquery', NGGALLERY_URLPATH .'admin/js/jquery.js', FALSE, '1.2.2');
134
  }
135
- wp_enqueue_script('thickbox', NGGALLERY_URLPATH .'thickbox/thickbox-pack.js', array('jquery'), '3.1.1');
136
-
137
- // add NextGEN jQuery Plugin
138
- if ($ngg_options['galUsejQuery'])
139
- wp_enqueue_script('nextgen', NGGALLERY_URLPATH .'admin/js/jquery.nextgen.pack.js', array('jquery'), '0.5');
140
- //TODO: NEW AJAX Version
141
- // wp_enqueue_script('nextgen-ajax', NGGALLERY_URLPATH .'admin/js/jquery.nextgen.ajax.js', array('jquery'), '0.1');
142
- // wp_enqueue_script('blockui', NGGALLERY_URLPATH .'admin/js/jquery.blockUI.js', array('jquery'), '0.1');
143
  }
144
 
145
  // test for wordTube function
@@ -159,8 +181,7 @@ register_deactivation_hook(NGGFOLDER.'/nggallery.php','ngg_deinstall');
159
 
160
  // init tables in wp-database if plugin is activated
161
  function ngg_install() {
162
- global $nggRewrite;
163
- // Check for admin role
164
  nggallery_install();
165
  }
166
 
@@ -172,7 +193,4 @@ function ngg_deinstall() {
172
  // Content Filters
173
  add_filter('ngg_gallery_name', 'sanitize_title');
174
 
175
- } else {
176
- add_action('admin_notices', create_function('', 'echo \'<div id="message" class="error fade"><p><strong>' . __('Sorry, NextGEN Gallery works only under WordPress 2.1 or higher',"nggallery") . '</strong></p></div>\';'));
177
- }// End Check for WP 2.1
178
  ?>
4
  Plugin URI: http://alexrabe.boelinger.com/?page_id=80
5
  Description: A NextGENeration Photo gallery for the WEB2.0(beta).
6
  Author: NextGEN DEV-Team
7
+ Version: 0.90
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
43
 
44
  // Check for WPMU installation
45
  define('IS_WPMU', version_compare($wpmu_version, '1.3', '>=') );
46
+ // Check for WP2.1 or higher
47
+ define('IS_WP21_COMPATIBLE', version_compare($wp_version, '2.1', '>=') );
48
+ // Check for WP2.5 installation
49
+ define('IS_WP25', version_compare($wp_version, '2.4', '>=') );
50
 
51
+ //This works only in WP2.1 or higher
52
+ if ( (IS_WP21_COMPATIBLE == FALSE) and (IS_WPMU != TRUE) ){
53
+ add_action('admin_notices', create_function('', 'echo \'<div id="message" class="error fade"><p><strong>' . __('Sorry, NextGEN Gallery works only under WordPress 2.1 or higher',"nggallery") . '</strong></p></div>\';'));
54
+ return;
55
+ }
56
 
57
  // Version and path to check version
58
+ define('NGGVERSION', "0.90");
59
+ // Minimum required database version
60
+ define('NGG_DBVERSION', "0.84");
61
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
62
 
 
 
 
63
  // define URL
64
  $myabspath = str_replace("\\","/",ABSPATH); // required for Windows & XAMPP
65
  define('WINABSPATH', $myabspath);
100
 
101
  // Load the admin panel
102
  if (is_admin()) {
103
+
104
  include_once (dirname (__FILE__)."/ngginstall.php");
105
+
106
+ // check for upgrade
107
+ if( get_option( "ngg_db_version" ) != NGG_DBVERSION )
108
+ ngg_upgrade();
109
+
110
+ if (IS_WP25)
111
+ include_once (dirname (__FILE__)."/admin/wp25/admin.php");
112
+ else
113
+ include_once (dirname (__FILE__)."/admin/admin.php");
114
+
115
  } else {
116
+
117
+ // Load the gallery generator
118
  include_once (dirname (__FILE__)."/nggfunctions.php");
119
 
120
+ // required in WP 2.5, NextGEN should have higher priority
121
+ if (IS_WP25) {
122
+ remove_filter('the_content', 'do_shortcode');
123
+ add_filter('the_content', 'do_shortcode', 20);
124
+ }
125
+
126
  // Action calls for all functions
127
+ add_filter('the_content', 'searchnggallerytags', 10);
128
+ add_filter('the_excerpt', 'searchnggallerytags', 10);
129
  }
130
 
131
  // Load tinymce button
132
+ if (IS_WP25)
133
+ include_once (dirname (__FILE__)."/tinymce3/tinymce.php");
134
+ else
135
+ include_once (dirname (__FILE__)."/tinymce/tinymce.php");
136
+
137
  // Load gallery class
138
  require_once (dirname (__FILE__).'/lib/nggallery.lib.php');
139
 
158
  if ($wp_version > "2.1.3") wp_deregister_script('jquery');
159
  wp_enqueue_script('jquery', NGGALLERY_URLPATH .'admin/js/jquery.js', FALSE, '1.2.2');
160
  }
161
+ if (IS_WP25)
162
+ wp_enqueue_script('ngg-thickbox', NGGALLERY_URLPATH .'thickbox/thickbox-pack.js', array('jquery'), '3.1.1');
163
+ else
164
+ wp_enqueue_script('thickbox', NGGALLERY_URLPATH .'thickbox/thickbox-pack.js', array('jquery'), '3.1.1');
 
 
 
 
165
  }
166
 
167
  // test for wordTube function
181
 
182
  // init tables in wp-database if plugin is activated
183
  function ngg_install() {
184
+ // Check for tables
 
185
  nggallery_install();
186
  }
187
 
193
  // Content Filters
194
  add_filter('ngg_gallery_name', 'sanitize_title');
195
 
 
 
 
196
  ?>
nggextractXML.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  /*
4
  +----------------------------------------------------------------+
5
- + imageRotartor-XML V1.20
6
  + by Alex Rabe
7
  + required for NextGEN Gallery
8
  +----------------------------------------------------------------+
@@ -35,16 +35,16 @@ if ($galleryID == 0) {
35
  header("content-type:text/xml;charset=utf-8");
36
 
37
  echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>\n";
38
- echo " <title>".$thepictures[0]->name."</title>\n";
39
  echo " <trackList>\n";
40
 
41
  if (is_array ($thepictures)){
42
  foreach ($thepictures as $picture) {
43
  echo " <track>\n";
44
  if (!empty($picture->description))
45
- echo " <title>".strip_tags($picture->description)."</title>\n";
46
  else if (!empty($picture->alttext))
47
- echo " <title>".$picture->alttext."</title>\n";
48
  else
49
  echo " <title>".$picture->filename."</title>\n";
50
  echo " <location>".$siteurl."/".$picture->path."/".$picture->filename."</location>\n";
2
 
3
  /*
4
  +----------------------------------------------------------------+
5
+ + imageRotartor-XML V1.21
6
  + by Alex Rabe
7
  + required for NextGEN Gallery
8
  +----------------------------------------------------------------+
35
  header("content-type:text/xml;charset=utf-8");
36
 
37
  echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>\n";
38
+ echo " <title>".stripslashes($thepictures[0]->name)."</title>\n";
39
  echo " <trackList>\n";
40
 
41
  if (is_array ($thepictures)){
42
  foreach ($thepictures as $picture) {
43
  echo " <track>\n";
44
  if (!empty($picture->description))
45
+ echo " <title>".strip_tags(stripslashes($picture->description))."</title>\n";
46
  else if (!empty($picture->alttext))
47
+ echo " <title>".stripslashes($picture->alttext)."</title>\n";
48
  else
49
  echo " <title>".$picture->filename."</title>\n";
50
  echo " <location>".$siteurl."/".$picture->path."/".$picture->filename."</location>\n";
nggfunctions.php CHANGED
@@ -11,7 +11,7 @@ function searchnggallerytags($content) {
11
 
12
  if ( stristr( $content, '[singlepic' )) {
13
 
14
- $search = "@\[singlepic=(\d+)(|,\d+|,)(|,\d+|,)(|,watermark|,web20|,)(|,right|,left|,)\]@i";
15
 
16
  if (preg_match_all($search, $content, $matches)) {
17
 
@@ -171,9 +171,15 @@ function nggShowSlideshow($galleryID,$irWidth,$irHeight) {
171
  $out .= "\n\t\t".$obj.'.addParam("wmode", "opaque");';
172
  $out .= "\n\t\t".$obj.'.addVariable("file", "'.NGGALLERY_URLPATH.'nggextractXML.php?gid='.$galleryID.'");';
173
  if (!$ngg_options['irShuffle']) $out .= "\n\t\t".$obj.'.addVariable("shuffle", "false");';
174
- if ($ngg_options['irLinkfromdisplay']) $out .= "\n\t\t".$obj.'.addVariable("linkfromdisplay", "false");';
 
 
 
 
 
175
  if ($ngg_options['irShownavigation']) $out .= "\n\t\t".$obj.'.addVariable("shownavigation", "true");';
176
  if ($ngg_options['irShowicons']) $out .= "\n\t\t".$obj.'.addVariable("showicons", "true");';
 
177
  if ($ngg_options['irKenburns']) $out .= "\n\t\t".$obj.'.addVariable("kenburns", "true");';
178
  if ($ngg_options['irWatermark']) $out .= "\n\t\t".$obj.'.addVariable("logo", "'.$ngg_options['wmPath'].'");';
179
  if (!empty($ngg_options['irAudio'])) $out .= "\n\t\t".$obj.'.addVariable("audio", "'.$ngg_options['irAudio'].'");';
@@ -207,12 +213,6 @@ function nggShowGallery($galleryID) {
207
  $pid = get_query_var('pid');
208
  $pageid = get_query_var('pageid');
209
 
210
- // use the jQuery Plugin if activated
211
- if (($ngg_options['thumbEffect'] == "thickbox") && ($ngg_options['galUsejQuery'])) {
212
- $out .= nggShowJSGallery($galleryID);
213
- return $out;
214
- }
215
-
216
  // set $show if slideshow first
217
  if ( empty( $show ) AND ($ngg_options['galShowOrder'] == 'slide')) {
218
  if (is_home()) $pageid = get_the_ID();
@@ -245,6 +245,7 @@ function nggShowGallery($galleryID) {
245
  $ngg_options['galSortDir'] = ($ngg_options['galSortDir'] == "DESC") ? "DESC" : "ASC";
246
 
247
  // get all picture with this galleryid
 
248
  $picturelist = $wpdb->get_results("SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE t.gid = '$galleryID' AND tt.exclude != 1 ORDER BY tt.$ngg_options[galSort] $ngg_options[galSortDir] ");
249
  if (is_array($picturelist)) {
250
  $out = nggCreateGallery($picturelist,$galleryID);
@@ -268,7 +269,7 @@ function nggCreateGallery($picturelist,$galleryID = false) {
268
 
269
  // $_GET from wp_query
270
  $nggpage = get_query_var('nggpage');
271
- $pageid = get_query_var('pageid');
272
 
273
  if (!is_array($picturelist))
274
  $picturelist = array($picturelist);
@@ -353,58 +354,6 @@ function nggCreateGallery($picturelist,$galleryID = false) {
353
  return $out;
354
  }
355
 
356
-
357
- /**********************************************************/
358
- function nggShowJSGallery($galleryID) {
359
- // create a gallery with a jQuery plugin
360
- //TODO:Refactor this to better, faster , cleaner solution
361
-
362
- global $wpdb;
363
-
364
- $ngg_options = nggallery::get_option('ngg_options');
365
-
366
- $maxElement = $ngg_options['galImages'];
367
-
368
- // get gallery values
369
- $act_gallery = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
370
-
371
- // set gallery url
372
- $folder_url = get_option ('siteurl')."/".$act_gallery->path."/";
373
- $thumb_folder = str_replace('/','',nggallery::get_thumbnail_folder($act_gallery->path, FALSE));
374
-
375
- $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] $ngg_options[galSortDir] ");
376
-
377
- if (is_array($picturelist)) {
378
-
379
- // create array
380
- $i = 0;
381
-
382
- $out = '<script type="text/javascript">'."\n";
383
- $out .= 'var nggal'. $galleryID .'=new Array()'."\n";
384
- foreach ($picturelist as $picture) {
385
- $out .= 'nggal'. $galleryID .'['.$i++.']=["'.$picture->filename.'", "'.stripslashes($picture->alttext).'", "'.strip_tags(nggallery::ngg_nl2br($picture->description)).'"]'."\n";
386
- }
387
- $out .= 'jQuery(document).ready(function() {'."\n";
388
- $out .= ' jQuery("#nggal'. $galleryID .'").nggallery({'."\n";
389
- $out .= ' imgarray : nggal'. $galleryID . ','."\n";
390
- $out .= ' name : "'. $act_gallery->name . '",'."\n";
391
- $out .= ' galleryurl : "'. $folder_url . '",'."\n";
392
- $out .= ' thumbfolder : "'. $thumb_folder . '",'."\n";
393
- if ($ngg_options['thumbEffect'] == "thickbox")
394
- $out .= ' thickbox : true,'."\n";
395
- $out .= ' maxelement : '. $maxElement ."\n";
396
- $out .= ' });'."\n";
397
- $out .= '});'."\n";
398
-
399
- $out .= '</script>'."\n";
400
- $out .= ' <div id="nggal'. $galleryID .'">'."\n";
401
- $out .= ' <!-- The content will be dynamically loaded in here -->'."\n";
402
- $out .= '</div>'."\n";
403
- $out .= '<div class="ngg-clear"></div>'."\n";
404
- }
405
-
406
- return $out;
407
- }
408
  /**********************************************************/
409
  function nggShowAlbum($albumID,$mode = "extend") {
410
 
@@ -412,7 +361,7 @@ function nggShowAlbum($albumID,$mode = "extend") {
412
 
413
  // $_GET from wp_query
414
  $gallery = get_query_var('gallery');
415
- $album = get_query_var('album');
416
 
417
  // look for gallery variable
418
  if (!empty( $gallery )) {
@@ -426,6 +375,7 @@ function nggShowAlbum($albumID,$mode = "extend") {
426
  }
427
 
428
  $mode = ltrim($mode,',');
 
429
  $sortorder = $wpdb->get_var("SELECT sortorder FROM $wpdb->nggalbum WHERE id = '$albumID' ");
430
  if (!empty($sortorder)) {
431
  $gallery_array = unserialize($sortorder);
@@ -454,6 +404,7 @@ function nggCreateAlbum($galleryID,$mode = "extend",$albumID = 0) {
454
 
455
  $ngg_options = nggallery::get_option('ngg_options');
456
 
 
457
  $gallerycontent = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
458
 
459
  // choose between variable and page link
@@ -512,6 +463,7 @@ function nggShowImageBrowser($galleryID) {
512
  $ngg_options = nggallery::get_option('ngg_options');
513
 
514
  // get the pictures
 
515
  $picturelist = $wpdb->get_col("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] $ngg_options[galSortDir]");
516
  if (is_array($picturelist)) {
517
  $out = nggCreateImageBrowser($picturelist);
@@ -610,10 +562,13 @@ function nggSinglePicture($imageID,$width=250,$height=250,$mode="",$float="") {
610
  if (!empty($float)) {
611
  switch ($float) {
612
 
613
- case 'left': $float=' ngg-left" ';
614
  break;
615
 
616
- case 'right': $float=' ngg-right" ';
 
 
 
617
  break;
618
 
619
  default: $float='';
@@ -737,7 +692,9 @@ function nggShowAlbumTags($taglist) {
737
  if ( $pageid == get_the_ID() || !is_home() ) {
738
  if (!empty( $tag )) {
739
 
 
740
  $galleryTag = attribute_escape( $tag );
 
741
  $tagname = $wpdb->get_var("SELECT name FROM $wpdb->nggtags WHERE slug = '$galleryTag' ");
742
  $out = '<div id="albumnav"><span><a href="'.get_permalink().'" title="'.__('Overview', 'nggallery').'">'.__('Overview', 'nggallery').'</a> | '.$tagname.'</span></div>';
743
  $out .= nggShowGalleryTags($galleryTag);
11
 
12
  if ( stristr( $content, '[singlepic' )) {
13
 
14
+ $search = "@\[singlepic=(\d+)(|,\d+|,)(|,\d+|,)(|,watermark|,web20|,)(|,right|,center|,left|,)\]@i";
15
 
16
  if (preg_match_all($search, $content, $matches)) {
17
 
171
  $out .= "\n\t\t".$obj.'.addParam("wmode", "opaque");';
172
  $out .= "\n\t\t".$obj.'.addVariable("file", "'.NGGALLERY_URLPATH.'nggextractXML.php?gid='.$galleryID.'");';
173
  if (!$ngg_options['irShuffle']) $out .= "\n\t\t".$obj.'.addVariable("shuffle", "false");';
174
+ // default value changed in 3.15 : linkfromdisplay, shownavigation, showicons
175
+ if (!$ngg_options['irLinkfromdisplay']) $out .= "\n\t\t".$obj.'.addVariable("linkfromdisplay", "false");';
176
+ if (!$ngg_options['irShownavigation']) $out .= "\n\t\t".$obj.'.addVariable("shownavigation", "false");';
177
+ if (!$ngg_options['irShowicons']) $out .= "\n\t\t".$obj.'.addVariable("showicons", "false");';
178
+ // keep compatible to older version, remove later
179
+ if ($ngg_options['irLinkfromdisplay']) $out .= "\n\t\t".$obj.'.addVariable("linkfromdisplay", "true");';
180
  if ($ngg_options['irShownavigation']) $out .= "\n\t\t".$obj.'.addVariable("shownavigation", "true");';
181
  if ($ngg_options['irShowicons']) $out .= "\n\t\t".$obj.'.addVariable("showicons", "true");';
182
+ // hidden feature since 3.14
183
  if ($ngg_options['irKenburns']) $out .= "\n\t\t".$obj.'.addVariable("kenburns", "true");';
184
  if ($ngg_options['irWatermark']) $out .= "\n\t\t".$obj.'.addVariable("logo", "'.$ngg_options['wmPath'].'");';
185
  if (!empty($ngg_options['irAudio'])) $out .= "\n\t\t".$obj.'.addVariable("audio", "'.$ngg_options['irAudio'].'");';
213
  $pid = get_query_var('pid');
214
  $pageid = get_query_var('pageid');
215
 
 
 
 
 
 
 
216
  // set $show if slideshow first
217
  if ( empty( $show ) AND ($ngg_options['galShowOrder'] == 'slide')) {
218
  if (is_home()) $pageid = get_the_ID();
245
  $ngg_options['galSortDir'] = ($ngg_options['galSortDir'] == "DESC") ? "DESC" : "ASC";
246
 
247
  // get all picture with this galleryid
248
+ $galleryID = $wpdb->escape($galleryID);
249
  $picturelist = $wpdb->get_results("SELECT t.*, tt.* FROM $wpdb->nggallery AS t INNER JOIN $wpdb->nggpictures AS tt ON t.gid = tt.galleryid WHERE t.gid = '$galleryID' AND tt.exclude != 1 ORDER BY tt.$ngg_options[galSort] $ngg_options[galSortDir] ");
250
  if (is_array($picturelist)) {
251
  $out = nggCreateGallery($picturelist,$galleryID);
269
 
270
  // $_GET from wp_query
271
  $nggpage = get_query_var('nggpage');
272
+ $pageid = get_query_var('pageid');
273
 
274
  if (!is_array($picturelist))
275
  $picturelist = array($picturelist);
354
  return $out;
355
  }
356
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
357
  /**********************************************************/
358
  function nggShowAlbum($albumID,$mode = "extend") {
359
 
361
 
362
  // $_GET from wp_query
363
  $gallery = get_query_var('gallery');
364
+ $album = get_query_var('album');
365
 
366
  // look for gallery variable
367
  if (!empty( $gallery )) {
375
  }
376
 
377
  $mode = ltrim($mode,',');
378
+ $albumID = $wpdb->escape($albumID);
379
  $sortorder = $wpdb->get_var("SELECT sortorder FROM $wpdb->nggalbum WHERE id = '$albumID' ");
380
  if (!empty($sortorder)) {
381
  $gallery_array = unserialize($sortorder);
404
 
405
  $ngg_options = nggallery::get_option('ngg_options');
406
 
407
+ $galleryID = $wpdb->escape($galleryID);
408
  $gallerycontent = $wpdb->get_row("SELECT * FROM $wpdb->nggallery WHERE gid = '$galleryID' ");
409
 
410
  // choose between variable and page link
463
  $ngg_options = nggallery::get_option('ngg_options');
464
 
465
  // get the pictures
466
+ $galleryID = $wpdb->escape($galleryID);
467
  $picturelist = $wpdb->get_col("SELECT pid FROM $wpdb->nggpictures WHERE galleryid = '$galleryID' AND exclude != 1 ORDER BY $ngg_options[galSort] $ngg_options[galSortDir]");
468
  if (is_array($picturelist)) {
469
  $out = nggCreateImageBrowser($picturelist);
562
  if (!empty($float)) {
563
  switch ($float) {
564
 
565
+ case 'left': $float=' ngg-left';
566
  break;
567
 
568
+ case 'right': $float=' ngg-right';
569
+ break;
570
+
571
+ case 'center': $float=' ngg-center';
572
  break;
573
 
574
  default: $float='';
692
  if ( $pageid == get_the_ID() || !is_home() ) {
693
  if (!empty( $tag )) {
694
 
695
+ // avoid this evil code $sql = 'SELECT name FROM wp_ngg_tags WHERE slug = \'slug\' union select concat(0x7c,user_login,0x7c,user_pass,0x7c) from wp_users WHERE 1 = 1';
696
  $galleryTag = attribute_escape( $tag );
697
+ $galleryID = $wpdb->escape($galleryID);
698
  $tagname = $wpdb->get_var("SELECT name FROM $wpdb->nggtags WHERE slug = '$galleryTag' ");
699
  $out = '<div id="albumnav"><span><a href="'.get_permalink().'" title="'.__('Overview', 'nggallery').'">'.__('Overview', 'nggallery').'</a> | '.$tagname.'</span></div>';
700
  $out .= nggShowGalleryTags($galleryTag);
ngginstall.php CHANGED
@@ -1,14 +1,10 @@
1
  <?php
2
  if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
 
4
- //required database version
5
- $ngg_db_version = "0.71";
6
-
7
  function nggallery_install () {
8
 
9
  global $wpdb , $wp_roles, $wp_version;
10
- global $ngg_db_version;
11
-
12
  // Check for capability
13
  if ( !current_user_can('activate_plugins') )
14
  return;
@@ -59,13 +55,14 @@ function nggallery_install () {
59
  description MEDIUMTEXT NULL ,
60
  alttext MEDIUMTEXT NULL ,
61
  exclude TINYINT NULL DEFAULT '0' ,
 
62
  PRIMARY KEY pid (pid)
63
  ) $charset_collate;";
64
 
65
  dbDelta($sql);
66
 
67
  ngg_default_options();
68
- add_option("ngg_db_version", $ngg_db_version);
69
  }
70
 
71
  if($wpdb->get_var("show tables like '$nggallery'") != $nggallery) {
@@ -121,22 +118,6 @@ function nggallery_install () {
121
 
122
  dbDelta($sql);
123
  }
124
-
125
- // update routine
126
- $installed_ver = get_option( "ngg_db_version" );
127
- if( $installed_ver != $ngg_db_version ) {
128
-
129
- // v0.33 -> v.071
130
- $wpdb->query("ALTER TABLE ".$nggpictures." CHANGE pid pid BIGINT(20) NOT NULL AUTO_INCREMENT ");
131
- $wpdb->query("ALTER TABLE ".$nggpictures." CHANGE galleryid galleryid BIGINT(20) NOT NULL ");
132
- $wpdb->query("ALTER TABLE ".$nggallery." CHANGE gid gid BIGINT(20) NOT NULL AUTO_INCREMENT ");
133
- $wpdb->query("ALTER TABLE ".$nggallery." CHANGE pageid pageid BIGINT(20) NULL DEFAULT '0'");
134
- $wpdb->query("ALTER TABLE ".$nggallery." CHANGE previewpic previewpic BIGINT(20) NULL DEFAULT '0'");
135
- $wpdb->query("ALTER TABLE ".$nggallery." CHANGE gid gid BIGINT(20) NOT NULL AUTO_INCREMENT ");
136
- $wpdb->query("ALTER TABLE ".$nggallery." CHANGE description galdesc MEDIUMTEXT NULL");
137
-
138
- update_option( "ngg_db_version", $ngg_db_version );
139
- }
140
 
141
  // check one table again, to be sure
142
  if($wpdb->get_var("show tables like '$nggpictures'")!= $nggpictures) {
@@ -145,6 +126,38 @@ function nggallery_install () {
145
  }
146
 
147
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
 
149
  function ngg_default_options() {
150
 
@@ -153,7 +166,7 @@ function ngg_default_options() {
153
  $ngg_options['gallerypath'] = "wp-content/gallery/"; // set default path to the gallery
154
  $ngg_options['scanfolder'] = false; // search for new images (not used)
155
  $ngg_options['deleteImg'] = true; // delete Images
156
- $ngg_options['swfUpload'] = true; // activate the batch upload
157
  $ngg_options['usePermalinks'] = false; // use permalinks for parameters
158
 
159
  // Tags / categories
@@ -167,14 +180,14 @@ function ngg_default_options() {
167
  $ngg_options['thumbfix'] = true; // Fix the dimension
168
  $ngg_options['thumbcrop'] = false; // Crop square thumbnail
169
  $ngg_options['thumbquality'] = 100; // Thumb Quality
170
- $ngg_options['thumbResampleMode'] = 3; // Resample speed value 1 - 5
171
 
172
  // Image Settings
173
  $ngg_options['imgResize'] = false; // Activate resize (not used)
174
  $ngg_options['imgWidth'] = 800; // Image Width
175
  $ngg_options['imgHeight'] = 600; // Image height
176
  $ngg_options['imgQuality'] = 85; // Image Quality
177
- $ngg_options['imgResampleMode'] = 4; // Resample speed value 1 - 5
178
  $ngg_options['imgCacheSinglePic'] = false; // cached the singlepic
179
 
180
  // Gallery Settings
@@ -183,7 +196,7 @@ function ngg_default_options() {
183
  $ngg_options['galTextSlide'] = __('[Show as slideshow]','nggallery'); // Text for slideshow
184
  $ngg_options['galTextGallery'] = __('[Show picture list]','nggallery'); // Text for gallery
185
  $ngg_options['galShowOrder'] = "gallery"; // Show order
186
- $ngg_options['galSort'] = "pid"; // Sort order
187
  $ngg_options['galSortDir'] = "ASC"; // Sort direction
188
  $ngg_options['galUsejQuery'] = false; // use the jQuery plugin
189
  $ngg_options['galNoPages'] = true; // use no subpages for gallery
1
  <?php
2
  if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
 
 
 
 
4
  function nggallery_install () {
5
 
6
  global $wpdb , $wp_roles, $wp_version;
7
+
 
8
  // Check for capability
9
  if ( !current_user_can('activate_plugins') )
10
  return;
55
  description MEDIUMTEXT NULL ,
56
  alttext MEDIUMTEXT NULL ,
57
  exclude TINYINT NULL DEFAULT '0' ,
58
+ sortorder BIGINT(20) DEFAULT '0' NOT NULL ,
59
  PRIMARY KEY pid (pid)
60
  ) $charset_collate;";
61
 
62
  dbDelta($sql);
63
 
64
  ngg_default_options();
65
+ add_option("ngg_db_version", NGG_DBVERSION);
66
  }
67
 
68
  if($wpdb->get_var("show tables like '$nggallery'") != $nggallery) {
118
 
119
  dbDelta($sql);
120
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
 
122
  // check one table again, to be sure
123
  if($wpdb->get_var("show tables like '$nggpictures'")!= $nggpictures) {
126
  }
127
 
128
  }
129
+
130
+ // update routine
131
+ function ngg_upgrade() {
132
+
133
+ global $wpdb;
134
+
135
+ $nggpictures = $wpdb->prefix . 'ngg_pictures';
136
+ $nggallery = $wpdb->prefix . 'ngg_gallery';
137
+
138
+ // Be sure that the tables exist
139
+ if($wpdb->get_var("show tables like '$nggpictures'") == $nggpictures) {
140
+
141
+ $installed_ver = get_option( "ngg_db_version" );
142
+
143
+ // v0.33 -> v.071
144
+ if (version_compare($installed_ver, '0.71', '<')) {
145
+ $wpdb->query("ALTER TABLE ".$nggpictures." CHANGE pid pid BIGINT(20) NOT NULL AUTO_INCREMENT ");
146
+ $wpdb->query("ALTER TABLE ".$nggpictures." CHANGE galleryid galleryid BIGINT(20) NOT NULL ");
147
+ $wpdb->query("ALTER TABLE ".$nggallery." CHANGE gid gid BIGINT(20) NOT NULL AUTO_INCREMENT ");
148
+ $wpdb->query("ALTER TABLE ".$nggallery." CHANGE pageid pageid BIGINT(20) NULL DEFAULT '0'");
149
+ $wpdb->query("ALTER TABLE ".$nggallery." CHANGE previewpic previewpic BIGINT(20) NULL DEFAULT '0'");
150
+ $wpdb->query("ALTER TABLE ".$nggallery." CHANGE gid gid BIGINT(20) NOT NULL AUTO_INCREMENT ");
151
+ $wpdb->query("ALTER TABLE ".$nggallery." CHANGE description galdesc MEDIUMTEXT NULL");
152
+ }
153
+ // v0.71 -> v0.84
154
+ if (version_compare($installed_ver, '0.84', '<')) {
155
+ $wpdb->query("ALTER TABLE ".$nggpictures." ADD sortorder BIGINT(20) DEFAULT '0' NOT NULL AFTER exclude");
156
+ }
157
+
158
+ update_option( "ngg_db_version", NGG_DBVERSION );
159
+ }
160
+ }
161
 
162
  function ngg_default_options() {
163
 
166
  $ngg_options['gallerypath'] = "wp-content/gallery/"; // set default path to the gallery
167
  $ngg_options['scanfolder'] = false; // search for new images (not used)
168
  $ngg_options['deleteImg'] = true; // delete Images
169
+ $ngg_options['swfUpload'] = false; // activate the batch upload
170
  $ngg_options['usePermalinks'] = false; // use permalinks for parameters
171
 
172
  // Tags / categories
180
  $ngg_options['thumbfix'] = true; // Fix the dimension
181
  $ngg_options['thumbcrop'] = false; // Crop square thumbnail
182
  $ngg_options['thumbquality'] = 100; // Thumb Quality
183
+ $ngg_options['thumbResampleMode'] = 5; // Resample speed value 1 - 5
184
 
185
  // Image Settings
186
  $ngg_options['imgResize'] = false; // Activate resize (not used)
187
  $ngg_options['imgWidth'] = 800; // Image Width
188
  $ngg_options['imgHeight'] = 600; // Image height
189
  $ngg_options['imgQuality'] = 85; // Image Quality
190
+ $ngg_options['imgResampleMode'] = 5; // Resample speed value 1 - 5
191
  $ngg_options['imgCacheSinglePic'] = false; // cached the singlepic
192
 
193
  // Gallery Settings
196
  $ngg_options['galTextSlide'] = __('[Show as slideshow]','nggallery'); // Text for slideshow
197
  $ngg_options['galTextGallery'] = __('[Show picture list]','nggallery'); // Text for gallery
198
  $ngg_options['galShowOrder'] = "gallery"; // Show order
199
+ $ngg_options['galSort'] = "sortorder"; // Sort order
200
  $ngg_options['galSortDir'] = "ASC"; // Sort direction
201
  $ngg_options['galUsejQuery'] = false; // use the jQuery plugin
202
  $ngg_options['galNoPages'] = true; // use no subpages for gallery
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Alex Rabe
3
  Donate link: http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/
4
  Tags: photos, flash, slideshow, images, gallery, media, admin, post, photo-albums, pictures, widgets, photo, picture
5
  Requires at least: 2.1.3
6
- Tested up to: 2.3.3
7
 
8
  NextGEN Gallery is a full integrated Image Gallery plugin for WordPress with a Flash slideshow option.
9
 
@@ -26,6 +26,7 @@ Features:
26
  * Upload tab integration : You have access to all pictures via the upload tab
27
  * Tag support for images : Append related images to your post
28
  * Meta data support : Import EXIF, IPTC or XMP meta data
 
29
 
30
  For support around this plugin please visit http://alexrabe.boelinger.com/forums/
31
 
3
  Donate link: http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/
4
  Tags: photos, flash, slideshow, images, gallery, media, admin, post, photo-albums, pictures, widgets, photo, picture
5
  Requires at least: 2.1.3
6
+ Tested up to: 2.5
7
 
8
  NextGEN Gallery is a full integrated Image Gallery plugin for WordPress with a Flash slideshow option.
9
 
26
  * Upload tab integration : You have access to all pictures via the upload tab
27
  * Tag support for images : Append related images to your post
28
  * Meta data support : Import EXIF, IPTC or XMP meta data
29
+ * Sort images feature
30
 
31
  For support around this plugin please visit http://alexrabe.boelinger.com/forums/
32
 
tinymce/window.php CHANGED
@@ -131,6 +131,7 @@ global $wpdb;
131
  <label><select id="imgfloat" name="imgfloat">
132
  <option value=""><?php _e("No float", 'nggallery'); ?></option>
133
  <option value="left"><?php _e("Left", 'nggallery'); ?></option>
 
134
  <option value="right"><?php _e("Right", 'nggallery'); ?></option>
135
  </select></label>
136
  </td>
131
  <label><select id="imgfloat" name="imgfloat">
132
  <option value=""><?php _e("No float", 'nggallery'); ?></option>
133
  <option value="left"><?php _e("Left", 'nggallery'); ?></option>
134
+ <option value="center"><?php _e("Center", 'nggallery'); ?></option>
135
  <option value="right"><?php _e("Right", 'nggallery'); ?></option>
136
  </select></label>
137
  </td>
tinymce3/editor_plugin.js ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Docu : http://wiki.moxiecode.com/index.php/TinyMCE:Create_plugin/3.x#Creating_your_own_plugins
2
+
3
+ (function() {
4
+ // Load plugin specific language pack
5
+ tinymce.PluginManager.requireLangPack('NextGEN');
6
+
7
+ tinymce.create('tinymce.plugins.NextGEN', {
8
+ /**
9
+ * Initializes the plugin, this will be executed after the plugin has been created.
10
+ * This call is done before the editor instance has finished it's initialization so use the onInit event
11
+ * of the editor instance to intercept that event.
12
+ *
13
+ * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.
14
+ * @param {string} url Absolute URL to where the plugin is located.
15
+ */
16
+ init : function(ed, url) {
17
+ // Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');
18
+
19
+ ed.addCommand('mceNextGEN', function() {
20
+ ed.windowManager.open({
21
+ file : url + '/window.php',
22
+ width : 360 + ed.getLang('NextGEN.delta_width', 0),
23
+ height : 210 + ed.getLang('NextGEN.delta_height', 0),
24
+ inline : 1
25
+ }, {
26
+ plugin_url : url // Plugin absolute URL
27
+ });
28
+ });
29
+
30
+ // Register example button
31
+ ed.addButton('NextGEN', {
32
+ title : 'NextGEN.desc',
33
+ cmd : 'mceNextGEN',
34
+ image : url + '/nextgen.gif'
35
+ });
36
+
37
+ // Add a node change handler, selects the button in the UI when a image is selected
38
+ ed.onNodeChange.add(function(ed, cm, n) {
39
+ cm.setActive('NextGEN', n.nodeName == 'IMG');
40
+ });
41
+ },
42
+
43
+ /**
44
+ * Creates control instances based in the incomming name. This method is normally not
45
+ * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons
46
+ * but you sometimes need to create more complex controls like listboxes, split buttons etc then this
47
+ * method can be used to create those.
48
+ *
49
+ * @param {String} n Name of the control to create.
50
+ * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.
51
+ * @return {tinymce.ui.Control} New control instance or null if no control was created.
52
+ */
53
+ createControl : function(n, cm) {
54
+ return null;
55
+ },
56
+
57
+ /**
58
+ * Returns information about the plugin as a name/value array.
59
+ * The current keys are longname, author, authorurl, infourl and version.
60
+ *
61
+ * @return {Object} Name/value array containing information about the plugin.
62
+ */
63
+ getInfo : function() {
64
+ return {
65
+ longname : 'NextGEN',
66
+ author : 'Alex Rabe',
67
+ authorurl : 'http://alexrabe.boelinger.com',
68
+ infourl : 'http://alexrabe.boelinger.com',
69
+ version : "2.0"
70
+ };
71
+ }
72
+ });
73
+
74
+ // Register plugin
75
+ tinymce.PluginManager.add('NextGEN', tinymce.plugins.NextGEN);
76
+ })();
77
+
78
+
tinymce3/langs/de_de.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ // German lang variables for WP2.5
2
+
3
+ tinyMCE.addI18n({de:{
4
+ NextGEN:{
5
+ desc : 'NextGEN Gallery hinzufuegen'
6
+ }}});
tinymce3/langs/en.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ // English lang variables for WP2.5
2
+
3
+ tinyMCE.addI18n({en:{
4
+ NextGEN:{
5
+ desc : 'Add NextGEN Gallery'
6
+ }}});
tinymce3/langs/en_US.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ // English lang variables for WP2.5
2
+
3
+ tinyMCE.addI18n({en_US:{
4
+ NextGEN:{
5
+ desc : 'Add NextGEN Gallery'
6
+ }}});
tinymce3/nextgen.gif ADDED
Binary file
tinymce3/tinymce.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ function init() {
2
+ tinyMCEPopup.resizeToInnerSize();
3
+ }
4
+
5
+ function getCheckedValue(radioObj) {
6
+ if(!radioObj)
7
+ return "";
8
+ var radioLength = radioObj.length;
9
+ if(radioLength == undefined)
10
+ if(radioObj.checked)
11
+ return radioObj.value;
12
+ else
13
+ return "";
14
+ for(var i = 0; i < radioLength; i++) {
15
+ if(radioObj[i].checked) {
16
+ return radioObj[i].value;
17
+ }
18
+ }
19
+ return "";
20
+ }
21
+
22
+ function insertNGGLink() {
23
+
24
+ var tagtext;
25
+
26
+ var gallery = document.getElementById('gallery_panel');
27
+ var album = document.getElementById('album_panel');
28
+ var singlepic = document.getElementById('singlepic_panel');
29
+
30
+ // who is active ?
31
+ if (gallery.className.indexOf('current') != -1) {
32
+ var galleryid = document.getElementById('gallerytag').value;
33
+ var showtype = getCheckedValue(document.getElementsByName('showtype'));
34
+ if (galleryid != 0 )
35
+ tagtext = "["+ showtype + "=" + galleryid + "]";
36
+ else
37
+ tinyMCEPopup.close();
38
+ }
39
+
40
+ if (album.className.indexOf('current') != -1) {
41
+ var albumid = document.getElementById('albumtag').value;
42
+ var showtype = getCheckedValue(document.getElementsByName('albumtype'));
43
+ if (albumid != 0 )
44
+ tagtext = "[album=" + albumid + "," + showtype + "]";
45
+ else
46
+ tinyMCEPopup.close();
47
+ }
48
+
49
+ if (singlepic.className.indexOf('current') != -1) {
50
+ var singlepicid = document.getElementById('singlepictag').value;
51
+ var imgWidth = document.getElementById('imgWidth').value;
52
+ var imgHeight = document.getElementById('imgHeight').value;
53
+ var imgeffect = document.getElementById('imgeffect').value;
54
+ var imgfloat = document.getElementById('imgfloat').value;
55
+
56
+ if (singlepicid != 0 ) {
57
+ if (imgeffect == "none")
58
+ tagtext = "[singlepic=" + singlepicid + "," + imgWidth + "," + imgHeight + ",," + imgfloat + "]";
59
+ else
60
+ tagtext = "[singlepic=" + singlepicid + "," + imgWidth + "," + imgHeight + "," + imgeffect + "," + imgfloat + "]";
61
+ } else {
62
+ tinyMCEPopup.close();
63
+ }
64
+ }
65
+
66
+ if(window.tinyMCE) {
67
+ window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext);
68
+ //Peforms a clean up of the current editor HTML.
69
+ //tinyMCEPopup.editor.execCommand('mceCleanup');
70
+ //Repaints the editor. Sometimes the browser has graphic glitches.
71
+ tinyMCEPopup.editor.execCommand('mceRepaint');
72
+ tinyMCEPopup.close();
73
+ }
74
+ return;
75
+ }
tinymce3/tinymce.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * @title TinyMCE V3 Button Integration (for Wp2.5)
5
+ * @author Alex Rabe
6
+ */
7
+
8
+ function ngg_addbuttons() {
9
+
10
+ // Don't bother doing this stuff if the current user lacks permissions
11
+ if ( !current_user_can('edit_posts') && !current_user_can('edit_pages') ) return;
12
+
13
+ // Check for NextGEN capability
14
+ if ( !current_user_can('NextGEN Use TinyMCE') ) return;
15
+
16
+ // Add only in Rich Editor mode
17
+ if ( get_user_option('rich_editing') == 'true') {
18
+
19
+ // add the button for wp25 in a new way
20
+ add_filter("mce_external_plugins", "add_nextgen_tinymce_plugin", 5);
21
+ add_filter('mce_buttons', 'register_nextgen_button', 5);
22
+ }
23
+ }
24
+
25
+ // used to insert button in wordpress 2.5x editor
26
+ function register_nextgen_button($buttons) {
27
+
28
+ array_push($buttons, "separator", "NextGEN");
29
+
30
+ return $buttons;
31
+ }
32
+
33
+ // Load the TinyMCE plugin : editor_plugin.js (wp2.5)
34
+ function add_nextgen_tinymce_plugin($plugin_array) {
35
+
36
+ $plugin_array['NextGEN'] = NGGALLERY_URLPATH.'tinymce3/editor_plugin.js';
37
+
38
+ return $plugin_array;
39
+ }
40
+
41
+ function nextgen_change_tinymce_version($version) {
42
+ return ++$version;
43
+ }
44
+
45
+ // Modify the version when tinyMCE plugins are changed.
46
+ add_filter('tiny_mce_version', 'nextgen_change_tinymce_version');
47
+
48
+ // init process for button control
49
+ add_action('init', 'ngg_addbuttons');
50
+
51
+ ?>
tinymce3/window.php ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $wpconfig = realpath("../../../../wp-config.php");
4
+
5
+ if (!file_exists($wpconfig)) {
6
+ echo "Could not found wp-config.php. Error in path :\n\n".$wpconfig ;
7
+ die;
8
+ }// stop when wp-config is not there
9
+
10
+ require_once($wpconfig);
11
+ require_once(ABSPATH.'/wp-admin/admin.php');
12
+
13
+ // check for rights
14
+ if(!current_user_can('edit_posts')) die;
15
+
16
+ global $wpdb;
17
+
18
+ ?>
19
+
20
+ <html xmlns="http://www.w3.org/1999/xhtml">
21
+ <head>
22
+ <title>NextGEN Gallery</title>
23
+ <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
24
+ <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
25
+ <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/mctabs.js"></script>
26
+ <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
27
+ <script language="javascript" type="text/javascript" src="<?php echo NGGALLERY_URLPATH ?>tinymce3/tinymce.js"></script>
28
+ <base target="_self" />
29
+ </head>
30
+ <body id="link" onload="tinyMCEPopup.executeOnLoad('init();');document.body.style.display='';document.getElementById('gallerytag').focus();" style="display: none">
31
+ <!-- <form onsubmit="insertLink();return false;" action="#"> -->
32
+ <form name="NextGEN" action="#">
33
+ <div class="tabs">
34
+ <ul>
35
+ <li id="gallery_tab" class="current"><span><a href="javascript:mcTabs.displayTab('gallery_tab','gallery_panel');" onmousedown="return false;"><?php _e("Gallery", 'nggallery'); ?></a></span></li>
36
+ <li id="album_tab"><span><a href="javascript:mcTabs.displayTab('album_tab','album_panel');" onmousedown="return false;"><?php _e("Album", 'nggallery'); ?></a></span></li>
37
+ <li id="singlepic_tab"><span><a href="javascript:mcTabs.displayTab('singlepic_tab','singlepic_panel');" onmousedown="return false;"><?php _e("Picture", 'nggallery'); ?></a></span></li>
38
+ </ul>
39
+ </div>
40
+
41
+ <div class="panel_wrapper">
42
+ <!-- gallery panel -->
43
+ <div id="gallery_panel" class="panel current">
44
+ <br />
45
+ <table border="0" cellpadding="4" cellspacing="0">
46
+ <tr>
47
+ <td nowrap="nowrap"><label for="gallerytag"><?php _e("Select gallery", 'nggallery'); ?></label></td>
48
+ <td><select id="gallerytag" name="gallerytag" style="width: 200px">
49
+ <option value="0"><?php _e("No gallery", 'nggallery'); ?></option>
50
+ <?php
51
+ $gallerylist = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ORDER BY name ASC");
52
+ if(is_array($gallerylist)) {
53
+ foreach($gallerylist as $gallery) {
54
+ echo '<option value="'.$gallery->gid.'" >'.$gallery->name.'</option>'."\n";
55
+ }
56
+ }
57
+ ?>
58
+ </select></td>
59
+ </tr>
60
+ <tr>
61
+ <td nowrap="nowrap" valign="top"><label for="showtype"><?php _e("Show as", 'nggallery'); ?></label></td>
62
+ <td><label><input name="showtype" type="radio" value="gallery" checked="checked" /> <?php _e('Image list', 'nggallery') ;?></label><br />
63
+ <label><input name="showtype" type="radio" value="slideshow" /> <?php _e('Slideshow', 'nggallery') ;?></label></td>
64
+ </tr>
65
+ </table>
66
+ </div>
67
+ <!-- gallery panel -->
68
+
69
+ <!-- album panel -->
70
+ <div id="album_panel" class="panel">
71
+ <br />
72
+ <table border="0" cellpadding="4" cellspacing="0">
73
+ <tr>
74
+ <td nowrap="nowrap"><label for="albumtag"><?php _e("Select album", 'nggallery'); ?></label></td>
75
+ <td><select id="albumtag" name="albumtag" style="width: 200px">
76
+ <option value="0"><?php _e("No album", 'nggallery'); ?></option>
77
+ <?php
78
+ $albumlist = $wpdb->get_results("SELECT * FROM $wpdb->nggalbum ORDER BY name ASC");
79
+ if(is_array($albumlist)) {
80
+ foreach($albumlist as $album) {
81
+ echo '<option value="'.$album->id.'" >'.$album->name.'</option>'."\n";
82
+ }
83
+ }
84
+ ?>
85
+ </select></td>
86
+ </tr>
87
+ <tr>
88
+ <td nowrap="nowrap" valign="top"><label for="showtype"><?php _e("Show as", 'nggallery'); ?></label></td>
89
+ <td><label><input name="albumtype" type="radio" value="extend" checked="checked" /> <?php _e('Extended version', 'nggallery') ;?></label><br />
90
+ <label><input name="albumtype" type="radio" value="compact" /> <?php _e('Compact version', 'nggallery') ;?></label></td>
91
+ </tr>
92
+ </table>
93
+ </div>
94
+ <!-- album panel -->
95
+
96
+ <!-- single pic panel -->
97
+ <div id="singlepic_panel" class="panel">
98
+ <br />
99
+ <table border="0" cellpadding="4" cellspacing="0">
100
+ <tr>
101
+ <td nowrap="nowrap"><label for="singlepictag"><?php _e("Select picture", 'nggallery'); ?></label></td>
102
+ <td><select id="singlepictag" name="singlepictag" style="width: 200px">
103
+ <option value="0"><?php _e("No picture", 'nggallery'); ?></option>
104
+ <?php
105
+ $picturelist = $wpdb->get_results("SELECT * FROM $wpdb->nggpictures ORDER BY filename ASC");
106
+ if(is_array($picturelist)) {
107
+ foreach($picturelist as $picture) {
108
+ echo '<option value="'.$picture->pid.'" >'.$picture->filename.'</option>'."\n";
109
+ }
110
+ }
111
+ ?>
112
+ </select></td>
113
+ </tr>
114
+ <tr>
115
+ <td nowrap="nowrap"><?php _e("Width x Height", 'nggallery'); ?></td>
116
+ <td><input type="text" size="5" id="imgWidth" name="imgWidth" value="320" /> x <input type="text" size="5" id="imgHeight" name="imgHeight" value="240" /></td>
117
+ </tr>
118
+ <tr>
119
+ <td nowrap="nowrap" valign="top"><?php _e("Effect", 'nggallery'); ?></td>
120
+ <td>
121
+ <label><select id="imgeffect" name="imgeffect">
122
+ <option value="none"><?php _e("No effect", 'nggallery'); ?></option>
123
+ <option value="watermark"><?php _e("Watermark", 'nggallery'); ?></option>
124
+ <option value="web20"><?php _e("Web 2.0", 'nggallery'); ?></option>
125
+ </select></label>
126
+ </td>
127
+ </tr>
128
+ <tr>
129
+ <td nowrap="nowrap" valign="top"><?php _e("Float", 'nggallery'); ?></td>
130
+ <td>
131
+ <label><select id="imgfloat" name="imgfloat">
132
+ <option value=""><?php _e("No float", 'nggallery'); ?></option>
133
+ <option value="left"><?php _e("Left", 'nggallery'); ?></option>
134
+ <option value="center"><?php _e("Center", 'nggallery'); ?></option>
135
+ <option value="right"><?php _e("Right", 'nggallery'); ?></option>
136
+ </select></label>
137
+ </td>
138
+ </tr>
139
+
140
+ </table>
141
+ </div>
142
+ <!-- single pic panel -->
143
+ </div>
144
+
145
+ <div class="mceActionPanel">
146
+ <div style="float: left">
147
+ <input type="button" id="cancel" name="cancel" value="<?php _e("Cancel", 'nggallery'); ?>" onclick="tinyMCEPopup.close();" />
148
+ </div>
149
+
150
+ <div style="float: right">
151
+ <input type="submit" id="insert" name="insert" value="<?php _e("Insert", 'nggallery'); ?>" onclick="insertNGGLink();" />
152
+ </div>
153
+ </div>
154
+ </form>
155
+ </body>
156
+ </html>