mirror of
https://github.com/jimeh/zynapse.git
synced 2026-02-19 07:06:39 +00:00
* Initial directory structure.
* First parts of boot process works.
This commit is contained in:
12
public/.htaccess
Normal file
12
public/.htaccess
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
RewriteRule ^.*\.svn.*$ /404
|
||||
|
||||
RewriteRule ^$ index.html [QSA]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !favicon.ico
|
||||
RewriteCond %{REQUEST_FILENAME} !robots.txt
|
||||
RewriteRule ^(.*)$ /dispatch.php [QSA,L]
|
||||
|
||||
21
public/dispatch.php
Normal file
21
public/dispatch.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/*
|
||||
|
||||
Dispatch Zynapse
|
||||
- the first step
|
||||
|
||||
*/
|
||||
|
||||
|
||||
# path to config directory
|
||||
$config_path = dirname(dirname(__FILE__)).'/config';
|
||||
|
||||
|
||||
// initial boot and environment setup
|
||||
require_once($config_path.'/init/boot.php');
|
||||
|
||||
|
||||
// initialize zynapse
|
||||
Zynapse::init();
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user