Skip to content

Instantly share code, notes, and snippets.

@mthornto88
mthornto88 / d3stryr-3stripes.php
Created September 19, 2016 16:21
All Day I Dream About Sleeping
<html>
<head>
<meta charset="UTF-8">
<?php $debug=False; ?>
<title>d3stryr 3stripes</title>
<script>
function setCookie(cname, cvalue, exdays) {
var d = new Date();
d.setTime(d.getTime() + (exdays*24*60*60*1000));
var expires = "expires="+d.toUTCString();
@mthornto88
mthornto88 / d3stryr-3stripes-atc-cs.php
Created September 19, 2016 16:20
Helper script for d3stryr-3stripes.php
<?php
$marketsList=[];
$marketsList['AT']='de_AT';
$marketsList['AU']='en_AU';
$marketsList['BE']='fr_BE';
$marketsList['BR']='pt_BR';
$marketsList['CA']='en_CA';
$marketsList['CL']='es_CL';
$marketsList['CO']='es_CO';
$marketsList['CZ']='cz_CZ';