diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..212566614 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto \ No newline at end of file diff --git a/.htaccess b/.htaccess new file mode 100644 index 000000000..e14522250 --- /dev/null +++ b/.htaccess @@ -0,0 +1,50 @@ + + + Options -MultiViews + + + RewriteEngine On + + ## + ## Handle resource requests + ## + RewriteCond %{REQUEST_URI} combine/.*(.css|.js) + RewriteRule ^ index.php [L] + + ## + ## Black list protected files + ## + RewriteRule themes/.*/(layouts|pages|partials)/.*.htm index.php [L,NC] + RewriteRule uploads/protected/.* index.php [L,NC] + + ## + ## White listed folders and files + ## + RewriteCond %{REQUEST_FILENAME} -f + RewriteCond %{REQUEST_URI} !\.js + RewriteCond %{REQUEST_URI} !\.ico + RewriteCond %{REQUEST_URI} !\.jpg + RewriteCond %{REQUEST_URI} !\.gif + RewriteCond %{REQUEST_URI} !\.css + RewriteCond %{REQUEST_URI} !\.less + RewriteCond %{REQUEST_URI} !\.scss + RewriteCond %{REQUEST_URI} !\.png + RewriteCond %{REQUEST_URI} !\.swf + RewriteCond %{REQUEST_URI} !\.txt + RewriteCond %{REQUEST_URI} !\.xml + RewriteCond %{REQUEST_URI} !\.xls + RewriteCond %{REQUEST_URI} !\.eot + RewriteCond %{REQUEST_URI} !\.woff + RewriteCond %{REQUEST_URI} !\.ttf + RewriteCond %{REQUEST_URI} !\.svg + RewriteCond %{REQUEST_URI} !docs/.* + RewriteCond %{REQUEST_URI} !themes/.* + RewriteRule ^ index.php [L,NC] + + ## + ## Standard routes + ## + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + + diff --git a/artisan b/artisan new file mode 100644 index 000000000..36bb2d983 --- /dev/null +++ b/artisan @@ -0,0 +1,74 @@ +#!/usr/bin/env php +setRequestForConsoleEnvironment(); + +$artisan = Illuminate\Console\Application::start($app); + +/* +|-------------------------------------------------------------------------- +| Run The Artisan Application +|-------------------------------------------------------------------------- +| +| When we run the console application, the current CLI command will be +| executed in this console and the response sent back to a terminal +| or another output device for the developers. Here goes nothing! +| +*/ + +$status = $artisan->run(); + +/* +|-------------------------------------------------------------------------- +| Shutdown The Application +|-------------------------------------------------------------------------- +| +| Once Artisan has finished running. We will fire off the shutdown events +| so that any final work may be done by the application before we shut +| down the process. This is the last thing to happen to the request. +| +*/ + +$app->shutdown(); + +exit($status); \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 000000000..ca40212ee --- /dev/null +++ b/index.php @@ -0,0 +1,40 @@ +run(); diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 000000000..417aa24b2 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,24 @@ + + + + + ./tests + + + ./vendor/october/rain/tests + + + ./vendor/laravel/framework/tests + + + \ No newline at end of file