-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from cjsaylor/2.4
Composer support and bug fix branch.
- Loading branch information
Showing
31 changed files
with
479 additions
and
1,413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,14 @@ | ||
._* | ||
.project | ||
|
||
# config | ||
app/Config/bootstrap.php | ||
app/Config/core.php | ||
app/Config/database.php | ||
app/Vendor/ | ||
|
||
# Build config | ||
config/bootstrap.php | ||
config/core.php | ||
config/database.php | ||
# config | ||
app/Config/environment.php | ||
|
||
# cache | ||
app/tmp/**/* | ||
app/webroot/tmp/* | ||
|
||
# misc | ||
cakephp/ | ||
cakephp/*/** | ||
|
||
!empty | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
// Autoloader | ||
require_once APP . 'Vendor/autoload.php'; | ||
spl_autoload_unregister(array('App', 'load')); | ||
spl_autoload_register(array('App', 'load'), true, true); | ||
|
||
Cache::config('default', array('engine' => 'File')); | ||
Configure::write('Dispatcher.filters', array( | ||
'AssetDispatcher', | ||
'CacheDispatcher' | ||
)); | ||
|
||
App::uses('CakeLog', 'Log'); | ||
if (Configure::read('debug') > 0) { | ||
CakeLog::config('debug', array( | ||
'engine' => 'FileLog', | ||
'types' => array('notice', 'info', 'debug'), | ||
'file' => 'debug', | ||
)); | ||
App::uses('CakeEventManager', 'Event'); | ||
CakeEventManager::instance()->attach(function(CakeEvent $event) { | ||
CakePlugin::load('DebugKit'); | ||
$controller = $event->subject(); | ||
$controller->Toolbar = $controller->Components->load('DebugKit.Toolbar', array( | ||
'autoRun' => false | ||
)); | ||
}, 'Controller.initialize'); | ||
} | ||
CakeLog::config('error', array( | ||
'engine' => 'FileLog', | ||
'types' => array('warning', 'error', 'critical', 'alert', 'emergency'), | ||
'file' => 'error', | ||
)); | ||
|
||
// Load Plugins | ||
CakePlugin::load('Api', array( | ||
'bootstrap' => true, | ||
'routes' => true | ||
)); | ||
CakePlugin::load('GChart'); | ||
CakePlugin::load('Utility'); | ||
CakePlugin::load('Feedback'); | ||
CakePlugin::load('DebugKit'); | ||
|
||
// Features | ||
// Site Theme | ||
// Configure::write('Site.theme', 'default'); | ||
|
||
// Mobile themes | ||
Configure::write('Site.mobile_theme', Configure::read('Env.Site.mobile_theme') ?: 'mobile'); | ||
Configure::write('Site.jquery_mobile_theme', Configure::read('Env.Site.jquery_mobile_theme') ?: 'b'); | ||
|
||
// Analytics | ||
Configure::write('Analytics.tracking_code', Configure::read('Env.Analytics.tracking_code')); | ||
|
||
// Feedback plugin | ||
Configure::write('Feedback.github.project', Configure::read('Env.Feedback.github.project') ?: 'cjsaylor/Boxmeup'); | ||
Configure::write('Feedback.github.auth_token', Configure::read('Env.Feedback.github.auth_token')); | ||
Configure::write('Feedback.github.labels', array('Feedback')); | ||
|
||
// Message | ||
Configure::write('Message.message', Configure::read('Env.Message.message') ?: 'Some user message.'); | ||
Configure::write('Message.cookie_suffix', Configure::read('Env.Message.cookie_suffix') ?: '001'); | ||
|
||
// Feature activation | ||
Configure::write('Feature', Configure::read('Env.Feature')); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
class DATABASE_CONFIG { | ||
|
||
public function __construct() { | ||
foreach (Configure::read('Env.Db') as $name => $options) { | ||
$this->$name = array( | ||
'datasource' => 'Database/Mysql', | ||
'persistent' => $options['persistent'] ?: false, | ||
'host' => $options['host'], | ||
'login' => $options['login'], | ||
'password' => $options['password'], | ||
'database' => $options['database'] | ||
); | ||
} | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
$config = array( | ||
'Env' => array( | ||
'debug' => 2, | ||
'salt' => '', | ||
'cipher' => '', | ||
'Db' => array( | ||
'default' => array( | ||
'persistent' => false, | ||
'host' => 'localhost', | ||
'login' => 'root', | ||
'password' => 'root', | ||
'database' => 'boxmeup' | ||
) | ||
), | ||
'Feature' => array( | ||
'api' => true, | ||
'mobile' => true, | ||
'analytics' => false, | ||
'feedback' => true, | ||
'user_registration' => true, | ||
'bulk_export' => true, | ||
'forgot_password' => true, | ||
'autocomplete' => true, | ||
'https_redirect' => true, | ||
'beta' => true | ||
) | ||
) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<div class="alert"> | ||
<div class="alert alert-warning"> | ||
<button type="button" class="close" data-dismiss="alert">×</button> | ||
<?php echo $message; ?> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.