| [ PHPXref.com ] | [ Generated: Sun Jul 20 18:19:15 2008 ] | [ JackKnife 04.13.06 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 Require("Includes/i_Includes.php"); 3 Echo "<html><head><title></title>"; 4 Require("Includes/Nav/PHP_JK_CSS.php"); 5 Echo "</head><body>"; 6 DB_OpenDomains(); 7 DB_OpenImageGallery(); 8 INIT_LoginDetect(); 9 10 Main(); 11 Echo "</body></html>"; 12 13 DB_CloseDomains(); 14 15 16 //************************************************************************************ 17 //* * 18 //* Displays the info in the IG_Popup * 19 //* * 20 //************************************************************************************ 21 Function Main() 22 { 23 Global $sSiteURL; 24 25 $iImageUnq = Trim(Request("iImageUnq")); 26 $sImageNum = Trim(Request("sImageNum")); 27 $bDomainCheck = strtoupper(Trim(DOMAIN_Conf("IMAGEGALLERY_DOMAINCHECK"))); 28 29 If ( ( $sImageNum != "0" ) && ( $sImageNum != "" ) && ( $iImageUnq != "" ) ) 30 { 31 $sQuery = "SELECT IG.PrimaryG, IG.PrimaryD, G.AccountUnq, I.Image" . $sImageNum . ", I.Image" . $sImageNum . "Desc, I.AltTag" . $sImageNum . ", I.XSize" . $sImageNum . ", I.YSize" . $sImageNum . " FROM ImagesInGallery IG (NOLOCK), Galleries G (NOLOCK), Images I (NOLOCK) WHERE IG.ImageUnq = " . $iImageUnq . " AND IG.GalleryUnq = G.GalleryUnq AND I.ImageUnq = " . $iImageUnq; 32 $rsRecordSet = DB_Query($sQuery); 33 If ( $rsRow = DB_Fetch($rsRecordSet) ) 34 { 35 $iPrimaryG = $rsRow["PrimaryG"]; 36 $sAccountUnq = $rsRow["AccountUnq"]; 37 $sXSize = Trim($rsRow["XSize" . $sImageNum]); 38 $sYSize = Trim($rsRow["YSize" . $sImageNum]); 39 $sAltTag = Trim($rsRow["AltTag" . $sImageNum]); 40 $sDesc = Trim($rsRow["Image" . $sImageNum . "Desc"]); 41 $sImage = Trim($rsRow["Image" . $sImageNum]); 42 43 If ( ( $sXSize != "" ) && ( $sXSize != "0" ) ) 44 $sXSize = "width = " . $sXSize; 45 If ( ( $sYSize != "" ) && ( $sYSize != "0" ) ) 46 $sYSize = "height = " . $sYSize; 47 If ( $bDomainCheck == "YES" ) { 48 // they want to tunnel the images 49 $sImage = "<img src = '" . $sSiteURL . "/Attachments/DownloadAttach.php?sImageNum=" . $sImageNum . "&sAccountUnq=" . $sAccountUnq . "&iGalleryUnq=" . $iPrimaryG . "&iImageUnq=" . $iImageUnq . "' alt = \"" . htmlentities($sAltTag) . "\" " . $sXSize . " " . $sYSize . " border=0>"; 50 }Else{ 51 $sImage = "<img src = '" . DOMAIN_Conf("IG") . "/" . $sAccountUnq . "/" . $iPrimaryG . "/" . $sImage . "' alt = \"" . htmlentities($sAltTag) . "\" " . $sXSize . " " . $sYSize . " border=0>"; 52 } 53 }Else{ 54 $sImage = "<b>Invalid Image</b>"; 55 } 56 57 }Else{ 58 If ( $iImageUnq == "" ) { 59 $sQuery = "SELECT IG.PrimaryG, IG.PrimaryD, G.AccountUnq, I.Image, I.AltTag, I.XSize, I.YSize FROM ImagesInGallery IG (NOLOCK), Galleries G (NOLOCK), Images I (NOLOCK) WHERE IG.ImageUnq = -1 AND IG.GalleryUnq = G.GalleryUnq AND I.ImageUnq = -1"; 60 }Else{ 61 $sQuery = "SELECT IG.PrimaryG, IG.PrimaryD, G.AccountUnq, I.Image, I.AltTag, I.XSize, I.YSize FROM ImagesInGallery IG (NOLOCK), Galleries G (NOLOCK), Images I (NOLOCK) WHERE IG.ImageUnq = " . $iImageUnq . " AND IG.GalleryUnq = G.GalleryUnq AND I.ImageUnq = " . $iImageUnq; 62 } 63 $rsRecordSet = DB_Query($sQuery); 64 If ( $rsRow = DB_Fetch($rsRecordSet) ) 65 { 66 $iPrimaryG = $rsRow["PrimaryG"]; 67 $sAccountUnq = $rsRow["AccountUnq"]; 68 $sXSize = Trim($rsRow["XSize"]); 69 $sYSize = Trim($rsRow["YSize"]); 70 $sAltTag = Trim($rsRow["AltTag"]); 71 $sImage = Trim($rsRow["Image"]); 72 $sDesc = ""; 73 74 If ( ( $sXSize != "" ) && ( $sXSize != "0" ) ) 75 $sXSize = "width = " . $sXSize; 76 If ( ( $sYSize != "" ) && ( $sYSize != "0" ) ) 77 $sYSize = "height = " . $sYSize; 78 If ( $bDomainCheck == "YES" ) { 79 $sImage = "<img src = '" . $sSiteURL . "/Attachments/DownloadAttach.php?sAccountUnq=" . $sAccountUnq . "&iGalleryUnq=" . $iPrimaryG . "&iImageUnq=" . $iImageUnq . "' alt = \"" . htmlentities($sAltTag) . "\" " . $sXSize . " " . $sYSize . " border=0>"; 80 }Else{ 81 $sImage = "<img src = '" . DOMAIN_Conf("IG") . "/" . $sAccountUnq . "/" . $iPrimaryG . "/" . $sImage . "' alt = \"" . htmlentities($sAltTag) . "\" " . $sXSize . " " . $sYSize . " border=0>"; 82 } 83 }Else{ 84 $sImage = "<b>Invalid Image</b>"; 85 } 86 87 } 88 89 ?> 90 <center> 91 <table cellpadding=0 cellspacing=0 border=0 width=100% height=100%><tr><td align=center valign=center> 92 <table cellpadding=2 cellspacing=0 <?=$sYSize?> border=0 <?=$sXSize?>> 93 <tr> 94 <td valign=top bgcolor=<?=$GLOBALS["BGColor1"]?>> 95 <center><a href = "JavaScript:parent.self.close();" class='MediumNav1'>Close Window</a> 96 </td> 97 </tr> 98 <tr> 99 <td height=100% valign=top align=center bgcolor = <?=$GLOBALS["BGColor1"]?>> 100 <table cellpadding=0 cellspacing=0 border=0 <?=$sXSize?>> 101 <tr><td colspan=3 bgcolor = <?=$GLOBALS["BorderColor2"]?>><img src = "Images/Blank.gif" width=1 height=1></td></tr> 102 <tr> 103 <td bgcolor = <?=$GLOBALS["BorderColor2"]?>><img src = "Images/Blank.gif" width=1 height=1></td> 104 <td bgcolor = <?=$GLOBALS["BGColor1"]?>><a href = "JavaScript:self.close();"><?=$sImage?></a></td> 105 <td bgcolor = <?=$GLOBALS["BorderColor2"]?>><img src = "Images/Blank.gif" width=1 height=1></td> 106 </tr> 107 <tr><td colspan=3 bgcolor = <?=$GLOBALS["BorderColor2"]?>><img src = "Images/Blank.gif" width=1 height=1></td></tr> 108 </table> 109 </td> 110 </tr> 111 <tr> 112 <td valign=top bgcolor=<?=$GLOBALS["BGColor1"]?>> 113 <font color='<?=$GLOBALS["TextColor1"]?>'><?=$sDesc?></font> 114 <br><br> 115 <center><a href = "JavaScript:parent.self.close();" class='MediumNav1'>Close Window</a> 116 </td> 117 </tr> 118 </table> 119 </td></tr></table> 120 <?php 121 } 122 //************************************************************************************ 123 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |