Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'sessions.php';
- /*
- > START phpThumb
- */
- //////////////////////////////////////////////////////////////
- /// phpThumb() by James Heinrich <[email protected]> //
- // available at http://phpthumb.sourceforge.net ///
- //////////////////////////////////////////////////////////////
- // //
- //////////////////////////////////////////////////////////////
- $GDversion['string'] = 'unknown';
- $GDversion['numeric'] = 0;
- ob_start();
- if (!@include_once('freemedia/phpthumb.functions.php')) {
- ob_end_flush();
- die('failed to include_once("freemedia/phpthumb.functions.php")');
- }
- if (!@include_once('freemedia/phpthumb.class.php')) {
- die('failed to include_once("freemedia/phpthumb.class.php")');
- ob_end_flush();
- }
- ob_end_clean();
- $phpThumb = new phpThumb();
- $phpthumb_version = $phpThumb->phpthumb_version;
- unset($phpThumb);
- $GDversion['string'] = phpthumb_functions::gd_version(true);
- $GDversion['numeric'] = phpthumb_functions::gd_version(false);
- /*
- > END phpThumb
- */
- $modelid = $_GET["modelid"];
- $sql = "SELECT * FROM models WHERE bonusmedia=0 AND models.modelid=".$modelid;
- $result = mysql_query($sql, $db);
- $row = mysql_fetch_array($result);
- $modelfirstname = $row["modelfirstname"];
- $modellastname = $row["modellastname"];
- $modeldescription = $row["modeldescription"];
- $modeldirectoryname = $row["modeldirectoryname"];
- $modelmainphoto = $row["modelmainphoto"];
- $freeimage1 = $row["freeimage1"];
- $freeimage2 = $row["freeimage2"];
- $freeimage3 = $row["freeimage3"];
- $freevideothumbname = $row["freevideothumbname"];
- $freevideotitle = $row["freevideotitle"];
- $freevideolowresname = $row["freevideolowresname"];
- $freevideohighdefname = $row["freevideohighdefname"];
- $freevideoquicktimename = $row["freevideoquicktimename"];
- $freevideowmv1080 = $row["freevideowmv1080"];
- $freevideoquicktime1080 = $row["freevideoquicktime1080"];
- //Show all images for the Model
- $imagesql = "SELECT * FROM gallery WHERE modelid=".$modelid;
- //Show all the videoa for the Model
- $videosql = "SELECT * FROM video WHERE modelid=".$modelid;
- ?>
- <html>
- <head>
- <title><?php print $modelfirstname." ".$modellastname ;?> - model photos and video clips</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta name="keywords" content="models <?php print $modelfirstname." ".$modellastname ;?>, photos, photo gallery, video, video clips, videos">
- <meta name="description" content="model <?php print $modelfirstname." ".$modellastname ;?> in high definition videos and photo galleries.">
- <link rel="stylesheet" href="styles/hd.css" type="text/css">
- <script language="JavaScript" src="js/navscript.js"></script>
- </head>
- <body bgcolor="#999999" background="images/crosshatch_bg.gif" onLoad="MM_preloadImages('images/logo_nav_r2_c1_f2.gif','images/logo_nav_r3_c1_f2.gif','images/logo_nav_r4_c1_f2.gif','images/logo_nav_r5_c1_f2.gif','images/logo_nav_r6_c1_f2.gif','images/logo_nav_r7_c1_f2.gif','images/logo_nav_r8_c1_f2.gif','images/logo_nav_r9_c1_f2.gif','images/logo_nav_r10_c1_f2.gif','images/logo_nav_r11_c1_f2.gif');">
- <table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr bgcolor="#000000">
- <td height="10" colspan="5"><img src="1px.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td width="10" rowspan="5" bgcolor="#000000"> </td>
- <td width="143" rowspan="5" valign="top" background="images/nav_bg.jpg">
- <?php include 'nav.php'; ?>
- </td>
- <td width="10" rowspan="5" bgcolor="#000000"> </td>
- <td height="81">
- <?php include 'header.php'; ?>
- </td>
- <td width="10" rowspan="5" bgcolor="#000000"> </td>
- </tr>
- <tr>
- <td height="10" bgcolor="#000000"><img src="1px.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td align="center" valign="top" bgcolor="#FFFFFF">
- <table width="696" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td valign="top">
- <p><img src="images/model_header.gif" width="696" height="18"></p>
- <table width="696" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td valign="top">
- <table width="696" border="0" cellspacing="3" cellpadding="0">
- <tr>
- <td width="50%" valign="top">
- <strong>
- <?php print $modelfirstname; ?>
- <?php print $modellastname; ?>
- </strong>
- <p>
- <?php
- // get the images
- // use $result here to output page content
- if (trim($modelmainphoto) == "")
- {
- echo "<img src='freemedia/free_large_coming.jpg'>";
- }
- else
- {
- echo "<img src='freemedia/phpThumb.php?src=".$modeldirectoryname."/".$modelmainphoto."&w=300'>";
- }
- ?>
- </p>
- </td>
- <td valign="top">
- <strong></strong>
- <table width="100%" border="0" cellspacing="0" cellpadding="3">
- <tr>
- <td bgcolor="#990000">
- <strong>
- <font color="#FFFFFF" size="2">
- <?php print $modelfirstname; ?>
- <?php print $modellastname; ?> Previews:
- </font>
- </strong>
- </td>
- </tr>
- <tr>
- <td>
- <table width="100%" border="0" cellspacing="0" cellpadding="3">
- <tr>
- <td>
- <?php
- // get the images
- // use $result here to output page content
- if (trim($freeimage1) == "")
- {
- echo "<img src='freemedia/free_small_coming.jpg'>";
- }
- else
- {
- echo "<a href='freemedia/".$modeldirectoryname."/".$freeimage1."' onClick=\"javascript:urchinTracker('".$modeldirectoryname."/".$freeimage1."');\"><img src='freemedia/phpThumb.php?src=".$modeldirectoryname."/".$freeimage1."&w=100' border='0'></a>";
- }
- ?>
- </td>
- <td>
- <?php
- // get the images
- // use $result here to output page content
- if (trim($freeimage2) == "")
- {
- echo "<img src='freemedia/free_small_coming.jpg'>";
- }
- else
- {
- echo "<a href='freemedia/".$modeldirectoryname."/".$freeimage2."' onClick=\"javascript:urchinTracker('".$modeldirectoryname."/".$freeimage2."');\"><img src='freemedia/phpThumb.php?src=".$modeldirectoryname."/".$freeimage2."&w=100' border='0'></a>";
- }
- ?>
- </td>
- <td>
- <?php
- // get the images
- // use $result here to output page content
- if (trim($freeimage3) == "")
- {
- echo "<img src='freemedia/free_small_coming.jpg'>";
- }
- else
- {
- echo "<a href='freemedia/".$modeldirectoryname."/".$freeimage3."' onClick=\"javascript:urchinTracker('".$modeldirectoryname."/".$freeimage3."');\"><img src='freemedia/phpThumb.php?src=".$modeldirectoryname."/".$freeimage3."&w=100' border='0'></a>";
- }
- ?>
- </td>
- </tr>
- </table>
- <?php
- //Now do the same thing for the Free Video
- if (trim($freevideothumbname) != "")
- {
- // We have a photo...make a thumbnail of it
- print "<img src='freemedia/".$modeldirectoryname."/".$freevideothumbname."'><br>";
- }
- if (trim($freevideotitle) != "")
- {
- //Print the Video Desc
- print "<font size='2'><b>".$freevideotitle."</b><br>";
- }
- if (trim($freevideohighdefname ) != "")
- {
- print "<a href='freemedia/".$modeldirectoryname."/".$freevideohighdefname."' onClick=\"javascript:urchinTracker('".$modeldirectoryname."/".$freevideohighdefname."');\">HD Preview Video</a><br>";
- }
- if (trim($freevideoquicktimename ) != "")
- {
- print "<a href='freemedia/".$modeldirectoryname."/".$freevideoquicktimename."' onClick=\"javascript:urchinTracker('".$modeldirectoryname."/".$freevideoquicktimename."');\">High Def MP4</a><br></font>";
- }
- if (trim($freevideowmv1080 ) != "")
- {
- print "<a href='freemedia/".$modeldirectoryname."/".$freevideowmv1080."' onClick=\"javascript:urchinTracker('".$modeldirectoryname."/".$freevideowmv1080."');\">1080p Super HD WMV</a><br></font>";
- }
- if (trim($freevideoquicktime1080 ) != "")
- {
- print "<a href='freemedia/".$modeldirectoryname."/".$freevideoquicktime1080."' onClick=\"javascript:urchinTracker('".$modeldirectoryname."/".$freevideoquicktime1080."');\">1080p Super HD Quicktime</a><br></font>";
- }
- ?>
- <div align="center">
- <br>
- <a href="join_now.php"><img src="joinhd1.gif" width="307" height="106" border="0"></a>
- </div>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- </tr>
- <tr>
- <td colspan="2" align="left" valign="top">
- <?php
- // get the images
- $query = $videosql." ORDER BY videoid DESC;";
- $result = mysql_query($query, $db);
- $check = mysql_fetch_array($result);
- // use $result here to output page content
- if ($check["videoid"] == "")
- {
- echo "";
- }
- else
- {
- ?>
- <table width="100%" border="0" cellspacing="0" cellpadding="3">
- <tr>
- <td bgcolor="#990000">
- <b>
- <font color="#FFFFFF" size="2">
- <?php print $modelfirstname; ?>
- <?php print $modellastname; ?> Videos (Members Only)
- </font>
- </b>
- <font color="#FFFFFF" size="2">:</font>
- </td>
- </tr>
- <tr>
- <td>
- <font size="2">
- <strong>
- <font size="1">Note: For best results right click the video link and "save as" to your computer.</font>
- </strong>
- <br>
- <br>
- <?
- print "<table width=100% cellpadding=5><tr>";
- $result = mysql_query($query, $db);
- $count = 0;
- while ($row = mysql_fetch_array($result))
- {
- //Print the first column
- if ($count < 2 )
- {
- print "<td><font size=2>";
- }
- else
- {
- $count = 0;
- print "</tr><tr><td><font size=2>";
- }
- $rsvideodesc = $row["videodesc"];
- $rsvideothumb = $row["videothumb"];
- $videolowdef = $row["videolowdef"];
- $videohighdef = $row["videohighdef"];
- $videoquicktime = $row["videoquicktime"];
- $videowmv1080 = $row["videowmv1080"];
- $videoquicktime1080 = $row["videoquicktime1080"];
- $dateadded = $row["dateadded"];
- //Start The Print Rows of Tables
- // Do some stuff for the THUMB image
- if (trim($rsvideothumb) != "")
- {
- // We have a photo...make a thumbnail of it
- print "<img src='freemedia/".$modeldirectoryname."/".$rsvideothumb."'><br>";
- }
- else
- {
- // There is no photo...so place the place holder one
- print "";
- }
- if (trim($dateadded) != "")
- {
- print "Date Added: ".$dateadded."<br>";
- }
- //Print the Video Desc
- print "<b>".$rsvideodesc."</b><br>";
- if (trim($videohighdef) != "")
- {
- print "<a href='members/".$modeldirectoryname."/".$videohighdef."' onClick=\"javascript:urchinTracker('".$modeldirectoryname."/".$videohighdef."');\">High Def WMV</a><br>";
- }
- if (trim($videoquicktime) != "")
- {
- print "<a href='members/".$modeldirectoryname."/".$videoquicktime."' onClick=\"javascript:urchinTracker('".$modeldirectoryname."/".$videoquicktime."');\">High Def MP4</a><br>";
- }
- if (trim($videowmv1080) != "")
- {
- print "<a href='members/".$modeldirectoryname."/".$videowmv1080."' onClick=\"javascript:urchinTracker('".$modeldirectoryname."/".$videowmv1080."');\">1080p Super HD WMV</a><br>";
- }
- if (trim($videoquicktime1080) != "")
- {
- print "<a href='members/".$modeldirectoryname."/".$videoquicktime1080."' onClick=\"javascript:urchinTracker('".$modeldirectoryname."/".$videoquicktime1080."');\">1080p Super HD Quicktime</a><br>";
- }
- if ($count == 1)
- {
- $count = 3;
- }
- else
- {
- $count = $count + 1;
- }
- print "</font></td>";
- }
- print "</tr></table></font></td></tr></table>";
- }
- ?>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="left" valign="top">
- <table width="100%" border="0" cellspacing="0" cellpadding="3">
- <tr>
- <td bgcolor="#990000">
- <b>
- <font color="#FFFFFF" size="2">
- <?php print $modelfirstname; ?>
- <?php print $modellastname; ?> Galleries (Members Only)
- </font>
- </b>
- <font color="#FFFFFF" size="2">:</font>
- </td>
- </tr>
- <tr>
- <td>
- <font size="2">
- <?php
- // get the images
- $query = $imagesql." ORDER BY galleryid DESC;";
- $result = mysql_query($query, $db);
- $check = mysql_fetch_array($result);
- // use $result here to output page content
- if ($check["gallerytitle"] == "")
- {
- echo "<br><font color='#ff0000' size=2><b>Sorry! There are no Galleries available for this model</b></font>";
- }
- else
- {
- print "<table border='0' cellspacing='1'>";
- $result = mysql_query($query, $db);
- while ($row = mysql_fetch_array($result))
- {
- print "<tr><td bgcolor='#FFFFFF' align='left'>";
- $rsgallerytitle = $row["gallerytitle"];
- $rsgallerydesc = $row["gallerydescription"];
- $rsgallerydirectory = $row["gallerydirectoryname"];
- $dateadded = $row["dateadded"];
- //Start The Print Rows of Tables
- if (trim($dateadded) != "")
- {
- print "Date Added: ".$dateadded."<br>";
- }
- print "<a href='members/gallery.php?md=$modeldirectoryname&gd=$rsgallerydirectory' class='text' onClick=\"javascript:urchinTracker('$rsgallerydirectory');\">".$rsgallerytitle."</a><br><font color='#000000' size=2>".$rsgallerydesc."</font><br><br>";
- print "</td></tr>";
- }
- print "</table>";
- }
- //Now do the same thing for the Videos
- ?>
- </font>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="left" valign="top">
- <table width="100%" border="0" cellspacing="0" cellpadding="3">
- <tr>
- <td bgcolor="#990000">
- <strong>
- <font color="#FFFFFF" size="2">
- <?php print $modelfirstname; ?>
- <?php print $modellastname; ?> Bio:
- </font>
- </strong>
- <font color="#FFFFFF" size="2"> </font>
- </td>
- </tr>
- <tr>
- <td>
- <font size="2">
- <?php print $modeldescription; ?>
- </font>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td height="10" bgcolor="#000000"><img src="1px.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td bgcolor="#666666">
- <?php include 'footer.php'; ?>
- </td>
- </tr>
- <tr bgcolor="#000000">
- <td height="10" colspan="5"><img src="1px.gif" width="1" height="1"></td>
- </tr>
- </table>
- <img src="1px.gif" width="1" height="1">
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment