NextGEN Gallery – WordPress Gallery Plugin - Version 0.63

Version Description

Download this release

Release Info

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

Code changes from version 0.62 to 0.63

admin/about.php CHANGED
@@ -99,6 +99,7 @@ function ngg_list_support() {
99
  "Mattias Tengblad (Swedish Translation)" => "http://www.eyesx.com/",
100
  "Ghettomaster" => "http://www.ghettoworld.de/",
101
  "Joe Pharis" => "http://www.southernstylecruisers.com/",
 
102
  "Gil Yaker (Documentation)" => "http://bamboosoup.com/"
103
  );
104
 
99
  "Mattias Tengblad (Swedish Translation)" => "http://www.eyesx.com/",
100
  "Ghettomaster" => "http://www.ghettoworld.de/",
101
  "Joe Pharis" => "http://www.southernstylecruisers.com/",
102
+ "Charlie (Jump Media)" => "",
103
  "Gil Yaker (Documentation)" => "http://bamboosoup.com/"
104
  );
105
 
admin/addgallery.php CHANGED
@@ -146,6 +146,21 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
146
  <td><input type="file" name="zipfile" id="zipfile" size="35" class="uploadform"/><br />
147
  <?php _e('Upload a zip file with images', 'nggallery') ;?></td>
148
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  </table>
150
  <div class="submit"> <input type="submit" name= "zipupload" value="<?php _e('Start upload', 'nggallery') ;?>"/></div>
151
  </fieldset>
@@ -260,8 +275,8 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
260
  if (!is_dir($gallerypath)) return '<font color="red">'.__('Directory', 'nggallery').' <strong>'.$gallerypath.'</strong> '.__('doesn&#96;t exist', 'nggallery').'!</font>';
261
 
262
  // read list of images
263
- $imageslist = ngg_scandir($gallerypath);
264
- if (empty($imageslist)) return '<font color="blue">'.__('Directory', 'nggallery').' <strong>'.$gallerypath.'</strong> '.__('contains no pictures', 'nggallery').'!</font>';
265
 
266
  // create thumbnail folder
267
  $check_thumbnail_folder = ngg_get_thumbnail_folder($gallerypath);
@@ -272,17 +287,30 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
272
 
273
  // take folder name as gallery name
274
  $galleryname = basename($galleryfolder);
275
-
276
- $result = $wpdb->query("INSERT INTO $wpdb->nggallery (name, path) VALUES ('$galleryname', '$galleryfolder') ");
277
- if (!$result) return '<font color="red">'.__('Database error. Could not add gallery!','nggallery').'</font>';
278
- $gallery_id = $wpdb->insert_id; // get index_id
279
 
280
- //create thumbnails
281
- ngg_generatethumbnail($gallerypath,$imageslist);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
282
 
283
  // add images to database
284
- if (is_array($imageslist)) {
285
- foreach($imageslist as $picture) {
 
286
  $result = $wpdb->query("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext, exclude) VALUES ('$gallery_id', '$picture', '$picture' , 0) ");
287
  if ($result) $count_pic++;
288
  }
@@ -395,7 +423,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
395
  }
396
 
397
  $thumb = new ngg_Thumbnail($gallery_absfolder."/".utf8_decode($picture), TRUE);
398
-
399
  // skip if file is not there
