Skip to content

Commit c69f9a1

Browse files
committed
Get things running, kinda.
1 parent 2019dd3 commit c69f9a1

File tree

11 files changed

+60
-150
lines changed

11 files changed

+60
-150
lines changed

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
.sass-cache
2+
/assets/.db/
3+
/assets/error-*.html
4+
/.htaccess
5+
web.config
6+
web.config

.htaccess

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010
Deny from all
1111
</Files>
1212

13+
# This denies access to all yml files, since developers might include sensitive
14+
# information in them. See the docs for work-arounds to serve some yaml files
15+
<Files *.yml>
16+
Order allow,deny
17+
Deny from all
18+
</Files>
19+
1320
ErrorDocument 404 /assets/error-404.html
1421
ErrorDocument 500 /assets/error-500.html
1522

@@ -22,15 +29,11 @@ ErrorDocument 500 /assets/error-500.html
2229
<IfModule mod_rewrite.c>
2330
SetEnv HTTP_MOD_REWRITE On
2431
RewriteEngine On
32+
RewriteBase '/stepmania'
2533

2634
RewriteCond %{REQUEST_URI} ^(.*)$
2735
RewriteCond %{REQUEST_FILENAME} !-f
2836
RewriteCond %{REQUEST_URI} !\.php$
29-
RewriteRule .* framework/main.php?url=%1 [QSA]
30-
31-
RewriteCond %{REQUEST_URI} ^(.*)/framework/main.php$
32-
RewriteCond %{REQUEST_FILENAME} !-f
33-
RewriteRule . %1/install.php? [R,L]
34-
37+
RewriteRule .* framework/main.php?url=%1&%{QUERY_STRING} [L]
3538
</IfModule>
3639
### SILVERSTRIPE END ###

assets/.htaccess

100644100755
File mode changed.

assets/web.config

Lines changed: 0 additions & 97 deletions
This file was deleted.

favicon.ico

-256 Bytes
Binary file not shown.

mysite/_config.php

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
<?php
2-
3-
global $project;
4-
$project = 'mysite';
5-
6-
global $database;
7-
$database = '';
8-
9-
require_once('conf/ConfigureFromEnv.php');
10-
11-
MySQLDatabase::set_connection_charset('utf8');
12-
13-
// Set the current theme. More themes can be downloaded from
14-
// http://www.silverstripe.org/themes/
15-
SSViewer::set_theme('simple');
16-
17-
// Enable nested URLs for this site (e.g. page/sub-page/)
18-
if(class_exists('SiteTree')) SiteTree::enable_nested_urls();
1+
<?php
2+
3+
global $project;
4+
$project = 'mysite';
5+
6+
global $databaseConfig;
7+
$databaseConfig = array(
8+
"type" => 'SQLiteDatabase',
9+
"server" => '',
10+
"username" => '',
11+
"password" => '',
12+
"database" => 'stepmania',
13+
"path" => '/home/colby/public_html/stepmania/assets/.db',
14+
);
15+
16+
MySQLDatabase::set_connection_charset('utf8');
17+
18+
// Set the current theme. More themes can be downloaded from
19+
// http://www.silverstripe.org/themes/
20+
SSViewer::set_theme('tutorial');
21+
22+
// Set the site locale
23+
i18n::set_locale('en_US');
24+
25+
// Enable nested URLs for this site (e.g. page/sub-page/)
26+
if (class_exists('SiteTree')) SiteTree::enable_nested_urls();

sqlite3

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 7a11b353d72427aac74f0bb73a3bf6bb753cee87
File renamed without changes.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="banner">
2+
<h1>Thingy</h1>
3+
</div>
4+
<article class="post">
5+
<header>
6+
<p>Posted at 1:40AM by <a href="#">shakesoda</a>.</p>
7+
</header>
8+
<p>This is a test post thingy</p>
9+
</article>

themes/stepmania/index.html renamed to themes/stepmania/templates/Page.ss

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,31 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<title>StepMania</title>
6-
<link rel="stylesheet" href="css/style.css">
5+
<title>$SiteConfig.Title</title>
6+
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
7+
<% base_tag %>
8+
<% require themedCSS(style) %>
79
</head>
810
<body>
911
<header>
1012
<nav class="limit-width">
1113
<ul>
14+
<% loop Menu(1) %>
15+
<li><a href="$Link">$MenuTitle</a></li>
16+
<% end_loop %>
17+
<!--
1218
<li><a href="#">SM Micro</a></li>
1319
<li><a href="#">Download</a></li>
1420
<li><a href="#">Find Content</a></li>
1521
<li><a href="#">Wiki</a></li>
1622
<li><a href="#">Forums</a></li>
1723
<li><a href="#">Help</a></li>
24+
-->
1825
</ul>
1926
</nav>
2027
</header>
2128
<div id="container" class="limit-width">
22-
<div class="banner">
23-
<h1>Thingy</h1>
24-
</div>
25-
<article class="post">
26-
<header>
27-
<p>Posted at 1:40AM by <a href="#">shakesoda</a>.</p>
28-
</header>
29-
<p>This is a test post thingy</p>
30-
</article>
29+
$Layout
3130
</div>
3231
<footer class="limit-width">
3332
<p>StepMania is open source software released under the MIT License</p>

0 commit comments

Comments
 (0)