From 6fd2360cf7ada24cfa960745fca301a5b91f3f89 Mon Sep 17 00:00:00 2001 From: Uncled1023 Date: Mon, 23 Nov 2015 16:55:28 -0800 Subject: [PATCH] Added Privacy and Contact pages --- .../Areas/Contact/ContactAreaRegistration.cs | 33 +++++++ .../Contact/Controllers/ContactController.cs | 22 +++++ .../Areas/Contact/Views/Contact/Index.cshtml | 87 +++++++++++++++++++ Teknik/Areas/Contact/Views/_ViewStart.cshtml | 3 + Teknik/Areas/Contact/Views/web.config | 36 ++++++++ .../Areas/Privacy/PrivacyAreaRegistration.cs | 33 +++++++ .../Areas/Privacy/Views/Privacy/Index.cshtml | 51 +++++++++++ Teknik/Areas/Privacy/Views/_ViewStart.cshtml | 3 + Teknik/Areas/Privacy/Views/web.config | 36 ++++++++ Teknik/Teknik.csproj | 14 +++ 10 files changed, 318 insertions(+) create mode 100644 Teknik/Areas/Contact/ContactAreaRegistration.cs create mode 100644 Teknik/Areas/Contact/Controllers/ContactController.cs create mode 100644 Teknik/Areas/Contact/Views/Contact/Index.cshtml create mode 100644 Teknik/Areas/Contact/Views/_ViewStart.cshtml create mode 100644 Teknik/Areas/Contact/Views/web.config create mode 100644 Teknik/Areas/Privacy/PrivacyAreaRegistration.cs create mode 100644 Teknik/Areas/Privacy/Views/Privacy/Index.cshtml create mode 100644 Teknik/Areas/Privacy/Views/_ViewStart.cshtml create mode 100644 Teknik/Areas/Privacy/Views/web.config diff --git a/Teknik/Areas/Contact/ContactAreaRegistration.cs b/Teknik/Areas/Contact/ContactAreaRegistration.cs new file mode 100644 index 0000000..8360f3e --- /dev/null +++ b/Teknik/Areas/Contact/ContactAreaRegistration.cs @@ -0,0 +1,33 @@ +using System.Web.Mvc; + +namespace Teknik.Areas.Contact +{ + public class ContactAreaRegistration : AreaRegistration + { + public override string AreaName + { + get + { + return "Contact"; + } + } + + public override void RegisterArea(AreaRegistrationContext context) + { + context.MapSubdomainRoute( + "Contact_dev", // Route name + "dev", + "Contact/{controller}/{action}", // URL with parameters + new { area = this.AreaName, controller = "Contact", action = "Index" }, // Parameter defaults + new[] { typeof(Controllers.ContactController).Namespace } + ); + context.MapSubdomainRoute( + "Contact_default", // Route name + "contact", + "{controller}/{action}", // URL with parameters + new { area = this.AreaName, controller = "Contact", action = "Index" }, // Parameter defaults + new[] { typeof(Controllers.ContactController).Namespace } + ); + } + } +} \ No newline at end of file diff --git a/Teknik/Areas/Contact/Controllers/ContactController.cs b/Teknik/Areas/Contact/Controllers/ContactController.cs new file mode 100644 index 0000000..ee890e0 --- /dev/null +++ b/Teknik/Areas/Contact/Controllers/ContactController.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; +using Teknik.Controllers; + +namespace Teknik.Areas.Contact.Controllers +{ + public class ContactController : DefaultController + { + // GET: Contact/Contact + [AllowAnonymous] + public ActionResult Index() + { + ViewBag.Title = Config.Title + " - Contact"; + ViewBag.Message = "Contact Teknik Support"; + + return View(); + } + } +} \ No newline at end of file diff --git a/Teknik/Areas/Contact/Views/Contact/Index.cshtml b/Teknik/Areas/Contact/Views/Contact/Index.cshtml new file mode 100644 index 0000000..b17d3cd --- /dev/null +++ b/Teknik/Areas/Contact/Views/Contact/Index.cshtml @@ -0,0 +1,87 @@ +@using Teknik.Models +
+
+
+

+ Contact us +

+
+
+
+
+
+
+
+
+
+
+ @if (!Request.IsAuthenticated) + { +
+ + +
+
+ +
+ + + + +
+
+ } +
+ + +
+
+
+
+ + +
+
+
+ +
+
+
+
+
+
+
+ Where to find us +
+ /g/ Technology on IRC
+ #/g/technology (irc.rizon.net)
+
+
+ Teknik IRC
+ #teknik (irc.teknik.io)
+
+
+ Customer Support
+ support@teknik.io +
+
+
+
+
diff --git a/Teknik/Areas/Contact/Views/_ViewStart.cshtml b/Teknik/Areas/Contact/Views/_ViewStart.cshtml new file mode 100644 index 0000000..2de6241 --- /dev/null +++ b/Teknik/Areas/Contact/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "~/Views/Shared/_Layout.cshtml"; +} diff --git a/Teknik/Areas/Contact/Views/web.config b/Teknik/Areas/Contact/Views/web.config new file mode 100644 index 0000000..ada5aaf --- /dev/null +++ b/Teknik/Areas/Contact/Views/web.config @@ -0,0 +1,36 @@ + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Teknik/Areas/Privacy/PrivacyAreaRegistration.cs b/Teknik/Areas/Privacy/PrivacyAreaRegistration.cs new file mode 100644 index 0000000..a045613 --- /dev/null +++ b/Teknik/Areas/Privacy/PrivacyAreaRegistration.cs @@ -0,0 +1,33 @@ +using System.Web.Mvc; + +namespace Teknik.Areas.Privacy +{ + public class PrivacyAreaRegistration : AreaRegistration + { + public override string AreaName + { + get + { + return "Privacy"; + } + } + + public override void RegisterArea(AreaRegistrationContext context) + { + context.MapSubdomainRoute( + "Privacy_dev", // Route name + "dev", + "Privacy/{controller}/{action}", // URL with parameters + new { area = this.AreaName, controller = "Privacy", action = "Index" }, // Parameter defaults + new[] { typeof(Controllers.PrivacyController).Namespace } + ); + context.MapSubdomainRoute( + "Privacy_default", // Route name + "privacy", + "{controller}/{action}", // URL with parameters + new { area = this.AreaName, controller = "Privacy", action = "Index" }, // Parameter defaults + new[] { typeof(Controllers.PrivacyController).Namespace } + ); + } + } +} \ No newline at end of file diff --git a/Teknik/Areas/Privacy/Views/Privacy/Index.cshtml b/Teknik/Areas/Privacy/Views/Privacy/Index.cshtml new file mode 100644 index 0000000..fc8a8f1 --- /dev/null +++ b/Teknik/Areas/Privacy/Views/Privacy/Index.cshtml @@ -0,0 +1,51 @@ +@using Teknik.Models +
+
+
+

Public Information

+

+ The following information is publicly available. +

+
    +
  • Email Address (username@@(ViewBag.Config.Host))
  • +
  • Published Blog Posts
  • +
  • Comments
  • +
  • Uploads (Only accessible by direct link)
  • +
  • Git Repositories
  • +
  • Pastes without passwords
  • +
  • User Profile
  • +
      +
    • Registration Date
    • +
    • Last Login Date
    • +
    • About
    • +
    • Website
    • +
    • Quote
    • +
    +
+

Data We Collect

+

+ Teknik collects the following data when you use our services and is used only internally. +

+
    +
  • User ID - Your internal user ID is associated with any of the following actions while logged in:
  • +
      +
    • Upload File
    • +
    • Paste
    • +
    • Blog Post + Comments
    • +
    • Ricehalla Post
    • +
    +
  • Dates - When you perform an action (ie: register an account), the date of the action will be recorded.
  • +
  • Emails - Any email you send or receive with your Teknik.io email address is stored locally onto the server.
  • +
+

Cookies We Store

+

+ While browsing we store the following cookies onto your machine. +

+
    +
  • PHPSESSION - Used by PHP for the server-side code that is ran.
  • +
  • auth - Used to authenticate a persistent login (activated when you choose 'remember me' at login).
  • +
  • _ga, _pk_id, _pk_ref, piwik_auth - Used as an identifier for site statistics. This can be disabled through the user profile.
  • +
+
+
+
diff --git a/Teknik/Areas/Privacy/Views/_ViewStart.cshtml b/Teknik/Areas/Privacy/Views/_ViewStart.cshtml new file mode 100644 index 0000000..2de6241 --- /dev/null +++ b/Teknik/Areas/Privacy/Views/_ViewStart.cshtml @@ -0,0 +1,3 @@ +@{ + Layout = "~/Views/Shared/_Layout.cshtml"; +} diff --git a/Teknik/Areas/Privacy/Views/web.config b/Teknik/Areas/Privacy/Views/web.config new file mode 100644 index 0000000..ada5aaf --- /dev/null +++ b/Teknik/Areas/Privacy/Views/web.config @@ -0,0 +1,36 @@ + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Teknik/Teknik.csproj b/Teknik/Teknik.csproj index eb62e07..755f864 100644 --- a/Teknik/Teknik.csproj +++ b/Teknik/Teknik.csproj @@ -138,9 +138,13 @@ + + + + @@ -203,6 +207,12 @@ + + + + + + @@ -249,10 +259,14 @@ + + + +