|
From: Florin C B. <ory...@us...> - 2011-11-08 07:17:19
|
Update of /cvsroot/mxbb/mx_smartor/album_mod/modules
In directory vz-cvs-4.sog:/tmp/cvs-serv32498
Modified Files:
album_picm.php album_thumbnail.php
Log Message:
Index: album_thumbnail.php
===================================================================
RCS file: /cvsroot/mxbb/mx_smartor/album_mod/modules/album_thumbnail.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** album_thumbnail.php 3 Mar 2011 14:28:40 -0000 1.9
--- album_thumbnail.php 8 Nov 2011 07:17:16 -0000 1.10
***************
*** 402,409 ****
$copy_success = @copy($pic_info['fullpath'], $pic_info['thumbnail_s_fullpath']);
@chmod($pic_info['thumbnail_s_fullpath'], 0777);
$sql = "UPDATE " . ALBUM_TABLE . "
SET pic_thumbnail = '" . $pic_info['thumbnail_new'] . "', pic_size = '" . $pic_filesize . "'
WHERE pic_id = '" . $pic_id . "'";
! if(!$result = $db->sql_query($sql))
{
mx_message_die(GENERAL_ERROR, 'Could not update pic information', '', __LINE__, __FILE__, $sql);
--- 402,411 ----
$copy_success = @copy($pic_info['fullpath'], $pic_info['thumbnail_s_fullpath']);
@chmod($pic_info['thumbnail_s_fullpath'], 0777);
+
$sql = "UPDATE " . ALBUM_TABLE . "
SET pic_thumbnail = '" . $pic_info['thumbnail_new'] . "', pic_size = '" . $pic_filesize . "'
WHERE pic_id = '" . $pic_id . "'";
!
! if(!$result = @$db->sql_query($sql))
{
mx_message_die(GENERAL_ERROR, 'Could not update pic information', '', __LINE__, __FILE__, $sql);
Index: album_picm.php
===================================================================
RCS file: /cvsroot/mxbb/mx_smartor/album_mod/modules/album_picm.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** album_picm.php 3 Mar 2011 14:28:40 -0000 1.7
--- album_picm.php 8 Nov 2011 07:17:16 -0000 1.8
***************
*** 52,56 ****
$thispic = $mx_cache->get('thispic'.$pic_id);
}
! else
{
//$sql = "SELECT * FROM " . ALBUM_TABLE . " WHERE pic_id = '$pic_id'";
--- 52,57 ----
$thispic = $mx_cache->get('thispic'.$pic_id);
}
!
! if (($mx_cache->get('thispic'.$pic_id) == false) || !isset($thispic['cat_user_id']))
{
//$sql = "SELECT * FROM " . ALBUM_TABLE . " WHERE pic_id = '$pic_id'";
|