use banner ad code from main winehq.org
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB |
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE bannerAd>
|
||||
<ad>
|
||||
<id>cw-ad04</id>
|
||||
<url>http://www.codeweavers.com/products/?ad=1</url>
|
||||
<alt>QuickTime for Linux!</alt>
|
||||
</ad>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE bannerAd>
|
||||
<ad>
|
||||
<id>cw-ad04</id>
|
||||
<url>http://www.codeweavers.com/products/support_wine/?ad=1</url>
|
||||
<alt>Support the Wine Project!</alt>
|
||||
</ad>
|
||||
@@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE bannerAd>
|
||||
<ad>
|
||||
<id>cw-ad04</id>
|
||||
<url>http://www.codeweavers.com/products/?ad=1</url>
|
||||
<alt>Microsoft Office On Linux!</alt>
|
||||
</ad>
|
||||
@@ -1,50 +0,0 @@
|
||||
<?php
|
||||
/**********************************************/
|
||||
/* Banner Ad Library */
|
||||
/* by Jeremy Newman <jnewman@codeweavers.com> */
|
||||
/* last modified: 2001.10.08 */
|
||||
/**********************************************/
|
||||
|
||||
/**
|
||||
* Path for Banner Ads
|
||||
*/
|
||||
function banner_display ()
|
||||
{
|
||||
// import banner paths from config
|
||||
$banner_path_468x60 = BASE."banner/468x60/";
|
||||
$banner_path_xml = BASE."banner/xml/";
|
||||
|
||||
// opening html
|
||||
$banner = "";
|
||||
$banner .= "\n\n".'<!-- START BANNER AD -->'."\n";
|
||||
$banner .= "<div align=center id=\"banner\">\n";
|
||||
|
||||
// read dir and get list of banners
|
||||
$ads = array();
|
||||
$d = opendir($banner_path_468x60);
|
||||
while($entry = readdir($d))
|
||||
{
|
||||
if(!ereg("(.+)\\.gif$", $entry, $arr))
|
||||
continue; //"
|
||||
array_push($ads, $arr[1]);
|
||||
}
|
||||
closedir($d);
|
||||
|
||||
// randomly select a banner and display it
|
||||
$img = $ads[(rand(1,count($ads))-1)];
|
||||
$url = get_xml_tag($banner_path_xml.$img.'.xml','url');
|
||||
$alt = get_xml_tag($banner_path_xml.$img.'.xml','alt');
|
||||
|
||||
// da banner
|
||||
$banner .= '<a href="'.$url.'">';
|
||||
$banner .= '<img src="'.$banner_path_468x60.$img.'.gif" width=468 height=60 alt="'.$alt.'">';
|
||||
$banner .= '</a>'."\n";
|
||||
|
||||
// closing html
|
||||
$banner .= '</div>'."\n";
|
||||
$banner .= '<!-- END BANNER AD -->'."\n\n";
|
||||
|
||||
return $banner;
|
||||
}
|
||||
|
||||
?>
|
||||
@@ -25,8 +25,13 @@
|
||||
<td>
|
||||
<img src="<?php echo BASE; ?>images/blank.gif" width="10" height="1" alt="">
|
||||
</td>
|
||||
<td width="100%" align="center" valign="middle">
|
||||
<?php echo $banner_ad; ?>
|
||||
<td width="468" align="center" valign="middle">
|
||||
<!-- BANNER AD -->
|
||||
<iframe src="http://www.winehq.org/bin/ad" scrolling="no" frameBorder="0" height="60" width="468"></iframe>
|
||||
<!-- END BANNER AD -->
|
||||
</td>
|
||||
<td>
|
||||
<img src="<?php echo BASE; ?>images/blank.gif" width=10 height=1 alt="">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -58,10 +58,6 @@ function apidb_header($title = 0)
|
||||
if ($title)
|
||||
$title = " - $title";
|
||||
|
||||
// banner ad
|
||||
include(BASE."include/banner.php");
|
||||
$banner_ad = banner_display();
|
||||
|
||||
// Display Header
|
||||
include(BASE."include/header.php");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user