Repository navigation
Expand file tree
/
Copy pathAnalytics.java
More file actions
48 lines (44 loc) · 2.12 KB
/
Copy pathAnalytics.java
File metadata and controls
48 lines (44 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package utils;
import java.util.Locale;
import java.util.ResourceBundle;
/**
* Manages What Google Analytics is used by the Shepherd instance. If Any
*
* @author Mark Denihan
*/
public class Analytics {
public static boolean googleAnalyticsOn = false;
public static String googleAnalyticsScript =
"<script>\n"
+ "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n"
+ "(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),\n"
+ "m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n"
+ "})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n"
+ "\n"
+ "ga('create', 'UA-51746570-1', 'securityshepherd.eu');\n"
+ "ga('send', 'pageview');\n"
+ "</script>";
public static String mobileVmLinkBlurb =
new String(
"To complete this challenge you'll need to use the <a"
+ " href='http://bit.ly/latestShepherdRelease'>Security Shepherd Android Virtual"
+ " Machine</a> that contains the app. ");
public static String sponsorshipMessage(Locale locale) {
// Get Language Bundle
ResourceBundle bundle = ResourceBundle.getBundle("i18n.text", locale);
return new String(
"<h2 class=\"title\">"
+ bundle.getString("sponsorship.title")
+ "</h2>"
+ "<p>"
+ bundle.getString("sponsorship.message.1")
+ "<br/><br/><a href=\"http://bit.ly/BccRiskAdvisorySite\"><img"
+ " src=\"css/images/bccRiskAdvisorySmallLogo.jpg\" alt=\"BCC Risk Advisory\""
+ " style=\"margin: 5px;\"/></a><a href=\"http://bit.ly/EdgeScan\"><img"
+ " src=\"css/images/edgescanSmallLogo.jpg\" alt=\"EdgeScan\" style=\"margin:"
+ " 5px;\"/></a><br/><a href=\"http://bit.ly/manicode\"><img"
+ " src=\"css/images/manicode-logo.png\" style=\"margin-top: 5px;\"></a><br/><a"
+ " href=\"https://www.axway.com/en\"><img src=\"css/images/axway_logo.png\""
+ " style=\"margin: 5px; height: 90px\"></a></p>");
}
}