add framework and basic application files
This commit is contained in:
commit
3fca3cab9b
72 changed files with 6716 additions and 0 deletions
8
www/.htaccess
Normal file
8
www/.htaccess
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
|
||||
RewriteBase /
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L,NE]
|
||||
</IfModule>
|
||||
14
www/error403.html
Normal file
14
www/error403.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>The Legend of Z</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>The Legend of Z</h1>
|
||||
<p>Access denied.</p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
14
www/error404.html
Normal file
14
www/error404.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>The Legend of Z</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>The Legend of Z</h1>
|
||||
<p>Not found.</p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
14
www/error500.html
Normal file
14
www/error500.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>The Legend of Z</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>The Legend of Z</h1>
|
||||
<p>Internal server error.</p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
45
www/index.php
Normal file
45
www/index.php
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* NRE
|
||||
*
|
||||
* @author coderkun <olli@coderkun.de>
|
||||
* @copyright 2013 coderkun (http://www.coderkun.de)
|
||||
* @license http://www.gnu.org/licenses/gpl.html
|
||||
* @link http://www.coderkun.de/projects/nre
|
||||
*/
|
||||
|
||||
/**
|
||||
* Define constants
|
||||
*/
|
||||
// Directory separator
|
||||
if(!defined('DS')) {
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
}
|
||||
// Root directory
|
||||
if(!defined('ROOT')) {
|
||||
define('ROOT', dirname(dirname(__FILE__)));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* De-/Activate error messages
|
||||
*/
|
||||
if($_SERVER['SERVER_ADDR'] == '127.0.0.1') {
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('log_errors', 0);
|
||||
}
|
||||
else {
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 0);
|
||||
ini_set('log_errors', 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Run application
|
||||
*/
|
||||
require ROOT.DS.'bootstrap.inc';
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue