Module: website Branch: master Commit: da36925eebb42af7eb8dbc79e6e609efa1815edf URL: http://source.winehq.org/git/website.git/?a=commit;h=da36925eebb42af7eb8dbc7...
Author: Jeremy Newman jnewman@codeweavers.com Date: Tue Jan 19 12:31:44 2016 -0600
remove unused banner ad code
---
bin/.htaccess | 7 ---- bin/ad | 61 -------------------------------- images/bannerads/WineReleaseParty01.png | Bin 16509 -> 0 bytes images/bannerads/WineReleaseParty02.png | Bin 15764 -> 0 bytes images/bannerads/WineReleaseParty03.png | Bin 15057 -> 0 bytes 5 files changed, 68 deletions(-)
diff --git a/bin/.htaccess b/bin/.htaccess deleted file mode 100644 index 48eff56..0000000 --- a/bin/.htaccess +++ /dev/null @@ -1,7 +0,0 @@ -deny from all - -<Files ad> - allow from all - ForceType application/x-httpd-php -</Files> - diff --git a/bin/ad b/bin/ad deleted file mode 100644 index e7c20da..0000000 --- a/bin/ad +++ /dev/null @@ -1,61 +0,0 @@ -<?php - -/* Banner Ad Code */ -/* For WineHQ */ - -// path for banner ad -$bannerads_path = '../images/bannerads/'; - -// max count until we stop displaying ads for user -$max_ads = 10; - -// check cookie for ad counter -$whqac = 0; -if (isset($_COOKIE['whqac'])) - $whqac = $_COOKIE['whqac']; -unset($_COOKIE["whqac"]); -$whqac++; - -// randomly select a banner and display it -if ($whqac >= $max_ads) -{ - // display fixed ad - $whqac = $max_ads; - $img = "../images/blank.gif"; -} -else -{ - // 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 = $bannerads_path.$ads[(rand(1,count($ads))-1)]; -} - -// da banner -setcookie("whqac", $whqac, time()+60*60*24*365); -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"); - -?> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html> -<head> - <title>WineHQ Banner Ad</title> -</head> -<body bgcolor="#E2E2E2" text="#000000" marginwidth="0" marginheight="0" style="margin:0px;"> -<a href="http://www.codeweavers.com/products/support_wine/" target="_top"><img -src="<?=$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 deleted file mode 100644 index e49eb76..0000000 Binary files a/images/bannerads/WineReleaseParty01.png and /dev/null differ diff --git a/images/bannerads/WineReleaseParty02.png b/images/bannerads/WineReleaseParty02.png deleted file mode 100644 index bec58ce..0000000 Binary files a/images/bannerads/WineReleaseParty02.png and /dev/null differ diff --git a/images/bannerads/WineReleaseParty03.png b/images/bannerads/WineReleaseParty03.png deleted file mode 100644 index 52a7be7..0000000 Binary files a/images/bannerads/WineReleaseParty03.png and /dev/null differ