Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit 7f671de

Browse files
author
Stig Lindqvist
committed
Importing SS Framework 3.0
1 parent 7fbf5c9 commit 7f671de

File tree

3,791 files changed

+685572
-12
lines changed

Some content is hidden

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

3,791 files changed

+685572
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/nbproject/private/

.htaccess

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
### SILVERSTRIPE START ###
3+
<Files *.ss>
4+
Order deny,allow
5+
Deny from all
6+
Allow from 127.0.0.1
7+
</Files>
8+
9+
<Files web.config>
10+
Order deny,allow
11+
Deny from all
12+
</Files>
13+
14+
ErrorDocument 404 /assets/error-404.html
15+
ErrorDocument 500 /assets/error-500.html
16+
17+
<IfModule mod_alias.c>
18+
RedirectMatch 403 /silverstripe-cache(/|$)
19+
</IfModule>
20+
21+
<IfModule mod_rewrite.c>
22+
SetEnv HTTP_MOD_REWRITE On
23+
RewriteEngine On
24+
RewriteBase '/chasey'
25+
26+
RewriteCond %{REQUEST_URI} ^(.*)$
27+
RewriteCond %{REQUEST_FILENAME} !-f
28+
RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]
29+
</IfModule>
30+
### SILVERSTRIPE END ###

Makefile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# This makefile is a secondary way of installing SilverStripe.
3+
# It is used for things like continuous integration
4+
#
5+
# Most users should simply visit the site root in your web browser.
6+
#
7+
8+
test:
9+
$(MAKE) QUERYSTRING="$(QUERYSTRING)" -C framework test
10+
11+
getallmodules:
12+
if [ -d subsites ]; then svn update subsites; else svn co http://svn.silverstripe.com/open/modules/subsites/trunk subsites; fi
13+
if [ -d genericdataadmin ]; then svn update genericdataadmin; else svn co http://svn.silverstripe.com/open/modules/genericdataadmin/trunk genericdataadmin; fi
14+
if [ -d forum ]; then svn update forum; else svn co http://svn.silverstripe.com/open/modules/forum/trunk forum; fi
15+
if [ -d cmsworkflow ]; then svn update cmsworkflow; else svn co http://svn.silverstripe.com/open/modules/cmsworkflow/trunk cmsworkflow; fi
16+
if [ -d multiform ]; then svn update multiform; else svn co http://svn.silverstripe.com/open/modules/multiform/trunk multiform; fi
17+
if [ -d events ]; then svn update events; else svn co http://svn.silverstripe.com/open/modules/events/trunk events; fi

