shinobu-0.2 /

Filename Size Date modified Message
admin
pages
system
themes
675 B
6.1 KB
34.3 KB
2.2 KB
564 B
4.0 KB
17.5 KB
      ________________    ____________        _______________________  ____    ___
     /   ________/   /   /   /   /    \      /  /   ____   /   ____  \/   /   /  /
    /   /_______/   /___/   /   /   /\ \    /  /   /   /  /   /___/  /   /   /  /
   /_______    /    ___    /   /   /  \ \  /  /   /   /  /   ____   /   /   /  /
  ________/   /   /   /   /   /   /    \ \/  /   /___/  /   /___/  /   /___/  /
 /___________/___/   /___/___/___/      \___/__________/__________/__________/   Version 0.2.4

Visit http://shinobu.61924.nl/ for more information.

# Installation

 1. Rename sample.config.php to config.php in ./system/core.
 2. Edit the settings in config.php.
 3. Create a database.
 4. Run install.php.
 5. Remove install.php and htaccess.apache (if you don't use it).
 6. Have fun.

# Url rewriting

## Nginx

	rewrite ^(/)themes/(.*?)$  $1themes/$2 break;
	rewrite ^(/)static/(.*?)$  $1static/$2 break;

	if (!-e $request_filename) {
		rewrite ^(/)$  $1index.php last;
		rewrite ^(/)(.*?)$  $1index.php?q=$2 last;
	}

	location /admin/ {
		rewrite ^(/admin/)themes/(.*?)$  $1themes/$2 break;
		rewrite ^(/admin/)js/(.*?)$  $1js/$2 break;

		if (!-e $request_filename) {
			rewrite ^(/admin/)$  $1index.php last;
			rewrite ^(/admin/)(.*?)$  $1index.php?q=$2 last;
		}
	}

## Lighttpd

	url.rewrite-once = (
	    "^/admin/themes/(.*)$" => "/admin/themes/$1",
	    "^/admin/js/(.*)$" => "/admin/js/$1",
	    "^/admin/?$" => "/admin/index.php",
	    "^/admin/(.*)$" => "/admin/index.php?q=$1",
	    "^/themes/(.*)$" => "/themes/$1",
	    "^/static/(.*)$" => "/static/$1",
	    "^/?$" => "/index.php",
	    "^/([^?](.*?))$" => "/index.php?q=$1"
	)

## Apache (.htaccess)

Rename "htaccess.apache" to ".htaccess" or create a new file with the following content.
Setup the correct path for the RewriteBase rule.

	<IfModule mod_rewrite.c>
		RewriteEngine on
		# Path the shinobu fodler
		# RewriteBase /path/to/shinobu/

		RewriteCond %{REQUEST_FILENAME} !-f
		RewriteCond %{REQUEST_FILENAME} !-d
		RewriteCond %{REQUEST_FILENAME} !-l
		RewriteRule ^admin/(.*)$ admin/index.php?q=$1 [L]

		RewriteCond %{REQUEST_FILENAME} !-f
		RewriteCond %{REQUEST_FILENAME} !-d
		RewriteCond %{REQUEST_FILENAME} !-l
		RewriteRule ^(.*)$ index.php?q=$1 [L]
	</IfModule>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.