Browse Source

V1.3.2

Includes small fixes and enhancements.
Tobias Reich 10 years ago
parent
commit
59a735afdd
3 changed files with 7 additions and 7 deletions
  1. 0 0
      js/functions.js
  2. 1 1
      js/modules/lychee.js
  3. 6 6
      php/functions.php

File diff suppressed because it is too large
+ 0 - 0
js/functions.js


+ 1 - 1
js/modules/lychee.js

@@ -12,7 +12,7 @@ var lychee = {
 
 	init: function() {
 
-		this.version = "1.3.1";
+		this.version = "1.3.2";
 		this.api_path = "php/api.php";
 		this.update_path = "http://lychee.electerious.com/version/index.php";
 		this.updateURL = "https://github.com/electerious/Lychee";

+ 6 - 6
php/functions.php

@@ -66,7 +66,7 @@ function createTables($database) {
   `aperture` varchar(10) NOT NULL,
   `make` varchar(20) NOT NULL,
   `model` varchar(50) NOT NULL,
-  `shutter` varchar(10) NOT NULL,
+  `shutter` varchar(20) NOT NULL,
   `focal` varchar(10) NOT NULL,
   `takedate` varchar(10) NOT NULL,
   `taketime` varchar(8) NOT NULL,
@@ -117,7 +117,7 @@ function upload($files, $albumID) {
 	    $data = $data[0];
 
 	    // Import if not uploaded via web
-	    if (!is_uploaded_file($tmp_name)) {
+	    if (!is_uploaded_file($file)) {
 	    	if (copy($tmp_name, "../uploads/big/" . md5($id) . ".$data")) {
 				unlink($tmp_name);
 				$import_name = $tmp_name;
@@ -147,8 +147,8 @@ function upload($files, $albumID) {
 	    if (isset($info['focal'])){$focal=$info['focal'];} else {$focal="";}
 	    if (isset($info['takeDate'])){$takeDate=$info['takeDate'];} else {$takeDate="";}
 	    if (isset($info['takeTime'])){$takeTime=$info['takeTime'];} else {$takeTime="";}
-	    $query = "INSERT INTO lychee_photos (id, title, url, type, width, height, size, sysdate, systime, iso, aperture, make, model, shutter, focal, takedate, taketime, thumbUrl, album, public, star, import_name)
-	        VALUES ('$id', '$title', '" . md5($id) . ".$data', '$type', '$width', '$height', '$size', '$sysdate', '$systime', '$iso', '$aperture', '$make', '$model', '$shutter', '$focal', '$takeDate', '$takeTime', '" . md5($id) . ".$data', '$albumID', '$public', '$star', '$import_name');";
+	    $query = "INSERT INTO lychee_photos (id, title, description, url, type, width, height, size, sysdate, systime, iso, aperture, make, model, shutter, focal, takedate, taketime, thumbUrl, album, public, star, import_name)
+	        VALUES ('$id', '$title', '" . md5($id) . ".$data', '', '$type', '$width', '$height', '$size', '$sysdate', '$systime', '$iso', '$aperture', '$make', '$model', '$shutter', '$focal', '$takeDate', '$takeTime', '" . md5($id) . ".$data', '$albumID', '$public', '$star', '$import_name');";
 	    $result = $database->query($query);
 
     }
@@ -729,12 +729,12 @@ function facebookHeader($photoID) {
 	$return  = '<meta name="title" content="'.$row->title.'" />';
 	$return .= '<meta name="description" content="'.$row->description.' - via Lychee" />';
 	$return .= '<link rel="image_src"  type="image/jpeg" href="'.$thumb.'" />';
-	
+
 	$return .= '<!-- Twitter Meta Data -->';
 	$return .= '<meta name="twitter:card" content="photo">';
 	$return .= '<meta name="twitter:title" content="'.$row->title.'">';
 	$return .= '<meta name="twitter:image:src" content="'.$thumb.'">';
-	
+
 	$return .= '<!-- Facebook Meta Data -->';
 	$return .= '<meta property="og:title" content="'.$row->title.'">';
 	$return .= '<meta property="og:image" content="'.$thumb.'">';

Some files were not shown because too many files changed in this diff