400
  if (!$thumb->error) {
401
  if ($ngg_options[thumbcrop]) {
@@ -452,31 +480,57 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
452
  // thx to Gregor at http://blog.scoutpress.de/forum/topic/45
453
 
454
  require_once(NGGALLERY_ABSPATH.'/lib/pclzip.lib.php');
455
-
456
  $archive = new PclZip($file);
457
 
458
- //TODO: Check PCLZIP_OPT_REMOVE_ALL_PATH to remove path
459
- if ($archive->extract(PCLZIP_OPT_PATH, $dir) == 0) {
460
  die("Error : ".$archive->errorInfo(true));
461
  }
462
 
463
  return;
464
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
465
 
466
  // **************************************************************
467
  function ngg_import_zipfile($defaultpath) {
468
 
469
  $temp_zipfile = $_FILES['zipfile']['tmp_name'];
470
  $filename = $_FILES['zipfile']['name'];
471
-
472
  // check if file is a zip file
473
- if (!eregi('zip', $_FILES['zipfile']['type'])) {
474
- @unlink($temp_zipfile); // del temp file
475
- return '<font color="red">'.__('Uploaded file was no or a faulty zip file ! The server recognize : ','nggallery').$_FILES['zipfile']['type'].'</font>';
 
 
 
 
 
 
 
 
 
476
  }
477
-
478
- //cleanup and take the zipfile name as folder name
479
- $foldername = preg_replace ("/(\s+)/", '-', strtolower(strtok ($filename,'.')));
480
  $newfolder = WINABSPATH.$defaultpath.$foldername;
481
 
482
  if (!is_dir($newfolder)) {
@@ -485,10 +539,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
485
  if (!@chmod ($newfolder, NGGFOLDER_PERMISSION)) return ('<font color="red">'.__('Unable to set directory permissions ', 'nggallery').$newfolder.'!</font>');
486
  if (!@mkdir ($newfolder.'/thumbs', NGGFOLDER_PERMISSION)) return ('<font color="red">'.__('Unable to create directory ', 'nggallery').$newfolder.'/thumbs !</font>');
487
  if (!@chmod ($newfolder.'/thumbs', NGGFOLDER_PERMISSION)) return ('<font color="red">'.__('Unable to set directory permissions ', 'nggallery').$newfolder.'/thumbs !</font>');
488
- }
489
- else {
490
- return '<font color="red">'.__('Directory already exists, please rename zip file', 'nggallery').'!</font>';
491
- }
492
 
493
  // unzip and del temp file
494
  ngg_unzip($newfolder, $temp_zipfile);
146
  <td><input type="file" name="zipfile" id="zipfile" size="35" class="uploadform"/><br />
147
  <?php _e('Upload a zip file with images', 'nggallery') ;?></td>
148
  </tr>
149
+ <tr valign="top">
150
+ <th scope="row"><?php _e('in to', 'nggallery') ;?></th>
151
+ <td><select name="zipgalselect">
152
+ <option value="0" ><?php _e('a new gallery', 'nggallery') ?></option>
153
+ <?php
154
+ $gallerylist = $wpdb->get_results("SELECT * FROM $wpdb->nggallery ORDER BY gid ASC");
155
+ if(is_array($gallerylist)) {
156
+ foreach($gallerylist as $gallery) {
157
+ echo '<option value="'.$gallery->name.'" >'.$gallery->name.' | '.$gallery->title.'</option>'."\n";
158
+ }
159
+ }
160
+ ?>
161
+ </select>
162
+ <br /><?php echo _e('Note : The upload limit on your server is ','nggallery') . "<strong>" . ini_get('upload_max_filesize') . "Byte</strong>\n"; ?></td>
163
+ </tr>
164
  </table>
165
  <div class="submit"> <input type="submit" name= "zipupload" value="<?php _e('Start upload', 'nggallery') ;?>"/></div>
166
  </fieldset>
275
  if (!is_dir($gallerypath)) return '<font color="red">'.__('Directory', 'nggallery').' <strong>'.$gallerypath.'</strong> '.__('doesn&#96;t exist', 'nggallery').'!</font>';
276
 
277
  // read list of images
278
+ $new_imageslist = ngg_scandir($gallerypath);
279
+ if (empty($new_imageslist)) return '<font color="blue">'.__('Directory', 'nggallery').' <strong>'.$gallerypath.'</strong> '.__('contains no pictures', 'nggallery').'!</font>';
280
 
281
  // create thumbnail folder
282
  $check_thumbnail_folder = ngg_get_thumbnail_folder($gallerypath);
287
 
288
  // take folder name as gallery name
289
  $galleryname = basename($galleryfolder);
 
 
 
 
290
 
291
+ // check for existing gallery
292
+ $gallery_id = $wpdb->get_var("SELECT gid FROM $wpdb->nggallery WHERE name = '$galleryname' ");
293
+
294
+ if (!$gallery_id) {
295
+ $result = $wpdb->query("INSERT INTO $wpdb->nggallery (name, path) VALUES ('$galleryname', '$galleryfolder') ");
296
+ if (!$result)
297
+ return '<font color="red">'.__('Database error. Could not add gallery!','nggallery').'</font>';
298
+ $gallery_id = $wpdb->insert_id; // get index_id
299
+ }
300
+
301
+ // Look for existing image list
302
+ $old_imageslist = $wpdb->get_col("SELECT filename FROM $wpdb->nggpictures WHERE galleryid = '$gallery_id' ");
303
+ // if no images are there, create empty array
304
+ if ($old_imageslist == NULL) $old_imageslist = array();
305
+ // check difference
306
+ $new_images = array_diff($new_imageslist, $old_imageslist);
307
+ // now create thumbnails
308
+ ngg_generatethumbnail($gallerypath,$new_images);
309
 
310
  // add images to database
311
+ $count_pic = 0;
312
+ if (is_array($new_images)) {
313
+ foreach($new_images as $picture) {
314
  $result = $wpdb->query("INSERT INTO $wpdb->nggpictures (galleryid, filename, alttext, exclude) VALUES ('$gallery_id', '$picture', '$picture' , 0) ");
315
  if ($result) $count_pic++;
316
  }
423
  }
424
 
425
  $thumb = new ngg_Thumbnail($gallery_absfolder."/".utf8_decode($picture), TRUE);
426
+
427
  // skip if file is not there
428
  if (!$thumb->error) {
429
  if ($ngg_options[thumbcrop]) {
480
  // thx to Gregor at http://blog.scoutpress.de/forum/topic/45
481
 
482
  require_once(NGGALLERY_ABSPATH.'/lib/pclzip.lib.php');
483
+
484
  $archive = new PclZip($file);
485
 
486
+ // extract all files in one folder
487
+ if ($archive->extract(PCLZIP_OPT_PATH, $dir, PCLZIP_OPT_REMOVE_ALL_PATH, PCLZIP_CB_PRE_EXTRACT, 'ngg_getonlyimages') == 0) {
488
  die("Error : ".$archive->errorInfo(true));
489
  }
490
 
491
  return;
492
  }
493
+
494
+ // **************************************************************
495
+ function ngg_getonlyimages($p_event, &$p_header) {
496
+ $info = pathinfo($p_header['filename']);
497
+ // check for extension
498
+ $ext = array("jpeg", "jpg", "png", "gif");
499
+ if (in_array( strtolower($info['extension']), $ext)) {
500
+ // For MAC skip the ".image" files
501
+ if ($info['filename']{0} == "." )
502
+ return 0;
503
+ else
504
+ return 1;
505
+ }
506
+ // ----- all other files are skipped
507
+ else {
508
+ return 0;
509
+ }
510
+ }
511
 
512
  // **************************************************************
513
  function ngg_import_zipfile($defaultpath) {
514
 
515
  $temp_zipfile = $_FILES['zipfile']['tmp_name'];
516
  $filename = $_FILES['zipfile']['name'];
517
+
518
  // check if file is a zip file
519
+ if (!eregi('zip', $_FILES['zipfile']['type']))
520
+ // on whatever reason MAC shows "application/download"
521
+ if (!eregi('download', $_FILES['zipfile']['type'])) {
522
+ @unlink($temp_zipfile); // del temp file
523
+ return '<font color="red">'.__('Uploaded file was no or a faulty zip file ! The server recognize : ','nggallery').$_FILES['zipfile']['type'].'</font>';
524
+ }
525
+
526
+ // get foldername if selected
527
+ $foldername = $_POST['zipgalselect'];
528
+ if ($foldername == "0") {
529
+ //cleanup and take the zipfile name as folder name
530
+ $foldername = preg_replace ("/(\s+)/", '-', strtolower(strtok ($filename,'.')));
531
  }
532
+
533
+ // set complete folder path
 
534
  $newfolder = WINABSPATH.$defaultpath.$foldername;
535
 
536
  if (!is_dir($newfolder)) {
539
  if (!@chmod ($newfolder, NGGFOLDER_PERMISSION)) return ('<font color="red">'.__('Unable to set directory permissions ', 'nggallery').$newfolder.'!</font>');
540
  if (!@mkdir ($newfolder.'/thumbs', NGGFOLDER_PERMISSION)) return ('<font color="red">'.__('Unable to create directory ', 'nggallery').$newfolder.'/thumbs !</font>');
541
  if (!@chmod ($newfolder.'/thumbs', NGGFOLDER_PERMISSION)) return ('<font color="red">'.__('Unable to set directory permissions ', 'nggallery').$newfolder.'/thumbs !</font>');
542
+ }
 
 
 
543
 
544
  // unzip and del temp file
545
  ngg_unzip($newfolder, $temp_zipfile);
admin/admin.php CHANGED
@@ -56,15 +56,15 @@ add_action('admin_menu', 'add_nextgen_gallery_menu');
56
 
57
  /************************************************************************/
58
 
59
- include (dirname (__FILE__). '/overview.php'); // nggallery_admin_overview
60
- include (dirname (__FILE__). '/addgallery.php'); // nggallery_admin_add_gallery
61
- include (dirname (__FILE__). '/manage.php'); // nggallery_admin_manage_gallery
62
- include (dirname (__FILE__). '/album.php'); // nggallery_admin_manage_album
63
- include (dirname (__FILE__). '/settings.php'); // nggallery_admin_options
64
- include (dirname (__FILE__). '/style.php'); // nggallery_admin_style
65
- include (dirname (__FILE__). '/setup.php'); // nggallery_admin_setup
66
- include (dirname (__FILE__). '/myimport.php'); // nggallery_admin_import
67
- include (dirname (__FILE__). '/about.php'); // nggallery_admin_about
68
 
69
  /**************************************************************************/
70
 
56
 
57
  /************************************************************************/
58
 
59
+ include_once (dirname (__FILE__). '/overview.php'); // nggallery_admin_overview
60
+ include_once (dirname (__FILE__). '/addgallery.php'); // nggallery_admin_add_gallery
61
+ include_once (dirname (__FILE__). '/manage.php'); // nggallery_admin_manage_gallery
62
+ include_once (dirname (__FILE__). '/album.php'); // nggallery_admin_manage_album
63
+ include_once (dirname (__FILE__). '/settings.php'); // nggallery_admin_options
64
+ include_once (dirname (__FILE__). '/style.php'); // nggallery_admin_style
65
+ include_once (dirname (__FILE__). '/setup.php'); // nggallery_admin_setup
66
+ include_once (dirname (__FILE__). '/myimport.php'); // nggallery_admin_import
67
+ include_once (dirname (__FILE__). '/about.php'); // nggallery_admin_about
68
 
69
  /**************************************************************************/
70
 
admin/js/jquery.MultiFile.js CHANGED
@@ -9,238 +9,285 @@
9
  Forums:
10
  http://www.nabble.com/jQuery-Multiple-File-Upload-f20931.html
11
  Blog:
12
- http://fyneworks.blogspot.com/2007/04/multiple-file-upload-plugin-for-jquery.html
 
13
 
14
  12-April-2007: v1.1
15
  Added events and file extension validation
16
  See website for details.
 
 
 
 
 
 
 
 
 
 
17
  */
18
 
19
  /*# AVOID COLLISIONS #*/
20
- (function($){
21
  /*# AVOID COLLISIONS #*/
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  /*
24
  ### Default implementation ###
25
  The plugin will attach itself to file inputs
26
  with the class 'multi' when the page loads
 
 
27
  */
28
- $(function(){
29
- $.MultiFile();
30
- });
31
-
32
-
33
- // extend jQuery - $.MultiFile hook
34
- $.extend($, {
35
- MultiFile: function( o /* Object */ ){
36
- return $("INPUT[@type='file'].multi").MultiFile(o);
37
- }
38
- });
39
 
40
- // extend jQuery function library
41
- $.extend($.fn, {
42
-
43
- // MultiFile function
44
- MultiFile: function( o /* Object */ ){
45
- if(this._MultiFile){ return $(this); }
46
- this._MultiFile = true;
47
-
48
- // Bind to each element in current jQuery object
49
- return $(this).each(function(i){
50
- // Remember our ancestors...
51
- var d = this;
52
-
53
- //#########################################
54
- // Find basic configuration in class string
55
- // debug???
56
- d.debug = (d.className.indexOf('debug')>0);
57
- // limit number of files that can be selected?
58
- d.max = (d.className.match(/\b((max|limit)\-[0-9]+)\b/gi));
59
- if(d.max){
60
- d.max = new Number((d.max+'').match(/[0-9]+/)[0]);
61
- }else{
62
- d.max = -1;
63
- }
64
- // limit extensions?
65
- d.accept = (d.className.match(/\b(accept\-[\w\|]+)\b/gi)) || '';
66
- d.accept = new String((d.accept+'')).replace(/^(accept|ext)\-/i,'');
67
- //#########################################
68
-
69
-
70
- // Attach a bunch of events, jQuery style ;-)
71
- $.each("on,after".split(","), function(i,o){
72
- $.each("FileSelect,FileRemove,FileAppend".split(","), function(j,event){
73
- d[o+event] = function(e, v, m){ // default functions do absolutelly nothing...
74
- // if(d.debug) alert(''+o+event+'' +'\nElement:' +e.name+ '\nValue: ' +v+ '\nMaster: ' +m.name+ '');
75
- };
76
- });
77
- });
78
- // Setup a global event handler
79
- d.trigger = function(event, e){
80
- var f = d[event];
81
- if(f){
82
- var v = $(this).attr('value');
83
- var r = f(e, v, d);
84
- if(r!=null) return r;
85
- }
86
- return true;
87
- };
88
-
89
-
90
- // Initialize options
91
- if( typeof(o)=='number' ){ o = {max:o}; };
92
- $.extend(d, d.data || {}, o);
93
-
94
- // Default properties - INTERNAL USE ONLY
95
- $.extend(d, {
96
- STRING: d.STRING || {}, // used to hold string constants
97
- n: 0, // How many elements are currently selected?
98
- k: 'MF_', // Instance Key?
99
- f: function(z){ return d.k+'_F_'+String(i)+'_'+String(z); }
100
- });
101
-
102
- // Visible text strings...
103
- // $file = file name (with path), $ext = file extension
104
- d.STRING = $.extend({
105
- remove:'remove',
106
- denied:'You cannot select a $ext file.\nTry again...',
107
- selected:'File selected: $file'
108
- }, d.STRING);
109
-
110
-
111
- // Setup dynamic regular expression for extension validation
112
- // - thanks to John-Paul Bader: http://smyck.de/2006/08/11/javascript-dynamic-regular-expresions/
113
- if(String(d.accept).length>1){
114
- d.rxAccept = new RegExp('\\.('+(d.accept?d.accept:'')+')$','gi');
115
- };
116
-
117
- // Create wrapper to hold our file list
118
- d.w = d.k+'_MF_'+i; // Wrapper ID?
119
- var x = $(d);
120
- x.wrap('<div id="'+d.w+'"></div>');
121
-
122
- // Bind a new element
123
- d.add = function( e, ii ){
124
-
125
- // Keep track of how many elements have been displayed
126
- d.n++;
127
-
128
- // Add reference to master element
129
- e.d = d;
130
-
131
- // Define element's ID and name (upload components need this!)
132
- e.i = ii;//d.I;
133
- e.id = d.f(e.i);
134
- e.name = e.id;
135
-
136
- // If we've reached maximum number, disable input e
137
- if( d.max != -1 && d.n > (d.max+1) ){ // d.n Starts at 1, so add 1 to d.max.
138
- e.disabled = true;
139
- };
140
-
141
- // Remember most recent e
142
- d.current = e;
143
-
144
- /// now let's use jQuery
145
- e = $(e);
146
-
147
- // Triggered when a file is selected
148
- e.change(function(){
149
-
150
- //# Trigger Event! onFileSelect
151
- if(!d.trigger('onFileSelect', this, d)) return false;
152
- //# End Event!
153
-
154
- // check extension
155
- if(d.accept){
156
- var v = String(e.attr('value'));
157
- if(!v.match(d.rxAccept)){
158
- e.attr('value', '');
159
- e.get(0).value = '';
160
- alert(d.STRING.denied.replace('$ext', String(v.match(/\.\w{1,4}$/gi))));
161
- return false;
162
- }
163
- };
164
-
165
- // Hide this element: display:none is evil!
166
- //this.style.display = 'block';
167
- this.style.position = 'absolute';
168
- this.style.left = '-1000px';
169
-
170
- // Create a new file input element
171
- var f = $('<input type="file" size="35"/>');
172
-
173
- // Add it to the form
174
- $(this).parent().prepend(f);
175
-
176
- // Update list
177
- d.list( this );
178
-
179
- // Bind functionality
180
- d.add( f.get(0), this.i+1 );
181
-
182
- //# Trigger Event! afterFileSelect
183
- if(!d.trigger('afterFileSelect', this, d)) return false;
184
- //# End Event!
185
-
186
- });
187
-
188
- };
189
- // Bind a new element
190
-
191
- // Add a new file to the list
192
- d.list = function( y ){
193
-
194
- //# Trigger Event! onFileAppend
195
- if(!d.trigger('onFileAppend', y, d)) return false;
196
- //# End Event!
197
-
198
- // Insert HTML
199
- var
200
- t = $('#'+d.w),
201
- r = $('<div></div>'),
202
- v = $(y).attr('value')+'',
203
- a = $('<span class="file" title="'+d.STRING.selected.replace('$file', v)+'">'+v.match(/[^\/\\]+$/gi)[0]+'</span>'),
204
- b = $('<a href="#'+d.w+'">'+d.STRING.remove+'</a>');
205
- t.append(r);
206
- r.append('[',b,']&nbsp;',a);//.prepend(y.i+': ');
207
- b.click(function(){
208
-
209
- //# Trigger Event! onFileRemove
210
- if(!d.trigger('onFileRemove', y, d)) return false;
211
- //# End Event!
212
-
213
- d.n--;
214
- d.current.disabled = false;
215
- $('#'+d.f(y.i)).remove();
216
- $(this).parent().remove();
217
-
218
- //# Trigger Event! afterFileRemove
219
- if(!d.trigger('afterFileRemove', y, d)) return false;
220
- //# End Event!
221
-
222
- return false;
223
- });
224
-
225
- //# Trigger Event! afterFileAppend
226
- if(!d.trigger('afterFileAppend', y, d)) return false;
227
- //# End Event!
228
-
229
- };
230
-
231
- // Bind first file element
232
- if(!d.ft){ d.add(d, 0); d.ft = true; }
233
- d.I++;
234
- d.n++;
235
-
236
- });
237
- // each element
238
-
239
- }
240
- // MultiFile function
241
 
242
- });
243
- // extend jQuery function library
244
 
245
  /*# AVOID COLLISIONS #*/
246
  })(jQuery);
9
  Forums:
10
  http://www.nabble.com/jQuery-Multiple-File-Upload-f20931.html
11
  Blog:
12
+ http://fyneworks.blogspot.com/2007/04/jquery-multiple-file-upload-plugin-v11.html
13
+ (old) http://fyneworks.blogspot.com/2007/04/multiple-file-upload-plugin-for-jquery.html
14
 
15
  12-April-2007: v1.1
16
  Added events and file extension validation
17
  See website for details.
18
+
19
+ 06-June-2007: v1.2
20
+ Now works in Opera.
21
+
22
+ 12-June-2007: v1.21
23
+ Preserves name of file input so all current server-side
24
+ functions don't need to be changed on new installations.
25
+
26
+ 24-June-2007: v1.22
27
+ Now works perfectly in Opera, thanks to Adrian Wr�bel <adrian [dot] wrobel [at] gmail.com>
28
  */
29
 
30
  /*# AVOID COLLISIONS #*/
31
+ if(jQuery) (function($){
32
  /*# AVOID COLLISIONS #*/
33
 
34
+ // Fix for Opera: 6-June-2007
35
+ // Stop confusion between null, 'null' and 'undefined'
36
+ function IsNull(i){
37
+ return (i==null || i=='null' || i=='' || i=='undefined');
38
+ };
39
+
40
+ // extend jQuery - $.MultiFile hook
41
+ $.extend($, {
42
+ MultiFile: function( o /* Object */ ){
43
+ return $("INPUT[@type='file'].multi").MultiFile(o);
44
+ }
45
+ });
46
+
47
+ // extend jQuery function library
48
+ $.extend($.fn, {
49
+
50
+ // MultiFile function
51
+ MultiFile: function( o /* Object */ ){
52
+ if(this._MultiFile){ return $(this); }
53
+ this._MultiFile = true;
54
+
55
+ // DEBUGGING: disable plugin
56
+ //return false;
57
+
58
+ // Bind to each element in current jQuery object
59
+ return $(this).each(function(i){
60
+ // Remember our ancestors...
61
+ var d = this;
62
+ var x = $(d);
63
+
64
+ //#########################################
65
+ // Find basic configuration in class string
66
+ // debug???
67
+ d.debug = (d.className.indexOf('debug')>0);
68
+ // limit number of files that can be selected?
69
+ if(IsNull(d.max)){
70
+ d.max = x.attr('maxlength');
71
+ if(IsNull(d.max)){
72
+ d.max = ((d.className.match(/\b((max|limit)\-[0-9]+)\b/gi) || [''])[0]);
73
+ if(IsNull(d.max)){
74
+ d.max = -1;
75
+ }else{
76
+ d.max = d.max.match(/[0-9]+/gi)[0];
77
+ }
78
+ }
79
+ }
80
+ d.max = new Number(d.max);
81
+ // limit extensions?
82
+ if(!d.accept){
83
+ d.accept = (d.className.match(/\b(accept\-[\w\|]+)\b/gi)) || '';
84
+ d.accept = new String(d.accept).replace(/^(accept|ext)\-/i,'');
85
+ }
86
+ //#########################################
87
+
88
+
89
+ // Attach a bunch of events, jQuery style ;-)
90
+ $.each("on,after".split(","), function(i,o){
91
+ $.each("FileSelect,FileRemove,FileAppend".split(","), function(j,event){
92
+ d[o+event] = function(e, v, m){ // default functions do absolutelly nothing...
93
+ // if(d.debug) alert(''+o+event+'' +'\nElement:' +e.name+ '\nValue: ' +v+ '\nMaster: ' +m.name+ '');
94
+ };
95
+ });
96
+ });
97
+ // Setup a global event handler
98
+ d.trigger = function(event, e){
99
+ var f = d[event];
100
+ if(f){
101
+ var v = $(this).attr('value');
102
+ var r = f(e, v, d);
103
+ if(r!=null) return r;
104
+ }
105
+ return true;
106
+ };
107
+
108
+
109
+ // Initialize options
110
+ if( typeof o == 'number' ){ o = {max:o}; };
111
+ $.extend(d, d.data || {}, o);
112
+
113
+ // Default properties - INTERNAL USE ONLY
114
+ $.extend(d, {
115
+ STRING: d.STRING || {}, // used to hold string constants
116
+ n: 0, // How many elements are currently selected?
117
+ k: 'multi', // Instance Key?
118
+ f: function(z){ return d.k+'_'+String(i)+'_'+String(z); }
119
+ });
120
+
121
+ // Visible text strings...
122
+ // $file = file name (with path), $ext = file extension
123
+ d.STRING = $.extend({
124
+ remove:'remove',
125
+ denied:'You cannot select a $ext file.\nTry again...',
126
+ selected:'File selected: $file'
127
+ }, d.STRING);
128
+
129
+
130
+ // Setup dynamic regular expression for extension validation
131
+ // - thanks to John-Paul Bader: http://smyck.de/2006/08/11/javascript-dynamic-regular-expresions/
132
+ if(String(d.accept).length>1){
133
+ d.rxAccept = new RegExp('\\.('+(d.accept?d.accept:'')+')$','gi');
134
+ };
135
+
136
+ // Create wrapper to hold our file list
137
+ d.w = d.k+'multi'+'_'+i; // Wrapper ID?
138
+ x.wrap('<div id="'+d.w+'"></div>');
139
+
140
+ // Bind a new element
141
+ d.add = function( e, ii ){
142
+
143
+ // Keep track of how many elements have been displayed
144
+ d.n++;
145
+
146
+ // Add reference to master element
147
+ e.d = d;
148
+
149
+ // Define element's ID and name (upload components need this!)
150
+ e.i = ii;//d.I;
151
+ e.id = d.f(e.i);
152
+ e.name = (e.name || x.attr('name') || 'file') + (e.i>0?e.i:''); // same name as master element
153
+
154
+ // If we've reached maximum number, disable input e
155
+ if( (d.max != -1) && ((d.n-1) > (d.max)) ){ // d.n Starts at 1, so subtract 1 to find true count
156
+ e.disabled = true;
157
+ };
158
+
159
+ // Remember most recent e
160
+ d.current = e;
161
+
162
+ /// now let's use jQuery
163
+ e = $(e);
164
+
165
+ // Triggered when a file is selected
166
+ e.change(function(){
167
+
168
+ //# Trigger Event! onFileSelect
169
+ if(!d.trigger('onFileSelect', this, d)) return false;
170
+ //# End Event!
171
+
172
+ // check extension
173
+ if(d.accept){
174
+ var v = String(e.attr('value'));
175
+ if(!v.match(d.rxAccept)){
176
+ // Clear element value
177
+ e.val('').attr('value', '');
178
+ e.get(0).value = '';
179
+
180
+ // OPERA BUG FIX - 2007-06-24
181
+ // Thanks to Adrian Wr�bel <adrian [dot] wrobel [at] gmail.com>
182
+ // we add new input element and remove present one for browsers that can't clear value of input element
183
+ var f = $('<input name="'+(x.attr('name') || '')+'" type="file"/>');
184
+ d.n--;
185
+ d.add(f.get(0), this.i);
186
+ e.parent().prepend(f);
187
+ e.remove();
188
+
189
+ // Show error message
190
+ // TO-DO: Some people have suggested alternative methods for displaying this message
191
+ // such as inline HTML, lightbox, etc... maybe integrate with blockUI plugin?
192
+ alert(d.STRING.denied.replace('$ext', String(v.match(/\.\w{1,4}$/gi))));
193
+
194
+ return false;
195
+ }
196
+ };
197
+
198
+ // Hide this element: display:none is evil!
199
+ //this.style.display = 'block';
200
+ this.style.position = 'absolute';
201
+ this.style.left = '-1000px';
202
+
203
+ // Create a new file input element
204
+ var f = $('<input name="'+(x.attr('name') || '')+'" type="file"/>');
205
+
206
+ // Add it to the form
207
+ $(this).parent().prepend(f);
208
+
209
+ // Update list
210
+ d.list( this );
211
+
212
+ // Bind functionality
213
+ d.add( f.get(0), this.i+1 );
214
+
215
+ //# Trigger Event! afterFileSelect
216
+ if(!d.trigger('afterFileSelect', this, d)) return false;
217
+ //# End Event!
218
+
219
+ });
220
+
221
+ };
222
+ // Bind a new element
223
+
224
+ // Add a new file to the list
225
+ d.list = function( y ){
226
+
227
+ //# Trigger Event! onFileAppend
228
+ if(!d.trigger('onFileAppend', y, d)) return false;
229
+ //# End Event!
230
+
231
+ // Insert HTML
232
+ var
233
+ t = $('#'+d.w),
234
+ r = $('<div></div>'),
235
+ v = $(y).attr('value')+'',
236
+ a = $('<span class="file" title="'+d.STRING.selected.replace('$file', v)+'">'+v.match(/[^\/\\]+$/gi)[0]+'</span>'),
237
+ b = $('<a href="#'+d.w+'">'+d.STRING.remove+'</a>');
238
+ t.append(r);
239
+ r.append('[',b,']&nbsp;',a);//.prepend(y.i+': ');
240
+ b.click(function(){
241
+
242
+ //# Trigger Event! onFileRemove
243
+ if(!d.trigger('onFileRemove', y, d)) return false;
244
+ //# End Event!
245
+
246
+ d.n--;
247
+ d.current.disabled = false;
248
+ $('#'+d.f(y.i)).remove();
249
+ $(this).parent().remove();
250
+
251
+ //# Trigger Event! afterFileRemove
252
+ if(!d.trigger('afterFileRemove', y, d)) return false;
253
+ //# End Event!
254
+
255
+ return false;
256
+ });
257
+
258
+ //# Trigger Event! afterFileAppend
259
+ if(!d.trigger('afterFileAppend', y, d)) return false;
260
+ //# End Event!
261
+
262
+ };
263
+
264
+ // Bind first file element
265
+ if(!d.ft){ d.add(d, 0); d.ft = true; }
266
+ d.I++;
267
+ d.n++;
268
+
269
+ });
270
+ // each element
271
+
272
+ }
273
+ // MultiFile function
274
+
275
+ });
276
+ // extend jQuery function library
277
+
278
+
279
+
280
  /*
281
  ### Default implementation ###
282
  The plugin will attach itself to file inputs
283
  with the class 'multi' when the page loads
284
+
285
+ Use the jQuery start plugin to
286
  */
287
+ if($.start){ $.start($.MultiFile) }
288
+ else $(function(){ $.MultiFile() });
 
 
 
 
 
 
 
 
 
289
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
 
 
 
291
 
292
  /*# AVOID COLLISIONS #*/
293
  })(jQuery);
admin/js/jquery.MultiFile.pack.js CHANGED
@@ -1 +1 @@
1
- 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}('(3($){$(3(){$.E()});$.B($,{E:3(o){6 $("1b[@12=\'s\'].1A").E(o)}});$.B($.1s,{E:3(o){2(5.10){6 $(5)}5.10=C;6 $(5).P(3(i){g d=5;d.Y=(d.J.1r(\'Y\')>0);d.c=(d.J.q(/\\b((c|1e)\\-[0-9]+)\\b/u));2(d.c){d.c=H 15((d.c+\'\').q(/[0-9]+/)[0])}1R{d.c=-1}d.7=(d.J.q(/\\b(7\\-[\\w\\|]+)\\b/u))||\'\';d.7=H p((d.7+\'\')).N(/^(7|M)\\-/i,\'\');$.P("1C,1z".X(","),3(i,o){$.P("1x,1v,1q".X(","),3(j,a){d[o+a]=3(e,v,m){}})});d.h=3(a,e){g f=d[a];2(f){g v=$(5).D(\'G\');g r=f(e,v,d);2(r!=1c)6 r}6 C};2(1a(o)==\'17\'){o={c:o}};$.B(d,d.16||{},o);$.B(d,{l:d.l||{},n:0,k:\'14\',f:3(z){6 d.k+\'1Q\'+p(i)+\'1P\'+p(z)}});d.l=$.B({A:\'A\',11:\'1M 1L 1J a $M s.\\1H 1G...\',O:\'1F O: $s\'},d.l);2(p(d.7).1E>1){d.Z=H 1D(\'\\\\.(\'+(d.7?d.7:\'\')+\')$\',\'u\')};d.w=d.k+\'1B\'+i;g x=$(d);x.1y(\'<F L="\'+d.w+\'"></F>\');d.K=3(e,a){d.n++;e.d=d;e.i=a;e.L=d.f(e.i);e.1w=e.L;2(d.c!=-1&&d.n>(d.c+1)){e.W=C};d.V=e;e=$(e);e.1t(3(){2(!d.h(\'1p\',5,d))6 8;2(d.7){g v=p(e.D(\'G\'));2(!v.q(d.Z)){e.D(\'G\',\'\');1o(d.l.11.N(\'$M\',p(v.q(/\\.\\w{1,4}$/u))));6 8}};5.U.1n=\'1m\';5.U.1u=\'-1l\';g f=$(\'<1k 12="s"/>\');$(5).T().1j(f);d.S(5);d.K(f.1i(0),5.i+1);2(!d.h(\'1h\',5,d))6 8})};d.S=3(y){2(!d.h(\'1g\',y,d))6 8;g t=$(\'#\'+d.w),r=$(\'<F></F>\'),v=$(y).D(\'G\')+\'\',a=$(\'<R 1f="s" 1d="\'+d.l.O.N(\'$s\',v)+\'">\'+v.q(/[^\\/\\\\]+$/u)[0]+\'</R>\'),b=$(\'<a 1I="#\'+d.w+\'">\'+d.l.A+\'</a>\');t.13(r);r.13(\'[\',b,\']&1K;\',a);b.19(3(){2(!d.h(\'18\',y,d))6 8;d.n--;d.V.W=8;$(\'#\'+d.f(y.i)).A();$(5).T().A();2(!d.h(\'1N\',y,d))6 8;6 8});2(!d.h(\'1O\',y,d))6 8};2(!d.Q){d.K(d,0);d.Q=C}d.I++;d.n++})}})})(1S);',62,117,'||if|function||this|return|accept|false||||max||||var|trigger||||STRING||||String|match||file||gi||||||remove|extend|true|attr|MultiFile|div|value|new||className|add|id|ext|replace|selected|each|ft|span|list|parent|style|current|disabled|split|debug|rxAccept|_MultiFile|denied|type|append|MF_|Number|data|number|onFileRemove|click|typeof|INPUT|null|title|limit|class|onFileAppend|afterFileSelect|get|prepend|input|1000px|absolute|position|alert|onFileSelect|FileAppend|indexOf|fn|change|left|FileRemove|name|FileSelect|wrap|after|multi|_MF_|on|RegExp|length|File|again|nTry|href|select|nbsp|cannot|You|afterFileRemove|afterFileAppend|_|_F_|else|jQuery'.split('|'),0,{}));
1
+ 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}('2(Z)(5($){5 K(i){3(i==U||i==\'U\'||i==\'\'||i==\'1R\')};$.D($,{E:5(o){3 $("1t[@W=\'h\'].V").E(o)}});$.D($.1U,{E:5(o){2(6.1a){3 $(6)}6.1a=J;3 $(6).P(5(i){g d=6;g x=$(d);d.1e=(d.R.1q(\'1e\')>0);2(K(d.7)){d.7=x.l(\'1h\');2(K(d.7)){d.7=((d.R.C(/\\b((7|1T)\\-[0-9]+)\\b/B)||[\'\'])[0]);2(K(d.7)){d.7=-1}19{d.7=d.7.C(/[0-9]+/B)[0]}}}d.7=L 1J(d.7);2(!d.8){d.8=(d.R.C(/\\b(8\\-[\\w\\|]+)\\b/B))||\'\';d.8=L u(d.8).S(/^(8|N)\\-/i,\'\')}$.P("1D,1C".10(","),5(i,o){$.P("1y,1w,1u".10(","),5(j,a){d[o+a]=5(e,v,m){}})});d.s=5(a,e){g f=d[a];2(f){g v=$(6).l(\'F\');g r=f(e,v,d);2(r!=U)3 r}3 J};2(1i o==\'1g\'){o={7:o}};$.D(d,d.1f||{},o);$.D(d,{q:d.q||{},n:0,k:\'V\',f:5(z){3 d.k+\'T\'+u(i)+\'T\'+u(z)}});d.q=$.D({A:\'A\',1c:\'1S 1Q 1P a $N h.\\1O 1N...\',M:\'1M M: $h\'},d.q);2(u(d.8).1L>1){d.18=L 1I(\'\\\\.(\'+(d.8?d.8:\'\')+\')$\',\'B\')};d.w=d.k+\'V\'+\'T\'+i;x.1H(\'<H 16="\'+d.w+\'"></H>\');d.G=5(e,a){d.n++;e.d=d;e.i=a;e.16=d.f(e.i);e.p=(e.p||x.l(\'p\')||\'h\')+(e.i>0?e.i:\'\');2((d.7!=-1)&&((d.n-1)>(d.7))){e.15=J};d.14=e;e=$(e);e.1G(5(){2(!d.s(\'1F\',6,d))3 c;2(d.8){g v=u(e.l(\'F\'));2(!v.C(d.18)){e.1E(\'\').l(\'F\',\'\');e.Q(0).F=\'\';g f=$(\'<12 p="\'+(x.l(\'p\')||\'\')+\'" W="h"/>\');d.n--;d.G(f.Q(0),6.i);e.O().11(f);e.A();1z(d.q.1c.S(\'$N\',u(v.C(/\\.\\w{1,4}$/B))));3 c}};6.Y.1x=\'1v\';6.Y.1A=\'-1B\';g f=$(\'<12 p="\'+(x.l(\'p\')||\'\')+\'" W="h"/>\');$(6).O().11(f);d.17(6);d.G(f.Q(0),6.i+1);2(!d.s(\'1s\',6,d))3 c})};d.17=5(y){2(!d.s(\'1r\',y,d))3 c;g t=$(\'#\'+d.w),r=$(\'<H></H>\'),v=$(y).l(\'F\')+\'\',a=$(\'<13 1p="h" 1o="\'+d.q.M.S(\'$h\',v)+\'">\'+v.C(/[^\\/\\\\]+$/B)[0]+\'</13>\'),b=$(\'<a 1K="#\'+d.w+\'">\'+d.q.A+\'</a>\');t.X(r);r.X(\'[\',b,\']&1n;\',a);b.1m(5(){2(!d.s(\'1l\',y,d))3 c;d.n--;d.14.15=c;$(\'#\'+d.f(y.i)).A();$(6).O().A();2(!d.s(\'1k\',y,d))3 c;3 c});2(!d.s(\'1j\',y,d))3 c};2(!d.1b){d.G(d,0);d.1b=J}d.I++;d.n++})}});2($.1d){$.1d($.E)}19 $(5(){$.E()})})(Z);',62,119,'||if|return||function|this|max|accept||||false||||var|file||||attr||||name|STRING||trigger||String||||||remove|gi|match|extend|MultiFile|value|add|div||true|IsNull|new|selected|ext|parent|each|get|className|replace|_|null|multi|type|append|style|jQuery|split|prepend|input|span|current|disabled|id|list|rxAccept|else|_MultiFile|ft|denied|start|debug|data|number|maxlength|typeof|afterFileAppend|afterFileRemove|onFileRemove|click|nbsp|title|class|indexOf|onFileAppend|afterFileSelect|INPUT|FileAppend|absolute|FileRemove|position|FileSelect|alert|left|1000px|after|on|val|onFileSelect|change|wrap|RegExp|Number|href|length|File|again|nTry|select|cannot|undefined|You|limit|fn'.split('|'),0,{}))
admin/manage.php CHANGED
@@ -27,8 +27,8 @@ function nggallery_admin_manage_gallery() {
27
  if ($ngg_options[deleteImg]) {
28
  if (is_array($imagelist)) {
29
  foreach ($imagelist as $filename) {
30
- unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
31
- unlink(WINABSPATH.$gallerypath.'/'.$filename);
32
  }
33
  }
34
  // delete folder
@@ -54,8 +54,8 @@ function nggallery_admin_manage_gallery() {
54
  $thumb_folder = ngg_get_thumbnail_folder($gallerypath, FALSE);
55
  $thumb_prefix = ngg_get_thumbnail_prefix($gallerypath, FALSE);
56
  if ($ngg_options[deleteImg]) {
57
- unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
58
- unlink(WINABSPATH.$gallerypath.'/'.$filename);
59
  }
60
  }
61
  $delete_pic = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE pid = $act_pid");
27
  if ($ngg_options[deleteImg]) {
28
  if (is_array($imagelist)) {
29
  foreach ($imagelist as $filename) {
30
+ @unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
31
+ unlink(WINABSPATH.$gallerypath.'/'.$filename);
32
  }
33
  }
34
  // delete folder
54
  $thumb_folder = ngg_get_thumbnail_folder($gallerypath, FALSE);
55
  $thumb_prefix = ngg_get_thumbnail_prefix($gallerypath, FALSE);
56
  if ($ngg_options[deleteImg]) {
57
+ @unlink(WINABSPATH.$gallerypath.'/'.$thumb_folder.'/'.$thumb_prefix.$filename);
58
+ unlink(WINABSPATH.$gallerypath.'/'.$filename);
59
  }
60
  }
61
  $delete_pic = $wpdb->query("DELETE FROM $wpdb->nggpictures WHERE pid = $act_pid");
admin/overview.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You are not allowed to call this page directly.'); }
3
 
4
- require_once(ABSPATH . WPINC . '/rss.php');
5
- require_once(ABSPATH . WPINC . '/class-snoopy.php');
6
-
7
  function nggallery_admin_overview() {
8
- global $wpdb;
 
 
 
9
 
10
  ?>
11
  <div class="wrap">
@@ -158,6 +158,10 @@ function ngg_get_serverinfo() {
158
  // ***************************************************************
159
  function ngg_version_check() {
160
  // check for a new version
 
 
 
 
161
  $check_intervall = get_option( "ngg_next_update" );
162
 
163
  if ( ($check_intervall < time() ) or (empty($check_intervall)) ) {
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_overview() {
5
+ global $wpdb;
6
+
7
+ // get feed_messages
8
+ require_once(ABSPATH . WPINC . '/rss.php');
9
 
10
  ?>
11
  <div class="wrap">
158
  // ***************************************************************
159
  function ngg_version_check() {
160
  // check for a new version
161
+
162
+ // use snoopy class
163
+ require_once(ABSPATH . WPINC . '/class-snoopy.php');
164
+
165
  $check_intervall = get_option( "ngg_next_update" );
166
 
167
  if ( ($check_intervall < time() ) or (empty($check_intervall)) ) {
changelog.txt CHANGED
@@ -1,6 +1,18 @@
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  V0.62 - 06.07.2007
5
  - NEW : Import for myGallery
6
  - Added : Updated to jQuery 1.1.3.1
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
4
+ V0.63 - 10.07.2007
5
+ - NEW : You can now upload a zip file into a existing gallery
6
+ - Added : Remove subfolder in Zip-files
7
+ - Added : Show required memory for thumbnail creation
8
+ - Added : Updated to jQuery.multifile 1.22
9
+ - Added : Install-Upgrade for WordPress 2.3
10
+ - Bugfix : Supress unlink error message for thumbs
11
+ - Bugfix : Support upload of zip files from MAC
12
+ - Bugfix : Add Stripslash for image description
13
+ - Bugfix : Use for Singlepic not rel="Gallery name"
14
+ - Bugfix : Moved RSS/Snoopy includes into function
15
+
16
  V0.62 - 06.07.2007
17
  - NEW : Import for myGallery
18
  - Added : Updated to jQuery 1.1.3.1
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: 2007-06-27 20:12+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
@@ -39,6 +39,7 @@ msgstr "Alt &amp; Titel Text"
39
  #: ../admin/manage.php:222
40
  #: ../admin/manage.php:370
41
  #: ../admin/manage.php:436
 
42
  #: ../admin/style.php:97
43
  #: ../js/nggadmintab-js.php:167
44
  msgid "Description"
@@ -57,13 +58,13 @@ msgstr "Bilder löschen ?"
57
  msgid "Save"
58
  msgstr "Speichern"
59
 
60
- #: ../nggallery.php:265
61
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
62
  msgstr "Tut mir leid aber NextGEN Galerie arbeitet nur ab WordPress 2.1 und aufwärts"
63
 
64
  #: ../nggbutton.php:36
65
- #: ../admin/addgallery.php:240
66
- #: ../admin/addgallery.php:291
67
  #: ../admin/admin.php:45
68
  #: ../admin/manage.php:44
69
  #: ../admin/manage.php:341
@@ -187,19 +188,19 @@ msgstr "Fotos"
187
  msgid "from"
188
  msgstr "von"
189
 
190
- #: ../ngginstall.php:101
191
  msgid "[Show as slideshow]"
192
  msgstr "[Zeige als Slideshow]"
193
 
194
- #: ../ngginstall.php:102
195
  msgid "[Show picture list]"
196
  msgstr "[Zeige Bilder-Liste]"
197
 
198
- #: ../ngginstall.php:112
199
  msgid "Back"
200
  msgstr "Zurück"
201
 
202
- #: ../ngginstall.php:113
203
  msgid "Next"
204
  msgstr "Vor"
205
 
@@ -219,108 +220,109 @@ msgstr "Höhe:"
219
  msgid "Width:"
220
  msgstr "Breite:"
221
 
222
- #: ../nggwidget.php:401
223
  msgid "NextGEN Recent Image"
224
  msgstr "NextGEN Letzte Bilder"
225
 
226
- #: ../nggwidget.php:441
227
- #: ../nggwidget.php:644
228
  #: ../admin/album.php:213
229
  #: ../admin/manage.php:221
230
  #: ../admin/manage.php:351
 
231
  #: ../js/nggadmintab-js.php:104
232
  msgid "Title"
233
  msgstr "Titel"
234
 
235
- #: ../nggwidget.php:444
236
- #: ../nggwidget.php:647
237
  msgid "Display type"
238
  msgstr "Verende Bild"
239
 
240
- #: ../nggwidget.php:446
241
- #: ../nggwidget.php:649
242
  #: ../admin/manage.php:433
243
  #: ../js/nggadmintab-js.php:101
244
  msgid "Thumbnail"
245
  msgstr "Thumbnail"
246
 
247
- #: ../nggwidget.php:447
248
- #: ../nggwidget.php:650
249
  msgid "Orginal"
250
  msgstr "Orginal"
251
 
252
- #: ../nggwidget.php:450
253
- #: ../nggwidget.php:654
254
  msgid "Number of pics"
255
  msgstr "Anzahl der Bilder"
256
 
257
- #: ../nggwidget.php:461
258
- #: ../nggwidget.php:665
259
  msgid "Width (px)"
260
  msgstr "Breite (px)"
261
 
262
- #: ../nggwidget.php:463
263
- #: ../nggwidget.php:667
264
  msgid "Height (px)"
265
  msgstr "Höhe (px)"
266
 
267
- #: ../nggwidget.php:465
268
- #: ../nggwidget.php:669
269
  msgid "Mode"
270
  msgstr "Modus"
271
 
272
- #: ../nggwidget.php:467
273
- #: ../nggwidget.php:671
274
  #: ../admin/settings.php:512
275
  msgid "none"
276
  msgstr "keiner"
277
 
278
- #: ../nggwidget.php:468
279
- #: ../nggwidget.php:672
280
  msgid "web2.0"
281
  msgstr "Web 2.0"
282
 
283
- #: ../nggwidget.php:472
284
- #: ../nggwidget.php:676
285
  msgid "Show in the main page"
286
  msgstr "Zeige auf der Startseite"
287
 
288
- #: ../nggwidget.php:474
289
- #: ../nggwidget.php:678
290
  msgid "yes"
291
  msgstr "Ja"
292
 
293
- #: ../nggwidget.php:475
294
- #: ../nggwidget.php:679
295
  msgid "no"
296
  msgstr "Nein"
297
 
298
- #: ../nggwidget.php:478
299
- #: ../nggwidget.php:682
300
  msgid "Show in"
301
  msgstr "Zeige in"
302
 
303
- #: ../nggwidget.php:480
304
- #: ../nggwidget.php:684
305
  msgid "All categories"
306
  msgstr "Alle Kategorien"
307
 
308
- #: ../nggwidget.php:481
309
- #: ../nggwidget.php:685
310
  msgid "Only which are not listed"
311
  msgstr "Nur ungelistete"
312
 
313
- #: ../nggwidget.php:482
314
- #: ../nggwidget.php:686
315
  msgid "Only which are listed"
316
  msgstr "Nur gelistete"
317
 
318
- #: ../nggwidget.php:485
319
- #: ../nggwidget.php:689
320
  msgid "Categories (id (use , to seperate)"
321
  msgstr "Kategorie (ID (nutze , für mehrere))"
322
 
323
- #: ../nggwidget.php:603
324
  msgid "NextGEN Random Image"
325
  msgstr "NextGEN Zufallsbild"
326
 
@@ -469,12 +471,12 @@ msgid "Upload a Zip-File"
469
  msgstr "Zip-Datei hochladen"
470
 
471
  #: ../admin/addgallery.php:115
472
- #: ../admin/addgallery.php:156
473
  msgid "Import image folder"
474
  msgstr "Bilder-Verzeichniss importieren"
475
 
476
  #: ../admin/addgallery.php:116
477
- #: ../admin/addgallery.php:173
478
  msgid "Upload Images"
479
  msgstr "Bilder hochladen"
480
 
@@ -503,186 +505,189 @@ msgid "Upload a zip file with images"
503
  msgstr "Lade eine Zip-Datei mit Bildern hoch"
504
 
505
  #: ../admin/addgallery.php:150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
506
  msgid "Start upload"
507
  msgstr "Upload starten"
508
 
509
- #: ../admin/addgallery.php:161
510
  msgid "Import from Server path:"
511
  msgstr "Importieren aus Server-Pfad:"
512
 
513
- #: ../admin/addgallery.php:163
514
  msgid "Import a folder with images. Please note :"
515
  msgstr "Importiere ein Verzeichniss mit Bildern. Bitte beachte:"
516
 
517
- #: ../admin/addgallery.php:164
518
  msgid "For save_mode = ON you need to add the subfolder thumbs manually"
519
  msgstr "Falls save_mode = ON (PHP.INI) mußt Du die Thumbs im Unterverzeichniss manuell hinzufügen"
520
 
521
- #: ../admin/addgallery.php:167
522
  msgid "Import folder"
523
  msgstr "Verzeichniss importieren"
524
 
525
- #: ../admin/addgallery.php:178
526
  msgid "Upload image"
527
  msgstr "Bild hochladen"
528
 
529
- #: ../admin/addgallery.php:182
530
- msgid "in to"
531
- msgstr "in"
532
-
533
- #: ../admin/addgallery.php:184
534
  msgid "Choose gallery"
535
  msgstr "Wähle Galerie"
536
 
537
- #: ../admin/addgallery.php:194
538
- msgid "Note : The upload limit on your server is "
539
- msgstr "Hinweis : Das Upload-Limit auf dem Server beträgt"
540
-
541
- #: ../admin/addgallery.php:197
542
  msgid "Upload images"
543
  msgstr "Bilder hochladen"
544
 
545
- #: ../admin/addgallery.php:217
546
  msgid "No valid gallery name!"
547
  msgstr "Kein gültiger Galerie-Name!"
548
 
549
- #: ../admin/addgallery.php:220
550
- #: ../admin/addgallery.php:225
551
- #: ../admin/addgallery.php:260
552
- #: ../admin/addgallery.php:264
553
  msgid "Directory"
554
  msgstr "Verzeichniss"
555
 
556
- #: ../admin/addgallery.php:220
557
  msgid "didn't have the permissions "
558
  msgstr "hat nicht die Berechtigungen"
559
 
560
- #: ../admin/addgallery.php:225
561
  msgid "already exists!"
562
  msgstr "gibt es schon!"
563
 
564
- #: ../admin/addgallery.php:229
565
- #: ../admin/addgallery.php:231
566
- #: ../admin/addgallery.php:270
567
- #: ../admin/addgallery.php:484
568
- #: ../admin/addgallery.php:486
569
  msgid "Unable to create directory "
570
  msgstr "Kann Verzeichniss nicht erstellen"
571
 
572
- #: ../admin/addgallery.php:230
573
- #: ../admin/addgallery.php:485
574
- #: ../admin/addgallery.php:487
575
  msgid "Unable to set directory permissions "
576
  msgstr "Kann die Berechtigungen nicht setzen"
577
 
578
- #: ../admin/addgallery.php:232
579
  msgid "Unable to set directory permissions"
580
  msgstr "Kann die Berechtigungen nicht setzen"
581
 
582
- #: ../admin/addgallery.php:234
583
  msgid "The server Safe-Mode is on !"
584
  msgstr "Auf dem Server ist Safe-Mode aktiviert (PHP.INI)"
585
 
586
- #: ../admin/addgallery.php:235
587
  msgid "Please create directory"
588
  msgstr "Bitte erstelle das Verzeichniss"
589
 
590
- #: ../admin/addgallery.php:236
591
  msgid "and the thumbnails directory"
592
  msgstr "und das Thumbnails-Verzeichniss"
593
 
594
- #: ../admin/addgallery.php:236
595
  msgid "with permission 777 manually !"
596
  msgstr "mit den Berechtigungen 777 manuell !"
597
 
598
- #: ../admin/addgallery.php:240
599
  msgid "already exists"
600
  msgstr "gibt es bereits"
601
 
602
- #: ../admin/addgallery.php:243
603
  msgid "Gallery successfully created!"
604
  msgstr "Galerie erfolgreich erstellt!"
605
 
606
- #: ../admin/addgallery.php:260
607
- #: ../admin/addgallery.php:269
608
  msgid "doesn&#96;t exist"
609
  msgstr "gibt es nicht"
610
 
611
- #: ../admin/addgallery.php:264
612
  msgid "contains no pictures"
613
  msgstr "enthält keine Bilder"
614
 
615
- #: ../admin/addgallery.php:269
616
  msgid "Thumbnail Directory"
617
  msgstr "Thumbnail Verzeichniss"
618
 
619
- #: ../admin/addgallery.php:269
620
  msgid "Please create the folder <i>thumbs</i> in your gallery folder."
621
  msgstr "Bitte erstelle das Verzeichniss <i>thumbs</i> in Deinem Galerie-Verzeichniss als Unterverzeichniss."
622
 
623
- #: ../admin/addgallery.php:277
 
624
  msgid "Database error. Could not add gallery!"
625
  msgstr "Datenbank-Fehler. Kann Galerie nicht hinzufügen!"
626
 
627
- #: ../admin/addgallery.php:291
628
  msgid "successfully created!"
629
  msgstr "erfolgreich erstellt!"
630
 
631
- #: ../admin/addgallery.php:291
632
  msgid " pictures added."
633
  msgstr " Bilder hinzugefügt."
634
 
635
- #: ../admin/addgallery.php:334
636
- #: ../admin/addgallery.php:372
637
  msgid "Some pictures are not writeable :"
638
  msgstr "Einige Bilder sind schreibgeschützt :"
639
 
640
- #: ../admin/addgallery.php:444
641
  msgid "Follow thumbnails could not created."
642
  msgstr "Folgende Thumbnails konnten nicht erstellt werden :"
643
 
644
- #: ../admin/addgallery.php:445
645
  msgid "Some thumbnails are not writeable :"
646
  msgstr "Einige Thumbnails sind schreibgeschützt :"
647
 
648
- #: ../admin/addgallery.php:475
649
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
650
  msgstr "Die hochgeladene Datei war keine korrekte Zip-Datei. Servermeldung :"
651
 
652
- #: ../admin/addgallery.php:490
653
- msgid "Directory already exists, please rename zip file"
654
- msgstr "Verzeichniss gibt es schon; bitte nenne Deine Zip-Datei um."
655
-
656
- #: ../admin/addgallery.php:495
657
  msgid "Unable to unlink zip file "
658
  msgstr "Unfähig die Zip-Datei zu bearbeiten"
659
 
660
- #: ../admin/addgallery.php:497
661
  msgid "Zip-File successfully unpacked"
662
  msgstr "Zip-Datei erfolgreich entpackt"
663
 
664
- #: ../admin/addgallery.php:524
665
- #: ../admin/addgallery.php:531
666
  msgid "Unable to unlink file "
667
  msgstr "Unfähig das File zu bearbeiten"
668
 
669
- #: ../admin/addgallery.php:525
670
  msgid "No gallery selected !"
671
  msgstr "Keine Galerie ausgewählt !"
672
 
673
- #: ../admin/addgallery.php:532
674
  msgid "Failure in database, no gallery path set !"
675
  msgstr "Datenbankfehler! Kein Galerie-Pfad gesetzt !"
676
 
677
- #: ../admin/addgallery.php:538
678
  msgid "Error, the file could not moved to : "
679
  msgstr "Fehler: diese Datei kann nicht verschoben werden zu :"
680
 
681
- #: ../admin/addgallery.php:539
682
  msgid "Error, the file permissions could not set"
683
  msgstr "Fehler: die Berechtigungen für diese Datei können nicht gesetzt werden"
684
 
685
- #: ../admin/addgallery.php:559
686
  msgid " Images successfully added"
687
  msgstr " Bild(er) erfolgreich hinzugefügt"
688
 
@@ -710,11 +715,16 @@ msgstr "Galerie Setup"
710
  msgid "Setup"
711
  msgstr "Setup"
712
 
713
- #: ../admin/admin.php:52
 
 
 
 
 
714
  msgid "About this Gallery"
715
  msgstr "Über diese Galerie"
716
 
717
- #: ../admin/admin.php:52
718
  msgid "About"
719
  msgstr "Über"
720
 
@@ -779,6 +789,7 @@ msgstr "Kein Album ausgewählt"
779
  #: ../admin/album.php:211
780
  #: ../admin/manage.php:219
781
  #: ../admin/manage.php:430
 
782
  msgid "ID"
783
  msgstr "ID"
784
 
@@ -834,19 +845,23 @@ msgid "Gallery Overview"
834
  msgstr "Galerie Übersicht"
835
 
836
  #: ../admin/manage.php:220
 
837
  msgid "Gallery name"
838
  msgstr "Galerie Name"
839
 
840
  #: ../admin/manage.php:223
 
841
  msgid "Page ID"
842
  msgstr "Seiten ID (Page ID)"
843
 
844
  #: ../admin/manage.php:224
 
845
  msgid "Quantity"
846
  msgstr "Anzahl"
847
 
848
  #: ../admin/manage.php:225
849
  #: ../admin/manage.php:442
 
850
  msgid "Action"
851
  msgstr "Aktion"
852
 
@@ -862,6 +877,7 @@ msgstr "Diese Datei löschen ?"
862
 
863
  #: ../admin/manage.php:250
864
  #: ../admin/manage.php:482
 
865
  msgid "No entries found"
866
  msgstr "Keine Einträge gefunden"
867
 
@@ -978,6 +994,22 @@ msgstr "Stichwörter (Tags)"
978
  msgid "View"
979
  msgstr "Ansehen"
980
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
981
  #: ../admin/overview.php:12
982
  msgid "NextGEN Gallery Overview"
983
  msgstr "NextGEN Galerie Übersicht"
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-07-10 18:21+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
39
  #: ../admin/manage.php:222
40
  #: ../admin/manage.php:370
41
  #: ../admin/manage.php:436
42
+ #: ../admin/myimport.php:52
43
  #: ../admin/style.php:97
44
  #: ../js/nggadmintab-js.php:167
45
  msgid "Description"
58
  msgid "Save"
59
  msgstr "Speichern"
60
 
61
+ #: ../nggallery.php:254
62
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
63
  msgstr "Tut mir leid aber NextGEN Galerie arbeitet nur ab WordPress 2.1 und aufwärts"
64
 
65
  #: ../nggbutton.php:36
66
+ #: ../admin/addgallery.php:255
67
+ #: ../admin/addgallery.php:319
68
  #: ../admin/admin.php:45
69
  #: ../admin/manage.php:44
70
  #: ../admin/manage.php:341
188
  msgid "from"
189
  msgstr "von"
190
 
191
+ #: ../ngginstall.php:105
192
  msgid "[Show as slideshow]"
193
  msgstr "[Zeige als Slideshow]"
194
 
195
+ #: ../ngginstall.php:106
196
  msgid "[Show picture list]"
197
  msgstr "[Zeige Bilder-Liste]"
198
 
199
+ #: ../ngginstall.php:116
200
  msgid "Back"
201
  msgstr "Zurück"
202
 
203
+ #: ../ngginstall.php:117
204
  msgid "Next"
205
  msgstr "Vor"
206
 
220
  msgid "Width:"
221
  msgstr "Breite:"
222
 
223
+ #: ../nggwidget.php:381
224
  msgid "NextGEN Recent Image"
225
  msgstr "NextGEN Letzte Bilder"
226
 
227
+ #: ../nggwidget.php:421
228
+ #: ../nggwidget.php:611
229
  #: ../admin/album.php:213
230
  #: ../admin/manage.php:221
231
  #: ../admin/manage.php:351
232
+ #: ../admin/myimport.php:51
233
  #: ../js/nggadmintab-js.php:104
234
  msgid "Title"
235
  msgstr "Titel"
236
 
237
+ #: ../nggwidget.php:423
238
+ #: ../nggwidget.php:613
239
  msgid "Display type"
240
  msgstr "Verende Bild"
241
 
242
+ #: ../nggwidget.php:425
243
+ #: ../nggwidget.php:615
244
  #: ../admin/manage.php:433
245
  #: ../js/nggadmintab-js.php:101
246
  msgid "Thumbnail"
247
  msgstr "Thumbnail"
248
 
249
+ #: ../nggwidget.php:426
250
+ #: ../nggwidget.php:616
251
  msgid "Orginal"
252
  msgstr "Orginal"
253
 
254
+ #: ../nggwidget.php:429
255
+ #: ../nggwidget.php:619
256
  msgid "Number of pics"
257
  msgstr "Anzahl der Bilder"
258
 
259
+ #: ../nggwidget.php:440
260
+ #: ../nggwidget.php:630
261
  msgid "Width (px)"
262
  msgstr "Breite (px)"
263
 
264
+ #: ../nggwidget.php:442
265
+ #: ../nggwidget.php:632
266
  msgid "Height (px)"
267
  msgstr "Höhe (px)"
268
 
269
+ #: ../nggwidget.php:444
270
+ #: ../nggwidget.php:634
271
  msgid "Mode"
272
  msgstr "Modus"
273
 
274
+ #: ../nggwidget.php:446
275
+ #: ../nggwidget.php:636
276
  #: ../admin/settings.php:512
277
  msgid "none"
278
  msgstr "keiner"
279
 
280
+ #: ../nggwidget.php:447
281
+ #: ../nggwidget.php:637
282
  msgid "web2.0"
283
  msgstr "Web 2.0"
284
 
285
+ #: ../nggwidget.php:450
286
+ #: ../nggwidget.php:640
287
  msgid "Show in the main page"
288
  msgstr "Zeige auf der Startseite"
289
 
290
+ #: ../nggwidget.php:452
291
+ #: ../nggwidget.php:642
292
  msgid "yes"
293
  msgstr "Ja"
294
 
295
+ #: ../nggwidget.php:453
296
+ #: ../nggwidget.php:643
297
  msgid "no"
298
  msgstr "Nein"
299
 
300
+ #: ../nggwidget.php:456
301
+ #: ../nggwidget.php:646
302
  msgid "Show in"
303
  msgstr "Zeige in"
304
 
305
+ #: ../nggwidget.php:458
306
+ #: ../nggwidget.php:648
307
  msgid "All categories"
308
  msgstr "Alle Kategorien"
309
 
310
+ #: ../nggwidget.php:459
311
+ #: ../nggwidget.php:649
312
  msgid "Only which are not listed"
313
  msgstr "Nur ungelistete"
314
 
315
+ #: ../nggwidget.php:460
316
+ #: ../nggwidget.php:650
317
  msgid "Only which are listed"
318
  msgstr "Nur gelistete"
319
 
320
+ #: ../nggwidget.php:463
321
+ #: ../nggwidget.php:653
322
  msgid "Categories (id (use , to seperate)"
323
  msgstr "Kategorie (ID (nutze , für mehrere))"
324
 
325
+ #: ../nggwidget.php:573
326
  msgid "NextGEN Random Image"
327
  msgstr "NextGEN Zufallsbild"
328
 
471
  msgstr "Zip-Datei hochladen"
472
 
473
  #: ../admin/addgallery.php:115
474
+ #: ../admin/addgallery.php:171
475
  msgid "Import image folder"
476
  msgstr "Bilder-Verzeichniss importieren"
477
 
478
  #: ../admin/addgallery.php:116
479
+ #: ../admin/addgallery.php:188
480
  msgid "Upload Images"
481
  msgstr "Bilder hochladen"
482
 
505
  msgstr "Lade eine Zip-Datei mit Bildern hoch"
506
 
507
  #: ../admin/addgallery.php:150
508
+ #: ../admin/addgallery.php:197
509
+ msgid "in to"
510
+ msgstr "in"
511
+
512
+ #: ../admin/addgallery.php:152
513
+ msgid "a new gallery"
514
+ msgstr "in eine neue Galerie"
515
+
516
+ #: ../admin/addgallery.php:162
517
+ #: ../admin/addgallery.php:209
518
+ msgid "Note : The upload limit on your server is "
519
+ msgstr "Hinweis : Das Upload-Limit auf dem Server beträgt"
520
+
521
+ #: ../admin/addgallery.php:165
522
  msgid "Start upload"
523
  msgstr "Upload starten"
524
 
525
+ #: ../admin/addgallery.php:176
526
  msgid "Import from Server path:"
527
  msgstr "Importieren aus Server-Pfad:"
528
 
529
+ #: ../admin/addgallery.php:178
530
  msgid "Import a folder with images. Please note :"
531
  msgstr "Importiere ein Verzeichniss mit Bildern. Bitte beachte:"
532
 
533
+ #: ../admin/addgallery.php:179
534
  msgid "For save_mode = ON you need to add the subfolder thumbs manually"
535
  msgstr "Falls save_mode = ON (PHP.INI) mußt Du die Thumbs im Unterverzeichniss manuell hinzufügen"
536
 
537
+ #: ../admin/addgallery.php:182
538
  msgid "Import folder"
539
  msgstr "Verzeichniss importieren"
540
 
541
+ #: ../admin/addgallery.php:193
542
  msgid "Upload image"
543
  msgstr "Bild hochladen"
544
 
545
+ #: ../admin/addgallery.php:199
 
 
 
 
546
  msgid "Choose gallery"
547
  msgstr "Wähle Galerie"
548
 
549
+ #: ../admin/addgallery.php:212
 
 
 
 
550
  msgid "Upload images"
551
  msgstr "Bilder hochladen"
552
 
553
+ #: ../admin/addgallery.php:232
554
  msgid "No valid gallery name!"
555
  msgstr "Kein gültiger Galerie-Name!"
556
 
557
+ #: ../admin/addgallery.php:235
558
+ #: ../admin/addgallery.php:240
559
+ #: ../admin/addgallery.php:275
560
+ #: ../admin/addgallery.php:279
561
  msgid "Directory"
562
  msgstr "Verzeichniss"
563
 
564
+ #: ../admin/addgallery.php:235
565
  msgid "didn't have the permissions "
566
  msgstr "hat nicht die Berechtigungen"
567
 
568
+ #: ../admin/addgallery.php:240
569
  msgid "already exists!"
570
  msgstr "gibt es schon!"
571
 
572
+ #: ../admin/addgallery.php:244
573
+ #: ../admin/addgallery.php:246
574
+ #: ../admin/addgallery.php:285
575
+ #: ../admin/addgallery.php:538
576
+ #: ../admin/addgallery.php:540
577
  msgid "Unable to create directory "
578
  msgstr "Kann Verzeichniss nicht erstellen"
579
 
580
+ #: ../admin/addgallery.php:245
581
+ #: ../admin/addgallery.php:539
582
+ #: ../admin/addgallery.php:541
583
  msgid "Unable to set directory permissions "
584
  msgstr "Kann die Berechtigungen nicht setzen"
585
 
586
+ #: ../admin/addgallery.php:247
587
  msgid "Unable to set directory permissions"
588
  msgstr "Kann die Berechtigungen nicht setzen"
589
 
590
+ #: ../admin/addgallery.php:249
591
  msgid "The server Safe-Mode is on !"
592
  msgstr "Auf dem Server ist Safe-Mode aktiviert (PHP.INI)"
593
 
594
+ #: ../admin/addgallery.php:250
595
  msgid "Please create directory"
596
  msgstr "Bitte erstelle das Verzeichniss"
597
 
598
+ #: ../admin/addgallery.php:251
599
  msgid "and the thumbnails directory"
600
  msgstr "und das Thumbnails-Verzeichniss"
601
 
602
+ #: ../admin/addgallery.php:251
603
  msgid "with permission 777 manually !"
604
  msgstr "mit den Berechtigungen 777 manuell !"
605
 
606
+ #: ../admin/addgallery.php:255
607
  msgid "already exists"
608
  msgstr "gibt es bereits"
609
 
610
+ #: ../admin/addgallery.php:258
611
  msgid "Gallery successfully created!"
612
  msgstr "Galerie erfolgreich erstellt!"
613
 
614
+ #: ../admin/addgallery.php:275
615
+ #: ../admin/addgallery.php:284
616
  msgid "doesn&#96;t exist"
617
  msgstr "gibt es nicht"
618
 
619
+ #: ../admin/addgallery.php:279
620
  msgid "contains no pictures"
621
  msgstr "enthält keine Bilder"
622
 
623
+ #: ../admin/addgallery.php:284
624
  msgid "Thumbnail Directory"
625
  msgstr "Thumbnail Verzeichniss"
626
 
627
+ #: ../admin/addgallery.php:284
628
  msgid "Please create the folder <i>thumbs</i> in your gallery folder."
629
  msgstr "Bitte erstelle das Verzeichniss <i>thumbs</i> in Deinem Galerie-Verzeichniss als Unterverzeichniss."
630
 
631
+ #: ../admin/addgallery.php:297
632
+ #: ../admin/myimport.php:38
633
  msgid "Database error. Could not add gallery!"
634
  msgstr "Datenbank-Fehler. Kann Galerie nicht hinzufügen!"
635
 
636
+ #: ../admin/addgallery.php:319
637
  msgid "successfully created!"
638
  msgstr "erfolgreich erstellt!"
639
 
640
+ #: ../admin/addgallery.php:319
641
  msgid " pictures added."
642
  msgstr " Bilder hinzugefügt."
643
 
644
+ #: ../admin/addgallery.php:362
645
+ #: ../admin/addgallery.php:400
646
  msgid "Some pictures are not writeable :"
647
  msgstr "Einige Bilder sind schreibgeschützt :"
648
 
649
+ #: ../admin/addgallery.php:472
650
  msgid "Follow thumbnails could not created."
651
  msgstr "Folgende Thumbnails konnten nicht erstellt werden :"
652
 
653
+ #: ../admin/addgallery.php:473
654
  msgid "Some thumbnails are not writeable :"
655
  msgstr "Einige Thumbnails sind schreibgeschützt :"
656
 
657
+ #: ../admin/addgallery.php:523
658
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
659
  msgstr "Die hochgeladene Datei war keine korrekte Zip-Datei. Servermeldung :"
660
 
661
+ #: ../admin/addgallery.php:546
 
 
 
 
662
  msgid "Unable to unlink zip file "
663
  msgstr "Unfähig die Zip-Datei zu bearbeiten"
664
 
665
+ #: ../admin/addgallery.php:548
666
  msgid "Zip-File successfully unpacked"
667
  msgstr "Zip-Datei erfolgreich entpackt"
668
 
669
+ #: ../admin/addgallery.php:575
670
+ #: ../admin/addgallery.php:582
671
  msgid "Unable to unlink file "
672
  msgstr "Unfähig das File zu bearbeiten"
673
 
674
+ #: ../admin/addgallery.php:576
675
  msgid "No gallery selected !"
676
  msgstr "Keine Galerie ausgewählt !"
677
 
678
+ #: ../admin/addgallery.php:583
679
  msgid "Failure in database, no gallery path set !"
680
  msgstr "Datenbankfehler! Kein Galerie-Pfad gesetzt !"
681
 
682
+ #: ../admin/addgallery.php:589
683
  msgid "Error, the file could not moved to : "
684
  msgstr "Fehler: diese Datei kann nicht verschoben werden zu :"
685
 
686
+ #: ../admin/addgallery.php:590
687
  msgid "Error, the file permissions could not set"
688
  msgstr "Fehler: die Berechtigungen für diese Datei können nicht gesetzt werden"
689
 
690
+ #: ../admin/addgallery.php:610
691
  msgid " Images successfully added"
692
  msgstr " Bild(er) erfolgreich hinzugefügt"
693
 
715
  msgid "Setup"
716
  msgstr "Setup"
717
 
718
+ #: ../admin/admin.php:53
719
+ #: ../admin/myimport.php:74
720
+ msgid "Import"
721
+ msgstr "Import "
722
+
723
+ #: ../admin/admin.php:54
724
  msgid "About this Gallery"
725
  msgstr "Über diese Galerie"
726
 
727
+ #: ../admin/admin.php:54
728
  msgid "About"
729
  msgstr "Über"
730
 
789
  #: ../admin/album.php:211
790
  #: ../admin/manage.php:219
791
  #: ../admin/manage.php:430
792
+ #: ../admin/myimport.php:49
793
  msgid "ID"
794
  msgstr "ID"
795
 
845
  msgstr "Galerie Übersicht"
846
 
847
  #: ../admin/manage.php:220
848
+ #: ../admin/myimport.php:50
849
  msgid "Gallery name"
850
  msgstr "Galerie Name"
851
 
852
  #: ../admin/manage.php:223
853
+ #: ../admin/myimport.php:53
854
  msgid "Page ID"
855
  msgstr "Seiten ID (Page ID)"
856
 
857
  #: ../admin/manage.php:224
858
+ #: ../admin/myimport.php:54
859
  msgid "Quantity"
860
  msgstr "Anzahl"
861
 
862
  #: ../admin/manage.php:225
863
  #: ../admin/manage.php:442
864
+ #: ../admin/myimport.php:55
865
  msgid "Action"
866
  msgstr "Aktion"
867
 
877
 
878
  #: ../admin/manage.php:250
879
  #: ../admin/manage.php:482
880
+ #: ../admin/myimport.php:79
881
  msgid "No entries found"
882
  msgstr "Keine Einträge gefunden"
883
 
994
  msgid "View"
995
  msgstr "Ansehen"
996
 
997
+ #: ../admin/myimport.php:35
998
+ msgid "Gallery "
999
+ msgstr "Galerie"
1000
+
1001
+ #: ../admin/myimport.php:35
1002
+ msgid " : Import successfull"
1003
+ msgstr " : Import erfolgreich"
1004
+
1005
+ #: ../admin/myimport.php:45
1006
+ msgid "myGallery Import"
1007
+ msgstr "myGallery Import"
1008
+
1009
+ #: ../admin/myimport.php:74
1010
+ msgid "Import this gallery ?"
1011
+ msgstr "Diese Galerie importieren ?"
1012
+
1013
  #: ../admin/overview.php:12
1014
  msgid "NextGEN Gallery Overview"
1015
  msgstr "NextGEN Galerie Übersicht"
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: 2007-06-27 20:06+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
@@ -39,6 +39,7 @@ msgstr ""
39
  #: ../admin/manage.php:222
40
  #: ../admin/manage.php:370
41
  #: ../admin/manage.php:436
 
42
  #: ../admin/style.php:97
43
  #: ../js/nggadmintab-js.php:167
44
  msgid "Description"
@@ -57,13 +58,13 @@ msgstr ""
57
  msgid "Save"
58
  msgstr ""
59
 
60
- #: ../nggallery.php:265
61
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
62
  msgstr ""
63
 
64
  #: ../nggbutton.php:36
65
- #: ../admin/addgallery.php:240
66
- #: ../admin/addgallery.php:291
67
  #: ../admin/admin.php:45
68
  #: ../admin/manage.php:44
69
  #: ../admin/manage.php:341
@@ -187,19 +188,19 @@ msgstr ""
187
  msgid "from"
188
  msgstr ""
189
 
190
- #: ../ngginstall.php:101
191
  msgid "[Show as slideshow]"
192
  msgstr ""
193
 
194
- #: ../ngginstall.php:102
195
  msgid "[Show picture list]"
196
  msgstr ""
197
 
198
- #: ../ngginstall.php:112
199
  msgid "Back"
200
  msgstr ""
201
 
202
- #: ../ngginstall.php:113
203
  msgid "Next"
204
  msgstr ""
205
 
@@ -219,108 +220,109 @@ msgstr ""
219
  msgid "Width:"
220
  msgstr ""
221
 
222
- #: ../nggwidget.php:401
223
  msgid "NextGEN Recent Image"
224
  msgstr ""
225
 
226
- #: ../nggwidget.php:441
227
- #: ../nggwidget.php:644
228
  #: ../admin/album.php:213
229
  #: ../admin/manage.php:221
230
  #: ../admin/manage.php:351
 
231
  #: ../js/nggadmintab-js.php:104
232
  msgid "Title"
233
  msgstr ""
234
 
235
- #: ../nggwidget.php:444
236
- #: ../nggwidget.php:647
237
  msgid "Display type"
238
  msgstr ""
239
 
240
- #: ../nggwidget.php:446
241
- #: ../nggwidget.php:649
242
  #: ../admin/manage.php:433
243
  #: ../js/nggadmintab-js.php:101
244
  msgid "Thumbnail"
245
  msgstr ""
246
 
247
- #: ../nggwidget.php:447
248
- #: ../nggwidget.php:650
249
  msgid "Orginal"
250
  msgstr ""
251
 
252
- #: ../nggwidget.php:450
253
- #: ../nggwidget.php:654
254
  msgid "Number of pics"
255
  msgstr ""
256
 
257
- #: ../nggwidget.php:461
258
- #: ../nggwidget.php:665
259
  msgid "Width (px)"
260
  msgstr ""
261
 
262
- #: ../nggwidget.php:463
263
- #: ../nggwidget.php:667
264
  msgid "Height (px)"
265
  msgstr ""
266
 
267
- #: ../nggwidget.php:465
268
- #: ../nggwidget.php:669
269
  msgid "Mode"
270
  msgstr ""
271
 
272
- #: ../nggwidget.php:467
273
- #: ../nggwidget.php:671
274
  #: ../admin/settings.php:512
275
  msgid "none"
276
  msgstr ""
277
 
278
- #: ../nggwidget.php:468
279
- #: ../nggwidget.php:672
280
  msgid "web2.0"
281
  msgstr ""
282
 
283
- #: ../nggwidget.php:472
284
- #: ../nggwidget.php:676
285
  msgid "Show in the main page"
286
  msgstr ""
287
 
288
- #: ../nggwidget.php:474
289
- #: ../nggwidget.php:678
290
  msgid "yes"
291
  msgstr ""
292
 
293
- #: ../nggwidget.php:475
294
- #: ../nggwidget.php:679
295
  msgid "no"
296
  msgstr ""
297
 
298
- #: ../nggwidget.php:478
299
- #: ../nggwidget.php:682
300
  msgid "Show in"
301
  msgstr ""
302
 
303
- #: ../nggwidget.php:480
304
- #: ../nggwidget.php:684
305
  msgid "All categories"
306
  msgstr ""
307
 
308
- #: ../nggwidget.php:481
309
- #: ../nggwidget.php:685
310
  msgid "Only which are not listed"
311
  msgstr ""
312
 
313
- #: ../nggwidget.php:482
314
- #: ../nggwidget.php:686
315
  msgid "Only which are listed"
316
  msgstr ""
317
 
318
- #: ../nggwidget.php:485
319
- #: ../nggwidget.php:689
320
  msgid "Categories (id (use , to seperate)"
321
  msgstr ""
322
 
323
- #: ../nggwidget.php:603
324
  msgid "NextGEN Random Image"
325
  msgstr ""
326
 
@@ -469,12 +471,12 @@ msgid "Upload a Zip-File"
469
  msgstr ""
470
 
471
  #: ../admin/addgallery.php:115
472
- #: ../admin/addgallery.php:156
473
  msgid "Import image folder"
474
  msgstr ""
475
 
476
  #: ../admin/addgallery.php:116
477
- #: ../admin/addgallery.php:173
478
  msgid "Upload Images"
479
  msgstr ""
480
 
@@ -503,186 +505,189 @@ msgid "Upload a zip file with images"
503
  msgstr ""
504
 
505
  #: ../admin/addgallery.php:150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
506
  msgid "Start upload"
507
  msgstr ""
508
 
509
- #: ../admin/addgallery.php:161
510
  msgid "Import from Server path:"
511
  msgstr ""
512
 
513
- #: ../admin/addgallery.php:163
514
  msgid "Import a folder with images. Please note :"
515
  msgstr ""
516
 
517
- #: ../admin/addgallery.php:164
518
  msgid "For save_mode = ON you need to add the subfolder thumbs manually"
519
  msgstr ""
520
 
521
- #: ../admin/addgallery.php:167
522
  msgid "Import folder"
523
  msgstr ""
524
 
525
- #: ../admin/addgallery.php:178
526
  msgid "Upload image"
527
  msgstr ""
528
 
529
- #: ../admin/addgallery.php:182
530
- msgid "in to"
531
- msgstr ""
532
-
533
- #: ../admin/addgallery.php:184
534
  msgid "Choose gallery"
535
  msgstr ""
536
 
537
- #: ../admin/addgallery.php:194
538
- msgid "Note : The upload limit on your server is "
539
- msgstr ""
540
-
541
- #: ../admin/addgallery.php:197
542
  msgid "Upload images"
543
  msgstr ""
544
 
545
- #: ../admin/addgallery.php:217
546
  msgid "No valid gallery name!"
547
  msgstr ""
548
 
549
- #: ../admin/addgallery.php:220
550
- #: ../admin/addgallery.php:225
551
- #: ../admin/addgallery.php:260
552
- #: ../admin/addgallery.php:264
553
  msgid "Directory"
554
  msgstr ""
555
 
556
- #: ../admin/addgallery.php:220
557
  msgid "didn't have the permissions "
558
  msgstr ""
559
 
560
- #: ../admin/addgallery.php:225
561
  msgid "already exists!"
562
  msgstr ""
563
 
564
- #: ../admin/addgallery.php:229
565
- #: ../admin/addgallery.php:231
566
- #: ../admin/addgallery.php:270
567
- #: ../admin/addgallery.php:484
568
- #: ../admin/addgallery.php:486
569
  msgid "Unable to create directory "
570
  msgstr ""
571
 
572
- #: ../admin/addgallery.php:230
573
- #: ../admin/addgallery.php:485
574
- #: ../admin/addgallery.php:487
575
  msgid "Unable to set directory permissions "
576
  msgstr ""
577
 
578
- #: ../admin/addgallery.php:232
579
  msgid "Unable to set directory permissions"
580
  msgstr ""
581
 
582
- #: ../admin/addgallery.php:234
583
  msgid "The server Safe-Mode is on !"
584
  msgstr ""
585
 
586
- #: ../admin/addgallery.php:235
587
  msgid "Please create directory"
588
  msgstr ""
589
 
590
- #: ../admin/addgallery.php:236
591
  msgid "and the thumbnails directory"
592
  msgstr ""
593
 
594
- #: ../admin/addgallery.php:236
595
  msgid "with permission 777 manually !"
596
  msgstr ""
597
 
598
- #: ../admin/addgallery.php:240
599
  msgid "already exists"
600
  msgstr ""
601
 
602
- #: ../admin/addgallery.php:243
603
  msgid "Gallery successfully created!"
604
  msgstr ""
605
 
606
- #: ../admin/addgallery.php:260
607
- #: ../admin/addgallery.php:269
608
  msgid "doesn&#96;t exist"
609
  msgstr ""
610
 
611
- #: ../admin/addgallery.php:264
612
  msgid "contains no pictures"
613
  msgstr ""
614
 
615
- #: ../admin/addgallery.php:269
616
  msgid "Thumbnail Directory"
617
  msgstr ""
618
 
619
- #: ../admin/addgallery.php:269
620
  msgid "Please create the folder <i>thumbs</i> in your gallery folder."
621
  msgstr ""
622
 
623
- #: ../admin/addgallery.php:277
 
624
  msgid "Database error. Could not add gallery!"
625
  msgstr ""
626
 
627
- #: ../admin/addgallery.php:291
628
  msgid "successfully created!"
629
  msgstr ""
630
 
631
- #: ../admin/addgallery.php:291
632
  msgid " pictures added."
633
  msgstr ""
634
 
635
- #: ../admin/addgallery.php:334
636
- #: ../admin/addgallery.php:372
637
  msgid "Some pictures are not writeable :"
638
  msgstr ""
639
 
640
- #: ../admin/addgallery.php:444
641
  msgid "Follow thumbnails could not created."
642
  msgstr ""
643
 
644
- #: ../admin/addgallery.php:445
645
  msgid "Some thumbnails are not writeable :"
646
  msgstr ""
647
 
648
- #: ../admin/addgallery.php:475
649
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
650
  msgstr ""
651
 
652
- #: ../admin/addgallery.php:490
653
- msgid "Directory already exists, please rename zip file"
654
- msgstr ""
655
-
656
- #: ../admin/addgallery.php:495
657
  msgid "Unable to unlink zip file "
658
  msgstr ""
659
 
660
- #: ../admin/addgallery.php:497
661
  msgid "Zip-File successfully unpacked"
662
  msgstr ""
663
 
664
- #: ../admin/addgallery.php:524
665
- #: ../admin/addgallery.php:531
666
  msgid "Unable to unlink file "
667
  msgstr ""
668
 
669
- #: ../admin/addgallery.php:525
670
  msgid "No gallery selected !"
671
  msgstr ""
672
 
673
- #: ../admin/addgallery.php:532
674
  msgid "Failure in database, no gallery path set !"
675
  msgstr ""
676
 
677
- #: ../admin/addgallery.php:538
678
  msgid "Error, the file could not moved to : "
679
  msgstr ""
680
 
681
- #: ../admin/addgallery.php:539
682
  msgid "Error, the file permissions could not set"
683
  msgstr ""
684
 
685
- #: ../admin/addgallery.php:559
686
  msgid " Images successfully added"
687
  msgstr ""
688
 
@@ -710,11 +715,16 @@ msgstr ""
710
  msgid "Setup"
711
  msgstr ""
712
 
713
- #: ../admin/admin.php:52
 
 
 
 
 
714
  msgid "About this Gallery"
715
  msgstr ""
716
 
717
- #: ../admin/admin.php:52
718
  msgid "About"
719
  msgstr ""
720
 
@@ -779,6 +789,7 @@ msgstr ""
779
  #: ../admin/album.php:211
780
  #: ../admin/manage.php:219
781
  #: ../admin/manage.php:430
 
782
  msgid "ID"
783
  msgstr ""
784
 
@@ -834,19 +845,23 @@ msgid "Gallery Overview"
834
  msgstr ""
835
 
836
  #: ../admin/manage.php:220
 
837
  msgid "Gallery name"
838
  msgstr ""
839
 
840
  #: ../admin/manage.php:223
 
841
  msgid "Page ID"
842
  msgstr ""
843
 
844
  #: ../admin/manage.php:224
 
845
  msgid "Quantity"
846
  msgstr ""
847
 
848
  #: ../admin/manage.php:225
849
  #: ../admin/manage.php:442
 
850
  msgid "Action"
851
  msgstr ""
852
 
@@ -862,6 +877,7 @@ msgstr ""
862
 
863
  #: ../admin/manage.php:250
864
  #: ../admin/manage.php:482
 
865
  msgid "No entries found"
866
  msgstr ""
867
 
@@ -975,6 +991,22 @@ msgstr ""
975
  msgid "View"
976
  msgstr ""
977
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
978
  #: ../admin/overview.php:12
979
  msgid "NextGEN Gallery Overview"
980
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: NextGEN Gallery\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-07-10 18:21+0100\n"
6
  "Last-Translator: Alex Rabe\n"
7
  "Language-Team: Alex Rabe\n"
8
  "MIME-Version: 1.0\n"
39
  #: ../admin/manage.php:222
40
  #: ../admin/manage.php:370
41
  #: ../admin/manage.php:436
42
+ #: ../admin/myimport.php:52
43
  #: ../admin/style.php:97
44
  #: ../js/nggadmintab-js.php:167
45
  msgid "Description"
58
  msgid "Save"
59
  msgstr ""
60
 
61
+ #: ../nggallery.php:254
62
  msgid "Sorry, NextGEN Gallery works only under WordPress 2.1 or higher"
63
  msgstr ""
64
 
65
  #: ../nggbutton.php:36
66
+ #: ../admin/addgallery.php:255
67
+ #: ../admin/addgallery.php:319
68
  #: ../admin/admin.php:45
69
  #: ../admin/manage.php:44
70
  #: ../admin/manage.php:341
188
  msgid "from"
189
  msgstr ""
190
 
191
+ #: ../ngginstall.php:105
192
  msgid "[Show as slideshow]"
193
  msgstr ""
194
 
195
+ #: ../ngginstall.php:106
196
  msgid "[Show picture list]"
197
  msgstr ""
198
 
199
+ #: ../ngginstall.php:116
200
  msgid "Back"
201
  msgstr ""
202
 
203
+ #: ../ngginstall.php:117
204
  msgid "Next"
205
  msgstr ""
206
 
220
  msgid "Width:"
221
  msgstr ""
222
 
223
+ #: ../nggwidget.php:381
224
  msgid "NextGEN Recent Image"
225
  msgstr ""
226
 
227
+ #: ../nggwidget.php:421
228
+ #: ../nggwidget.php:611
229
  #: ../admin/album.php:213
230
  #: ../admin/manage.php:221
231
  #: ../admin/manage.php:351
232
+ #: ../admin/myimport.php:51
233
  #: ../js/nggadmintab-js.php:104
234
  msgid "Title"
235
  msgstr ""
236
 
237
+ #: ../nggwidget.php:423
238
+ #: ../nggwidget.php:613
239
  msgid "Display type"
240
  msgstr ""
241
 
242
+ #: ../nggwidget.php:425
243
+ #: ../nggwidget.php:615
244
  #: ../admin/manage.php:433
245
  #: ../js/nggadmintab-js.php:101
246
  msgid "Thumbnail"
247
  msgstr ""
248
 
249
+ #: ../nggwidget.php:426
250
+ #: ../nggwidget.php:616
251
  msgid "Orginal"
252
  msgstr ""
253
 
254
+ #: ../nggwidget.php:429
255
+ #: ../nggwidget.php:619
256
  msgid "Number of pics"
257
  msgstr ""
258
 
259
+ #: ../nggwidget.php:440
260
+ #: ../nggwidget.php:630
261
  msgid "Width (px)"
262
  msgstr ""
263
 
264
+ #: ../nggwidget.php:442
265
+ #: ../nggwidget.php:632
266
  msgid "Height (px)"
267
  msgstr ""
268
 
269
+ #: ../nggwidget.php:444
270
+ #: ../nggwidget.php:634
271
  msgid "Mode"
272
  msgstr ""
273
 
274
+ #: ../nggwidget.php:446
275
+ #: ../nggwidget.php:636
276
  #: ../admin/settings.php:512
277
  msgid "none"
278
  msgstr ""
279
 
280
+ #: ../nggwidget.php:447
281
+ #: ../nggwidget.php:637
282
  msgid "web2.0"
283
  msgstr ""
284
 
285
+ #: ../nggwidget.php:450
286
+ #: ../nggwidget.php:640
287
  msgid "Show in the main page"
288
  msgstr ""
289
 
290
+ #: ../nggwidget.php:452
291
+ #: ../nggwidget.php:642
292
  msgid "yes"
293
  msgstr ""
294
 
295
+ #: ../nggwidget.php:453
296
+ #: ../nggwidget.php:643
297
  msgid "no"
298
  msgstr ""
299
 
300
+ #: ../nggwidget.php:456
301
+ #: ../nggwidget.php:646
302
  msgid "Show in"
303
  msgstr ""
304
 
305
+ #: ../nggwidget.php:458
306
+ #: ../nggwidget.php:648
307
  msgid "All categories"
308
  msgstr ""
309
 
310
+ #: ../nggwidget.php:459
311
+ #: ../nggwidget.php:649
312
  msgid "Only which are not listed"
313
  msgstr ""
314
 
315
+ #: ../nggwidget.php:460
316
+ #: ../nggwidget.php:650
317
  msgid "Only which are listed"
318
  msgstr ""
319
 
320
+ #: ../nggwidget.php:463
321
+ #: ../nggwidget.php:653
322
  msgid "Categories (id (use , to seperate)"
323
  msgstr ""
324
 
325
+ #: ../nggwidget.php:573
326
  msgid "NextGEN Random Image"
327
  msgstr ""
328
 
471
  msgstr ""
472
 
473
  #: ../admin/addgallery.php:115
474
+ #: ../admin/addgallery.php:171
475
  msgid "Import image folder"
476
  msgstr ""
477
 
478
  #: ../admin/addgallery.php:116
479
+ #: ../admin/addgallery.php:188
480
  msgid "Upload Images"
481
  msgstr ""
482
 
505
  msgstr ""
506
 
507
  #: ../admin/addgallery.php:150
508
+ #: ../admin/addgallery.php:197
509
+ msgid "in to"
510
+ msgstr ""
511
+
512
+ #: ../admin/addgallery.php:152
513
+ msgid "a new gallery"
514
+ msgstr ""
515
+
516
+ #: ../admin/addgallery.php:162
517
+ #: ../admin/addgallery.php:209
518
+ msgid "Note : The upload limit on your server is "
519
+ msgstr ""
520
+
521
+ #: ../admin/addgallery.php:165
522
  msgid "Start upload"
523
  msgstr ""
524
 
525
+ #: ../admin/addgallery.php:176
526
  msgid "Import from Server path:"
527
  msgstr ""
528
 
529
+ #: ../admin/addgallery.php:178
530
  msgid "Import a folder with images. Please note :"
531
  msgstr ""
532
 
533
+ #: ../admin/addgallery.php:179
534
  msgid "For save_mode = ON you need to add the subfolder thumbs manually"
535
  msgstr ""
536
 
537
+ #: ../admin/addgallery.php:182
538
  msgid "Import folder"
539
  msgstr ""
540
 
541
+ #: ../admin/addgallery.php:193
542
  msgid "Upload image"
543
  msgstr ""
544
 
545
+ #: ../admin/addgallery.php:199
 
 
 
 
546
  msgid "Choose gallery"
547
  msgstr ""
548
 
549
+ #: ../admin/addgallery.php:212
 
 
 
 
550
  msgid "Upload images"
551
  msgstr ""
552
 
553
+ #: ../admin/addgallery.php:232
554
  msgid "No valid gallery name!"
555
  msgstr ""
556
 
557
+ #: ../admin/addgallery.php:235
558
+ #: ../admin/addgallery.php:240
559
+ #: ../admin/addgallery.php:275
560
+ #: ../admin/addgallery.php:279
561
  msgid "Directory"
562
  msgstr ""
563
 
564
+ #: ../admin/addgallery.php:235
565
  msgid "didn't have the permissions "
566
  msgstr ""
567
 
568
+ #: ../admin/addgallery.php:240
569
  msgid "already exists!"
570
  msgstr ""
571
 
572
+ #: ../admin/addgallery.php:244
573
+ #: ../admin/addgallery.php:246
574
+ #: ../admin/addgallery.php:285
575
+ #: ../admin/addgallery.php:538
576
+ #: ../admin/addgallery.php:540
577
  msgid "Unable to create directory "
578
  msgstr ""
579
 
580
+ #: ../admin/addgallery.php:245
581
+ #: ../admin/addgallery.php:539
582
+ #: ../admin/addgallery.php:541
583
  msgid "Unable to set directory permissions "
584
  msgstr ""
585
 
586
+ #: ../admin/addgallery.php:247
587
  msgid "Unable to set directory permissions"
588
  msgstr ""
589
 
590
+ #: ../admin/addgallery.php:249
591
  msgid "The server Safe-Mode is on !"
592
  msgstr ""
593
 
594
+ #: ../admin/addgallery.php:250
595
  msgid "Please create directory"
596
  msgstr ""
597
 
598
+ #: ../admin/addgallery.php:251
599
  msgid "and the thumbnails directory"
600
  msgstr ""
601
 
602
+ #: ../admin/addgallery.php:251
603
  msgid "with permission 777 manually !"
604
  msgstr ""
605
 
606
+ #: ../admin/addgallery.php:255
607
  msgid "already exists"
608
  msgstr ""
609
 
610
+ #: ../admin/addgallery.php:258
611
  msgid "Gallery successfully created!"
612
  msgstr ""
613
 
614
+ #: ../admin/addgallery.php:275
615
+ #: ../admin/addgallery.php:284
616
  msgid "doesn&#96;t exist"
617
  msgstr ""
618
 
619
+ #: ../admin/addgallery.php:279
620
  msgid "contains no pictures"
621
  msgstr ""
622
 
623
+ #: ../admin/addgallery.php:284
624
  msgid "Thumbnail Directory"
625
  msgstr ""
626
 
627
+ #: ../admin/addgallery.php:284
628
  msgid "Please create the folder <i>thumbs</i> in your gallery folder."
629
  msgstr ""
630
 
631
+ #: ../admin/addgallery.php:297
632
+ #: ../admin/myimport.php:38
633
  msgid "Database error. Could not add gallery!"
634
  msgstr ""
635
 
636
+ #: ../admin/addgallery.php:319
637
  msgid "successfully created!"
638
  msgstr ""
639
 
640
+ #: ../admin/addgallery.php:319
641
  msgid " pictures added."
642
  msgstr ""
643
 
644
+ #: ../admin/addgallery.php:362
645
+ #: ../admin/addgallery.php:400
646
  msgid "Some pictures are not writeable :"
647
  msgstr ""
648
 
649
+ #: ../admin/addgallery.php:472
650
  msgid "Follow thumbnails could not created."
651
  msgstr ""
652
 
653
+ #: ../admin/addgallery.php:473
654
  msgid "Some thumbnails are not writeable :"
655
  msgstr ""
656
 
657
+ #: ../admin/addgallery.php:523
658
  msgid "Uploaded file was no or a faulty zip file ! The server recognize : "
659
  msgstr ""
660
 
661
+ #: ../admin/addgallery.php:546
 
 
 
 
662
  msgid "Unable to unlink zip file "
663
  msgstr ""
664
 
665
+ #: ../admin/addgallery.php:548
666
  msgid "Zip-File successfully unpacked"
667
  msgstr ""
668
 
669
+ #: ../admin/addgallery.php:575
670
+ #: ../admin/addgallery.php:582
671
  msgid "Unable to unlink file "
672
  msgstr ""
673
 
674
+ #: ../admin/addgallery.php:576
675
  msgid "No gallery selected !"
676
  msgstr ""
677
 
678
+ #: ../admin/addgallery.php:583
679
  msgid "Failure in database, no gallery path set !"
680
  msgstr ""
681
 
682
+ #: ../admin/addgallery.php:589
683
  msgid "Error, the file could not moved to : "
684
  msgstr ""
685
 
686
+ #: ../admin/addgallery.php:590
687
  msgid "Error, the file permissions could not set"
688
  msgstr ""
689
 
690
+ #: ../admin/addgallery.php:610
691
  msgid " Images successfully added"
692
  msgstr ""
693
 
715
  msgid "Setup"
716
  msgstr ""
717
 
718
+ #: ../admin/admin.php:53
719
+ #: ../admin/myimport.php:74
720
+ msgid "Import"
721
+ msgstr ""
722
+
723
+ #: ../admin/admin.php:54
724
  msgid "About this Gallery"
725
  msgstr ""
726
 
727
+ #: ../admin/admin.php:54
728
  msgid "About"
729
  msgstr ""
730
 
789
  #: ../admin/album.php:211
790
  #: ../admin/manage.php:219
791
  #: ../admin/manage.php:430
792
+ #: ../admin/myimport.php:49
793
  msgid "ID"
794
  msgstr ""
795
 
845
  msgstr ""
846
 
847
  #: ../admin/manage.php:220
848
+ #: ../admin/myimport.php:50
849
  msgid "Gallery name"
850
  msgstr ""
851
 
852
  #: ../admin/manage.php:223
853
+ #: ../admin/myimport.php:53
854
  msgid "Page ID"
855
  msgstr ""
856
 
857
  #: ../admin/manage.php:224
858
+ #: ../admin/myimport.php:54
859
  msgid "Quantity"
860
  msgstr ""
861
 
862
  #: ../admin/manage.php:225
863
  #: ../admin/manage.php:442
864
+ #: ../admin/myimport.php:55
865
  msgid "Action"
866
  msgstr ""
867
 
877
 
878
  #: ../admin/manage.php:250
879
  #: ../admin/manage.php:482
880
+ #: ../admin/myimport.php:79
881
  msgid "No entries found"
882
  msgstr ""
883
 
991
  msgid "View"
992
  msgstr ""
993
 
994
+ #: ../admin/myimport.php:35
995
+ msgid "Gallery "
996
+ msgstr ""
997
+
998
+ #: ../admin/myimport.php:35
999
+ msgid " : Import successfull"
1000
+ msgstr ""
1001
+
1002
+ #: ../admin/myimport.php:45
1003
+ msgid "myGallery Import"
1004
+ msgstr ""
1005
+
1006
+ #: ../admin/myimport.php:74
1007
+ msgid "Import this gallery ?"
1008
+ msgstr ""
1009
+
1010
  #: ../admin/overview.php:12
1011
  msgid "NextGEN Gallery Overview"
1012
  msgstr ""
lib/thumbnail.inc.php CHANGED
@@ -5,7 +5,7 @@
5
  * @author Ian Selby (ian@gen-x-design.com)
6
  * @copyright Copyright 2006
7
  * @version 1.1.1 (PHP4)
8
- * @modded by Alex Rabe
9
  *
10
  */
11
 
@@ -165,8 +165,8 @@ class ngg_Thumbnail {
165
  }
166
  }
167
 
168
- // Check memory consumption if file exists
169
  if($this->error == false) {
 
170
  $this->checkMemoryForImage($this->fileName);
171
  }
172
 
@@ -184,11 +184,15 @@ class ngg_Thumbnail {
184
  $this->oldImage = ImageCreateFromPng($this->fileName);
185
  break;
186
  }
187
-
188
- $size = GetImageSize($this->fileName);
189
- $this->currentDimensions = array('width'=>$size[0],'height'=>$size[1]);
190
- $this->newImage = $this->oldImage;
191
- $this->gatherImageMeta();
 
 
 
 
192
  }
193
 
194
 
@@ -237,7 +241,8 @@ class ngg_Thumbnail {
237
  }
238
 
239
  if ($memoryNeeded > $memory_limit) {
240
- $this->errmsg = 'Exceed Memory limit';
 
241
  $this->error = true;
242
  }
243
  }
5
  * @author Ian Selby (ian@gen-x-design.com)
6
  * @copyright Copyright 2006
7
  * @version 1.1.1 (PHP4)
8
+ * @modded by Alex Rabe
9
  *
10
  */
11
 
165
  }
166
  }
167
 
 
168
  if($this->error == false) {
169
+ // Check memory consumption if file exists
170
  $this->checkMemoryForImage($this->fileName);
171
  }
172
 
184
  $this->oldImage = ImageCreateFromPng($this->fileName);
185
  break;
186
  }
187
+ if (!$this->oldImage) {
188
+ $this->errmsg = 'Create Image failed. Check memory limit';
189
+ $this->error = true;
190
+ } else {
191
+ $size = GetImageSize($this->fileName);
192
+ $this->currentDimensions = array('width'=>$size[0],'height'=>$size[1]);
193
+ $this->newImage = $this->oldImage;
194
+ $this->gatherImageMeta();
195
+ }
196
  }
197
 
198
 
241
  }
242
 
243
  if ($memoryNeeded > $memory_limit) {
244
+ $memoryNeeded = round ($memoryNeeded / 1024 / 1024, 2);
245
+ $this->errmsg = 'Exceed Memory limit. Require : '.$memoryNeeded. " MByte" ;
246
  $this->error = true;
247
  }
248
  }
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.62
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
@@ -45,7 +45,7 @@ global $wpdb, $wp_version;
45
  if (version_compare($wp_version, '2.1', '>=')) {
46
 
47
  // Version and path to check version
48
- define('NGGVERSION', "0.62");
49
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
50
 
51
  // define URL
@@ -104,7 +104,7 @@ function ngg_addjs() {
104
  echo "\n".'<script type="text/javascript"> var tb_pathToImage = "'.NGGALLERY_URLPATH.'thickbox/'.$ngg_options[thickboxImage].'";</script>';
105
  echo "\n".'<style type="text/css" media="screen">@import "'.NGGALLERY_URLPATH.'thickbox/thickbox.css";</style>'."\n";
106
  if ($wp_version < "2.2") {
107
- wp_enqueue_script('jquery', NGGALLERY_URLPATH .'admin/js/jquery.js', FALSE, '1.1.2');
108
  }
109
  wp_enqueue_script('thickbox', NGGALLERY_URLPATH .'thickbox/thickbox-pack.js', array('jquery'), '3.0.2');
110
 
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.63
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
45
  if (version_compare($wp_version, '2.1', '>=')) {
46
 
47
  // Version and path to check version
48
+ define('NGGVERSION', "0.63");
49
  define('NGGURL', "http://nextgen.boelinger.com/version.php");
50
 
51
  // define URL
104
  echo "\n".'<script type="text/javascript"> var tb_pathToImage = "'.NGGALLERY_URLPATH.'thickbox/'.$ngg_options[thickboxImage].'";</script>';
105
  echo "\n".'<style type="text/css" media="screen">@import "'.NGGALLERY_URLPATH.'thickbox/thickbox.css";</style>'."\n";
106
  if ($wp_version < "2.2") {
107
+ wp_enqueue_script('jquery', NGGALLERY_URLPATH .'admin/js/jquery.js', FALSE, '1.1.3');
108
  }
109
  wp_enqueue_script('thickbox', NGGALLERY_URLPATH .'thickbox/thickbox-pack.js', array('jquery'), '3.0.2');
110
 
nggfunctions.php CHANGED
@@ -240,7 +240,7 @@ function nggShowGallery($galleryID) {
240
  $picturefile = nggallery::remove_umlauts($picture->filename);
241
  $gallerycontent .= '<div class="ngg-gallery-thumbnail-box">'."\n\t";
242
  $gallerycontent .= '<div class="ngg-gallery-thumbnail">'."\n\t";
243
- $gallerycontent .= '<a href="'.$folder_url.$picturefile.'" title="'.$picture->description.'" '.$thumbcode.' >';
244
  $gallerycontent .= '<img title="'.$picture->alttext.'" alt="'.$picture->alttext.'" src="'.$thumbnailURL.$thumb_prefix.$picture->filename.'" '.$thumbsize.' />';
245
  $gallerycontent .= '</a>'."\n".'</div>'."\n".'</div>'."\n";
246
  }
@@ -487,8 +487,8 @@ function nggSinglePicture($imageID,$width=250,$height=250,$mode="",$float="") {
487
 
488
  // get the effect code
489
  if ($ngg_options[thumbEffect] != "none") $thumbcode = stripslashes($ngg_options[thumbCode]);
490
- if ($ngg_options[thumbEffect] == "highslide") $thumbcode = str_replace("%GALLERY_NAME%", "'".$act_gallery->name."'", $thumbcode);
491
- else $thumbcode = str_replace("%GALLERY_NAME%", $act_gallery->name, $thumbcode);
492
 
493
  $link = '<a href="'.$folder_url.$picture->filename.'" title="'.$picture->description.'" '.$thumbcode.' >';
494
  }
240
  $picturefile = nggallery::remove_umlauts($picture->filename);
241
  $gallerycontent .= '<div class="ngg-gallery-thumbnail-box">'."\n\t";
242
  $gallerycontent .= '<div class="ngg-gallery-thumbnail">'."\n\t";
243
+ $gallerycontent .= '<a href="'.$folder_url.$picturefile.'" title="'.stripslashes($picture->description).'" '.$thumbcode.' >';
244
  $gallerycontent .= '<img title="'.$picture->alttext.'" alt="'.$picture->alttext.'" src="'.$thumbnailURL.$thumb_prefix.$picture->filename.'" '.$thumbsize.' />';
245
  $gallerycontent .= '</a>'."\n".'</div>'."\n".'</div>'."\n";
246
  }
487
 
488
  // get the effect code
489
  if ($ngg_options[thumbEffect] != "none") $thumbcode = stripslashes($ngg_options[thumbCode]);
490
+ if ($ngg_options[thumbEffect] == "highslide") $thumbcode = str_replace("%GALLERY_NAME%", "'singlepic".$imageID."'", $thumbcode);
491
+ else $thumbcode = str_replace("%GALLERY_NAME%", "singlepic".$imageID , $thumbcode);
492
 
493
  $link = '<a href="'.$folder_url.$picture->filename.'" title="'.$picture->description.'" '.$thumbcode.' >';
494
  }
ngginstall.php CHANGED
@@ -5,15 +5,19 @@ $ngg_db_version = "0.33";
5
 
6
  function nggallery_install () {
7
 
8
- global $wpdb , $wp_roles;
9
  global $ngg_db_version;
10
 
11
  // Check for capability
12
  if ( !current_user_can('activate_plugins') )
13
  return;
14
 
15
- require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
16
-
 
 
 
 
17
  $nggpictures = $wpdb->prefix . 'ngg_pictures';
18
  $nggallery = $wpdb->prefix . 'ngg_gallery';
19
  $nggalbum = $wpdb->prefix . 'ngg_album';
@@ -85,8 +89,8 @@ function ngg_default_options() {
85
  $ngg_options['thumbfix'] = true; // Fix the dimension
86
  $ngg_options['thumbcrop'] = false; // Crop square thumbnail
87
  $ngg_options['thumbquality'] = 100; // Thumb Quality
88
- $ngg_options['thumbResampleMode'] = 3; // Resample speed value 1 - 5
89
-
90
  // Image Settings
91
  $ngg_options['imgResize'] = false; // Activate resize
92
  $ngg_options['imgWidth'] = 800; // Image Width
5
 
6
  function nggallery_install () {
7
 
8
+ global $wpdb , $wp_roles, $wp_version;
9
  global $ngg_db_version;
10
 
11
  // Check for capability
12
  if ( !current_user_can('activate_plugins') )
13
  return;
14
 
15
+ // upgrade function changed in WordPress 2.3
16
+ if (version_compare($wp_version, '2.3.alpha', '>='))
17
+ require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
18
+ else
19
+ require_once(ABSPATH . 'wp-admin/upgrade-functions.php');
20
+
21
  $nggpictures = $wpdb->prefix . 'ngg_pictures';
22
  $nggallery = $wpdb->prefix . 'ngg_gallery';
23
  $nggalbum = $wpdb->prefix . 'ngg_album';
89
  $ngg_options['thumbfix'] = true; // Fix the dimension
90
  $ngg_options['thumbcrop'] = false; // Crop square thumbnail
91
  $ngg_options['thumbquality'] = 100; // Thumb Quality
92
+ $ngg_options['thumbResampleMode'] = 3; // Resample speed value 1 - 5
93
+
94
  // Image Settings
95
  $ngg_options['imgResize'] = false; // Activate resize
96
  $ngg_options['imgWidth'] = 800; // Image Width
nggwidget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: NextGEN Gallery Widget
4
  Description: Adds a sidebar widget support to your NextGEN Gallery!
5
  Author: KeViN
6
- Version: 1.00
7
  Author URI: http://www.kev.hu
8
  Plugin URI: http://www.kev.hu
9
 
@@ -184,7 +184,6 @@ function nggDisplayImagesWidget($thumb,$number,$sizeX,$sizeY,$mode,$imgtype) {
184
  if ($ngg_options[thumbEffect] == "highslide") $thumbcode = str_replace("%GALLERY_NAME%", "'sidebar'", $thumbcode);
185
  else $thumbcode = str_replace("%GALLERY_NAME%", "sidebar", $thumbcode);
186
 
187
-
188
  // Put your HTML code here if you want to personalize the image display!
189
  $IMGbefore = ''; // NOT IN USE!
190
  $IMGafter = ''; // NOT IN USE!
@@ -192,7 +191,6 @@ function nggDisplayImagesWidget($thumb,$number,$sizeX,$sizeY,$mode,$imgtype) {
192
  $Abefore = ''; // NOT IN USE!
193
  $Aafter = ''; // NOT IN USE!
194
 
195
-
196
  // [0.99] remember the displayed images
197
  $displayedimages = array();
198
 
@@ -202,12 +200,8 @@ function nggDisplayImagesWidget($thumb,$number,$sizeX,$sizeY,$mode,$imgtype) {
202
  $numberofimages = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures");
203
  if (($numberofimages < $number)) $number=$numberofimages;
204
 
205
- //echo $number." <-- total display images";
206
- //echo $numberofimages." <-- total images in you galleries";
207
-
208
  for ($i=1; $i<=$number; $i++) {
209
 
210
-
211
  // Get a random image from the database
212
  if (($imgtype == "random")) {
213
 
@@ -281,20 +275,16 @@ function nggDisplayImagesWidget($thumb,$number,$sizeX,$sizeY,$mode,$imgtype) {
281
  /**********************************************************/
282
 
283
  function nggDisplayRandomImages($number,$width,$height) {
284
- echo "\n".'<div class="ngg-widget">'."\n";
285
- nggDisplayImagesWidget("true",$number,$width,$height,"","random");
286
- echo '</div>'."\n";
287
-
288
-
289
  }
290
 
291
 
292
  function nggDisplayRecentImages($number,$width,$height) {
293
-
294
- echo "\n".'<div class="ngg-widget">'."\n";
295
- nggDisplayImagesWidget("true",$number,$width,$height,"","recent");
296
- echo '</div>'."\n";
297
-
298
  }
299
 
300
 
@@ -430,7 +420,6 @@ function widget_ngg_recentimage() {
430
 
431
  echo'<p style="text-align:right;"><label for="nextgen-recenttitle">' . __('Title','nggallery') . ': <input style="width: 150px;" id="nextgen-recenttitle" name="nextgen-recenttitle" type="text" value="'.$title.'" /></label></p>';
432
 
433
- // [0.95] [new function] -> Thumbnail or Normal Image?
434
  echo '<p style="text-align:right;"><label for="nextgen-recentthumb">' . __('Display type','nggallery').':';
435
  echo ' <select name="nextgen-recentthumb" size="1">';
436
  echo ' <option id="1" ';if (($thumb == "true")) echo 'selected="selected"'; echo ' value="true">' . __('Thumbnail','nggallery') . '</option>';
@@ -458,7 +447,6 @@ function widget_ngg_recentimage() {
458
  echo ' <option id="web20" ';if (($mode == "web20")) echo 'selected="selected"'; echo ' value="web20">'. __('web2.0','nggallery').'</option>';
459
  echo ' </select></label></p>';
460
 
461
- // [0.80] [new variables] -> category control
462
  echo '<p style="text-align:right;"><label for="nextgen-recentshowinhome">' . __('Show in the main page','nggallery').':';
463
  echo ' <select name="nextgen-recentshowinhome" size="1">';
464
  echo ' <option id="1" ';if ($showinhome == "yes") echo 'selected="selected"'; echo ' value="yes" >'. __('yes','nggallery').'</option>';
@@ -613,25 +601,20 @@ function widget_ngg_randomimage() {
613
  $sizeY = htmlspecialchars($options['sizeY'], ENT_QUOTES);
614
  //$mode = htmlspecialchars($options['mode'], ENT_QUOTES);
615
 
616
- // [0.80] [new functiions and newvariables] -> Category controll
617
  $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
618
  $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
619
  $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
620
 
621
- // [0.95] [new variable] -> (random / recent)
622
  $mode = htmlspecialchars($options['imgtype'], ENT_QUOTES);
623
 
624
  // Here comes the form
625
-
626
  echo'<p style="text-align:right;"><label for="nextgen-title">' . __('Title','nggallery') . ': <input style="width: 150px;" id="nextgen-title" name="nextgen-title" type="text" value="'.$title.'" /></label></p>';
627
 
628
- // [0.95] [new function] -> Thumbnail or Normal Image?
629
  echo '<p style="text-align:right;"><label for="nextgen-thumb">' . __('Display type','nggallery').':';
630
  echo ' <select name="nextgen-thumb" size="1">';
631
  echo ' <option id="1" ';if (($thumb == "true")) echo 'selected="selected"'; echo ' value="true">' . __('Thumbnail','nggallery') . '</option>';
632
  echo ' <option id="2" ';if (($thumb == "false")) echo 'selected="selected"'; echo ' value="false">' . __('Orginal','nggallery') . '</option>';
633
  echo ' </select></label></p>';
634
-
635
 
636
  echo '<p style="text-align:right;"><label for="nextgen-number">' . __('Number of pics','nggallery').':';
637
  echo ' <select name="nextgen-number" size="1">';
@@ -654,7 +637,6 @@ function widget_ngg_randomimage() {
654
  echo ' <option id="web20" ';if (($mode == "web20")) echo 'selected="selected"'; echo ' value="web20">'. __('web2.0','nggallery').'</option>';
655
  echo ' </select></label></p>';
656
 
657
- // [0.80] [new variables] -> category control
658
  echo '<p style="text-align:right;"><label for="nextgen-showinhome">' . __('Show in the main page','nggallery').':';
659
  echo ' <select name="nextgen-showinhome" size="1">';
660
  echo ' <option id="1" ';if ($showinhome == "yes") echo 'selected="selected"'; echo ' value="yes" >'. __('yes','nggallery').'</option>';
3
  Plugin Name: NextGEN Gallery Widget
4
  Description: Adds a sidebar widget support to your NextGEN Gallery!
5
  Author: KeViN
6
+ Version: 1.01
7
  Author URI: http://www.kev.hu
8
  Plugin URI: http://www.kev.hu
9
 
184
  if ($ngg_options[thumbEffect] == "highslide") $thumbcode = str_replace("%GALLERY_NAME%", "'sidebar'", $thumbcode);
185
  else $thumbcode = str_replace("%GALLERY_NAME%", "sidebar", $thumbcode);
186
 
 
187
  // Put your HTML code here if you want to personalize the image display!
188
  $IMGbefore = ''; // NOT IN USE!
189
  $IMGafter = ''; // NOT IN USE!
191
  $Abefore = ''; // NOT IN USE!
192
  $Aafter = ''; // NOT IN USE!
193
 
 
194
  // [0.99] remember the displayed images
195
  $displayedimages = array();
196
 
200
  $numberofimages = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures");
201
  if (($numberofimages < $number)) $number=$numberofimages;
202
 
 
 
 
203
  for ($i=1; $i<=$number; $i++) {
204
 
 
205
  // Get a random image from the database
206
  if (($imgtype == "random")) {
207
 
275
  /**********************************************************/
276
 
277
  function nggDisplayRandomImages($number,$width,$height) {
278
+ echo "\n".'<div class="ngg-widget">'."\n";
279
+ nggDisplayImagesWidget("true",$number,$width,$height,"","random");
280
+ echo '</div>'."\n";
 
 
281
  }
282
 
283
 
284
  function nggDisplayRecentImages($number,$width,$height) {
285
+ echo "\n".'<div class="ngg-widget">'."\n";
286
+ nggDisplayImagesWidget("true",$number,$width,$height,"","recent");
287
+ echo '</div>'."\n";
 
 
288
  }
289
 
290
 
420
 
421
  echo'<p style="text-align:right;"><label for="nextgen-recenttitle">' . __('Title','nggallery') . ': <input style="width: 150px;" id="nextgen-recenttitle" name="nextgen-recenttitle" type="text" value="'.$title.'" /></label></p>';
422
 
 
423
  echo '<p style="text-align:right;"><label for="nextgen-recentthumb">' . __('Display type','nggallery').':';
424
  echo ' <select name="nextgen-recentthumb" size="1">';
425
  echo ' <option id="1" ';if (($thumb == "true")) echo 'selected="selected"'; echo ' value="true">' . __('Thumbnail','nggallery') . '</option>';
447
  echo ' <option id="web20" ';if (($mode == "web20")) echo 'selected="selected"'; echo ' value="web20">'. __('web2.0','nggallery').'</option>';
448
  echo ' </select></label></p>';
449
 
 
450
  echo '<p style="text-align:right;"><label for="nextgen-recentshowinhome">' . __('Show in the main page','nggallery').':';
451
  echo ' <select name="nextgen-recentshowinhome" size="1">';
452
  echo ' <option id="1" ';if ($showinhome == "yes") echo 'selected="selected"'; echo ' value="yes" >'. __('yes','nggallery').'</option>';
601
  $sizeY = htmlspecialchars($options['sizeY'], ENT_QUOTES);
602
  //$mode = htmlspecialchars($options['mode'], ENT_QUOTES);
603
 
 
604
  $showinhome = htmlspecialchars($options['showinhome'], ENT_QUOTES);
605
  $showcategory = htmlspecialchars($options['showcategory'], ENT_QUOTES);
606
  $categorylist = htmlspecialchars($options['categorylist'], ENT_QUOTES);
607
 
 
608
  $mode = htmlspecialchars($options['imgtype'], ENT_QUOTES);
609
 
610
  // Here comes the form
 
611
  echo'<p style="text-align:right;"><label for="nextgen-title">' . __('Title','nggallery') . ': <input style="width: 150px;" id="nextgen-title" name="nextgen-title" type="text" value="'.$title.'" /></label></p>';
612
 
 
613
  echo '<p style="text-align:right;"><label for="nextgen-thumb">' . __('Display type','nggallery').':';
614
  echo ' <select name="nextgen-thumb" size="1">';
615
  echo ' <option id="1" ';if (($thumb == "true")) echo 'selected="selected"'; echo ' value="true">' . __('Thumbnail','nggallery') . '</option>';
616
  echo ' <option id="2" ';if (($thumb == "false")) echo 'selected="selected"'; echo ' value="false">' . __('Orginal','nggallery') . '</option>';
617
  echo ' </select></label></p>';
 
618
 
619
  echo '<p style="text-align:right;"><label for="nextgen-number">' . __('Number of pics','nggallery').':';
620
  echo ' <select name="nextgen-number" size="1">';
637
  echo ' <option id="web20" ';if (($mode == "web20")) echo 'selected="selected"'; echo ' value="web20">'. __('web2.0','nggallery').'</option>';
638
  echo ' </select></label></p>';
639
 
 
640
  echo '<p style="text-align:right;"><label for="nextgen-showinhome">' . __('Show in the main page','nggallery').':';
641
  echo ' <select name="nextgen-showinhome" size="1">';
642
  echo ' <option id="1" ';if ($showinhome == "yes") echo 'selected="selected"'; echo ' value="yes" >'. __('yes','nggallery').'</option>';
readme.txt CHANGED
@@ -27,7 +27,7 @@ Features:
27
 
28
  For support around this plugin please visit http://alexrabe.boelinger.com/forums/
29
 
30
- For your language file please visit : http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/languages/
31
 
32
  ** PLEASE NOTE ! This gallery plugin is still in development, it can be contain many bugs ! **
33
 
@@ -98,9 +98,13 @@ For a single picture : **[singlepic=id,width,height,mode,float]**
98
 
99
  Example : http://nextgen.boelinger.com/singlepic/
100
 
101
- Read as startup : http://hqcode.com/?page_id=54
102
 
103
- A further FAQ you can found here: http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/faq/
104
 
105
- And at least request your question here : http://alexrabe.boelinger.com/forums/
 
 
 
 
106
 
27
 
28
  For support around this plugin please visit http://alexrabe.boelinger.com/forums/
29
 
30
+ **For your language file please visit :** http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/languages/
31
 
32
  ** PLEASE NOTE ! This gallery plugin is still in development, it can be contain many bugs ! **
33
 
98
 
99
  Example : http://nextgen.boelinger.com/singlepic/
100
 
101
+ For a image browser : **[imagebrowser=id]**
102
 
103
+ Example : http://nextgen.boelinger.com/2007/06/16/new-tag-picture-browser/
104
 
105
+ **Read as startup :** http://hqcode.com/?page_id=54
106
+
107
+ **A further FAQ you can found here :** http://alexrabe.boelinger.com/wordpress-plugins/nextgen-gallery/faq/
108
+
109
+ **And at least request your question here :** http://alexrabe.boelinger.com/forums/
110