mirror of
https://github.com/janickiy/yii2-nomer
synced 2025-03-09 15:39:59 +00:00
add files to project
This commit is contained in:
commit
5cac498444
3729 changed files with 836998 additions and 0 deletions
80
web/evercookie/assets/EvercookieCacheServlet.java
Normal file
80
web/evercookie/assets/EvercookieCacheServlet.java
Normal file
|
@ -0,0 +1,80 @@
|
|||
package evercookie;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.ServletOutputStream;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.Cookie;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* This is a Java Servlet port of evercookie_cache.php, the server-side
|
||||
* component of Evercookie's cacheData mechanism.
|
||||
*
|
||||
* Install this servlet at /evercookie_cache.php in your web.xml (or add a @WebServlet
|
||||
* annotation) and you won't even need to modify evercookie.js! This assumes
|
||||
* that Evercookie's assets are in your web root.
|
||||
*
|
||||
* Of course, if you have set $_ec_baseurl to something, you should install this
|
||||
* at [$_ec_baseurl]evercookie_cache.php. Remember, $ec_baseurl needs a trailing
|
||||
* slash in the evercookie.js.
|
||||
*
|
||||
* @author Gabriel Bauman <gabe@codehaus.org>
|
||||
*
|
||||
*/
|
||||
public class EvercookieCacheServlet extends HttpServlet {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public EvercookieCacheServlet() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||
|
||||
boolean cookieExists = false;
|
||||
String cookieValue = null;
|
||||
Cookie[] cookies = req.getCookies();
|
||||
|
||||
if (null != cookies) {
|
||||
// Iterate over cookies until we find one named evercookie_cache
|
||||
for (Cookie cookie : cookies)
|
||||
{
|
||||
if (cookie.getName().equals("evercookie_cache")) {
|
||||
cookieExists = true;
|
||||
cookieValue = cookie.getValue();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If the cookie doesn't exist, send 304 Not Modified and exit.
|
||||
if (!cookieExists) {
|
||||
resp.setStatus(304);
|
||||
return;
|
||||
}
|
||||
|
||||
// The cookie was present; set up the response headers.
|
||||
resp.setContentType("text/html");
|
||||
resp.addHeader("Last-Modified", "Wed, 30 Jun 2010 21:36:48 GMT");
|
||||
resp.addHeader("Expires", "Tue, 31 Dec 2030 23:30:45 GMT");
|
||||
resp.addHeader("Cache-Control", "private, max-age=630720000");
|
||||
|
||||
// Print the contents of the cookie as the response body.
|
||||
ServletOutputStream body = resp.getOutputStream();
|
||||
|
||||
try {
|
||||
body.print(cookieValue);
|
||||
} finally {
|
||||
body.close();
|
||||
}
|
||||
|
||||
// And we're done.
|
||||
resp.setStatus(200);
|
||||
resp.flushBuffer();
|
||||
}
|
||||
}
|
79
web/evercookie/assets/EvercookieEtagServlet.java
Normal file
79
web/evercookie/assets/EvercookieEtagServlet.java
Normal file
|
@ -0,0 +1,79 @@
|
|||
package evercookie;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.ServletOutputStream;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.Cookie;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* This is a Java Servlet port of evercookie_etag.php, the server-side component
|
||||
* of Evercookie that uses the If-None-Match and Etag headers to keep track of
|
||||
* persistent values.
|
||||
*
|
||||
* Install this servlet at /evercookie_etag.php in your web.xml (or add a @WebServlet
|
||||
* annotation) and you won't even need to modify evercookie.js! This assumes
|
||||
* that Evercookie's assets are in your web root.
|
||||
*
|
||||
* Of course, if you have set $_ec_baseurl to something, you should install this
|
||||
* at [$_ec_baseurl]evercookie_etag.php. Remember, $ec_baseurl needs a trailing
|
||||
* slash in the evercookie.js.
|
||||
*
|
||||
* @author Gabriel Bauman <gabe@codehaus.org>
|
||||
*
|
||||
*/
|
||||
public class EvercookieEtagServlet extends HttpServlet {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public EvercookieEtagServlet() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||
|
||||
boolean cookieExists = false;
|
||||
String cookieValue = null;
|
||||
Cookie[] cookies = req.getCookies();
|
||||
|
||||
if (null != cookies) {
|
||||
// Iterate over cookies until we find one named evercookie_etag
|
||||
for (Cookie cookie : cookies)
|
||||
{
|
||||
if (cookie.getName().equals("evercookie_etag")) {
|
||||
cookieExists = true;
|
||||
cookieValue = cookie.getValue();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ServletOutputStream body = resp.getOutputStream();
|
||||
|
||||
try {
|
||||
|
||||
if (cookieExists) {
|
||||
// Cookie set; send cookie value as Etag header/response body.
|
||||
resp.addHeader("Etag", cookieValue);
|
||||
body.print(cookieValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
// No cookie; set the body to the request's If-None-Match value.
|
||||
body.print(req.getHeader("If-None-Match"));
|
||||
}
|
||||
|
||||
} finally {
|
||||
// close the output stream.
|
||||
body.close();
|
||||
}
|
||||
|
||||
resp.setStatus(200);
|
||||
|
||||
}
|
||||
}
|
95
web/evercookie/assets/EvercookiePngServlet.java
Normal file
95
web/evercookie/assets/EvercookiePngServlet.java
Normal file
|
@ -0,0 +1,95 @@
|
|||
package evercookie;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.RenderingHints;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.servlet.ServletException;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.Cookie;
|
||||
import javax.servlet.http.HttpServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* This is a Java Servlet port of evercookie_png.php, the server-side component
|
||||
* of Evercookie that stores values in force-cached PNG image data.
|
||||
*
|
||||
* Install this servlet at /evercookie_png.php in your web.xml (or add a @WebServlet
|
||||
* annotation) and you won't even need to modify evercookie.js! This assumes
|
||||
* that Evercookie's assets are in your web root.
|
||||
*
|
||||
* Of course, if you have set $_ec_baseurl to something, you should install this
|
||||
* at [$_ec_baseurl]evercookie_png.php. Remember, $ec_baseurl needs a trailing
|
||||
* slash in the evercookie.js.
|
||||
*
|
||||
* @author Gabriel Bauman <gabe@codehaus.org>
|
||||
*
|
||||
*/
|
||||
public class EvercookiePngServlet extends HttpServlet {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public EvercookiePngServlet() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||
|
||||
boolean cookieExists = false;
|
||||
String cookieValue = null;
|
||||
Cookie[] cookies = req.getCookies();
|
||||
|
||||
if (null != cookies) {
|
||||
// Iterate over cookies until we find one named evercookie_png
|
||||
for (Cookie cookie : cookies)
|
||||
{
|
||||
if (cookie.getName().equals("evercookie_png")) {
|
||||
cookieExists = true;
|
||||
cookieValue = cookie.getValue();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// If the cookie doesn't exist, send 304 Not Modified and exit.
|
||||
if (!cookieExists) {
|
||||
resp.setStatus(304);
|
||||
return;
|
||||
}
|
||||
|
||||
// Generate a PNG image from the cookie value.
|
||||
BufferedImage image = new BufferedImage(200, 1, BufferedImage.TYPE_INT_ARGB);
|
||||
image.createGraphics().setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_OFF);
|
||||
int x = 0;
|
||||
|
||||
for (int i = 0; i < cookieValue.length(); i += 3) {
|
||||
// Treat every 3 chars of the cookie value as an {R,G,B} triplet.
|
||||
Color c = new Color(cookieValue.charAt(i), cookieValue.charAt(i + 1), cookieValue.charAt(i + 2));
|
||||
image.setRGB(x++, 0, c.getRGB());
|
||||
}
|
||||
|
||||
// The cookie was present; set up the response headers.
|
||||
resp.setContentType("image/png");
|
||||
resp.addHeader("Last-Modified", "Wed, 30 Jun 2010 21:36:48 GMT");
|
||||
resp.addHeader("Expires", "Tue, 31 Dec 2033 23:30:45 GMT");
|
||||
resp.addHeader("Cache-Control", "private, max-age=630720000");
|
||||
|
||||
// Send the generate image data as the response body.
|
||||
OutputStream body = resp.getOutputStream();
|
||||
|
||||
try {
|
||||
ImageIO.write(image, "png", body);
|
||||
} finally {
|
||||
body.close();
|
||||
}
|
||||
|
||||
// And we're done.
|
||||
resp.setStatus(200);
|
||||
resp.flushBuffer();
|
||||
}
|
||||
}
|
BIN
web/evercookie/assets/evercookie.fla
Normal file
BIN
web/evercookie/assets/evercookie.fla
Normal file
Binary file not shown.
23
web/evercookie/assets/evercookie.jnlp
Normal file
23
web/evercookie/assets/evercookie.jnlp
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jnlp>
|
||||
<information>
|
||||
<title>Evercookie Applet</title>
|
||||
<vendor>Gabriel Bauman</vendor>
|
||||
<offline-allowed />
|
||||
</information>
|
||||
<resources>
|
||||
<j2se
|
||||
version="1.5+"
|
||||
href="http://java.sun.com/products/autodl/j2se" />
|
||||
<!-- The following href must be the absolute path. -->
|
||||
<jar
|
||||
href="evercookie.jar"
|
||||
main="true" />
|
||||
</resources>
|
||||
<applet-desc
|
||||
name="Evercookie"
|
||||
main-class="evercookie.EvercookieApplet"
|
||||
width="1"
|
||||
height="1">
|
||||
</applet-desc>
|
||||
</jnlp>
|
BIN
web/evercookie/assets/evercookie.swf
Normal file
BIN
web/evercookie/assets/evercookie.swf
Normal file
Binary file not shown.
BIN
web/evercookie/assets/evercookie.xap
Normal file
BIN
web/evercookie/assets/evercookie.xap
Normal file
Binary file not shown.
43
web/evercookie/assets/evercookie_sl/evercookie.sln
Normal file
43
web/evercookie/assets/evercookie_sl/evercookie.sln
Normal file
|
@ -0,0 +1,43 @@
|
|||
<<<<<<< HEAD
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Web Developer Express 2010
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "evercookie", "evercookie\evercookie.csproj", "{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
=======
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Web Developer Express 2010
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "evercookie", "evercookie\evercookie.csproj", "{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
BIN
web/evercookie/assets/evercookie_sl/evercookie.suo
Normal file
BIN
web/evercookie/assets/evercookie_sl/evercookie.suo
Normal file
Binary file not shown.
19
web/evercookie/assets/evercookie_sl/evercookie/App.xaml
Normal file
19
web/evercookie/assets/evercookie_sl/evercookie/App.xaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
<<<<<<< HEAD
|
||||
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
x:Class="evercookie.App"
|
||||
>
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
=======
|
||||
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
x:Class="evercookie.App"
|
||||
>
|
||||
<Application.Resources>
|
||||
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
167
web/evercookie/assets/evercookie_sl/evercookie/App.xaml.cs
Normal file
167
web/evercookie/assets/evercookie_sl/evercookie/App.xaml.cs
Normal file
|
@ -0,0 +1,167 @@
|
|||
<<<<<<< HEAD
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.IsolatedStorage;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows;
|
||||
using System.Windows.Browser;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace evercookie
|
||||
{
|
||||
public partial class App : Application
|
||||
{
|
||||
public App()
|
||||
{
|
||||
this.Startup += this.Application_Startup;
|
||||
this.Exit += this.Application_Exit;
|
||||
this.UnhandledException += this.Application_UnhandledException;
|
||||
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Application_Startup(object sender, StartupEventArgs e)
|
||||
{
|
||||
MainPage scriptableControl = new MainPage();
|
||||
this.RootVisual = scriptableControl;
|
||||
HtmlPage.RegisterScriptableObject("App", scriptableControl);
|
||||
|
||||
MainPage.output.Text = "To save: " + e.InitParams.Count.ToString() + " values\n";
|
||||
if (e.InitParams != null)
|
||||
{
|
||||
foreach (var item in e.InitParams)
|
||||
{
|
||||
this.Resources.Add(item.Key, item.Value);
|
||||
MainPage.save(item.Key,item.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void Application_Exit(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
|
||||
{
|
||||
// If the app is running outside of the debugger then report the exception using
|
||||
// the browser's exception mechanism. On IE this will display it a yellow alert
|
||||
// icon in the status bar and Firefox will display a script error.
|
||||
if (!System.Diagnostics.Debugger.IsAttached)
|
||||
{
|
||||
|
||||
// NOTE: This will allow the application to continue running after an exception has been thrown
|
||||
// but not handled.
|
||||
// For production applications this error handling should be replaced with something that will
|
||||
// report the error to the website and stop the application.
|
||||
e.Handled = true;
|
||||
Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });
|
||||
}
|
||||
}
|
||||
|
||||
private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
|
||||
errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
|
||||
|
||||
System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");");
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
=======
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.IsolatedStorage;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows;
|
||||
using System.Windows.Browser;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace evercookie
|
||||
{
|
||||
public partial class App : Application
|
||||
{
|
||||
public App()
|
||||
{
|
||||
this.Startup += this.Application_Startup;
|
||||
this.Exit += this.Application_Exit;
|
||||
this.UnhandledException += this.Application_UnhandledException;
|
||||
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Application_Startup(object sender, StartupEventArgs e)
|
||||
{
|
||||
MainPage scriptableControl = new MainPage();
|
||||
this.RootVisual = scriptableControl;
|
||||
HtmlPage.RegisterScriptableObject("App", scriptableControl);
|
||||
|
||||
MainPage.output.Text = "To save: " + e.InitParams.Count.ToString() + " values\n";
|
||||
if (e.InitParams != null)
|
||||
{
|
||||
foreach (var item in e.InitParams)
|
||||
{
|
||||
this.Resources.Add(item.Key, item.Value);
|
||||
MainPage.save(item.Key,item.Value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void Application_Exit(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
|
||||
{
|
||||
// If the app is running outside of the debugger then report the exception using
|
||||
// the browser's exception mechanism. On IE this will display it a yellow alert
|
||||
// icon in the status bar and Firefox will display a script error.
|
||||
if (!System.Diagnostics.Debugger.IsAttached)
|
||||
{
|
||||
|
||||
// NOTE: This will allow the application to continue running after an exception has been thrown
|
||||
// but not handled.
|
||||
// For production applications this error handling should be replaced with something that will
|
||||
// report the error to the website and stop the application.
|
||||
e.Handled = true;
|
||||
Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });
|
||||
}
|
||||
}
|
||||
|
||||
private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
|
||||
errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
|
||||
|
||||
System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");");
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
|
@ -0,0 +1,12 @@
|
|||
<<<<<<< HEAD
|
||||
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="evercookie" EntryPointType="evercookie.App" RuntimeVersion="4.0.50401.0">
|
||||
<Deployment.Parts>
|
||||
<AssemblyPart x:Name="evercookie" Source="evercookie.dll" />
|
||||
</Deployment.Parts>
|
||||
=======
|
||||
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="evercookie" EntryPointType="evercookie.App" RuntimeVersion="4.0.50401.0">
|
||||
<Deployment.Parts>
|
||||
<AssemblyPart x:Name="evercookie" Source="evercookie.dll" />
|
||||
</Deployment.Parts>
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
||||
</Deployment>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,149 @@
|
|||
<<<<<<< HEAD
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<!-- saved from url=(0014)about:internet -->
|
||||
<head>
|
||||
<title>evercookie</title>
|
||||
<style type="text/css">
|
||||
html, body {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
#silverlightControlHost {
|
||||
height: 100%;
|
||||
text-align:center;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
function onSilverlightError(sender, args) {
|
||||
var appSource = "";
|
||||
if (sender != null && sender != 0) {
|
||||
appSource = sender.getHost().Source;
|
||||
}
|
||||
|
||||
var errorType = args.ErrorType;
|
||||
var iErrorCode = args.ErrorCode;
|
||||
|
||||
if (errorType == "ImageError" || errorType == "MediaError") {
|
||||
return;
|
||||
}
|
||||
|
||||
var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ;
|
||||
|
||||
errMsg += "Code: "+ iErrorCode + " \n";
|
||||
errMsg += "Category: " + errorType + " \n";
|
||||
errMsg += "Message: " + args.ErrorMessage + " \n";
|
||||
|
||||
if (errorType == "ParserError") {
|
||||
errMsg += "File: " + args.xamlFile + " \n";
|
||||
errMsg += "Line: " + args.lineNumber + " \n";
|
||||
errMsg += "Position: " + args.charPosition + " \n";
|
||||
}
|
||||
else if (errorType == "RuntimeError") {
|
||||
if (args.lineNumber != 0) {
|
||||
errMsg += "Line: " + args.lineNumber + " \n";
|
||||
errMsg += "Position: " + args.charPosition + " \n";
|
||||
}
|
||||
errMsg += "MethodName: " + args.methodName + " \n";
|
||||
}
|
||||
|
||||
throw new Error(errMsg);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server" style="height:100%">
|
||||
<div id="silverlightControlHost">
|
||||
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
|
||||
<param name="source" value="evercookie.xap"/>
|
||||
<param name="onError" value="onSilverlightError" />
|
||||
<param name="background" value="white" />
|
||||
<param name="minRuntimeVersion" value="4.0.50401.0" />
|
||||
<param name="autoUpgrade" value="true" />
|
||||
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration:none">
|
||||
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
|
||||
</a>
|
||||
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
=======
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<!-- saved from url=(0014)about:internet -->
|
||||
<head>
|
||||
<title>evercookie</title>
|
||||
<style type="text/css">
|
||||
html, body {
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
#silverlightControlHost {
|
||||
height: 100%;
|
||||
text-align:center;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
function onSilverlightError(sender, args) {
|
||||
var appSource = "";
|
||||
if (sender != null && sender != 0) {
|
||||
appSource = sender.getHost().Source;
|
||||
}
|
||||
|
||||
var errorType = args.ErrorType;
|
||||
var iErrorCode = args.ErrorCode;
|
||||
|
||||
if (errorType == "ImageError" || errorType == "MediaError") {
|
||||
return;
|
||||
}
|
||||
|
||||
var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ;
|
||||
|
||||
errMsg += "Code: "+ iErrorCode + " \n";
|
||||
errMsg += "Category: " + errorType + " \n";
|
||||
errMsg += "Message: " + args.ErrorMessage + " \n";
|
||||
|
||||
if (errorType == "ParserError") {
|
||||
errMsg += "File: " + args.xamlFile + " \n";
|
||||
errMsg += "Line: " + args.lineNumber + " \n";
|
||||
errMsg += "Position: " + args.charPosition + " \n";
|
||||
}
|
||||
else if (errorType == "RuntimeError") {
|
||||
if (args.lineNumber != 0) {
|
||||
errMsg += "Line: " + args.lineNumber + " \n";
|
||||
errMsg += "Position: " + args.charPosition + " \n";
|
||||
}
|
||||
errMsg += "MethodName: " + args.methodName + " \n";
|
||||
}
|
||||
|
||||
throw new Error(errMsg);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server" style="height:100%">
|
||||
<div id="silverlightControlHost">
|
||||
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
|
||||
<param name="source" value="evercookie.xap"/>
|
||||
<param name="onError" value="onSilverlightError" />
|
||||
<param name="background" value="white" />
|
||||
<param name="minRuntimeVersion" value="4.0.50401.0" />
|
||||
<param name="autoUpgrade" value="true" />
|
||||
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration:none">
|
||||
<img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
|
||||
</a>
|
||||
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
25
web/evercookie/assets/evercookie_sl/evercookie/MainPage.xaml
Normal file
25
web/evercookie/assets/evercookie_sl/evercookie/MainPage.xaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
<<<<<<< HEAD
|
||||
<UserControl x:Class="evercookie.MainPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="200" d:DesignWidth="200">
|
||||
<Canvas>
|
||||
<TextBox x:Name="txtOut" Grid.Row="6" Grid.Column="1" TextWrapping="Wrap" Width="200" Height="200" ToolTipService.ToolTip="Enter Name" HorizontalAlignment="Left" VerticalAlignment="Top" TabIndex="1" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible" Text="Loading..."></TextBox>
|
||||
</Canvas>
|
||||
</UserControl>
|
||||
=======
|
||||
<UserControl x:Class="evercookie.MainPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="200" d:DesignWidth="200">
|
||||
<Canvas>
|
||||
<TextBox x:Name="txtOut" Grid.Row="6" Grid.Column="1" TextWrapping="Wrap" Width="200" Height="200" ToolTipService.ToolTip="Enter Name" HorizontalAlignment="Left" VerticalAlignment="Top" TabIndex="1" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible" Text="Loading..."></TextBox>
|
||||
</Canvas>
|
||||
</UserControl>
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
137
web/evercookie/assets/evercookie_sl/evercookie/MainPage.xaml.cs
Normal file
137
web/evercookie/assets/evercookie_sl/evercookie/MainPage.xaml.cs
Normal file
|
@ -0,0 +1,137 @@
|
|||
<<<<<<< HEAD
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.IsolatedStorage;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows;
|
||||
using System.Windows.Browser;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace evercookie
|
||||
{
|
||||
public partial class MainPage : UserControl
|
||||
{
|
||||
private static string isoFile = "evercookie_isoData.txt";
|
||||
public static TextBox output;
|
||||
public MainPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
output = txtOut;
|
||||
}
|
||||
|
||||
[ScriptableMember()]
|
||||
public string getIsolatedStorage()
|
||||
{
|
||||
output.Text += "Loading isoData...\n";
|
||||
string data = String.Empty;
|
||||
using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication())
|
||||
{
|
||||
using (IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(isoFile, FileMode.Open, isf))
|
||||
{
|
||||
using (StreamReader sr = new StreamReader(isfs))
|
||||
{
|
||||
string lineOfData = String.Empty;
|
||||
while ((lineOfData = sr.ReadLine()) != null)
|
||||
{
|
||||
data += lineOfData;
|
||||
output.Text += "Loading: " + lineOfData + "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
public static void save(string name, string value)
|
||||
{
|
||||
output.Text += "Saving: " + name + "=" + value + "\n";
|
||||
using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication())
|
||||
{
|
||||
using (IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(isoFile, FileMode.Create, isf))
|
||||
{
|
||||
using (StreamWriter sw = new StreamWriter(isfs))
|
||||
{
|
||||
sw.Write(name+"="+value);
|
||||
sw.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
=======
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.IO.IsolatedStorage;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Windows;
|
||||
using System.Windows.Browser;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Shapes;
|
||||
|
||||
namespace evercookie
|
||||
{
|
||||
public partial class MainPage : UserControl
|
||||
{
|
||||
private static string isoFile = "evercookie_isoData.txt";
|
||||
public static TextBox output;
|
||||
public MainPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
output = txtOut;
|
||||
}
|
||||
|
||||
[ScriptableMember()]
|
||||
public string getIsolatedStorage()
|
||||
{
|
||||
output.Text += "Loading isoData...\n";
|
||||
string data = String.Empty;
|
||||
using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication())
|
||||
{
|
||||
using (IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(isoFile, FileMode.Open, isf))
|
||||
{
|
||||
using (StreamReader sr = new StreamReader(isfs))
|
||||
{
|
||||
string lineOfData = String.Empty;
|
||||
while ((lineOfData = sr.ReadLine()) != null)
|
||||
{
|
||||
data += lineOfData;
|
||||
output.Text += "Loading: " + lineOfData + "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return data;
|
||||
}
|
||||
|
||||
public static void save(string name, string value)
|
||||
{
|
||||
output.Text += "Saving: " + name + "=" + value + "\n";
|
||||
using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication())
|
||||
{
|
||||
using (IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(isoFile, FileMode.Create, isf))
|
||||
{
|
||||
using (StreamWriter sw = new StreamWriter(isfs))
|
||||
{
|
||||
sw.Write(name+"="+value);
|
||||
sw.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
|
@ -0,0 +1,15 @@
|
|||
<<<<<<< HEAD
|
||||
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
>
|
||||
<Deployment.Parts>
|
||||
</Deployment.Parts>
|
||||
</Deployment>
|
||||
=======
|
||||
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
>
|
||||
<Deployment.Parts>
|
||||
</Deployment.Parts>
|
||||
</Deployment>
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
|
@ -0,0 +1,73 @@
|
|||
<<<<<<< HEAD
|
||||
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("evercookie")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("evercookie")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
|
||||
[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("2677569e-14bc-4ec6-b4b1-3c7de7b21afd")]
|
||||
|
||||
// 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")]
|
||||
=======
|
||||
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("evercookie")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Microsoft")]
|
||||
[assembly: AssemblyProduct("evercookie")]
|
||||
[assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
|
||||
[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("2677569e-14bc-4ec6-b4b1-3c7de7b21afd")]
|
||||
|
||||
// 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")]
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
224
web/evercookie/assets/evercookie_sl/evercookie/evercookie.csproj
Normal file
224
web/evercookie/assets/evercookie_sl/evercookie/evercookie.csproj
Normal file
|
@ -0,0 +1,224 @@
|
|||
<<<<<<< HEAD
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}</ProjectGuid>
|
||||
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>evercookie</RootNamespace>
|
||||
<AssemblyName>evercookie</AssemblyName>
|
||||
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
|
||||
<SilverlightApplication>true</SilverlightApplication>
|
||||
<SupportedCultures>
|
||||
</SupportedCultures>
|
||||
<XapOutputs>true</XapOutputs>
|
||||
<GenerateSilverlightManifest>true</GenerateSilverlightManifest>
|
||||
<XapFilename>evercookie.xap</XapFilename>
|
||||
<SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
|
||||
<SilverlightAppEntry>evercookie.App</SilverlightAppEntry>
|
||||
<TestPageFileName>evercookieTestPage.html</TestPageFileName>
|
||||
<CreateTestPage>true</CreateTestPage>
|
||||
<ValidateXaml>true</ValidateXaml>
|
||||
<EnableOutOfBrowser>false</EnableOutOfBrowser>
|
||||
<OutOfBrowserSettingsFile>Properties\OutOfBrowserSettings.xml</OutOfBrowserSettingsFile>
|
||||
<UsePlatformExtensions>false</UsePlatformExtensions>
|
||||
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
|
||||
<LinkedServerProject>
|
||||
</LinkedServerProject>
|
||||
</PropertyGroup>
|
||||
<!-- This property group is only here to support building this project using the
|
||||
MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs
|
||||
to set the TargetFrameworkVersion to v3.5 -->
|
||||
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>Bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<NoConfig>true</NoConfig>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>Bin\Release</OutputPath>
|
||||
<DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<NoConfig>true</NoConfig>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib" />
|
||||
<Reference Include="System.Windows" />
|
||||
<Reference Include="system" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Windows.Browser" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MainPage.xaml.cs">
|
||||
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</ApplicationDefinition>
|
||||
<Page Include="MainPage.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Properties\AppManifest.xml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
|
||||
<SilverlightProjectProperties />
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>copy "$(TargetDir)$(TargetName).xap" "Y:\My Dropbox\www\evercookie\evercookie.xap"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
=======
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>8.0.50727</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}</ProjectGuid>
|
||||
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>evercookie</RootNamespace>
|
||||
<AssemblyName>evercookie</AssemblyName>
|
||||
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
|
||||
<SilverlightApplication>true</SilverlightApplication>
|
||||
<SupportedCultures>
|
||||
</SupportedCultures>
|
||||
<XapOutputs>true</XapOutputs>
|
||||
<GenerateSilverlightManifest>true</GenerateSilverlightManifest>
|
||||
<XapFilename>evercookie.xap</XapFilename>
|
||||
<SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
|
||||
<SilverlightAppEntry>evercookie.App</SilverlightAppEntry>
|
||||
<TestPageFileName>evercookieTestPage.html</TestPageFileName>
|
||||
<CreateTestPage>true</CreateTestPage>
|
||||
<ValidateXaml>true</ValidateXaml>
|
||||
<EnableOutOfBrowser>false</EnableOutOfBrowser>
|
||||
<OutOfBrowserSettingsFile>Properties\OutOfBrowserSettings.xml</OutOfBrowserSettingsFile>
|
||||
<UsePlatformExtensions>false</UsePlatformExtensions>
|
||||
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
|
||||
<LinkedServerProject>
|
||||
</LinkedServerProject>
|
||||
</PropertyGroup>
|
||||
<!-- This property group is only here to support building this project using the
|
||||
MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs
|
||||
to set the TargetFrameworkVersion to v3.5 -->
|
||||
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>Bin\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<NoConfig>true</NoConfig>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>Bin\Release</OutputPath>
|
||||
<DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
<NoConfig>true</NoConfig>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="mscorlib" />
|
||||
<Reference Include="System.Windows" />
|
||||
<Reference Include="system" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Net" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Windows.Browser" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="App.xaml.cs">
|
||||
<DependentUpon>App.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="MainPage.xaml.cs">
|
||||
<DependentUpon>MainPage.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ApplicationDefinition Include="App.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</ApplicationDefinition>
|
||||
<Page Include="MainPage.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</Page>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Properties\AppManifest.xml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
|
||||
<SilverlightProjectProperties />
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>copy "$(TargetDir)$(TargetName).xap" "Y:\My Dropbox\www\evercookie\evercookie.xap"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
||||
</Project>
|
|
@ -0,0 +1,60 @@
|
|||
<<<<<<< HEAD
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
|
||||
<SilverlightProjectProperties>
|
||||
<StartPageUrl>
|
||||
</StartPageUrl>
|
||||
<StartAction>DynamicPage</StartAction>
|
||||
<AspNetDebugging>True</AspNetDebugging>
|
||||
<NativeDebugging>False</NativeDebugging>
|
||||
<SQLDebugging>False</SQLDebugging>
|
||||
<ExternalProgram>
|
||||
</ExternalProgram>
|
||||
<StartExternalURL>
|
||||
</StartExternalURL>
|
||||
<StartCmdLineArguments>
|
||||
</StartCmdLineArguments>
|
||||
<StartWorkingDirectory>
|
||||
</StartWorkingDirectory>
|
||||
<ShowWebRefOnDebugPrompt>True</ShowWebRefOnDebugPrompt>
|
||||
<OutOfBrowserProjectToDebug>
|
||||
</OutOfBrowserProjectToDebug>
|
||||
<ShowRiaSvcsOnDebugPrompt>True</ShowRiaSvcsOnDebugPrompt>
|
||||
</SilverlightProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
=======
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
|
||||
<SilverlightProjectProperties>
|
||||
<StartPageUrl>
|
||||
</StartPageUrl>
|
||||
<StartAction>DynamicPage</StartAction>
|
||||
<AspNetDebugging>True</AspNetDebugging>
|
||||
<NativeDebugging>False</NativeDebugging>
|
||||
<SQLDebugging>False</SQLDebugging>
|
||||
<ExternalProgram>
|
||||
</ExternalProgram>
|
||||
<StartExternalURL>
|
||||
</StartExternalURL>
|
||||
<StartCmdLineArguments>
|
||||
</StartCmdLineArguments>
|
||||
<StartWorkingDirectory>
|
||||
</StartWorkingDirectory>
|
||||
<ShowWebRefOnDebugPrompt>True</ShowWebRefOnDebugPrompt>
|
||||
<OutOfBrowserProjectToDebug>
|
||||
</OutOfBrowserProjectToDebug>
|
||||
<ShowRiaSvcsOnDebugPrompt>True</ShowRiaSvcsOnDebugPrompt>
|
||||
</SilverlightProjectProperties>
|
||||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
||||
</Project>
|
|
@ -0,0 +1,109 @@
|
|||
<<<<<<< HEAD
|
||||
#pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D9A8BE4B3DC1C91D368CA6B44F124B38"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Automation.Peers;
|
||||
using System.Windows.Automation.Provider;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Interop;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Resources;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
|
||||
|
||||
namespace evercookie {
|
||||
|
||||
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/App.xaml", System.UriKind.Relative));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
=======
|
||||
#pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D9A8BE4B3DC1C91D368CA6B44F124B38"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Automation.Peers;
|
||||
using System.Windows.Automation.Provider;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Interop;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Resources;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
|
||||
|
||||
namespace evercookie {
|
||||
|
||||
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/App.xaml", System.UriKind.Relative));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
|
@ -0,0 +1,109 @@
|
|||
<<<<<<< HEAD
|
||||
#pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D9A8BE4B3DC1C91D368CA6B44F124B38"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Automation.Peers;
|
||||
using System.Windows.Automation.Provider;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Interop;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Resources;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
|
||||
|
||||
namespace evercookie {
|
||||
|
||||
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/App.xaml", System.UriKind.Relative));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
=======
|
||||
#pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D9A8BE4B3DC1C91D368CA6B44F124B38"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Automation.Peers;
|
||||
using System.Windows.Automation.Provider;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Interop;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Resources;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
|
||||
|
||||
namespace evercookie {
|
||||
|
||||
|
||||
public partial class App : System.Windows.Application {
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/App.xaml", System.UriKind.Relative));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,115 @@
|
|||
<<<<<<< HEAD
|
||||
#pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "EF5CB8E67DD7E04FA002328FDB17DC85"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Automation.Peers;
|
||||
using System.Windows.Automation.Provider;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Interop;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Resources;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
|
||||
|
||||
namespace evercookie {
|
||||
|
||||
|
||||
public partial class MainPage : System.Windows.Controls.UserControl {
|
||||
|
||||
internal System.Windows.Controls.TextBox txtOut;
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/MainPage.xaml", System.UriKind.Relative));
|
||||
this.txtOut = ((System.Windows.Controls.TextBox)(this.FindName("txtOut")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
=======
|
||||
#pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "EF5CB8E67DD7E04FA002328FDB17DC85"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Automation.Peers;
|
||||
using System.Windows.Automation.Provider;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Interop;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Resources;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
|
||||
|
||||
namespace evercookie {
|
||||
|
||||
|
||||
public partial class MainPage : System.Windows.Controls.UserControl {
|
||||
|
||||
internal System.Windows.Controls.TextBox txtOut;
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/MainPage.xaml", System.UriKind.Relative));
|
||||
this.txtOut = ((System.Windows.Controls.TextBox)(this.FindName("txtOut")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
|
@ -0,0 +1,115 @@
|
|||
<<<<<<< HEAD
|
||||
#pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "EF5CB8E67DD7E04FA002328FDB17DC85"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Automation.Peers;
|
||||
using System.Windows.Automation.Provider;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Interop;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Resources;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
|
||||
|
||||
namespace evercookie {
|
||||
|
||||
|
||||
public partial class MainPage : System.Windows.Controls.UserControl {
|
||||
|
||||
internal System.Windows.Controls.TextBox txtOut;
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/MainPage.xaml", System.UriKind.Relative));
|
||||
this.txtOut = ((System.Windows.Controls.TextBox)(this.FindName("txtOut")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
=======
|
||||
#pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "EF5CB8E67DD7E04FA002328FDB17DC85"
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.1
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Windows;
|
||||
using System.Windows.Automation;
|
||||
using System.Windows.Automation.Peers;
|
||||
using System.Windows.Automation.Provider;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Controls.Primitives;
|
||||
using System.Windows.Data;
|
||||
using System.Windows.Documents;
|
||||
using System.Windows.Ink;
|
||||
using System.Windows.Input;
|
||||
using System.Windows.Interop;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows.Media;
|
||||
using System.Windows.Media.Animation;
|
||||
using System.Windows.Media.Imaging;
|
||||
using System.Windows.Resources;
|
||||
using System.Windows.Shapes;
|
||||
using System.Windows.Threading;
|
||||
|
||||
|
||||
namespace evercookie {
|
||||
|
||||
|
||||
public partial class MainPage : System.Windows.Controls.UserControl {
|
||||
|
||||
internal System.Windows.Controls.TextBox txtOut;
|
||||
|
||||
private bool _contentLoaded;
|
||||
|
||||
/// <summary>
|
||||
/// InitializeComponent
|
||||
/// </summary>
|
||||
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
public void InitializeComponent() {
|
||||
if (_contentLoaded) {
|
||||
return;
|
||||
}
|
||||
_contentLoaded = true;
|
||||
System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/MainPage.xaml", System.UriKind.Relative));
|
||||
this.txtOut = ((System.Windows.Controls.TextBox)(this.FindName("txtOut")));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
|
@ -0,0 +1,10 @@
|
|||
<<<<<<< HEAD
|
||||
<xapCache source="C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookie.xap" wasSigned="False" certificateThumbprint="" TimeStampUrl="" lastWriteTime="10/10/2010 1:17:46 PM">
|
||||
<file source="C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\evercookie.dll" archivePath="evercookie.dll" lastWriteTime="10/10/2010 1:17:46 PM" />
|
||||
<file source="C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\AppManifest.xaml" archivePath="AppManifest.xaml" lastWriteTime="10/10/2010 11:20:23 AM" />
|
||||
=======
|
||||
<xapCache source="C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookie.xap" wasSigned="False" certificateThumbprint="" TimeStampUrl="" lastWriteTime="10/10/2010 1:17:46 PM">
|
||||
<file source="C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\evercookie.dll" archivePath="evercookie.dll" lastWriteTime="10/10/2010 1:17:46 PM" />
|
||||
<file source="C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\AppManifest.xaml" archivePath="AppManifest.xaml" lastWriteTime="10/10/2010 11:20:23 AM" />
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
||||
</xapCache>
|
|
@ -0,0 +1,27 @@
|
|||
<<<<<<< HEAD
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookie.dll
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookie.pdb
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\AppManifest.xaml
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookie.xap
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookieTestPage.html
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\ResolveAssemblyReference.cache
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\App.g.i.cs
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\MainPage.g.i.cs
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\evercookie.g.resources
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\evercookie.dll
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\evercookie.pdb
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\XapCacheFile.xml
|
||||
=======
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookie.dll
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookie.pdb
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\AppManifest.xaml
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookie.xap
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookieTestPage.html
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\ResolveAssemblyReference.cache
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\App.g.i.cs
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\MainPage.g.i.cs
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\evercookie.g.resources
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\evercookie.dll
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\evercookie.pdb
|
||||
C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\XapCacheFile.xml
|
||||
>>>>>>> eb2b5f487357f4715e1960350c1c44eb44992cae
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
14
web/evercookie/php/_cookie_name.php
Normal file
14
web/evercookie/php/_cookie_name.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Gets evercookie's cookie name for PHP's scripts to get value froms
|
||||
*
|
||||
* @param string $file_name Usually it's a file name like 'evercookie_blabla.php'
|
||||
* @return string evercookie_blabla
|
||||
*/
|
||||
function evercookie_get_cookie_name($file_name) {
|
||||
if (!empty($_GET['cookie'])) {
|
||||
return $_GET['cookie'];
|
||||
}
|
||||
return basename($file_name, '.php');
|
||||
}
|
25
web/evercookie/php/evercookie_cache.php
Normal file
25
web/evercookie/php/evercookie_cache.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
/* evercookie, by samy kamkar, 09/20/2010
|
||||
* http://samy.pl : code@samy.pl
|
||||
*
|
||||
* This is the server-side simple caching mechanism.
|
||||
*
|
||||
* -samy kamkar
|
||||
*/
|
||||
|
||||
// we get cookie name from current file name so remember about it when rename of this file will be required
|
||||
include dirname(__FILE__) . DIRECTORY_SEPARATOR . '_cookie_name.php';
|
||||
$cookie_name = evercookie_get_cookie_name(__FILE__);
|
||||
|
||||
// we don't have a cookie, user probably deleted it, force cache
|
||||
if (empty($_COOKIE[$cookie_name])) {
|
||||
header('HTTP/1.1 304 Not Modified');
|
||||
exit;
|
||||
}
|
||||
|
||||
header('Content-Type: text/html');
|
||||
header('Last-Modified: Wed, 30 Jun 2010 21:36:48 GMT');
|
||||
header('Expires: Tue, 31 Dec 2030 23:30:45 GMT');
|
||||
header('Cache-Control: private, max-age=630720000');
|
||||
|
||||
echo $_COOKIE[$cookie_name];
|
59
web/evercookie/php/evercookie_etag.php
Normal file
59
web/evercookie/php/evercookie_etag.php
Normal file
|
@ -0,0 +1,59 @@
|
|||
<?php
|
||||
/* evercookie, by samy kamkar, 09/20/2010
|
||||
* http://samy.pl : code@samy.pl
|
||||
*
|
||||
* This is the server-side ETag software which tags a user by
|
||||
* using the Etag HTTP header, as well as If-None-Match to check
|
||||
* if the user has been tagged before.
|
||||
*
|
||||
* -samy kamkar
|
||||
*/
|
||||
|
||||
// we get cookie name from current file name so remember about it when rename of this file will be required
|
||||
include dirname(__FILE__) . DIRECTORY_SEPARATOR . '_cookie_name.php';
|
||||
$cookie_name = evercookie_get_cookie_name(__FILE__);
|
||||
|
||||
// we don't have a cookie, so we're not setting it
|
||||
if (empty($_COOKIE[$cookie_name])) {
|
||||
// read our etag and pass back
|
||||
if (!function_exists('apache_request_headers')) {
|
||||
function apache_request_headers() {
|
||||
// Source: http://www.php.net/manual/en/function.apache-request-headers.php#70810
|
||||
$arh = array();
|
||||
$rx_http = '/\AHTTP_/';
|
||||
foreach ($_SERVER as $key => $val) {
|
||||
if (preg_match($rx_http, $key)) {
|
||||
$arh_key = preg_replace($rx_http, '', $key);
|
||||
$rx_matches = array();
|
||||
// do some nasty string manipulations to restore the original letter case
|
||||
// this should work in most cases
|
||||
$rx_matches = explode('_', $arh_key);
|
||||
if (count($rx_matches) > 0 and strlen($arh_key) > 2) {
|
||||
foreach ($rx_matches as $ak_key => $ak_val) {
|
||||
$rx_matches[$ak_key] = ucfirst(strtolower($ak_val));
|
||||
}
|
||||
$arh_key = implode('-', $rx_matches);
|
||||
}
|
||||
$arh[$arh_key] = $val;
|
||||
}
|
||||
}
|
||||
return ($arh);
|
||||
}
|
||||
}
|
||||
|
||||
// Headers might have different letter case depending on the web server.
|
||||
// So, change all headers to uppercase and compare it.
|
||||
$headers = array_change_key_case(apache_request_headers(), CASE_UPPER);
|
||||
if(isset($headers['IF-NONE-MATCH'])) {
|
||||
// extracting value from ETag presented format (which may be prepended by Weak validator modifier)
|
||||
$etag_value = preg_replace('|^(W/)?"(.+)"$|', '$2', $headers['IF-NONE-MATCH']);
|
||||
header('HTTP/1.1 304 Not Modified');
|
||||
header('ETag: "' . $etag_value . '"');
|
||||
echo $etag_value;
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
// set our etag
|
||||
header('ETag: "' . $_COOKIE[$cookie_name] . '"');
|
||||
echo $_COOKIE[$cookie_name];
|
59
web/evercookie/php/evercookie_png.php
Normal file
59
web/evercookie/php/evercookie_png.php
Normal file
|
@ -0,0 +1,59 @@
|
|||
<?php
|
||||
/* evercookie, by samy kamkar, 09/20/2010
|
||||
* http://samy.pl : code@samy.pl
|
||||
*
|
||||
* This is the server-side variable PNG generator for evercookie.
|
||||
* If an HTTP cookie is passed, the cookie data gets converted into
|
||||
* RGB-values in a PNG image. The PNG image is printed out with a
|
||||
* 20-year cache expiration date.
|
||||
*
|
||||
* If for any reason this file is accessed again WITHOUT the cookie,
|
||||
* as in the user deleted their cookie, the code returns back with
|
||||
* a forced 'Not Modified' meaning the browser should look at its
|
||||
* cache for the image.
|
||||
*
|
||||
* The client-side code then places the cached image in a canvas and
|
||||
* reads it in pixel by pixel, converting the PNG back into a cookie.
|
||||
*
|
||||
* -samy kamkar
|
||||
*/
|
||||
|
||||
// we get cookie name from current file name so remember about it when rename of this file will be required
|
||||
include dirname(__FILE__) . DIRECTORY_SEPARATOR . '_cookie_name.php';
|
||||
$cookie_name = evercookie_get_cookie_name(__FILE__);
|
||||
|
||||
// we don't have a cookie, user probably deleted it, force cache
|
||||
if (empty($_COOKIE[$cookie_name])) {
|
||||
if(!headers_sent()) {
|
||||
header('HTTP/1.1 304 Not Modified');
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
// width of 200 means 600 bytes (3 RGB bytes per pixel)
|
||||
$x = 200;
|
||||
$y = 1;
|
||||
|
||||
$gd = imagecreatetruecolor($x, $y);
|
||||
|
||||
$data_arr = str_split($_COOKIE[$cookie_name]);
|
||||
|
||||
$x = 0;
|
||||
$y = 0;
|
||||
for ($i = 0, $i_count = count($data_arr); $i < $i_count; $i += 3) {
|
||||
$red = isset($data_arr[$i]) ? ord($data_arr[$i]) : 0;
|
||||
$green = isset($data_arr[$i+1]) ? ord($data_arr[$i+1]) : 0;
|
||||
$blue = isset($data_arr[$i+2]) ? ord($data_arr[$i+2]) : 0;
|
||||
$color = imagecolorallocate($gd, $red, $green, $blue);
|
||||
imagesetpixel($gd, $x++, $y, $color);
|
||||
}
|
||||
|
||||
if(!headers_sent()) {
|
||||
header('Content-Type: image/png');
|
||||
header('Last-Modified: Wed, 30 Jun 2010 21:36:48 GMT');
|
||||
header('Expires: Tue, 31 Dec 2030 23:30:45 GMT');
|
||||
header('Cache-Control: private, max-age=630720000');
|
||||
}
|
||||
|
||||
// boom. headshot.
|
||||
imagepng($gd);
|
35
web/evercookie/php/hsts_cookie.php
Normal file
35
web/evercookie/php/hsts_cookie.php
Normal file
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
//header('Access-Control-Allow-Origin: *');
|
||||
$is_ssl = !empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443;
|
||||
|
||||
if(isset($_GET['SET'])){
|
||||
if($is_ssl){
|
||||
header('Strict-Transport-Security: max-age=31536000');
|
||||
header('Content-type: image/png');
|
||||
echo base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAgAAAAJCAIAAACAMfp5AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYSURBVBhXY/z//z8DNsAEpTHAkJJgYAAAo0sDD8axyJQAAAAASUVORK5CYII=');
|
||||
}else{
|
||||
$redirect = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
|
||||
header("Location: $redirect");
|
||||
}
|
||||
die();
|
||||
}
|
||||
|
||||
if(isset($_GET['DEL'])){
|
||||
if($is_ssl){
|
||||
header('Strict-Transport-Security: max-age=0');
|
||||
}else{
|
||||
$redirect = "https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
|
||||
header("Location: $redirect");
|
||||
}
|
||||
die();
|
||||
}
|
||||
|
||||
if($is_ssl){
|
||||
header('Content-type: image/png');
|
||||
// some white pixel
|
||||
echo base64_decode('iVBORw0KGgoAAAANSUhEUgAAAAgAAAAJCAIAAACAMfp5AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAYSURBVBhXY/z//z8DNsAEpTHAkJJgYAAAo0sDD8axyJQAAAAASUVORK5CYII=');
|
||||
die();
|
||||
}else{
|
||||
header('X-PHP-Response-Code: 404', true, 404);
|
||||
}
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue