10 changed files with 318 additions and 0 deletions
@ -0,0 +1,33 @@
@@ -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 } |
||||
); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,22 @@
@@ -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(); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,87 @@
@@ -0,0 +1,87 @@
|
||||
@using Teknik.Models |
||||
<div class="container"> |
||||
<div class="row"> |
||||
<div class="col-sm-12 col-lg-12"> |
||||
<h1 class="h1"> |
||||
Contact us |
||||
</h1> |
||||
</div> |
||||
</div> |
||||
</div> |
||||
<div class="container"> |
||||
<div class="row"> |
||||
<div class="col-md-8"> |
||||
<div class="well well-sm"> |
||||
<form> |
||||
<div class="row"> |
||||
<div class="col-md-6"> |
||||
@if (!Request.IsAuthenticated) |
||||
{ |
||||
<div class="form-group"> |
||||
<label for="contact_name"> |
||||
Name |
||||
</label> |
||||
<input type="text" class="form-control" id="contact_name" placeholder="Enter name" required="required" /> |
||||
</div> |
||||
<div class="form-group"> |
||||
<label for="contact_email"> |
||||
Email Address |
||||
</label> |
||||
<div class="input-group"> |
||||
<span class="input-group-addon"> |
||||
<span class="glyphicon glyphicon-envelope"></span> |
||||
</span> |
||||
<input type="email" class="form-control" id="contact_email" placeholder="Enter email" required="required" /> |
||||
</div> |
||||
</div> |
||||
} |
||||
<div class="form-group"> |
||||
<label for="contact_subject"> |
||||
Subject |
||||
</label> |
||||
<select id="contact_subject" name="contact_subject" class="form-control" required="required"> |
||||
<option value="na" selected="">Choose One:</option> |
||||
<option value="general">General Questions</option> |
||||
<option value="suggestions">Suggestions</option> |
||||
<option value="service">Service Support</option> |
||||
<option value="feedback">Feedback</option> |
||||
</select> |
||||
</div> |
||||
</div> |
||||
<div class="col-md-6"> |
||||
<div class="form-group"> |
||||
<label for="contact_message"> |
||||
Message |
||||
</label> |
||||
<textarea name="contact_message" id="contact_message" class="form-control" rows="9" cols="25" required="required" |
||||
placeholder="Message"></textarea> |
||||
</div> |
||||
</div> |
||||
<div class="col-md-12"> |
||||
<button type="submit" class="btn btn-primary pull-right" id="contact_submit"> |
||||
Send Message |
||||
</button> |
||||
</div> |
||||
</div> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
<div class="col-md-4"> |
||||
<form> |
||||
<legend><span class="glyphicon glyphicon-globe"></span> Where to find us</legend> |
||||
<address> |
||||
<strong>/g/ Technology on IRC</strong><br> |
||||
#/g/technology (<a href="irc://irc.rizon.net" target="_blank">irc.rizon.net</a>)<br> |
||||
</address> |
||||
<address> |
||||
<strong>Teknik IRC</strong><br> |
||||
#teknik (<a href="irc://irc.teknik.io" target="_blank">irc.teknik.io</a>)<br> |
||||
</address> |
||||
<address> |
||||
<strong>Customer Support</strong><br> |
||||
<a href="mailto:support@teknik.io">support@teknik.io</a> |
||||
</address> |
||||
</form> |
||||
</div> |
||||
</div> |
||||
</div> |
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
@{ |
||||
Layout = "~/Views/Shared/_Layout.cshtml"; |
||||
} |
@ -0,0 +1,36 @@
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0"?> |
||||
|
||||
<configuration> |
||||
<configSections> |
||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> |
||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> |
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> |
||||
</sectionGroup> |
||||
</configSections> |
||||
|
||||
<system.web.webPages.razor> |
||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
||||
<pages pageBaseType="System.Web.Mvc.WebViewPage"> |
||||
<namespaces> |
||||
<add namespace="System.Web.Mvc" /> |
||||
<add namespace="System.Web.Mvc.Ajax" /> |
||||
<add namespace="System.Web.Mvc.Html" /> |
||||
<add namespace="System.Web.Routing" /> |
||||
<add namespace="System.Web.Optimization" /> |
||||
<add namespace="Teknik" /> |
||||
|
||||
</namespaces> |
||||
</pages> |
||||
</system.web.webPages.razor> |
||||
|
||||
<appSettings> |
||||
<add key="webpages:Enabled" value="false" /> |
||||
</appSettings> |
||||
|
||||
<system.webServer> |
||||
<handlers> |
||||
<remove name="BlockViewHandler"/> |
||||
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" /> |
||||
</handlers> |
||||
</system.webServer> |
||||
</configuration> |
@ -0,0 +1,33 @@
@@ -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 } |
||||
); |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,51 @@
@@ -0,0 +1,51 @@
|
||||
@using Teknik.Models |
||||
<div class="container"> |
||||
<div class="row"> |
||||
<div class="col-xs-10"> |
||||
<h2>Public Information</h2> |
||||
<p> |
||||
The following information is publicly available. |
||||
</p> |
||||
<ul> |
||||
<li>Email Address (username@@(ViewBag.Config.Host))</li> |
||||
<li>Published Blog Posts</li> |
||||
<li>Comments</li> |
||||
<li>Uploads (Only accessible by direct link)</li> |
||||
<li>Git Repositories</li> |
||||
<li>Pastes without passwords</li> |
||||
<li>User Profile</li> |
||||
<ul> |
||||
<li>Registration Date</li> |
||||
<li>Last Login Date</li> |
||||
<li>About</li> |
||||
<li>Website</li> |
||||
<li>Quote</li> |
||||
</ul> |
||||
</ul> |
||||
<h2>Data We Collect</h2> |
||||
<p> |
||||
Teknik collects the following data when you use our services and is used only internally. |
||||
</p> |
||||
<ul> |
||||
<li><var>User ID</var> - Your internal user ID is associated with any of the following actions while logged in:</li> |
||||
<ul> |
||||
<li>Upload File</li> |
||||
<li>Paste</li> |
||||
<li>Blog Post + Comments</li> |
||||
<li>Ricehalla Post</li> |
||||
</ul> |
||||
<li><var>Dates</var> - When you perform an action (ie: register an account), the date of the action will be recorded.</li> |
||||
<li><var>Emails</var> - Any email you send or receive with your Teknik.io email address is stored locally onto the server.</li> |
||||
</ul> |
||||
<h2>Cookies We Store</h2> |
||||
<p> |
||||
While browsing we store the following cookies onto your machine. |
||||
</p> |
||||
<ul> |
||||
<li><var>PHPSESSION</var> - Used by PHP for the server-side code that is ran.</li> |
||||
<li><var>auth</var> - Used to authenticate a persistent login (activated when you choose 'remember me' at login).</li> |
||||
<li><var>_ga, _pk_id, _pk_ref, piwik_auth</var> - Used as an identifier for site statistics. This can be disabled through the user profile.</li> |
||||
</ul> |
||||
</div> |
||||
</div> |
||||
</div> |
@ -0,0 +1,3 @@
@@ -0,0 +1,3 @@
|
||||
@{ |
||||
Layout = "~/Views/Shared/_Layout.cshtml"; |
||||
} |
@ -0,0 +1,36 @@
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0"?> |
||||
|
||||
<configuration> |
||||
<configSections> |
||||
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> |
||||
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> |
||||
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> |
||||
</sectionGroup> |
||||
</configSections> |
||||
|
||||
<system.web.webPages.razor> |
||||
<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
||||
<pages pageBaseType="System.Web.Mvc.WebViewPage"> |
||||
<namespaces> |
||||
<add namespace="System.Web.Mvc" /> |
||||
<add namespace="System.Web.Mvc.Ajax" /> |
||||
<add namespace="System.Web.Mvc.Html" /> |
||||
<add namespace="System.Web.Routing" /> |
||||
<add namespace="System.Web.Optimization" /> |
||||
<add namespace="Teknik" /> |
||||
|
||||
</namespaces> |
||||
</pages> |
||||
</system.web.webPages.razor> |
||||
|
||||
<appSettings> |
||||
<add key="webpages:Enabled" value="false" /> |
||||
</appSettings> |
||||
|
||||
<system.webServer> |
||||
<handlers> |
||||
<remove name="BlockViewHandler"/> |
||||
<add name="BlockViewHandler" path="*" verb="*" preCondition="integratedMode" type="System.Web.HttpNotFoundHandler" /> |
||||
</handlers> |
||||
</system.webServer> |
||||
</configuration> |
Loading…
Reference in new issue