Просмотр файла script/shadow.php

Размер файла: 25.14Kb
<?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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" border="0" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt=""></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt=""></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><img src="'.$photo.'" width="'.$taille[0].'" height="'.$taille[1].'" border="0" alt=""></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" border="0" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" border="0" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></td>
                        </tr>
                </table>';

        return $html;
}

function shadow22($album, $image, $tab, $top, $id)
{
  $photo= 'videos/'.$album.'/small/'.$image;
  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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" border="0" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></td>
                        </tr>
                  </table>';

        return $html;
}

function shadow23($album, $image, $tab, $top, $id)
{
  $photo= 'flash/'.$album.'/small/'.$image;
  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 rowspan="2" colspan="2"><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"></a></td>
                                <td><img src="images/ombre_1.gif" alt=""></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_2.gif" alt="" border="0" height="'.($taille[1]-8).'" width="6"></td>
                        </tr>
                        <tr>
                                <td><img src="images/ombre_3.gif" alt=""></td>
                                <td><img src="images/ombre_4.gif" alt="" height="8" width="'.($taille[0]-7).'"></td>
                                <td><img src="images/ombre_5.gif" alt=""></td>
                        </tr>
                  </table>';

        return $html;
}

?>