Jeremy Newman : updated for wine 1.0
Jeremy Newman
jnewman at winehq.org
Tue Jun 17 09:19:56 CDT 2008
Module: website
Branch: master
Commit: 6e1c110423e832d86c9d76cfefcf905d7fc06410
URL: http://source.winehq.org/git/website.git/?a=commit;h=6e1c110423e832d86c9d76cfefcf905d7fc06410
Author: Jeremy Newman <jnewman at codeweavers.com>
Date: Tue Jun 17 09:19:42 2008 -0500
updated for wine 1.0
---
bin/ad | 25 +++++++++++++++++++++----
images/bannerads/WineReleaseParty01.png | Bin 0 -> 16509 bytes
images/bannerads/WineReleaseParty02.png | Bin 0 -> 15764 bytes
images/bannerads/WineReleaseParty03.png | Bin 0 -> 15057 bytes
images/bannerads/cw-ad06.png | Bin 12695 -> 0 bytes
5 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/bin/ad b/bin/ad
index d5b2382..8465bd6 100644
--- a/bin/ad
+++ b/bin/ad
@@ -3,19 +3,36 @@
/* Banner Ad Code */
/* For WineHQ */
+// path for banner ad
+$bannerads_path = '../images/bannerads/';
+
// da banner
header("Expires: Mon, 1 Jan 2006 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
-header("Pragma: no-cache");
+header("Pragma: no-cache");
+
+// get random ad
+$ads = array();
+$d = opendir($bannerads_path);
+while($entry = readdir($d))
+{
+ if(!ereg("(.+)\\.png$", $entry, $arr))
+ continue;
+ array_push($ads, $arr[1]);
+}
+closedir($d);
+sort($ads);
+$img = $ads[(rand(1,count($ads))-1)];
+
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Banner Ad</title>
</head>
-<body bgcolor="#FFFFFF" text="#000000" marginwidth="0" marginheight="0" style="margin:0px;"><a href="http://www.codeweavers.com/"
-target="_top"><img src="../images/bannerads/cw-ad06.png"
-width="468" height="60" border="0" alt="cw-ad06.png" /></a></body>
+<body bgcolor="#FFFFFF" text="#000000" marginwidth="0" marginheight="0" style="margin:0px;"><a href="http://www.codeweavers.com/products/support_wine/"
+target="_top"><img src="../images/bannerads/<?=$img?>"
+width="468" height="60" border="0" alt="Support the Wine Project" title="Support the Wine Project" /></a></body>
</html>
diff --git a/images/bannerads/WineReleaseParty01.png b/images/bannerads/WineReleaseParty01.png
new file mode 100644
index 0000000..e49eb76
Binary files /dev/null and b/images/bannerads/WineReleaseParty01.png differ
diff --git a/images/bannerads/WineReleaseParty02.png b/images/bannerads/WineReleaseParty02.png
new file mode 100644
index 0000000..bec58ce
Binary files /dev/null and b/images/bannerads/WineReleaseParty02.png differ
diff --git a/images/bannerads/WineReleaseParty03.png b/images/bannerads/WineReleaseParty03.png
new file mode 100644
index 0000000..52a7be7
Binary files /dev/null and b/images/bannerads/WineReleaseParty03.png differ
diff --git a/images/bannerads/cw-ad06.png b/images/bannerads/cw-ad06.png
deleted file mode 100755
index 71f8f75..0000000
Binary files a/images/bannerads/cw-ad06.png and /dev/null differ
More information about the wine-cvs
mailing list