joeyb1234
05-11-2009, 11:53 PM
<?php
include("lib/vars.inc.php");
include("lib/db.inc.php");
include("lib/kernel.inc.php");
include("template/template.inc.php");
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$QUERY = $_POST;
}
else {
$QUERY = $_GET;
}
extract($QUERY);
make2mid();
mysql_select_db($dbName);
$query="SELECT img_links.part_id, img_links.link FROM img_links WHERE img_links.img_id=$img_id";
$result=mysql_query($query);
$row=mysql_fetch_array($result);
$part_id=safestr($row['part_id']);
$img_link=safestr($row['link']);
$query="SELECT * FROM img_parts WHERE img_parts.part_id=$part_id";
$result=mysql_query($query);
$row=mysql_fetch_array($result);
$name=$row['name'];
$keywords=$row['keywords'];
$title=$row['descr'];
$TEMPLATE['KEYWORDS'] = $keywords ;
$TEMPLATE['DESCRIPTION'] = $title.". ".$TEMPLATE['DESCRIPTION'];
$part_link=safestr($row['part_link']);
$TEMPLATE['DATA'] .= " <table width=100% border=0 cellspacing=2 cellpadding=0>
<tr>
<td width=300 height=225><img src=".$part_link."images/".$img_link." width=300 height=225 border=1 alt=\"".$name." wallpaper\"></td>
<td rowspan=2 align=left valign=top>
<p>
<font color='#ff0000'><b>New!</b></font> <a href='http://download.freeze.com/lm/affiliate_downloads/samplewpaper_9767.exe'><b>Download a Free Wallpaper Pack!!!</b></a>
</p>
<b>How to use:<br>
</b><br> Wait until the picture has finished loading!<br><br>
<b>Windows Users (Windows 98/2000/XP):</b><br>Right click on the desktop picture and select 'Set as Background'
or 'Set as Wallpaper'. If you want to save it to your hard
disk just select 'Save image as...'
<p><b>Mac Users (For MAC O/S 8.0 and higher):</b><br>
Wait until the movie picture has finished loading, save the
image to your hard disk and use the control panel to set the
picture as your wallpaper. <br>
</p>
</td>
Here is where I want to place the Google script but it's not working? It gives me a blank page when I post it to the site...
<td width=50%>
<script type="text/javascript"><!--
google_ad_client = "';
/* 300x250, created 5/7/09 */
google_ad_slot = "";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
<tr>
<td width=300 align=left valign=top><img src=images/!.gif width=16 height=16 border=0><font color=#ff0000><b> This is reduced image, just follow 'How to use' instructions to set wallpaper.</b></font></td>
</tr>
</table><br><br><br><br>";
makeaftermid();
makePage($title);
?>
include("lib/vars.inc.php");
include("lib/db.inc.php");
include("lib/kernel.inc.php");
include("template/template.inc.php");
if ($_SERVER['REQUEST_METHOD'] == "POST") {
$QUERY = $_POST;
}
else {
$QUERY = $_GET;
}
extract($QUERY);
make2mid();
mysql_select_db($dbName);
$query="SELECT img_links.part_id, img_links.link FROM img_links WHERE img_links.img_id=$img_id";
$result=mysql_query($query);
$row=mysql_fetch_array($result);
$part_id=safestr($row['part_id']);
$img_link=safestr($row['link']);
$query="SELECT * FROM img_parts WHERE img_parts.part_id=$part_id";
$result=mysql_query($query);
$row=mysql_fetch_array($result);
$name=$row['name'];
$keywords=$row['keywords'];
$title=$row['descr'];
$TEMPLATE['KEYWORDS'] = $keywords ;
$TEMPLATE['DESCRIPTION'] = $title.". ".$TEMPLATE['DESCRIPTION'];
$part_link=safestr($row['part_link']);
$TEMPLATE['DATA'] .= " <table width=100% border=0 cellspacing=2 cellpadding=0>
<tr>
<td width=300 height=225><img src=".$part_link."images/".$img_link." width=300 height=225 border=1 alt=\"".$name." wallpaper\"></td>
<td rowspan=2 align=left valign=top>
<p>
<font color='#ff0000'><b>New!</b></font> <a href='http://download.freeze.com/lm/affiliate_downloads/samplewpaper_9767.exe'><b>Download a Free Wallpaper Pack!!!</b></a>
</p>
<b>How to use:<br>
</b><br> Wait until the picture has finished loading!<br><br>
<b>Windows Users (Windows 98/2000/XP):</b><br>Right click on the desktop picture and select 'Set as Background'
or 'Set as Wallpaper'. If you want to save it to your hard
disk just select 'Save image as...'
<p><b>Mac Users (For MAC O/S 8.0 and higher):</b><br>
Wait until the movie picture has finished loading, save the
image to your hard disk and use the control panel to set the
picture as your wallpaper. <br>
</p>
</td>
Here is where I want to place the Google script but it's not working? It gives me a blank page when I post it to the site...
<td width=50%>
<script type="text/javascript"><!--
google_ad_client = "';
/* 300x250, created 5/7/09 */
google_ad_slot = "";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
<tr>
<td width=300 align=left valign=top><img src=images/!.gif width=16 height=16 border=0><font color=#ff0000><b> This is reduced image, just follow 'How to use' instructions to set wallpaper.</b></font></td>
</tr>
</table><br><br><br><br>";
makeaftermid();
makePage($title);
?>