diff --git a/res/template/file_viewer.html b/res/template/file_viewer.html index 1cbc15b..c3b3974 100644 --- a/res/template/file_viewer.html +++ b/res/template/file_viewer.html @@ -83,14 +83,14 @@
Tired of ads?
Files expiring too soon?
- + - Become a Patron! + Get Pro! {{ end }} @@ -154,11 +154,38 @@ - {{ else if eq .Other.AdType 8}} - - - - + {{ else if eq .Other.AdType 8 }} +
+ +
+ Are your files expiring too quickly?
+ Pixeldrain Pro: Only €2 per month +
+
+ {{ else if eq .Other.AdType 9 }} +
+ +
+ Are your files too large to share?
+ Pixeldrain Pro: Only €2 per month +
+
+ {{ else if eq .Other.AdType 10 }} +
+ +
+ Are you tired of the advertisements?
+ Pixeldrain Pro: Only €2 per month +
+
+ {{ else if eq .Other.AdType 11 }} +
+ +
+ Concerned about your online privacy?
+ Pixeldrain Pro: Only €2 per month +
+
{{end}} {{ else if not .Other.UserAdsEnabled }}
diff --git a/res/template/home.html b/res/template/home.html index 073a77d..7993130 100644 --- a/res/template/home.html +++ b/res/template/home.html @@ -218,10 +218,6 @@ the window you can also find a link to the list at the bottom of your uploaded files.

-

- For more information about pixeldrain see the - about page. -

Getting more out of pixeldrain

diff --git a/webcontroller/file_viewer.go b/webcontroller/file_viewer.go index 7cc4725..179561f 100644 --- a/webcontroller/file_viewer.go +++ b/webcontroller/file_viewer.go @@ -38,16 +38,27 @@ func adType() int { amarulaSolutions = 4 adMaven = 5 propellerAds = 7 - brave = 8 + pdpro1 = 8 + pdpro2 = 9 + pdpro3 = 10 + pdpro4 = 11 ) // Intn returns a number up to n, but never n itself. So to get a random 0 // or 1 we need to give it n=2. We can use this function to make other // splits like 1/3 1/4, etc - switch i := rand.Intn(5); i { - case 0: + switch i := rand.Intn(15); i { + case 0, 1, 2: return amarulaSolutions - case 1, 2, 3, 4: + case 3: + return pdpro1 + case 4: + return pdpro2 + case 5: + return pdpro3 + case 6: + return pdpro4 + case 7, 8, 9, 10, 11, 12, 13, 14: return propellerAds default: panic(fmt.Errorf(