my-simon 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. data/.document +5 -0
  2. data/.gitignore.orig +55 -0
  3. data/DOC/Launch Check List.docx +0 -0
  4. data/DOC/Launch Check List.pdf +0 -0
  5. data/Gemfile +14 -0
  6. data/Gemfile.lock +44 -0
  7. data/LICENSE.txt +20 -0
  8. data/README.md +21 -0
  9. data/README.rdoc +19 -0
  10. data/Rakefile +46 -0
  11. data/VERSION +1 -0
  12. data/build/rakefile.rb +12 -0
  13. data/config.rb +24 -0
  14. data/lib/simon.rb +0 -5
  15. data/my-simon.gemspec +141 -0
  16. data/scaffolding/simon/controller.tpl +9 -0
  17. data/scaffolding/simon/model.tpl +10 -0
  18. data/scaffolding/simon/view.tpl +5 -0
  19. data/scaffolding/standards/html_template.html +44 -0
  20. data/scaffolding/standards/html_template.php +44 -0
  21. data/scaffolding/standards/jquery_plugin_template.js +45 -0
  22. data/scaffolding/standards/js_template.js +43 -0
  23. data/simon +282 -0
  24. data/test/helper.rb +18 -0
  25. data/test/test_simon.rb +7 -0
  26. data/www/.htaccess +488 -0
  27. data/www/404.html +32 -0
  28. data/www/crossdomain.xml +25 -0
  29. data/www/favicon.ico +0 -0
  30. data/www/index.php +17 -0
  31. data/www/lib/js/homePage.js +43 -0
  32. data/www/lib/js/jquery/JQbook.js +809 -0
  33. data/www/lib/js/jquery/jquery-1.8.0.min.js +27 -0
  34. data/www/lib/js/jquery/jquery.alphanumeric.js +82 -0
  35. data/www/lib/js/jquery/jquery.cookie.js +96 -0
  36. data/www/lib/js/jquery/jquery.easing.1.3.js +207 -0
  37. data/www/lib/js/main.js +117 -0
  38. data/www/lib/js/master.js +6 -0
  39. data/www/lib/js/plugins/handlebars-1.0.rc.1.js +1920 -0
  40. data/www/lib/js/plugins/modernizr-1.7.min.js +2 -0
  41. data/www/lib/js/plugins/swfobject.js +777 -0
  42. data/www/lib/js/plugins_mod/README.txt +3 -0
  43. data/www/lib/php/app.php +53 -0
  44. data/www/lib/php/controller/index.php +10 -0
  45. data/www/lib/php/controller/regex.php +23 -0
  46. data/www/lib/php/model/Book.php +8 -0
  47. data/www/lib/php/model/Model.php +8 -0
  48. data/www/lib/php/plugins/php-activerecord/ActiveRecord.php +44 -0
  49. data/www/lib/php/plugins/php-activerecord/lib/CallBack.php +226 -0
  50. data/www/lib/php/plugins/php-activerecord/lib/Column.php +155 -0
  51. data/www/lib/php/plugins/php-activerecord/lib/Config.php +288 -0
  52. data/www/lib/php/plugins/php-activerecord/lib/Connection.php +456 -0
  53. data/www/lib/php/plugins/php-activerecord/lib/ConnectionManager.php +38 -0
  54. data/www/lib/php/plugins/php-activerecord/lib/DateTime.php +45 -0
  55. data/www/lib/php/plugins/php-activerecord/lib/Exceptions.php +137 -0
  56. data/www/lib/php/plugins/php-activerecord/lib/Expressions.php +183 -0
  57. data/www/lib/php/plugins/php-activerecord/lib/Inflector.php +115 -0
  58. data/www/lib/php/plugins/php-activerecord/lib/Model.php +1673 -0
  59. data/www/lib/php/plugins/php-activerecord/lib/Reflections.php +86 -0
  60. data/www/lib/php/plugins/php-activerecord/lib/Relationship.php +637 -0
  61. data/www/lib/php/plugins/php-activerecord/lib/SQLBuilder.php +396 -0
  62. data/www/lib/php/plugins/php-activerecord/lib/Serialization.php +302 -0
  63. data/www/lib/php/plugins/php-activerecord/lib/Singleton.php +57 -0
  64. data/www/lib/php/plugins/php-activerecord/lib/Table.php +547 -0
  65. data/www/lib/php/plugins/php-activerecord/lib/Utils.php +351 -0
  66. data/www/lib/php/plugins/php-activerecord/lib/Validations.php +833 -0
  67. data/www/lib/php/plugins/php-activerecord/lib/adapters/MysqlAdapter.php +73 -0
  68. data/www/lib/php/plugins/php-activerecord/lib/adapters/OciAdapter.php +121 -0
  69. data/www/lib/php/plugins/php-activerecord/lib/adapters/PgsqlAdapter.php +104 -0
  70. data/www/lib/php/plugins/php-activerecord/lib/adapters/SqliteAdapter.php +81 -0
  71. data/www/lib/php/system/Config.php +174 -0
  72. data/www/lib/php/system/config.routes.php +29 -0
  73. data/www/lib/php/system/router.php +220 -0
  74. data/www/lib/php/template/footer.php +59 -0
  75. data/www/lib/php/template/header.php +74 -0
  76. data/www/lib/php/view/index.php +5 -0
  77. data/www/media/images/facebook_share.jpg +0 -0
  78. data/www/robots.txt +5 -0
  79. data/www/sandbox/readme.txt +3 -0
  80. data/www/sass/javascript.scss +1 -0
  81. data/www/sass/layout.scss +128 -0
  82. data/www/sass/master.scss +4 -0
  83. data/www/sass/reset.scss +47 -0
  84. data/www/sass/typography.scss +24 -0
  85. data/www/styles/javascript.css +1 -0
  86. data/www/styles/layout.css +186 -0
  87. data/www/styles/master.css +4 -0
  88. data/www/styles/reset.css +60 -0
  89. data/www/styles/typography.css +24 -0
  90. metadata +179 -7
