Split website into separate project from gamestats server.
@@ -1,8 +1,6 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/masters/MasterPage.master" AutoEventWireup="true" CodeBehind="Sessions.aspx.cs" Inherits="PkmnFoundations.GTS.admin.Sessions" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.GTS" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
|
||||
<pf:HeaderColour ID="HeaderColour1" CssClass="admin" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="cpMain" runat="server">
|
||||
|
||||
9
gts/admin/Sessions.aspx.designer.cs
generated
@@ -12,15 +12,6 @@ namespace PkmnFoundations.GTS.admin {
|
||||
|
||||
public partial class Sessions {
|
||||
|
||||
/// <summary>
|
||||
/// HeaderColour1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PkmnFoundations.Web.HeaderColour HeaderColour1;
|
||||
|
||||
/// <summary>
|
||||
/// litDebug control.
|
||||
/// </summary>
|
||||
|
||||
3546
gts/gts.csproj
@@ -1,178 +1,13 @@
|
||||
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="MasterPage.master.cs" Inherits="PkmnFoundations.GTS.MasterPage" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.GTS" %>
|
||||
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="MasterPage.master.cs" Inherits="PkmnFoundations.GTS.masters.MasterPage" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title>Pokémon Classic Network</title>
|
||||
<pf:HeaderColour ID="HeaderColour1" CssClass="home" runat="server" />
|
||||
<title></title>
|
||||
<asp:ContentPlaceHolder ID="cpHead" runat="server" />
|
||||
<link rel="shortcut icon" href="~/favicon.ico?1" type="image/vnd.microsoft.icon" />
|
||||
|
||||
<pf:RequireCss Key="main" CssUrl="~/css/main.css" runat="server" />
|
||||
<pf:RequireScript Key="jquery" ScriptUrl="~/script/jquery-1.11.1.min.js" runat="server" />
|
||||
<pf:RequireScript Key="retina" After="jquery" ScriptUrl="~/script/retina.js" runat="server" />
|
||||
</head>
|
||||
<body class="<%= HeaderCssClass %>">
|
||||
<asp:Literal ID="litHeaderCssClassKeep" Visible="false" runat="server" />
|
||||
<div id="gtsHeader" class="gtsHeader">
|
||||
<div class="setWidth">
|
||||
<div id="gtsLogo" class="gtsLogo">
|
||||
<asp:HyperLink ID="hlLogl" NavigateUrl="~" runat="server">
|
||||
<pf:RetinaImage ID="imgLogo" CssClass="gtsLogoImage" ImageUrl="~/images/heading-icon.png"
|
||||
Width="96" Height="96"
|
||||
AlternateSizes="2,3" runat="server" />
|
||||
<span class="gtsLogoWords">
|
||||
<span class="gtsLogoWord">Pokémon</span>
|
||||
<span class="gtsLogoWord">Classic</span>
|
||||
<span class="gtsLogoWord">Network</span>
|
||||
</span>
|
||||
</asp:HyperLink>
|
||||
<div class="clear"></div>
|
||||
Custom servers for classic Pokémon
|
||||
</div>
|
||||
|
||||
<div id="gtsHeadMain">
|
||||
<ul class="gtsHeadContent">
|
||||
<li>Powered by <a href="http://altwfc.net/">AltWFC</a></li>
|
||||
<li>DNS: <strong>104.131.93.87</strong></li>
|
||||
<li><asp:Literal ID="litPokemon" runat="server" />
|
||||
Pokémon available for offer.</li>
|
||||
<li><asp:Literal ID="litVideos" runat="server" />
|
||||
battle videos.</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="gtsLogin" class="gtsLogin">
|
||||
login
|
||||
</div>
|
||||
|
||||
|
||||
<div class="clear"></div>
|
||||
|
||||
<ul id="gtsNav" class="gtsNav">
|
||||
<li class="home">
|
||||
<asp:HyperLink ID="hlMain" NavigateUrl="~/" runat="server">
|
||||
<span class="inner">
|
||||
Main
|
||||
</span>
|
||||
</asp:HyperLink>
|
||||
</li>
|
||||
<li class="gts">
|
||||
<asp:HyperLink ID="hlGts" NavigateUrl="~/gts/" runat="server">
|
||||
<span class="inner">
|
||||
GTS
|
||||
</span>
|
||||
</asp:HyperLink>
|
||||
</li>
|
||||
<li class="bv">
|
||||
<asp:HyperLink ID="hlBattleVideos" NavigateUrl="~/battlevideo/" runat="server">
|
||||
<span class="inner">
|
||||
Battle Videos
|
||||
</span>
|
||||
</asp:HyperLink>
|
||||
</li>
|
||||
|
||||
<li class="dw">
|
||||
<asp:HyperLink ID="hlDreamWorld" NavigateUrl="~/dreamworld/" runat="server">
|
||||
<span class="inner">
|
||||
Dream World
|
||||
</span>
|
||||
</asp:HyperLink>
|
||||
</li>
|
||||
<li class="dex">
|
||||
<asp:HyperLink ID="hlPokedex" NavigateUrl="~/pokedex/" runat="server">
|
||||
<span class="inner">
|
||||
Pokédex
|
||||
</span>
|
||||
</asp:HyperLink>
|
||||
</li>
|
||||
<li class="stat">
|
||||
<asp:HyperLink ID="hlStat" NavigateUrl="~/profile/" runat="server">
|
||||
<span class="inner">
|
||||
My Profile
|
||||
</span>
|
||||
</asp:HyperLink>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="github-contain">
|
||||
<a class="github" href="https://github.com/mm201/pkmnFoundations" target="_blank">Fork me on GitHub!</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="gtsSubNav">
|
||||
<div class="setWidth">
|
||||
<% switch (HeaderCssClass)
|
||||
{
|
||||
case "home": %>
|
||||
<ul class="gtsNav">
|
||||
<li>
|
||||
<asp:HyperLink ID="hlMain_Home" NavigateUrl="~" runat="server">
|
||||
<span class="inner">
|
||||
Home
|
||||
</span>
|
||||
</asp:HyperLink>
|
||||
</li>
|
||||
<%--
|
||||
<li>
|
||||
<asp:HyperLink ID="hlMain_Instructions" NavigateUrl="~/Instructions.aspx" runat="server">
|
||||
<span class="inner">
|
||||
How to connect
|
||||
</span>
|
||||
</asp:HyperLink>
|
||||
</li>
|
||||
<li>
|
||||
<asp:HyperLink ID="hlMain_Status" NavigateUrl="~/Status.aspx" runat="server">
|
||||
<span class="inner">
|
||||
Server status
|
||||
</span>
|
||||
</asp:HyperLink>
|
||||
</li>
|
||||
--%>
|
||||
</ul>
|
||||
|
||||
<% break;
|
||||
case "gts": %>
|
||||
|
||||
<% break;
|
||||
} %>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="gtsMain">
|
||||
<div class="setWidth">
|
||||
<body>
|
||||
<asp:ContentPlaceHolder ID="cpMain" runat="server" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="gtsFooter">
|
||||
<div id="gtsFooterBkg">
|
||||
<div class="setWidth">
|
||||
<div id="gtsFooterLeft">
|
||||
<ul class="gtsFooterNav">
|
||||
<li><asp:HyperLink ID="hlFooterHome" Text="Main" NavigateUrl="~/" runat="server" /></li>
|
||||
<li><asp:HyperLink ID="hlFooterAllPokemon" Text="GTS" NavigateUrl="~/gts/" runat="server" /></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="gtsFooterRight">
|
||||
<ul class="gtsFooterNav">
|
||||
<li><asp:HyperLink ID="hlFooterGithub" Text="GitHub" NavigateUrl="https://github.com/mm201/pkmnFoundations" runat="server" /></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
||||
<div id="gtsFooterBottom">
|
||||
Pokémon is © 1995-2014 Nintendo / Creatures / GAME FREAK.
|
||||
This service is not affiliated with Nintendo or GAME FREAK in any way. </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -4,72 +4,14 @@ using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using PkmnFoundations.Data;
|
||||
|
||||
namespace PkmnFoundations.GTS
|
||||
namespace PkmnFoundations.GTS.masters
|
||||
{
|
||||
public partial class MasterPage : System.Web.UI.MasterPage
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
int avail4, avail5;
|
||||
ulong bvCount4, bvCount5;
|
||||
|
||||
// todo: move this to a CacheManager sort of class
|
||||
if (Cache["pkmncfPokemonCount4"] == null)
|
||||
{
|
||||
avail4 = Database.Instance.GtsAvailablePokemon4();
|
||||
Cache.Insert("pkmncfPokemonCount4", avail4, null,
|
||||
DateTime.Now.AddMinutes(1),
|
||||
System.Web.Caching.Cache.NoSlidingExpiration);
|
||||
}
|
||||
else
|
||||
avail4 = Convert.ToInt32(Cache["pkmncfPokemonCount4"]);
|
||||
|
||||
if (Cache["pkmncfPokemonCount5"] == null)
|
||||
{
|
||||
avail5 = Database.Instance.GtsAvailablePokemon5();
|
||||
Cache.Insert("pkmncfPokemonCount5", avail5, null,
|
||||
DateTime.Now.AddMinutes(1),
|
||||
System.Web.Caching.Cache.NoSlidingExpiration);
|
||||
}
|
||||
else
|
||||
avail5 = Convert.ToInt32(Cache["pkmncfPokemonCount5"]);
|
||||
|
||||
if (Cache["pkmncfBattleVideoCount4"] == null)
|
||||
{
|
||||
bvCount4 = Database.Instance.BattleVideoCount4();
|
||||
Cache.Insert("pkmncfBattleVideoCount4", bvCount4, null,
|
||||
DateTime.Now.AddMinutes(1),
|
||||
System.Web.Caching.Cache.NoSlidingExpiration);
|
||||
}
|
||||
else
|
||||
bvCount4 = Convert.ToUInt64(Cache["pkmncfBattleVideoCount4"]);
|
||||
|
||||
if (Cache["pkmncfBattleVideoCount5"] == null)
|
||||
{
|
||||
bvCount5 = Database.Instance.BattleVideoCount5();
|
||||
Cache.Insert("pkmncfBattleVideoCount5", bvCount5, null,
|
||||
DateTime.Now.AddMinutes(1),
|
||||
System.Web.Caching.Cache.NoSlidingExpiration);
|
||||
}
|
||||
else
|
||||
bvCount5 = Convert.ToUInt64(Cache["pkmncfBattleVideoCount5"]);
|
||||
|
||||
litPokemon.Text = (avail4 + avail5).ToString();
|
||||
litVideos.Text = (bvCount4 + bvCount5).ToString();
|
||||
}
|
||||
|
||||
public String HeaderCssClass
|
||||
{
|
||||
get
|
||||
{
|
||||
return litHeaderCssClassKeep.Text;
|
||||
}
|
||||
set
|
||||
{
|
||||
litHeaderCssClassKeep.Text = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
146
gts/masters/MasterPage.master.designer.cs
generated
@@ -7,20 +7,11 @@
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PkmnFoundations.GTS {
|
||||
namespace PkmnFoundations.GTS.masters {
|
||||
|
||||
|
||||
public partial class MasterPage {
|
||||
|
||||
/// <summary>
|
||||
/// HeaderColour1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PkmnFoundations.Web.HeaderColour HeaderColour1;
|
||||
|
||||
/// <summary>
|
||||
/// cpHead control.
|
||||
/// </summary>
|
||||
@@ -30,114 +21,6 @@ namespace PkmnFoundations.GTS {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder cpHead;
|
||||
|
||||
/// <summary>
|
||||
/// litHeaderCssClassKeep control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal litHeaderCssClassKeep;
|
||||
|
||||
/// <summary>
|
||||
/// hlLogl control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlLogl;
|
||||
|
||||
/// <summary>
|
||||
/// imgLogo control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PkmnFoundations.Web.RetinaImage imgLogo;
|
||||
|
||||
/// <summary>
|
||||
/// litPokemon control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal litPokemon;
|
||||
|
||||
/// <summary>
|
||||
/// litVideos control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal litVideos;
|
||||
|
||||
/// <summary>
|
||||
/// hlMain control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlMain;
|
||||
|
||||
/// <summary>
|
||||
/// hlGts control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlGts;
|
||||
|
||||
/// <summary>
|
||||
/// hlBattleVideos control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlBattleVideos;
|
||||
|
||||
/// <summary>
|
||||
/// hlDreamWorld control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlDreamWorld;
|
||||
|
||||
/// <summary>
|
||||
/// hlPokedex control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlPokedex;
|
||||
|
||||
/// <summary>
|
||||
/// hlStat control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlStat;
|
||||
|
||||
/// <summary>
|
||||
/// hlMain_Home control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlMain_Home;
|
||||
|
||||
/// <summary>
|
||||
/// cpMain control.
|
||||
/// </summary>
|
||||
@@ -146,32 +29,5 @@ namespace PkmnFoundations.GTS {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.ContentPlaceHolder cpMain;
|
||||
|
||||
/// <summary>
|
||||
/// hlFooterHome control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlFooterHome;
|
||||
|
||||
/// <summary>
|
||||
/// hlFooterAllPokemon control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlFooterAllPokemon;
|
||||
|
||||
/// <summary>
|
||||
/// hlFooterGithub control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlFooterGithub;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,6 +25,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VeekunImport", "VeekunImpor
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MakeBaseStatTables", "MakeBaseStatTables\MakeBaseStatTables.csproj", "{99FCBB1C-D94F-458D-ABD2-8800FBDC65DA}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "web", "web\web.csproj", "{3DE4D97F-57A8-4324-B5B8-164B45E2DF9A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -145,6 +147,16 @@ Global
|
||||
{99FCBB1C-D94F-458D-ABD2-8800FBDC65DA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{99FCBB1C-D94F-458D-ABD2-8800FBDC65DA}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{99FCBB1C-D94F-458D-ABD2-8800FBDC65DA}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{3DE4D97F-57A8-4324-B5B8-164B45E2DF9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3DE4D97F-57A8-4324-B5B8-164B45E2DF9A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3DE4D97F-57A8-4324-B5B8-164B45E2DF9A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
|
||||
{3DE4D97F-57A8-4324-B5B8-164B45E2DF9A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
|
||||
{3DE4D97F-57A8-4324-B5B8-164B45E2DF9A}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{3DE4D97F-57A8-4324-B5B8-164B45E2DF9A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3DE4D97F-57A8-4324-B5B8-164B45E2DF9A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{3DE4D97F-57A8-4324-B5B8-164B45E2DF9A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
|
||||
{3DE4D97F-57A8-4324-B5B8-164B45E2DF9A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
|
||||
{3DE4D97F-57A8-4324-B5B8-164B45E2DF9A}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
@@ -1,86 +1,86 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/masters/ThreeColumn.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PkmnFoundations.GTS.Default" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.GTS" %>
|
||||
<%@ Register TagPrefix="pf" TagName="LabelTextBox" Src="~/controls/LabelTextBox.ascx" %>
|
||||
|
||||
<asp:Content ID="conHead" ContentPlaceHolderID="cpHead" runat="server">
|
||||
<pf:HeaderColour ID="HeaderColour1" CssClass="home" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="conLeft" ContentPlaceHolderID="cpLeft" runat="server">
|
||||
|
||||
<pf:RequireCss Key="login" CssUrl="~/css/login.css" After="main" runat="server" />
|
||||
<div class="gtsSection gtsLogin">
|
||||
<form id="theForm" runat="server">
|
||||
|
||||
<pf:LabelTextBox ID="txtUsername" Label="Username" runat="server" />
|
||||
<pf:LabelTextBox ID="txtPassword" Label="Password" TextMode="Password" runat="server" />
|
||||
<asp:Button ID="btnSubmit" CssClass="large" Text="Login" runat="server" />
|
||||
</form>
|
||||
|
||||
<asp:HyperLink ID="hlRegister" Text="Create an account" NavigateUrl="#" runat="server" />
|
||||
</div>
|
||||
|
||||
<div class="gtsSection gtsInfo">
|
||||
<p>Maintenance periods are <strong>Thursdays</strong> at
|
||||
<strong>UTC 0500</strong>.</p>
|
||||
</div>
|
||||
|
||||
<div class="gtsSection gtsInfo">
|
||||
<p>Supported games: <strong>Diamond</strong>, <strong>Pearl</strong>,
|
||||
<strong>Platinum</strong>, <strong>Heart Gold</strong>,
|
||||
<strong>Soul Silver</strong>, <strong>Black</strong>,
|
||||
<strong>White</strong>, <strong>Black 2</strong>,
|
||||
<strong>White 2</strong>.</p>
|
||||
</div>
|
||||
<div class="gtsSection gtsInfo">
|
||||
<p>Supported features: <strong>Wi-Fi Club</strong><sup title="Support provided through AltWFC servers">altwfc</sup>,
|
||||
<strong>GTS</strong>, <strong>Battle Videos</strong>,
|
||||
<strong>Random Matchup</strong></p>
|
||||
</div>
|
||||
|
||||
<div class="gtsSection gtsTwitter">
|
||||
<a class="twitter-timeline" data-dnt="true"
|
||||
href="https://twitter.com/pcnstatus" data-widget-id="559566696667561986"
|
||||
height="400px">Tweets by @pcnstatus</a>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="conRight" ContentPlaceHolderID="cpRight" runat="server">
|
||||
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="conMain" ContentPlaceHolderID="cpMain" runat="server">
|
||||
|
||||
<h1>How to connect</h1>
|
||||
<ol>
|
||||
<li>Obtain an Action Replay code for your game. (complete list coming
|
||||
soon)<br />If you are using an emulator, you can patch your game with
|
||||
<a href="https://github.com/AdmiralCurtiss/WfcPatcher/releases">WfcPatcher</a>.</li>
|
||||
<li>If applicable, enable the code and launch your game.</li>
|
||||
<li>On your DS, set the DNS to <strong>104.131.93.87</strong>.</li>
|
||||
<li>Connect!</li>
|
||||
</ol>
|
||||
|
||||
<p>Complete instructions can be found at
|
||||
<a href="https://github.com/polaris-/dwc_network_server_emulator/wiki#nintendo-dsdsi3ds2ds-configuration">the
|
||||
AltWFC Wiki</a>.</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<h1>Update - August 29:</h1>
|
||||
<p>Wi-fi Battle Tower and Battle Subway are now available!
|
||||
</p>
|
||||
|
||||
<h1>Update - July 11:</h1>
|
||||
<p>The battle video server is up and running! View any of the
|
||||
thousands of battle videos from Nintendo WFC
|
||||
<asp:HyperLink ID="hlBattleVideos" NavigateUrl="~/BattleVideo.aspx" runat="server">
|
||||
which I was able to save</asp:HyperLink>
|
||||
and upload your own!
|
||||
</p>
|
||||
<p>Dressup photos, box uploads, and musical photos are also available.</p>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/masters/ThreeColumn.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PkmnFoundations.GTS.Default" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.Web" %>
|
||||
<%@ Register TagPrefix="pf" TagName="LabelTextBox" Src="~/controls/LabelTextBox.ascx" %>
|
||||
|
||||
<asp:Content ID="conHead" ContentPlaceHolderID="cpHead" runat="server">
|
||||
<pf:HeaderColour ID="HeaderColour1" CssClass="home" runat="server" />
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="conLeft" ContentPlaceHolderID="cpLeft" runat="server">
|
||||
|
||||
<pf:RequireCss Key="login" CssUrl="~/css/login.css" After="main" runat="server" />
|
||||
<div class="gtsSection gtsLogin">
|
||||
<form id="theForm" runat="server">
|
||||
|
||||
<pf:LabelTextBox ID="txtUsername" Label="Username" runat="server" />
|
||||
<pf:LabelTextBox ID="txtPassword" Label="Password" TextMode="Password" runat="server" />
|
||||
<asp:Button ID="btnSubmit" CssClass="large" Text="Login" runat="server" />
|
||||
</form>
|
||||
|
||||
<asp:HyperLink ID="hlRegister" Text="Create an account" NavigateUrl="#" runat="server" />
|
||||
</div>
|
||||
|
||||
<div class="gtsSection gtsInfo">
|
||||
<p>Maintenance periods are <strong>Thursdays</strong> at
|
||||
<strong>UTC 0500</strong>.</p>
|
||||
</div>
|
||||
|
||||
<div class="gtsSection gtsInfo">
|
||||
<p>Supported games: <strong>Diamond</strong>, <strong>Pearl</strong>,
|
||||
<strong>Platinum</strong>, <strong>Heart Gold</strong>,
|
||||
<strong>Soul Silver</strong>, <strong>Black</strong>,
|
||||
<strong>White</strong>, <strong>Black 2</strong>,
|
||||
<strong>White 2</strong>.</p>
|
||||
</div>
|
||||
<div class="gtsSection gtsInfo">
|
||||
<p>Supported features: <strong>Wi-Fi Club</strong><sup title="Support provided through AltWFC servers">altwfc</sup>,
|
||||
<strong>GTS</strong>, <strong>Battle Videos</strong>,
|
||||
<strong>Random Matchup</strong></p>
|
||||
</div>
|
||||
|
||||
<div class="gtsSection gtsTwitter">
|
||||
<a class="twitter-timeline" data-dnt="true"
|
||||
href="https://twitter.com/pcnstatus" data-widget-id="559566696667561986"
|
||||
height="400px">Tweets by @pcnstatus</a>
|
||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
||||
</div>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="conRight" ContentPlaceHolderID="cpRight" runat="server">
|
||||
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="conMain" ContentPlaceHolderID="cpMain" runat="server">
|
||||
|
||||
<h1>How to connect</h1>
|
||||
<ol>
|
||||
<li>Obtain an Action Replay code for your game. (complete list coming
|
||||
soon)<br />If you are using an emulator, you can patch your game with
|
||||
<a href="https://github.com/AdmiralCurtiss/WfcPatcher/releases">WfcPatcher</a>.</li>
|
||||
<li>If applicable, enable the code and launch your game.</li>
|
||||
<li>On your DS, set the DNS to <strong>104.131.93.87</strong>.</li>
|
||||
<li>Connect!</li>
|
||||
</ol>
|
||||
|
||||
<p>Complete instructions can be found at
|
||||
<a href="https://github.com/polaris-/dwc_network_server_emulator/wiki#nintendo-dsdsi3ds2ds-configuration">the
|
||||
AltWFC Wiki</a>.</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<h1>Update - August 29:</h1>
|
||||
<p>Wi-fi Battle Tower and Battle Subway are now available!
|
||||
</p>
|
||||
|
||||
<h1>Update - July 11:</h1>
|
||||
<p>The battle video server is up and running! View any of the
|
||||
thousands of battle videos from Nintendo WFC
|
||||
<asp:HyperLink ID="hlBattleVideos" NavigateUrl="~/BattleVideo.aspx" runat="server">
|
||||
which I was able to save</asp:HyperLink>
|
||||
and upload your own!
|
||||
</p>
|
||||
<p>Dressup photos, box uploads, and musical photos are also available.</p>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
@@ -1,20 +1,20 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using PkmnFoundations.GTS;
|
||||
using System.Text;
|
||||
|
||||
namespace PkmnFoundations.GTS
|
||||
{
|
||||
public partial class Default : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using PkmnFoundations.GTS;
|
||||
using System.Text;
|
||||
|
||||
namespace PkmnFoundations.GTS
|
||||
{
|
||||
public partial class Default : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,78 +1,78 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PkmnFoundations.GTS {
|
||||
|
||||
|
||||
public partial class Default {
|
||||
|
||||
/// <summary>
|
||||
/// HeaderColour1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PkmnFoundations.Web.HeaderColour HeaderColour1;
|
||||
|
||||
/// <summary>
|
||||
/// theForm control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm theForm;
|
||||
|
||||
/// <summary>
|
||||
/// txtUsername control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PkmnFoundations.GTS.controls.LabelTextBox txtUsername;
|
||||
|
||||
/// <summary>
|
||||
/// txtPassword control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PkmnFoundations.GTS.controls.LabelTextBox txtPassword;
|
||||
|
||||
/// <summary>
|
||||
/// btnSubmit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSubmit;
|
||||
|
||||
/// <summary>
|
||||
/// hlRegister control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlRegister;
|
||||
|
||||
/// <summary>
|
||||
/// hlBattleVideos control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlBattleVideos;
|
||||
}
|
||||
}
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace PkmnFoundations.GTS {
|
||||
|
||||
|
||||
public partial class Default {
|
||||
|
||||
/// <summary>
|
||||
/// HeaderColour1 control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PkmnFoundations.Web.HeaderColour HeaderColour1;
|
||||
|
||||
/// <summary>
|
||||
/// theForm control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm theForm;
|
||||
|
||||
/// <summary>
|
||||
/// txtUsername control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PkmnFoundations.GTS.controls.LabelTextBox txtUsername;
|
||||
|
||||
/// <summary>
|
||||
/// txtPassword control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::PkmnFoundations.GTS.controls.LabelTextBox txtPassword;
|
||||
|
||||
/// <summary>
|
||||
/// btnSubmit control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Button btnSubmit;
|
||||
|
||||
/// <summary>
|
||||
/// hlRegister control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlRegister;
|
||||
|
||||
/// <summary>
|
||||
/// hlBattleVideos control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.HyperLink hlBattleVideos;
|
||||
}
|
||||
}
|
||||
1
web/Global.asax
Normal file
@@ -0,0 +1 @@
|
||||
<%@ Application Codebehind="Global.asax.cs" Inherits="PkmnFoundations.GTS.Global" Language="C#" %>
|
||||
87
web/Global.asax.cs
Normal file
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.SessionState;
|
||||
using PkmnFoundations.Data;
|
||||
|
||||
namespace PkmnFoundations.GTS
|
||||
{
|
||||
public class Global : System.Web.HttpApplication
|
||||
{
|
||||
void Application_Start(object sender, EventArgs e)
|
||||
{
|
||||
// Code that runs on application startup
|
||||
Application["pkmncfPokedex"] = new Pokedex.Pokedex(Database.Instance, false);
|
||||
}
|
||||
|
||||
void Application_End(object sender, EventArgs e)
|
||||
{
|
||||
// Code that runs on application shutdown
|
||||
|
||||
}
|
||||
|
||||
void Application_Error(object sender, EventArgs e)
|
||||
{
|
||||
// Code that runs when an unhandled error occurs
|
||||
|
||||
}
|
||||
|
||||
void Session_Start(object sender, EventArgs e)
|
||||
{
|
||||
// Code that runs when a new session is started
|
||||
|
||||
}
|
||||
|
||||
void Session_End(object sender, EventArgs e)
|
||||
{
|
||||
// Code that runs when a session ends.
|
||||
// Note: The Session_End event is raised only when the sessionstate mode
|
||||
// is set to InProc in the Web.config file. If session mode is set to StateServer
|
||||
// or SQLServer, the event is not raised.
|
||||
|
||||
}
|
||||
|
||||
void Application_BeginRequest(object sender, EventArgs e)
|
||||
{
|
||||
String pathInfo, query;
|
||||
String targetUrl = RewriteUrl(Request.Url.PathAndQuery, out pathInfo, out query);
|
||||
|
||||
if (targetUrl != null)
|
||||
{
|
||||
Context.RewritePath(targetUrl, pathInfo, query, false);
|
||||
}
|
||||
}
|
||||
|
||||
void Application_EndRequest(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public static String RewriteUrl(String url, out String pathInfo, out String query)
|
||||
{
|
||||
int q = url.IndexOf('?');
|
||||
String path;
|
||||
pathInfo = "";
|
||||
|
||||
if (q < 0)
|
||||
{
|
||||
path = url;
|
||||
query = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
path = url.Substring(0, q);
|
||||
query = url.Substring(q + 1);
|
||||
}
|
||||
|
||||
// todo: optimize and extend url pattern matching
|
||||
// fixme: this doesn't work if the application isn't mounted at root
|
||||
String[] split = path.Split('/');
|
||||
if (split[0].Length > 0) return null;
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
35
web/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("web")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("web")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("3dd50bf8-64a1-4ca9-89fc-a3b120e08442")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
30
web/Web.Debug.config
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an atrribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
||||
31
web/Web.Release.config
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an atrribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
</system.web>
|
||||
</configuration>
|
||||
49
web/Web.config
Normal file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<!--
|
||||
For more information on how to configure your ASP.NET application, please visit
|
||||
http://go.microsoft.com/fwlink/?LinkId=169433
|
||||
-->
|
||||
|
||||
<configuration>
|
||||
<connectionStrings>
|
||||
<add name="pkmnFoundationsConnectionString"
|
||||
connectionString="Server=10.211.55.2;Database=gts;User ID=gts;Password=gts;Pooling=true;charset=utf8"
|
||||
providerName="MySql.Data.MySqlClient" />
|
||||
</connectionStrings>
|
||||
|
||||
<system.web>
|
||||
<compilation debug="true" targetFramework="4.0" />
|
||||
<!--
|
||||
<authentication mode="Forms">
|
||||
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
|
||||
</authentication>
|
||||
-->
|
||||
|
||||
<membership>
|
||||
<providers>
|
||||
<clear/>
|
||||
</providers>
|
||||
</membership>
|
||||
|
||||
<profile>
|
||||
<providers>
|
||||
<clear/>
|
||||
</providers>
|
||||
</profile>
|
||||
|
||||
<roleManager enabled="false">
|
||||
<providers>
|
||||
<clear/>
|
||||
</providers>
|
||||
</roleManager>
|
||||
|
||||
<customErrors mode="Off" />
|
||||
|
||||
</system.web>
|
||||
|
||||
<system.webServer>
|
||||
<modules runAllManagedModulesForAllRequests="true"/>
|
||||
<httpErrors existingResponse="PassThrough"></httpErrors>
|
||||
</system.webServer>
|
||||
</configuration>
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/masters/MasterPage.master" AutoEventWireup="true" CodeBehind="AddBoxes.aspx.cs" Inherits="PkmnFoundations.GTS.admin.AddBoxes" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.GTS" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.Web" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
|
||||
<pf:HeaderColour ID="HeaderColour1" CssClass="admin" runat="server" />
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/masters/MasterPage.master" AutoEventWireup="true" CodeBehind="AddDressup.aspx.cs" Inherits="PkmnFoundations.GTS.test.AddDressup" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.GTS" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.Web" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
|
||||
<pf:HeaderColour ID="HeaderColour1" CssClass="admin" runat="server" />
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/masters/MasterPage.master" AutoEventWireup="true" CodeBehind="AddMusical.aspx.cs" Inherits="PkmnFoundations.GTS.admin.AddMusical" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.GTS" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.Web" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
|
||||
<pf:HeaderColour ID="HeaderColour1" CssClass="admin" runat="server" />
|
||||
34
web/admin/Web.Debug.config
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an attribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
<authorization xdt:Transform="Replace">
|
||||
<allow users="*"/>
|
||||
</authorization>
|
||||
|
||||
</system.web>
|
||||
</configuration>
|
||||
34
web/admin/Web.Release.config
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
|
||||
|
||||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
|
||||
<!--
|
||||
In the example below, the "SetAttributes" transform will change the value of
|
||||
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
|
||||
finds an attribute "name" that has a value of "MyDB".
|
||||
|
||||
<connectionStrings>
|
||||
<add name="MyDB"
|
||||
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
|
||||
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
|
||||
</connectionStrings>
|
||||
-->
|
||||
<system.web>
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
Note that because there is only one customErrors section under the
|
||||
<system.web> node, there is no need to use the "xdt:Locator" attribute.
|
||||
|
||||
<customErrors defaultRedirect="GenericError.htm"
|
||||
mode="RemoteOnly" xdt:Transform="Replace">
|
||||
<error statusCode="500" redirect="InternalError.htm"/>
|
||||
</customErrors>
|
||||
-->
|
||||
<authorization xdt:Transform="Replace">
|
||||
<deny users="*"/>
|
||||
</authorization>
|
||||
|
||||
</system.web>
|
||||
</configuration>
|
||||
8
web/admin/Web.config
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<system.web>
|
||||
<authorization>
|
||||
|
||||
</authorization>
|
||||
</system.web>
|
||||
</configuration>
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/masters/MasterPage.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PkmnFoundations.GTS.BattleVideo" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.GTS" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.Web" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
|
||||
<pf:HeaderColour ID="HeaderColour1" CssClass="bv" runat="server" />
|
||||
@@ -1,5 +1,5 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LabelTextBox.ascx.cs" Inherits="PkmnFoundations.GTS.controls.LabelTextBox" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.GTS" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.Web" %>
|
||||
|
||||
<pf:RequireCss Key="form" CssUrl="~/css/form.css" After="main" runat="server" />
|
||||
<pf:RequireScript Key="jquery" ScriptUrl="~/script/jquery-1.11.1.min.js" runat="server" />
|
||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
@@ -1,5 +1,5 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/masters/MasterPage.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PkmnFoundations.GTS.AllPokemon" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.GTS" %>
|
||||
<%@ Register TagPrefix="pf" Namespace="PkmnFoundations.Web" Assembly="PkmnFoundations.Web" %>
|
||||
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="cpHead" runat="server">
|
||||
<pf:HeaderColour ID="HeaderColour1" CssClass="gts" runat="server" />
|
||||
|
Before Width: | Height: | Size: 137 B After Width: | Height: | Size: 137 B |
|
Before Width: | Height: | Size: 139 B After Width: | Height: | Size: 139 B |
|
Before Width: | Height: | Size: 140 B After Width: | Height: | Size: 140 B |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 259 B |
|
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 335 B |
|
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 334 B |
|
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 344 B |
|
Before Width: | Height: | Size: 286 B After Width: | Height: | Size: 286 B |
|
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 356 B |
|
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 356 B |
|
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 324 B |
|
Before Width: | Height: | Size: 327 B After Width: | Height: | Size: 327 B |
|
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 350 B |
|
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 350 B |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 266 B |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 354 B |
|
Before Width: | Height: | Size: 294 B After Width: | Height: | Size: 294 B |
|
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 292 B |
|
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 290 B |
|
Before Width: | Height: | Size: 292 B After Width: | Height: | Size: 292 B |
|
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 290 B |
|
Before Width: | Height: | Size: 379 B After Width: | Height: | Size: 379 B |
|
Before Width: | Height: | Size: 379 B After Width: | Height: | Size: 379 B |
|
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 369 B |
|
Before Width: | Height: | Size: 369 B After Width: | Height: | Size: 369 B |
|
Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 311 B |
|
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 250 B |
|
Before Width: | Height: | Size: 330 B After Width: | Height: | Size: 330 B |
|
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 347 B |
|
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
|
Before Width: | Height: | Size: 361 B After Width: | Height: | Size: 361 B |
|
Before Width: | Height: | Size: 346 B After Width: | Height: | Size: 346 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
|
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
|
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 358 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 356 B After Width: | Height: | Size: 356 B |
|
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 342 B |
|
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 343 B |
|
Before Width: | Height: | Size: 540 B After Width: | Height: | Size: 540 B |
|
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 337 B |
|
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 334 B |
|
Before Width: | Height: | Size: 407 B After Width: | Height: | Size: 407 B |
|
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 387 B |
|
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 267 B |
|
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 403 B |
|
Before Width: | Height: | Size: 245 B After Width: | Height: | Size: 245 B |