Problem: When deleting image files from shared media area, they are deleted from the database but NOT deleted from server.

Fix: modify 2 files.

/admin/browsePhoto.php

function browseCode()

At the bottom of the file, find routine and replace section with this:

Code:
		while ($aData = mysql_fetch_array($rData))
		{
			$sStyle = $aData['Approved'] == 'true' ? ' style="border: 2px solid #00CC00;"' : $sStyle ;	
            $sImage = $site['sharingImages'].$aData['medID'].'_t.'.$aData['medExt'];
			$sProf = '<a href="'.$site['url'].'profile_edit.php?ID='.$aData['medProfId'].'">'.$aData['NickName'].'</a>';
			$sCode .= '<div class="browseUnit" '.$sStyle.'>';
				$sCode .= '<div class="browseCheckbox"><input type="checkbox" name="Check[]" value="'.$aData['medID'].".".$aData['medExt'].'"></div>';
				$sCode .= '<div class="lastFilesImage" style="background-image: url(\''.$sImage.'\');">&nbsp;</div>';
				$sCode .= '<div><a href="'.$site['url'].'viewPhoto.php?fileID='.$aData['medID'].'"><b>'.$aData['medTitle'].'</b></a></div>';
				$sCode .= '<div>'._t("_Added").': <b>'.defineTimeInterval($aData['medDate']).'</b> by '.$sProf.'</div>';
				$sCode .= '<div>'._t("_Views").': <b>'.$aData['medViews'].'</b></div>';
			$sCode .= '</div>';	
		}
I added $aData['medExt'] to the form values.

/inc/sharing.inc.php

function function deleteMedia($iFile, $sType, $sExt = '')

find case routine and replace with this:

Code:
		case 'Photo':
			$sTableName = "`share{$sType}Files`";
			$sModPath = 'media/images/sharingImages/';

			// av-mod to fix photo delete routine
			list($name,$ext) = explode(".", $iFile);

			$aFName[] = $iFile;
			$aFName[] = $name.'_t.'.$ext;
            $aFName[] = $name.'_m.'.$ext;
            $oVoting = new BxDolVoting ('gphoto', 0, 0);
			break;