data/www/.htaccess ADDED
@@ -0,0 +1,488 @@
1
+ # Apache configuration file
2
+ # httpd.apache.org/docs/2.2/mod/quickreference.html
3
+
4
+ # Note .htaccess files are an overhead, this logic should be in your Apache config if possible
5
+ # httpd.apache.org/docs/2.2/howto/htaccess.html
6
+
7
+ # Techniques in here adapted from all over, including:
8
+ # Kroc Camen: camendesign.com/.htaccess
9
+ # perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
10
+ # Sample .htaccess file of CMS MODx: modxcms.com
11
+
12
+
13
+ ###
14
+ ### If you run a webserver other than apache, consider:
15
+ ### github.com/paulirish/html5-boilerplate-server-configs
16
+ ###
17
+
18
+ RewriteEngine On
19
+ RewriteCond %{REQUEST_FILENAME} !-f
20
+ RewriteCond %{REQUEST_FILENAME} !-d
21
+ RewriteRule ^(.*)$ /index.php [L,QSA]
22
+
23
+
24
+ AddType video/ogg .ogv
25
+ AddType video/mp4 .mp4
26
+ AddType video/webm .webm
27
+
28
+ # ----------------------------------------------------------------------
29
+ # Better website experience for IE users
30
+ # ----------------------------------------------------------------------
31
+
32
+ # Force the latest IE version, in various cases when it may fall back to IE7 mode
33
+ # github.com/rails/rails/commit/123eb25#commitcomment-118920
34
+ # Use ChromeFrame if it's installed for a better experience for the poor IE folk
35
+
36
+ <IfModule mod_setenvif.c>
37
+ <IfModule mod_headers.c>
38
+ BrowserMatch MSIE ie
39
+ Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
40
+ </IfModule>
41
+ </IfModule>
42
+
43
+ <IfModule mod_headers.c>
44
+ # Because X-UA-Compatible isn't sent to non-IE (to save header bytes),
45
+ # We need to inform proxies that content changes based on UA
46
+ Header append Vary User-Agent
47
+ # Cache control is set only if mod_headers is enabled, so that's unncessary to declare
48
+ </IfModule>
49
+
50
+
51
+ # ----------------------------------------------------------------------
52
+ # Cross-domain AJAX requests
53
+ # ----------------------------------------------------------------------
54
+
55
+ # Serve cross-domain ajax requests, disabled.
56
+ # enable-cors.org
57
+ # code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
58
+
59
+ # <IfModule mod_headers.c>
60
+ # Header set Access-Control-Allow-Origin "*"
61
+ # </IfModule>
62
+
63
+
64
+
65
+ # ----------------------------------------------------------------------
66
+ # Webfont access
67
+ # ----------------------------------------------------------------------
68
+
69
+ # allow access from all domains for webfonts
70
+ # alternatively you could only whitelist
71
+ # your subdomains like "sub.domain.com"
72
+
73
+ <FilesMatch "\.(ttf|otf|eot|woff|font.css)$">
74
+ <IfModule mod_headers.c>
75
+ Header set Access-Control-Allow-Origin "*"
76
+ </IfModule>
77
+ </FilesMatch>
78
+
79
+
80
+
81
+ # ----------------------------------------------------------------------
82
+ # Proper MIME type for all files
83
+ # ----------------------------------------------------------------------
84
+
85
+ # audio
86
+ AddType audio/ogg oga ogg
87
+
88
+ # video
89
+ AddType video/ogg ogv
90
+ AddType video/mp4 mp4
91
+ AddType video/webm webm
92
+
93
+ # Proper svg serving. Required for svg webfonts on iPad
94
+ # twitter.com/FontSquirrel/status/14855840545
95
+ AddType image/svg+xml svg svgz
96
+ AddEncoding gzip svgz
97
+
98
+ # webfonts
99
+ AddType application/vnd.ms-fontobject eot
100
+ AddType font/truetype ttf
101
+ AddType font/opentype otf
102
+ AddType application/x-font-woff woff
103
+
104
+ # assorted types
105
+ AddType image/x-icon ico
106
+ AddType image/webp webp
107
+ AddType text/cache-manifest appcache manifest
108
+ AddType text/x-component htc
109
+ AddType application/x-chrome-extension crx
110
+ AddType application/x-xpinstall xpi
111
+ AddType application/octet-stream safariextz
112
+
113
+
114
+
115
+ # ----------------------------------------------------------------------
116
+ # Allow concatenation from within specific js and css files
117
+ # ----------------------------------------------------------------------
118
+
119
+ # e.g. Inside of script.combined.js you could have
120
+ # <!--#include file="libs/jquery-1.5.0.min.js" -->
121
+ # <!--#include file="plugins/jquery.idletimer.js" -->
122
+ # and they would be included into this single file
123
+
124
+ # this is not in use in the boilerplate as it stands. you may
125
+ # choose to name your files in this way for this advantage
126
+ # or concatenate and minify them manually.
127
+ # Disabled by default.
128
+
129
+ # <FilesMatch "\.combined\.(js|css)$">
130
+ # Options +Includes
131
+ # SetOutputFilter INCLUDES
132
+ # </FilesMatch>
133
+
134
+
135
+
136
+ # ----------------------------------------------------------------------
137
+ # gzip compression
138
+ # ----------------------------------------------------------------------
139
+
140
+ <IfModule mod_deflate.c>
141
+
142
+
143
+ # force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
144
+ <IfModule mod_setenvif.c>
145
+ <IfModule mod_headers.c>
146
+ SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s,?\s(gzip|deflate)?|X{4,13}|~{4,13}|-{4,13})$ HAVE_Accept-Encoding
147
+ RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
148
+ </IfModule>
149
+ </IfModule>
150
+ # html, txt, css, js, json, xml, htc:
151
+ <IfModule filter_module>
152
+ FilterDeclare COMPRESS
153
+ FilterProvider COMPRESS DEFLATE resp=Content-Type /text/(html|css|javascript|plain|x(ml|-component))/
154
+ FilterProvider COMPRESS DEFLATE resp=Content-Type /application/(javascript|json|xml|x-javascript)/
155
+ FilterChain COMPRESS
156
+ FilterProtocol COMPRESS change=yes;byteranges=no
157
+ </IfModule>
158
+
159
+ <IfModule !mod_filter.c>
160
+ # Legacy versions of Apache
161
+ AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
162
+ AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
163
+ AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
164
+ </IfModule>
165
+
166
+ # webfonts and svg:
167
+ <FilesMatch "\.(ttf|otf|eot|svg)$" >
168
+ SetOutputFilter DEFLATE
169
+ </FilesMatch>
170
+ </IfModule>
171
+
172
+
173
+
174
+ # ----------------------------------------------------------------------
175
+ # Expires headers (for better cache control)
176
+ # ----------------------------------------------------------------------
177
+
178
+ # these are pretty far-future expires headers
179
+ # they assume you control versioning with cachebusting query params like
180
+ # <script src="application.js?20100608">
181
+ # additionally, consider that outdated proxies may miscache
182
+ # www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
183
+
184
+ # if you don't use filenames to version, lower the css and js to something like
185
+ # "access plus 1 week" or so
186
+
187
+ <IfModule mod_expires.c>
188
+ ExpiresActive on
189
+
190
+ # Perhaps better to whitelist expires rules? Perhaps.
191
+ ExpiresDefault "access plus 1 month"
192
+
193
+ # cache.appcache needs re-requests in FF 3.6 (thx Remy ~Introducing HTML5)
194
+ ExpiresByType text/cache-manifest "access plus 0 seconds"
195
+
196
+ # your document html
197
+ ExpiresByType text/html "access plus 0 seconds"
198
+
199
+ # data
200
+ ExpiresByType text/xml "access plus 0 seconds"
201
+ ExpiresByType application/xml "access plus 0 seconds"
202
+ ExpiresByType application/json "access plus 0 seconds"
203
+
204
+ # rss feed
205
+ ExpiresByType application/rss+xml "access plus 1 hour"
206
+
207
+ # favicon (cannot be renamed)
208
+ ExpiresByType image/x-icon "access plus 1 week"
209
+
210
+ # media: images, video, audio
211
+ ExpiresByType image/gif "access plus 1 month"
212
+ ExpiresByType image/png "access plus 1 month"
213
+ ExpiresByType image/jpg "access plus 1 month"
214
+ ExpiresByType image/jpeg "access plus 1 month"
215
+ ExpiresByType video/ogg "access plus 1 month"
216
+ ExpiresByType audio/ogg "access plus 1 month"
217
+ ExpiresByType video/mp4 "access plus 1 month"
218
+ ExpiresByType video/webm "access plus 1 month"
219
+
220
+ # htc files (css3pie)
221
+ ExpiresByType text/x-component "access plus 1 month"
222
+
223
+ # webfonts
224
+ ExpiresByType font/truetype "access plus 1 month"
225
+ ExpiresByType font/opentype "access plus 1 month"
226
+ ExpiresByType application/x-font-woff "access plus 1 month"
227
+ ExpiresByType image/svg+xml "access plus 1 month"
228
+ ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
229
+
230
+ # css and javascript
231
+ ExpiresByType text/css "access plus 2 months"
232
+ ExpiresByType application/javascript "access plus 2 months"
233
+ ExpiresByType text/javascript "access plus 2 months"
234
+
235
+ <IfModule mod_headers.c>
236
+ Header append Cache-Control "public"
237
+ </IfModule>
238
+
239
+ </IfModule>
240
+
241
+
242
+
243
+ # ----------------------------------------------------------------------
244
+ # ETag removal
245
+ # ----------------------------------------------------------------------
246
+
247
+ # Since we're sending far-future expires, we don't need ETags for
248
+ # static content.
249
+ # developer.yahoo.com/performance/rules.html#etags
250
+ FileETag None
251
+
252
+
253
+
254
+ # ----------------------------------------------------------------------
255
+ # Stop screen flicker in IE on CSS rollovers
256
+ # ----------------------------------------------------------------------
257
+
258
+ # The following directives stop screen flicker in IE on CSS rollovers - in
259
+ # combination with the "ExpiresByType" rules for images (see above). If
260
+ # needed, un-comment the following rules.
261
+
262
+ # BrowserMatch "MSIE" brokenvary=1
263
+ # BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
264
+ # BrowserMatch "Opera" !brokenvary
265
+ # SetEnvIf brokenvary 1 force-no-vary
266
+
267
+
268
+
269
+ # ----------------------------------------------------------------------
270
+ # Cookie setting from iframes
271
+ # ----------------------------------------------------------------------
272
+
273
+ # Allow cookies to be set from iframes (for IE only)
274
+ # If needed, uncomment and specify a path or regex in the Location directive
275
+
276
+ # <IfModule mod_headers.c>
277
+ # <Location />
278
+ # Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""
279
+ # </Location>
280
+ # </IfModule>
281
+
282
+
283
+
284
+ # ----------------------------------------------------------------------
285
+ # Start rewrite engine
286
+ # ----------------------------------------------------------------------
287
+
288
+ # Turning on the rewrite engine is necessary for the following rules and features.
289
+
290
+ <IfModule mod_rewrite.c>
291
+ RewriteEngine On
292
+ </IfModule>
293
+
294
+
295
+
296
+ # ----------------------------------------------------------------------
297
+ # Suppress or force the "www." at the beginning of URLs
298
+ # ----------------------------------------------------------------------
299
+
300
+ # The same content should never be available under two different URLs - especially not with and
301
+ # without "www." at the beginning, since this can cause SEO problems (duplicate content).
302
+ # That's why you should choose one of the alternatives and redirect the other one.
303
+
304
+ # By default option 1 (no "www.") is activated. Remember: Shorter URLs are sexier.
305
+ # no-www.org/faq.php?q=class_b
306
+
307
+ # If you rather want to use option 2, just comment out all option 1 lines
308
+ # and uncomment option 2.
309
+ # IMPORTANT: NEVER USE BOTH RULES AT THE SAME TIME!
310
+
311
+ # ----------------------------------------------------------------------
312
+
313
+ # Option 1:
314
+ # Rewrite "www.domain.com -> domain.com"
315
+
316
+ #<IfModule mod_rewrite.c>
317
+ # RewriteCond %{HTTPS} !=on
318
+ # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
319
+ # RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
320
+ #</IfModule>
321
+
322
+ # ----------------------------------------------------------------------
323
+
324
+ # Option 2:
325
+ # To rewrite "domain.com -> www.domain.com" uncomment the following lines.
326
+ # Be aware that the following rule might not be a good idea if you
327
+ # use "real" subdomains for certain parts of your website.
328
+
329
+ #<IfModule mod_rewrite.c>
330
+ # RewriteCond %{HTTPS} !=on
331
+ # RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
332
+ # RewriteCond %{HTTP_HOST} (.+)$ [NC]
333
+ # RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
334
+ #</IfModule>
335
+
336
+
337
+
338
+ # ----------------------------------------------------------------------
339
+ # Add/remove trailing slash to (non-file) URLs
340
+ # ----------------------------------------------------------------------
341
+
342
+ # Google treats URLs with and without trailing slashes separately.
343
+ # Forcing a trailing slash is usually preferred, but all that's really
344
+ # important is that one correctly redirects to the other.
345
+
346
+ # By default option 1 (force trailing slash) is activated.
347
+ # http://googlewebmastercentral.blogspot.com/2010/04/to-slash-or-not-to-slash.html
348
+ # http://www.alistapart.com/articles/slashforward/
349
+ # http://httpd.apache.org/docs/2.0/misc/rewriteguide.html#url Trailing Slash Problem
350
+
351
+ # ----------------------------------------------------------------------
352
+
353
+ # Option 1:
354
+ # Rewrite "domain.com/foo -> domain.com/foo/"
355
+
356
+ <IfModule mod_rewrite.c>
357
+ RewriteCond %{REQUEST_FILENAME} !-f
358
+ RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/|#(.*))$
359
+ RewriteRule ^(.*)$ /$1/ [R=301,L]
360
+ </IfModule>
361
+
362
+ # ----------------------------------------------------------------------
363
+
364
+ # Option 2:
365
+ # Rewrite "domain.com/foo/ -> domain.com/foo"
366
+
367
+ #<IfModule mod_rewrite.c>
368
+ # RewriteRule ^(.*)/$ /$1 [R=301,L]
369
+ #</IfModule>
370
+
371
+
372
+
373
+ # ----------------------------------------------------------------------
374
+ # Built-in filename-based cache busting
375
+ # ----------------------------------------------------------------------
376
+
377
+ # If you're not using the build script to manage your filename version revving,
378
+ # you might want to consider enabling this, which will route requests for
379
+ # /css/all.20110203.css to /res/all.css
380
+
381
+ # To understand why this is important and a better idea than all.css?v1231,
382
+ # read: github.com/paulirish/html5-boilerplate/wiki/Version-Control-with-Cachebusting
383
+
384
+ # Uncomment to enable.
385
+ # <IfModule mod_rewrite.c>
386
+ # RewriteCond %{REQUEST_FILENAME} !-f
387
+ # RewriteCond %{REQUEST_FILENAME} !-d
388
+ # RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]
389
+ # </IfModule>
390
+
391
+
392
+
393
+ # ----------------------------------------------------------------------
394
+ # Prevent SSL cert warnings
395
+ # ----------------------------------------------------------------------
396
+
397
+ # Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
398
+ # https://www.domain.com when your cert only allows https://secure.domain.com
399
+ # Uncomment the following lines to use this feature.
400
+
401
+ # <IfModule mod_rewrite.c>
402
+ # RewriteCond %{SERVER_PORT} !^443
403
+ # RewriteRule (.*) https://example-domain-please-change-me.com/$1 [R=301,L]
404
+ # </IfModule>
405
+
406
+
407
+
408
+ # ----------------------------------------------------------------------
409
+ # Prevent 404 errors for non-existing redirected folders
410
+ # ----------------------------------------------------------------------
411
+
412
+ # without -MultiViews, Apache will give a 404 for a rewrite if a folder of the same name does not exist
413
+ # e.g. /blog/hello : webmasterworld.com/apache/3808792.htm
414
+
415
+ Options -MultiViews
416
+
417
+
418
+
419
+ # ----------------------------------------------------------------------
420
+ # custom 404 page
421
+ # ----------------------------------------------------------------------
422
+
423
+ # You can add custom pages to handle 500 or 403 pretty easily, if you like.
424
+ ErrorDocument 404 /404.html
425
+
426
+
427
+
428
+ # ----------------------------------------------------------------------
429
+ # UTF-8 encoding
430
+ # ----------------------------------------------------------------------
431
+
432
+ # use utf-8 encoding for anything served text/plain or text/html
433
+ AddDefaultCharset utf-8
434
+
435
+ # force utf-8 for a number of file formats
436
+ AddCharset utf-8 .html .css .js .xml .json .rss
437
+
438
+
439
+
440
+ # ----------------------------------------------------------------------
441
+ # A little more security
442
+ # ----------------------------------------------------------------------
443
+
444
+
445
+ # Do we want to advertise the exact version number of Apache we're running?
446
+ # Probably not.
447
+ ## This can only be enabled if used in httpd.conf - It will not work in .htaccess
448
+ # ServerTokens Prod
449
+
450
+
451
+ # "-Indexes" will have Apache block users from browsing folders without a default document
452
+ # Usually you should leave this activated, because you shouldn't allow everybody to surf through
453
+ # every folder on your server (which includes rather private places like CMS system folders).
454
+ # Options -Indexes
455
+
456
+
457
+ # Block access to "hidden" directories whose names begin with a period. This
458
+ # includes directories used by version control systems such as Subversion or Git.
459
+ <IfModule mod_rewrite.c>
460
+ RewriteRule "(^|/)\." - [F]
461
+ </IfModule>
462
+
463
+
464
+ # If your server is not already configured as such, the following directive
465
+ # should be uncommented in order to set PHP's register_globals option to OFF.
466
+ # This closes a major security hole that is abused by most XSS (cross-site
467
+ # scripting) attacks. For more information: http://php.net/register_globals
468
+ #
469
+ # IF REGISTER_GLOBALS DIRECTIVE CAUSES 500 INTERNAL SERVER ERRORS :
470
+ #
471
+ # Your server does not allow PHP directives to be set via .htaccess. In that
472
+ # case you must make this change in your php.ini file instead. If you are
473
+ # using a commercial web host, contact the administrators for assistance in
474
+ # doing this. Not all servers allow local php.ini files, and they should
475
+ # include all PHP configurations (not just this one), or you will effectively
476
+ # reset everything to PHP defaults. Consult www.php.net for more detailed
477
+ # information about setting PHP directives.
478
+
479
+ # php_flag register_globals Off
480
+ #
481
+ # Mobile Redirection to /www/mobile/
482
+ #
483
+ RewriteBase /
484
+
485
+
486
+
487
+
488
+
data/www/404.html ADDED
@@ -0,0 +1,32 @@
1
+ <!doctype html>
2
+ <title>Page Not Found</title>
3
+ <style>
4
+ body { text-align: center;}
5
+ h1 { font-size: 50px; text-align: center }
6
+ span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; }
7
+ body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); }
8
+ ::-moz-selection{ background:#FF5E99; color:#fff; }
9
+ ::selection { background:#FF5E99; color:#fff; }
10
+ article {display:block; text-align: left; width: 500px; margin: 0 auto; }
11
+
12
+ a { color: rgb(36, 109, 56); text-decoration:none; }
13
+ a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); }
14
+ </style>
15
+
16
+ <article>
17
+ <h1>Not found <span frown>:(</span></h1>
18
+ <div>
19
+ <p>Sorry, but the page you were trying to view does not exist.</p>
20
+ <p>It looks like this was the result of either:</p>
21
+ <ul>
22
+ <li>a mistyped address</li>
23
+ <li>an out-of-date link</li>
24
+ </ul>
25
+ </div>
26
+
27
+ <script>
28
+ var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),
29
+ GOOG_FIXURL_SITE = location.host;
30
+ </script>
31
+ <script src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
32
+ </article>
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0"?>
2
+ <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
3
+ <cross-domain-policy>
4
+
5
+
6
+ <!-- Read this: www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html -->
7
+
8
+ <!-- Most restrictive policy: -->
9
+ <site-control permitted-cross-domain-policies="none"/>
10
+
11
+
12
+
13
+ <!-- Least restrictive policy: -->
14
+ <!--
15
+ <site-control permitted-cross-domain-policies="all"/>
16
+ <allow-access-from domain="*" to-ports="*" secure="false"/>
17
+ <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
18
+ -->
19
+ <!--
20
+ If you host a crossdomain.xml file with allow-access-from domain=“*”
21
+ and don’t understand all of the points described here, you probably
22
+ have a nasty security vulnerability. ~ simon willison
23
+ -->
24
+
25
+ </cross-domain-policy>
data/www/favicon.ico ADDED
Binary file
data/www/index.php ADDED
@@ -0,0 +1,17 @@
1
+ <?php
2
+
3
+ ob_start('ob_gzhandler');
4
+ define('DIR_WEB', dirname(__FILE__));
5
+ define('DIR_PHPLIB', dirname(__FILE__).'/lib/php');
6
+ define('DIR_SYS', DIR_PHPLIB.'/system');
7
+ define('DIR_CTRL', DIR_PHPLIB.'/controller');
8
+ define('DIR_MDL', DIR_PHPLIB.'/model');
9
+ define('DIR_TMPL', DIR_PHPLIB.'/template');
10
+ define('DIR_VIEW', DIR_PHPLIB.'/view');
11
+ define('DIR_PLUGINS', DIR_PHPLIB.'/plugins');
12
+
13
+ require_once DIR_PHPLIB.'/app.php';
14
+
15
+ $app = new App();
16
+
17
+ ?>
@@ -0,0 +1,43 @@
1
+ /*! homePage class
2
+ * Put javascript plugin depedencies below (see main.js for an exmaple)
3
+ *
4
+ */
5
+ var CHANGE_ME = CHANGE_ME || {};
6
+ CHANGE_ME.homePage = function(){
7
+ // =================================================
8
+ // = Private variables (example: var _foo = bar; ) =
9
+ // =================================================
10
+
11
+
12
+
13
+ // =================================================
14
+ // = public functions =
15
+ // =================================================
16
+ var self = {
17
+
18
+ init : function(){
19
+
20
+ debug.group("# [homePage.js]");
21
+
22
+ debug.log('- initialized');
23
+
24
+ //--> sof private functions
25
+
26
+ //--> eof private functions
27
+
28
+ debug.groupEnd();
29
+
30
+ }
31
+
32
+ };
33
+
34
+ return self;
35
+
36
+ // ================================================
37
+ // = Private functionse (function _private() {} ) =
38
+ // ================================================
39
+
40
+ }();
41
+ //CHANGE_ME.main.queue(CHANGE_ME.homePage.init);
42
+
43
+