[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS Update: gleipnir



Log Message:
-----------
Do not insert full paths.

Modified Files:
--------------
    gleipnir/public_html/gallery:
        upload.pl

Revision Data
-------------
Index: upload.pl
===================================================================
RCS file: /cvs/gleipnir/public_html/gallery/upload.pl,v
retrieving revision 1.3
retrieving revision 1.4
diff -Lpublic_html/gallery/upload.pl -Lpublic_html/gallery/upload.pl -u -r1.3 -r1.4
--- public_html/gallery/upload.pl
+++ public_html/gallery/upload.pl
@@ -200,10 +200,7 @@
 	my $acursor = $dbh->prepare($aSQL);
 
 	# Upload the picture info to our database
-	$acursor->execute( $id, $hash, $gleipnir->uid, $galleryid, 
-  $gleipnir->cfetch( dirs => 'thumbdir' )."/$id.png", 
-	$gleipnir->cfetch( dirs => 'originals' )."/$id.$xtn", 
-	$gleipnir->cfetch( dirs => 'imagedir' )."/$id.png", $caption, $title );
+	$acursor->execute( $id, $hash, $gleipnir->uid, $galleryid, "$id.png", "$id.$xtn", "$id.png", $caption, $title );
 	
   $template->param(message => $message, failed => $fail );
 	return $gleipnir->body($template->output);


Main Menu:

Site Tools:


Here, spammer, have some addresses.