README.md

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,43 @@
1-
Chasey
2-
======
3-
4-
A facebook connected game of tag using silverstripe 3.0
5-
6-
## TODO
7-
8-
- Modify the facebook connect module to use backend oauth
9-
- Be able to 'tag' your friends on facebook
10-
- Get plus score based on how many you tagged
11-
- Get plus score based on how long someone you tagged stayed tagged
12-
- Get minus score on how long you been tagged
1+
## Overview
2+
3+
Base project folder for a SilverStripe ([http://silverstripe.org](http://silverstripe.org)) installation. Requires additional modules to function:
4+
5+
* [`framework`](http://github.com/silverstripe/sapphire): Module including the base framework
6+
* [`cms`](http://github.com/silverstripe/silverstripe-cms): Module including a Content Management System
7+
* `themes/simple` (optional)
8+
9+
## Server Requirements ##
10+
11+
See [doc.silverstripe.org](http://doc.silverstripe.org/framework/en/installation/server-requirements)
12+
13+
## Installation ##
14+
15+
See [installation on different platforms](http://doc.silverstripe.org/framework/en/installation/),
16+
and [installation from source](http://doc.silverstripe.org/framework/en/installation/from-source).
17+
18+
## Links ##
19+
20+
* [Changelogs](http://doc.silverstripe.org/framework/en/changelogs/)
21+
* [Bugtracker](http://open.silverstripe.org)
22+
* [Forums](http://silverstripe.org/forums)
23+
* [Developer Mailinglist](https://groups.google.com/forum/#!forum/silverstripe-dev)
24+
25+
## License ##
26+
27+
Copyright (c) 2007-2011, SilverStripe Limited - www.silverstripe.com
28+
All rights reserved.
29+
30+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
31+
32+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
33+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the
34+
documentation and/or other materials provided with the distribution.
35+
* Neither the name of SilverStripe nor the names of its contributors may be used to endorse or promote products derived from this software
36+
without specific prior written permission.
37+
38+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
39+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
40+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
41+
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
42+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
43+
OF SUCH DAMAGE.

assets/.htaccess

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#
2+
# Whitelist appropriate assets files.
3+
# Note that you will need to maintain this whitelist yourself if you modify File::$allowed_extensions
4+
#
5+
# If you are not using Apache then you can ignore this file.
6+
# If you are using IIS then you should look at assets/web.config instead.
7+
#
8+
# To add an extension to the list, you need to put another string of the form "ext|" on the
9+
# FilesMatch line, inside the parentheses.
10+
#
11+
# For example, to add *.exe files to list of downloadable assets, change this line:
12+
#
13+
# <FilesMatch "\.(html|htm|xhtml...
14+
#
15+
# To this:
16+
#
17+
# <FilesMatch "\.(exe|html|htm|xhtml...
18+
#
19+
# Once you do this, visitors will be able to download *.exe files that are uploaded to the assets
20+
# directory.
21+
#
22+
# For compatibility reasons, we include uppercase versions of allowed extensions, as Apache 1.3
23+
# does not support regular expression case insensitive matches using PCRE style.
24+
#
25+
Deny from all
26+
<FilesMatch "\.(html|HTML|htm|HTM|xhtml|XHTML|js|JS|css|CSS|bmp|BMP|png|PNG|gif|GIF|jpg|JPG|jpeg|JPEG|ico|ICO|pcx|PCX|tif|TIF|tiff|TIFF|au|AU|mid|MID|midi|MIDI|mpa|MPA|mp3|MP3|ogg|OGG|m4a|M4A|ra|RA|wma|WMA|wav|WAV|cda|CDA|avi|AVI|mpg|MPG|mpeg|MPEG|asf|ASF|wmv|WMV|m4v|M4V|mov|MOV|mkv|MKV|mp4|MP4|swf|SWF|flv|FLV|ram|RAM|rm|RM|doc|DOC|docx|DOCX|txt|TXT|rtf|RTF|xls|XLS|xlsx|XLSX|pages|PAGES|ppt|PPT|pptx|PPTX|pps|PPS|csv|CSV|cab|CAB|arj|ARJ|tar|TAR|zip|ZIP|zipx|ZIPX|sit|SIT|sitx|SITX|gz|GZ|tgz|TGZ|bz2|BZ2|ace|ACE|arc|ARC|pkg|PKG|dmg|DMG|hqx|HQX|jar|JAR|xml|XML|pdf|PDF)$">
27+
Allow from all
28+
</FilesMatch>
29+
30+
# We disable PHP via several methods
31+
# Replace the handler with the default plaintext handler
32+
AddHandler default-handler php phtml php3 php4 php5 inc
33+
34+
<IfModule mod_php5.c>
35+
# Turn the PHP engine off
36+
php_flag engine off
37+
</IfModule>

assets/web.config

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<!--
2+
3+
Configuration to whitelist appropriate asset files, for IIS.
4+
Note that you will need to maintain this whitelist yourself if you modify File::$allowed_extensions
5+
6+
If you are not using IIS then you can ignore this file.
7+
If you are using Apache then you should look at assets/.htaccess instead.
8+
9+
To add an extension to to the list, you will need to add another <add> entry inside the <fileExtensions>
10+
tag.
11+
12+
For example, to add *.exe files to the list of downloadable assets, add this line below the
13+
<fileExtensions line>:
14+
15+
<add fileExtension=".exe" allowed="true" />
16+
17+
Once you do this, visitors will be able to download *.exe files that are uploaded to the assets
18+
directory.
19+
20+
-->
21+
<configuration>
22+
<system.webServer>
23+
<security>
24+
<requestFiltering>
25+
<fileExtensions allowUnlisted="false" applyToWebDAV="true">
26+
<add fileExtension=".html" allowed="true" />
27+
<add fileExtension=".htm" allowed="true" />
28+
<add fileExtension=".xhtml" allowed="true" />
29+
<add fileExtension=".js" allowed="true" />
30+
<add fileExtension=".css" allowed="true" />
31+
<add fileExtension=".bmp" allowed="true" />
32+
<add fileExtension=".png" allowed="true" />
33+
<add fileExtension=".gif" allowed="true" />
34+
<add fileExtension=".jpg" allowed="true" />
35+
<add fileExtension=".jpeg" allowed="true" />
36+
<add fileExtension=".ico" allowed="true" />
37+
<add fileExtension=".pcx" allowed="true" />
38+
<add fileExtension=".tif" allowed="true" />
39+
<add fileExtension=".tiff" allowed="true" />
40+
<add fileExtension=".au" allowed="true" />
41+
<add fileExtension=".mid" allowed="true" />
42+
<add fileExtension=".midi" allowed="true" />
43+
<add fileExtension=".mpa" allowed="true" />
44+
<add fileExtension=".mp3" allowed="true" />
45+
<add fileExtension=".ogg" allowed="true" />
46+
<add fileExtension=".m4a" allowed="true" />
47+
<add fileExtension=".ra" allowed="true" />
48+
<add fileExtension=".wma" allowed="true" />
49+
<add fileExtension=".wav" allowed="true" />
50+
<add fileExtension=".cda" allowed="true" />
51+
<add fileExtension=".avi" allowed="true" />
52+
<add fileExtension=".mpg" allowed="true" />
53+
<add fileExtension=".mpeg" allowed="true" />
54+
<add fileExtension=".asf" allowed="true" />
55+
<add fileExtension=".wmv" allowed="true" />
56+
<add fileExtension=".m4v" allowed="true" />
57+
<add fileExtension=".mov" allowed="true" />
58+
<add fileExtension=".mkv" allowed="true" />
59+
<add fileExtension=".mp4" allowed="true" />
60+
<add fileExtension=".swf" allowed="true" />
61+
<add fileExtension=".flv" allowed="true" />
62+
<add fileExtension=".ram" allowed="true" />
63+
<add fileExtension=".rm" allowed="true" />
64+
<add fileExtension=".doc" allowed="true" />
65+
<add fileExtension=".docx" allowed="true" />
66+
<add fileExtension=".txt" allowed="true" />
67+
<add fileExtension=".rtf" allowed="true" />
68+
<add fileExtension=".xls" allowed="true" />
69+
<add fileExtension=".xlsx" allowed="true" />
70+
<add fileExtension=".pages" allowed="true" />
71+
<add fileExtension=".ppt" allowed="true" />
72+
<add fileExtension=".pptx" allowed="true" />
73+
<add fileExtension=".pps" allowed="true" />
74+
<add fileExtension=".csv" allowed="true" />
75+
<add fileExtension=".cab" allowed="true" />
76+
<add fileExtension=".arj" allowed="true" />
77+
<add fileExtension=".tar" allowed="true" />
78+
<add fileExtension=".zip" allowed="true" />
79+
<add fileExtension=".zipx" allowed="true" />
80+
<add fileExtension=".sit" allowed="true" />
81+
<add fileExtension=".sitx" allowed="true" />
82+
<add fileExtension=".gz" allowed="true" />
83+
<add fileExtension=".tgz" allowed="true" />
84+
<add fileExtension=".bz2" allowed="true" />
85+
<add fileExtension=".ace" allowed="true" />
86+
<add fileExtension=".arc" allowed="true" />
87+
<add fileExtension=".pkg" allowed="true" />
88+
<add fileExtension=".dmg" allowed="true" />
89+
<add fileExtension=".hqx" allowed="true" />
90+
<add fileExtension=".jar" allowed="true" />
91+
<add fileExtension=".xml" allowed="true" />
92+
<add fileExtension=".pdf" allowed="true" />
93+
</fileExtensions>
94+
</requestFiltering>
95+
</security>
96+
</system.webServer>
97+
</configuration>

build.properties.default

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
getlocalization.framework.project = sapphire
2+
getlocalization.framework.user = silverstripe
3+
getlocalization.framework.password =
4+
getlocalization.cms.project = silverstripe_cms
5+
getlocalization.cms.user = silverstripe
6+
getlocalization.cms.password =

favicon.ico

318 Bytes
Binary file not shown.

framework/.htaccess

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<FilesMatch "\.(php|php3|php4|php5|phtml|inc)$">
2+
Deny from all
3+
</FilesMatch>
4+
<FilesMatch "(main|static-main|rpc|tiny_mce_gzip)\.php$">
5+
Allow from all
6+
</FilesMatch>
7+
<FilesMatch "silverstripe_version$">
8+
Deny from all
9+
</FilesMatch>

framework/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#
2+
# This makefile is a secondary way of installing SilverStripe.
3+
# It is used for things like continuous integration
4+
#
5+
# Most users should simply visit the site root in your web browser.
6+
#
7+
#
8+
URL=`php ./cli-script.php SapphireInfo/baseurl`
9+
10+
test: phpunit
11+
12+
phpunit:
13+
php ./cli-script.php dev/build "flush=1&$(QUERYSTRING)"
14+
php ./cli-script.php dev/tests/all "flush=1&$(QUERYSTRING)"
15+
16+
windmill:
17+
functest ../cms/tests/test_windmill url=${URL}dev/tests/startsession browser=firefox
18+
19+
jasmine:
20+
./tests/javascript/server.sh

0 commit comments

Comments
 (0)