<?php
/*-----------------------------------------------------------------------------------------
mcGalleryPRO
All code is © 2003 Marc Cagninacci.
No files may be redistributed in whole or significant part.
----------------- mcgalleryPRO IS NOT FREE SOFTWARE -------------------
You should have receive a file called license.txt in this package
--------------------------------------------------------------------------------------------*/
function shadow($album, $image, $start, $idimage)
{
$photo= 'photos/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?start='.$start.'&id='.$idimage.'" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow2($album, $image, $start, $wm)
{
$photo= 'photos/'.$album.'/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
if ($taille[0]>640)
{
$proportion= ($taille[0]/640);
$taille[1] = ($taille[1]/$proportion);
$taille[0] = 640;
}
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="index.php?start='.$start.'&album='.$album.'" onMouseOver="window.status=\'\';return true">
<img src="markee.php?wm='.$wm.'&im='.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="album" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow3($album, $image, $start, $idimage)
{
$photo= 'videos/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?start='.$start.'&id='.$idimage.'&video=1" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow4($album, $image, $start, $t, $searchit, $searchwhere, $searchalb, $wm)
{
$photo= 'photos/'.$album.'/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
if ($taille[0]>640)
{
$proportion= ($taille[0]/640);
$taille[1] = ($taille[1]/$proportion);
$taille[0] = 640;
}
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td ><a href="index.php?searchalb='.$searchalb.'&searchwhere='.$searchwhere.'&t='.$t.'&searchit='.stripslashes($searchit).'&start='.$start.'&album='.$album.'" onMouseOver="window.status=\'\';return true">
<img src="markee.php?wm='.$wm.'&im='.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="album" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow5($album, $image, $start, $searchit, $searchwhere, $id, $searchalb)
{
$photo= 'photos/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?searchalb='.$searchalb.'&searchwhere='.$searchwhere.'&t=P&searchit='.stripslashes($searchit).'&start='.$start.'&id='.$id.'" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow6($album, $image, $start, $searchit, $searchwhere, $id, $searchalb)
{
$photo= 'videos/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?searchalb='.$searchalb.'&searchwhere='.$searchwhere.'&t=V&searchit='.stripslashes($searchit).'&start='.$start.'&id='.$id.'" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow7($album, $image, $start, $id)
{
$photo= 'photos/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?sel=P&start='.$start.'&id='.$id.'" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow8($album, $image, $start, $wm)
{
$photo= 'photos/'.$album.'/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
if ($taille[0]>640)
{
$proportion= ($taille[0]/640);
$taille[1] = ($taille[1]/$proportion);
$taille[0] = 640;
}
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="index.php?sel=P&start='.$start.'" onMouseOver="window.status=\'\';return true">
<img src="markee.php?wm='.$wm.'&im='.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="album" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow9($album, $image, $start, $id)
{
$photo= 'videos/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?sel=V&start='.$start.'&id='.$id.'" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow10($album, $image, $start, $searchit, $searchwhere, $id, $searchalb)
{
$photo= 'flash/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?searchalb='.$searchalb.'&searchwhere='.$searchwhere.'&t=F&searchit='.stripslashes($searchit).'&start='.$start.'&id='.$id.'" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow11($album, $image, $start, $idimage)
{
$photo= 'flash/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?start='.$start.'&id='.$idimage.'&flash=1" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow12($album, $image, $start, $id)
{
$photo= 'flash/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?sel=F&start='.$start.'&id='.$id.'" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a></td>
</tr>
</table>';
return $html;
}
function shadow13($album, $image)
{
$photo= 'photos/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="" class="img3"></td>
</tr>
</table>';
return $html;
}
function shadow14($album, $image)
{
$photo= 'videos/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="" class="img3"></td>
</tr>
</table>';
return $html;
}
function shadow15($album, $image)
{
$photo= 'flash/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="" class="img3"></td>
</tr>
</table>';
return $html;
}
function shadow20($album, $image, $tab, $top, $id)
{
$photo= 'photos/'.$album.'/small/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?tab='.$tab.'&top='.$top.'&id='.$id.'" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow21($album, $image, $tab, $top, $wm)
{
$photo= 'photos/'.$album.'/'.$image;
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
if ($taille[0]>640)
{
$proportion= ($taille[0]/640);
$taille[1] = ($taille[1]/$proportion);
$taille[0] = 640;
}
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="index.php?tab='.$tab.'&top='.$top.'" onMouseOver="window.status=\'\';return true">
<img src="markee.php?wm='.$wm.'&im='.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="album" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow22($album, $image, $tab, $top, $id)
{
$photo= 'videos/'.$album.'/small/'.$image.'.jpg';
if(!is_readable($photo)) $photo= 'videos/'.$album.'/small/'.$image.'.JPG';
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?tab='.$tab.'&top='.$top.'&id='.$id.'" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
function shadow23($album, $image, $tab, $top, $id)
{
$photo= 'flash/'.$album.'/small/'.$image.'.jpg';
if(!is_readable($photo)) $photo= 'flash/'.$album.'/small/'.$image.'.JPG';
if(!is_readable($photo))
{
die("?");
}
$taille = GetImageSize($photo);
$html = '<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="show.php?tab='.$tab.'&top='.$top.'&id='.$id.'" onMouseOver="window.status=\'\';return true">
<img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt="go" class="img3">
</a>
</td>
</tr>
</table>';
return $html;
}
?>