Permalink
Browse files

Removing admin interface as it's not always needed. Renaming modules …

…for app interface
  • Loading branch information...
1 parent 41f2a9f commit 17124ac39c2214f396b2ab1713a177cc03cdd21f @viveleroi committed Apr 17, 2012
View
@@ -3,6 +3,6 @@
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^$ app/webroot/ [L]
- RewriteRule (.*) app/webroot/$1 [L]
+ RewriteRule ^$ app/webroot/ [L]
+ RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
View
@@ -1,8 +0,0 @@
-<IfModule mod_rewrite.c>
- RewriteEngine on
- RewriteRule ^\.htaccess$ - [F]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^$ webroot/ [L]
- RewriteRule (.*) webroot/$1 [L]
- </IfModule>
View
@@ -1,13 +0,0 @@
-<?php
-$lang['admin']['copyright'] = 'Aspen Framework %s &mdash; Copyright &copy; 2008-'.date('Y').' Trellis Development, LLC';
-$lang['admin']['404:title'] = 'Page Not Found';
-$lang['admin']['404:message'] = 'The page (%s/%s) you have requested could not be found.';
-$lang['admin']['403:title'] = 'Permission Denied';
-$lang['admin']['403:message'] = 'You do not have permission to access the requested resource.';
-$lang['*']['db:display:not_provided'] = 'Not Provided';
-$lang['*']['dberror:title'] = 'Database Connection Error';
-$lang['*']['dberror:message'] = 'An error was encountered when trying to connect to the database.';
-$lang['*']['dberror:datadisplay_init_error'] = 'DataDisplay: Incoming data must be an array.';
-$lang['*']['dberror:datadisplay_call_error'] = 'DataDisplay: Invalid method "%s". Either the method or the array key does not exist.';
-$lang['admin']['app:mod-install-intro'] = 'You have new modules that have not yet been installed.';
-?>
View
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="utf-8">
- <title><?= text('403:title'); ?></title>
- <style>
- body { background-color: #eee; font-family: Georgia, serif; }
- h2 { font-size: 1.2em; margin-left: 25px; }
- </style>
-</head>
-<body>
- <h2><?= text('403:title'); ?></h2>
- <p><?= text('403:message', router()->module(), router()->method()); ?></p>
-</body>
-</html>
View
@@ -1,15 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="utf-8">
- <title><?= text('404:title'); ?></title>
- <style>
- body { background-color: #eee; font-family: Georgia, serif; }
- h2 { font-size: 1.2em; margin-left: 25px; }
- </style>
-</head>
-<body>
- <h2><?= text('404:title'); ?></h2>
- <p><?= text('404:message', router()->module(), router()->method()); ?></p>
-</body>
-</html>
@@ -1,30 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title><?= $this->page_title(); ?></title>
- <meta charset="utf-8">
- <?php //$this->addCss('admin/screen.css'); ?>
- <?php //$this->addCss('admin/ie.css',array('cdtnl_cmt'=>'if IE')); ?>
- <?php $this->loadModuleHeader(); ?>
-</head>
-<body id="<?= $this->body_id(); ?>">
-
- <h1><?= config()->get('application_name'); ?></h1>
-<?php if(user()->isLoggedIn()): ?>
- <span>Logged in as <?= $this->link(session()->getName('first_name'), 'users/my_account'); ?></span>
-<?php endif ?>
-
-<?php if(user()->isLoggedIn()): ?>
- <ul id="nav">
- <?= app()->generateInterfaceMenu(false) ?>
- <li><?= $this->link('Logout', 'users/logout'); ?></li>
- </ul>
-<?php endif; ?>
-
-<?php $this->page(); ?>
-
- <p><?= text('copyright', VERSION); ?></p>
- <?php $this->loadModuleFooter(); ?>
-</body>
-<?= $this->htmlHide(VERSION_COMPLETE); ?>
-</html>
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <meta charset="utf-8">
- <title><?= $error['error_message'] ?></title>
- <style>
- body { background-color: #eee; font-family: Georgia, serif; }
- .inner { margin: 50px 0 0 100px; }
- .inner p { width: 500px; }
- h2 { font-size: 1.2em; margin-left: 25px; }
- .err-box li { list-style: none; margin: 3px 0 }
- .key { display: block; width: 140px; color: #888; float: left; text-align: right; padding-right: 10px; }
- .data { padding-left: 10px; }
- ul.sub { margin-left: 120px; }
- </style>
-</head>
-<body>
- <h2><?= $error['error_message'] ?></h2>
- <ul class="err-box">
- <?php
- foreach($error as $key => $data){
- if(!is_array($data)){
- print '<li><span class="key">'.$key.'</span>&rarr;<span class="data">'.$data.'</span></li>';
- } else {
- print '<li><span class="key">'.$key.'</span>&rarr;<span class="data"><ul class="sub">';
- foreach($data as $sub){
- print '<li><span class="key">'.$sub['function'].'</span>&rarr;<span class="data">'.$sub['file'].' ('.$sub['line'].')</span></li>';
- }
- print '</ul></span></li>';
- }
- }
- ?>
- </ul>
-</body>
-</html>
View
@@ -1,8 +0,0 @@
-<IfModule mod_rewrite.c>
- RewriteEngine on
- Options +FollowSymlinks
- RewriteRule ^\.htaccess$ - [F]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php?redirected=$1 [QSA,L]
-</IfModule>
View
@@ -1,12 +0,0 @@
-/*
- Document : base.css
- Created on : Feb 28, 2012, 5:13:29 PM
- Author : botskonet
- Description:
- Purpose of the stylesheet follows.
-*/
-
-root {
- display: block;
-}
-
View
Deleted file not rendered
View
@@ -1,61 +0,0 @@
-<?php
-
-// define the name of our app instance
-// leave this blank if root instance, i.e. app
-// not running in a subdirectory
-$folder = explode( "/", dirname(__FILE__) );
-$app_name = $folder[ (count($folder) - 2) ];
-define('LOADING_SECTION', ucwords( $app_name ));
-define('DS', DIRECTORY_SEPARATOR);
-
-// set execution start time
-define('EXECUTION_START', microtime());
-
-// Here are our application file path definitions. Unless
-// you're varying from the default install, these should not
-// need to be changed.
-
-define('BASE_PATH', str_replace("/". $app_name . "/webroot", "", dirname(__FILE__)) );
-
-// define the file path to our system directory
-if(file_exists(BASE_PATH . '/system')){
- define('SYSTEM_PATH', BASE_PATH . '/system');
-} else {
- define('SYSTEM_PATH', str_replace(strtolower(LOADING_SECTION), '', BASE_PATH . 'system'));
-}
-
-// define the file path to our root application directory
-define('APPLICATION_PATH', str_replace(DS . "system", '', SYSTEM_PATH)); // path to the entire application root
-define('MODULES_PATH', APPLICATION_PATH . DS . 'modules');
-define('PLUGINS_PATH', APPLICATION_PATH . DS . 'plugins');
-
-// here we'll quicly check for absolute minimal php5 support
-if(version_compare(phpversion(), "5.3.0", 'ge')){
-
- // include the bootstrap file
- include(SYSTEM_PATH . DS . 'bootstrap.php');
-
- // quickly, we need to run any pre-bootstrap plugin hooks
-
- // pull a list of plugins
- $plugins = Bootstrap::parsePluginRegistries();
-
- // load plugins with hooks we're calling next
- Bootstrap::callPluginHook('before_bootstrap_execute', $plugins);
-
- // Run the config loader - which returns complete Default -> App -> Config object.
- include(SYSTEM_PATH . DS . 'config' . DS . 'ConfigLoader.php');
- $config = ConfigLoader::load();
-
- // load the application system class
- if(!class_exists('App')){
- require(SYSTEM_PATH . DS . 'app' . DS . 'App.php');
- }
-
- // create an instance of our entire app
- $application = new App($config);
-
-} else {
- trigger_error('This application requires PHP 5.3+. Please upgrade your version of PHP.', E_USER_ERROR);
-}
-?>
View
@@ -3,6 +3,6 @@
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^$ webroot/ [L]
- RewriteRule (.*) webroot/$1 [L]
+ RewriteRule ^$ webroot/ [L]
+ RewriteRule (.*) webroot/$1 [L]
</IfModule>
@@ -3,7 +3,7 @@
<head>
<title><?= $this->page_title(); ?></title>
<meta charset="utf-8">
- <?php $this->add_resource( new Aspen_Css('css/base.css') ); ?>
+ <?php //$this->add_resource( new Aspen_Css('css/base.css') ); ?>
<?php $this->loadModuleHeader(); ?>
</head>
<body id="<?= $this->body_id(); ?>">
View
@@ -1,12 +0,0 @@
-/*
- Document : base.css
- Created on : Feb 28, 2012, 5:13:29 PM
- Author : botskonet
- Description:
- Purpose of the stylesheet follows.
-*/
-
-root {
- display: block;
-}
-
View
@@ -45,7 +45,7 @@ protected function production( $config ){
/**
- * Production Server
+ * Staging Server
* @return type
*/
protected function staging($config){
@@ -61,7 +61,7 @@ protected function staging($config){
/**
- * Production Server
+ * Development Server
* @return type
*/
protected function development($config){
Oops, something went wrong.

0 comments on commit 17124ac

Please sign in to comment.