Skip to content

Commit 3a30c08

Browse files
author
Carlos Bonilla
committed
Initial commit
1 parent b4fb1d9 commit 3a30c08

File tree

100 files changed

+19678
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+19678
-0
lines changed

dist/.htaccess

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# 1. Enable the rule-based rewriting engine
2+
# 2. Set the directory index file
3+
# 3. Add support for APPCACHE file types
4+
#
5+
RewriteEngine On
6+
DirectoryIndex index.html
7+
AddType text/cache-manifest .appcache
8+
9+
# 1. proc/self/environ? no way!
10+
# 2. Block out any script trying to set a mosConfig value through the URL
11+
# 3. Block out any script trying to base64_encode crap to send via URL
12+
# 4. Block out any script that includes a <script> tag in URL
13+
# 5. Block out any script trying to set a PHP GLOBALS variable via URL
14+
# 6. Block out any script trying to modify a _REQUEST variable via URL
15+
# 7. Send all blocked request to homepage with 403 Forbidden error!
16+
#
17+
RewriteCond %{QUERY_STRING} proc/self/environ [OR]
18+
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
19+
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
20+
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
21+
RewriteCond %{QUERY_STRING} GLOBALS(=|[|\%[0-9A-Z]{0,2}) [OR]
22+
RewriteCond %{QUERY_STRING} _REQUEST(=|[|\%[0-9A-Z]{0,2})
23+
RewriteRule ^(.*)$ index.php [F,L]
24+
25+
# secure the htaccess file
26+
<Files .htaccess>
27+
order allow,deny
28+
deny from all
29+
</Files>
30+
31+
# multiple file types
32+
<FilesMatch ".(htaccess|htpasswd|ini|phps|fla|psd|log|sh)$">
33+
Order Allow,Deny
34+
Deny from all
35+
</FilesMatch>
36+
37+
# secure this directory by disabling script execution
38+
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
39+
Options -ExecCGI
40+
41+
# disable directory browsing
42+
Options All -Indexes

dist/apps.html

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<!DOCTYPE html>
2+
<html manifest="project.appcache" data-page="0" data-view="1">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
7+
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
8+
9+
<title>Apps | Digital Sandbox</title>
10+
11+
<!-- Branding (e.g., iOS and Android) -->
12+
<meta name="mobile-web-app-capable" content="yes">
13+
<meta name="apple-mobile-web-app-capable" content="yes">
14+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
15+
<meta name="format-detection" content="telephone=no">
16+
<meta name="theme-color" content="#db5945">
17+
<link rel="apple-touch-icon" href="frontend/img/brand/icon_152.png">
18+
<link rel="manifest" href="manifest.json">
19+
<link rel="icon" href="frontend/img/brand/icon_32.png">
20+
21+
<!-- Bootstrap with optional theme -->
22+
<link media="all" rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
23+
<link media="all" rel="stylesheet" href="bootstrap/css/bootstrap-theme.min.css">
24+
25+
<!-- Mochi theme files -->
26+
<link media="all" rel="stylesheet" href="mochi/css/style.css">
27+
<link media="all" rel="stylesheet" href="frontend/css/style.css">
28+
29+
<!--[if IE]>
30+
<link media="all" rel="stylesheet" href="frontend/css/ie.css">
31+
<![endif]-->
32+
33+
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
34+
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
35+
<!--[if lt IE 9]>
36+
<script src="mochi/js/helpers/html5shiv.min.js"></script>
37+
<script src="mochi/js/helpers/respond.min.js"></script>
38+
<![endif]-->
39+
</head>
40+
<body data-device="ipad">
41+
42+
<div id="container">
43+
44+
<div id="content">
45+
46+
<h1>Digital Sandbox Apps</h1>
47+
<hr>
48+
<p>Drop links to your HTML5-powered apps here. Format this page any way you want!</p>
49+
50+
</div>
51+
52+
</div>
53+
54+
<!-- Latest compiled and minified JavaScript -->
55+
<script src="mochi/js/jquery/jquery.min.js"></script>
56+
<script src="bootstrap/js/bootstrap.min.js"></script>
57+
<script src="mochi/js/helpers/modernizr-min.js"></script>
58+
<script src="mochi/js/helpers/underscore-min.js"></script>
59+
<script src="mochi/js/helpers/underscore.string.min.js"></script>
60+
<script src="mochi/js/mochi.js"></script>
61+
<script src="frontend/js/onload.js"></script>
62+
</body>
63+
</html>

0 commit comments

Comments
 (0)