├── src ├── advanced-cache.php ├── plugins │ └── .gitkeep ├── themes │ ├── .gitkeep │ └── base │ │ ├── app │ │ ├── assets │ │ │ ├── js │ │ │ │ └── .gitkeep │ │ │ ├── css │ │ │ │ └── .gitkeep │ │ │ └── index.php │ │ ├── autoload │ │ │ ├── .gitkeep │ │ │ ├── admin │ │ │ │ └── .gitkeep │ │ │ ├── front │ │ │ │ ├── .gitkeep │ │ │ │ ├── routes.php │ │ │ │ └── assets.php │ │ │ ├── sidebars.php │ │ │ └── theme-support.php │ │ ├── commands │ │ │ ├── .gitkeep │ │ │ └── ExampleCommand.php │ │ ├── config │ │ │ ├── .gitkeep │ │ │ ├── comments.php │ │ │ ├── wel.php │ │ │ ├── plugins.php │ │ │ ├── assets.php │ │ │ ├── logs.php │ │ │ ├── view.php │ │ │ ├── queue.php │ │ │ ├── auth.php │ │ │ ├── cache.php │ │ │ ├── database.php │ │ │ ├── mail.php │ │ │ ├── session.php │ │ │ └── app.php │ │ ├── tests │ │ │ ├── .gitkeep │ │ │ ├── Unit │ │ │ │ └── ExampleTest.php │ │ │ ├── boottest.php │ │ │ └── TestCase.php │ │ ├── database │ │ │ ├── seeds │ │ │ │ ├── .gitkeep │ │ │ │ └── DatabaseSeeder.php │ │ │ └── migrations │ │ │ │ └── .gitkeep │ │ ├── lang │ │ │ └── en │ │ │ │ ├── ajax.php │ │ │ │ ├── pagination.php │ │ │ │ ├── reminders.php │ │ │ │ └── validation.php │ │ ├── views │ │ │ └── master.blade.php │ │ └── Controllers │ │ │ └── BaseController.php │ │ ├── screenshot.png │ │ ├── functions.php │ │ ├── style.css │ │ ├── phpunit.xml │ │ └── index.php ├── uploads │ └── .gitkeep ├── storage │ ├── .gitignore │ ├── cache │ │ └── .gitignore │ ├── logs │ │ └── .gitignore │ ├── meta │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ └── views │ │ └── .gitignore ├── mu-plugins │ ├── weloquent-bootstrap-plugins.php │ └── _prevent_theme_error.php └── bootstrap │ ├── testing.php │ ├── production.php │ ├── paths.php │ ├── local.php │ ├── shared.php │ └── start.php ├── .gitattributes ├── app ├── public │ └── packages │ │ └── .gitkeep ├── laravel │ ├── commands │ │ └── .gitkeep │ ├── controllers │ │ ├── .gitkeep │ │ ├── BaseController.php │ │ └── HomeController.php │ ├── config │ │ ├── packages │ │ │ └── .gitkeep │ │ ├── compile.php │ │ ├── local │ │ │ └── app.php │ │ ├── testing │ │ │ ├── cache.php │ │ │ └── session.php │ │ ├── services.php │ │ ├── workbench.php │ │ ├── view.php │ │ ├── remote.php │ │ ├── auth.php │ │ ├── queue.php │ │ ├── cache.php │ │ ├── database.php │ │ ├── mail.php │ │ ├── session.php │ │ └── app.php │ ├── database │ │ ├── seeds │ │ │ ├── .gitkeep │ │ │ └── DatabaseSeeder.php │ │ ├── migrations │ │ │ └── .gitkeep │ │ └── .gitignore │ ├── start │ │ ├── local.php │ │ ├── artisan.php │ │ └── global.php │ ├── storage │ │ ├── .gitignore │ │ ├── cache │ │ │ └── .gitignore │ │ ├── logs │ │ │ └── .gitignore │ │ ├── meta │ │ │ └── .gitignore │ │ ├── views │ │ │ └── .gitignore │ │ └── sessions │ │ │ └── .gitignore │ ├── tests │ │ ├── ExampleTest.php │ │ └── TestCase.php │ ├── views │ │ ├── emails │ │ │ └── auth │ │ │ │ └── reminder.blade.php │ │ └── hello.php │ ├── lang │ │ └── en │ │ │ ├── pagination.php │ │ │ ├── reminders.php │ │ │ └── validation.php │ ├── models │ │ └── User.php │ ├── routes.php │ └── filters.php ├── .gitattributes ├── .gitignore ├── .env.php ├── .htaccess ├── server.php ├── phpunit.xml ├── composer.json ├── bootstrap │ ├── paths.php │ ├── autoload.php │ └── start.php ├── index.php └── artisan ├── wp-cli.yml ├── robots.txt ├── index.php ├── .env.example.php ├── wp-config.php ├── .gitignore ├── package.json ├── composer.json ├── wel ├── README.md ├── gulpfile.js └── LICENSE /src/advanced-cache.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/plugins/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/themes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/uploads/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto -------------------------------------------------------------------------------- /app/public/packages/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /wp-cli.yml: -------------------------------------------------------------------------------- 1 | path: htdocs/cms -------------------------------------------------------------------------------- /app/laravel/commands/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/laravel/controllers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /app/laravel/config/packages/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/laravel/database/seeds/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/themes/base/app/assets/js/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/themes/base/app/autoload/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/themes/base/app/commands/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/themes/base/app/config/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/themes/base/app/tests/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/laravel/database/migrations/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/storage/.gitignore: -------------------------------------------------------------------------------- 1 | services.manifest -------------------------------------------------------------------------------- /src/themes/base/app/assets/css/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/themes/base/app/autoload/admin/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/themes/base/app/autoload/front/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/themes/base/app/database/seeds/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/laravel/database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /app/laravel/start/local.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /bootstrap/compiled.php 2 | /vendor 3 | composer.phar 4 | composer.lock 5 | .DS_Store 6 | Thumbs.db 7 | -------------------------------------------------------------------------------- /src/themes/base/app/lang/en/ajax.php: -------------------------------------------------------------------------------- 1 | 'The AJAX request is not valid.' 5 | 6 | ]; -------------------------------------------------------------------------------- /src/themes/base/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bruno-barros/w.eloquent/HEAD/src/themes/base/screenshot.png -------------------------------------------------------------------------------- /src/themes/base/app/autoload/front/routes.php: -------------------------------------------------------------------------------- 1 | 'partials.comments.item' 10 | ]; -------------------------------------------------------------------------------- /robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | 3 | Disallow: /cms/ 4 | Disallow: /vendor/ 5 | Disallow: /src/storage/ 6 | Disallow: /src/plugins/ 7 | Disallow: /src/mu-plugins/ 8 | 9 | # http://www.check-domains.com/sitemap/index.php # 10 | # sitemap: http://www.yousite.com/sitemap.xml 11 | -------------------------------------------------------------------------------- /app/.env.php: -------------------------------------------------------------------------------- 1 | call('UserTableSeeder'); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /src/themes/base/functions.php: -------------------------------------------------------------------------------- 1 | call('UserTableSeeder'); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /app/laravel/tests/ExampleTest.php: -------------------------------------------------------------------------------- 1 | client->request('GET', '/'); 13 | 14 | $this->assertTrue($this->client->getResponse()->isOk()); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /app/laravel/controllers/BaseController.php: -------------------------------------------------------------------------------- 1 | layout)) 13 | { 14 | $this->layout = View::make($this->layout); 15 | } 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /src/themes/base/app/views/master.blade.php: -------------------------------------------------------------------------------- 1 | 2 | > 3 | 4 | 5 | 6 | {{ wp_title('>', false, 'right' ) }} 7 | 8 | 9 | 10 | @yield('head') 11 | 12 | 13 | 14 | > 15 | 16 | @yield('content') 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/themes/base/style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Base 3 | Theme URI: https://github.com/bruno-barros/w.eloquent 4 | Author: Bruno Barros 5 | Author URI: http://www.brunobarros.com/ 6 | Description: Base theme. 7 | Version: 1.0.0 8 | License: GNU General Public License v2 or later 9 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 | Tags: easy, organized, expressive, template, engine, utility. 11 | */ -------------------------------------------------------------------------------- /app/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Redirect Trailing Slashes... 9 | RewriteRule ^(.*)/$ /$1 [L,R=301] 10 | 11 | # Handle Front Controller... 12 | RewriteCond %{REQUEST_FILENAME} !-d 13 | RewriteCond %{REQUEST_FILENAME} !-f 14 | RewriteRule ^ index.php [L] 15 | -------------------------------------------------------------------------------- /app/laravel/views/emails/auth/reminder.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

Password Reset

8 | 9 |
10 | To reset your password, complete this form: {{ URL::to('password/reset', array($token)) }}.
11 | This link will expire in {{ Config::get('auth.reminder.expire', 60) }} minutes. 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /app/laravel/tests/TestCase.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright Copyright (c) 2014 Bruno Barros 10 | */ 11 | class ExampleTest extends TestCase{ 12 | 13 | 14 | 15 | /** 16 | * @test 17 | */ 18 | public function it_should_be_true() 19 | { 20 | assertTrue(true); 21 | } 22 | 23 | 24 | } -------------------------------------------------------------------------------- /app/laravel/start/artisan.php: -------------------------------------------------------------------------------- 1 | true, 17 | 18 | ); 19 | -------------------------------------------------------------------------------- /src/themes/base/app/config/wel.php: -------------------------------------------------------------------------------- 1 | 'local', 8 | 9 | 'APP_THEME' => 'your-theme-folder', 10 | 11 | 'DB_HOST' => 'localhost', 12 | 'DB_NAME' => 'weloquent', 13 | 'DB_USER' => 'root', 14 | 'DB_PASSWORD' => 'secret', 15 | 'DB_PREFIX' => 'wp_', 16 | 'WP_HOME' => 'http://your-domain-here', 17 | 'WP_SITEURL' => 'http://your-domain-here/cms', 18 | 19 | ); -------------------------------------------------------------------------------- /app/server.php: -------------------------------------------------------------------------------- 1 | '', 8 | 9 | 'url' => get_template_directory_uri().'/app/assets', 10 | 11 | 'path' => get_template_directory().'/app/assets', 12 | 13 | 'css' => [ 14 | 15 | 'url' => get_template_directory_uri().'/app/assets/css', 16 | 17 | 'path' => get_template_directory().'/app/assets/css', 18 | 19 | ], 20 | 21 | 'js' => [ 22 | 23 | 'url' => get_template_directory_uri().'/app/assets/js', 24 | 25 | 'path' => get_template_directory().'/app/assets/js', 26 | 27 | ], 28 | 29 | ]; -------------------------------------------------------------------------------- /app/laravel/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 18 | 'next' => 'Next »', 19 | 20 | ); 21 | -------------------------------------------------------------------------------- /src/themes/base/app/Controllers/BaseController.php: -------------------------------------------------------------------------------- 1 | 10 | * @copyright Copyright (c) 2014 Bruno Barros 11 | */ 12 | class BaseController extends Controller{ 13 | 14 | 15 | /** 16 | * Share data 17 | * 18 | * @param string|array $key 19 | * @param null|mixed $value 20 | * @return void 21 | */ 22 | protected function share($key, $value = null) 23 | { 24 | View::share($key, $value); 25 | } 26 | 27 | 28 | } -------------------------------------------------------------------------------- /src/themes/base/app/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 18 | 'next' => 'Next »', 19 | 20 | ); 21 | -------------------------------------------------------------------------------- /app/laravel/config/testing/cache.php: -------------------------------------------------------------------------------- 1 | 'array', 19 | 20 | ); 21 | -------------------------------------------------------------------------------- /src/themes/base/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | ./app/tests/Unit/ 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | ./laravel/tests/ 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/laravel/models/User.php: -------------------------------------------------------------------------------- 1 | 'array', 20 | 21 | ); 22 | -------------------------------------------------------------------------------- /src/mu-plugins/weloquent-bootstrap-plugins.php: -------------------------------------------------------------------------------- 1 | array( 18 | 'domain' => '', 19 | 'secret' => '', 20 | ), 21 | 22 | 'mandrill' => array( 23 | 'secret' => '', 24 | ), 25 | 26 | 'stripe' => array( 27 | 'model' => 'User', 28 | 'secret' => '', 29 | ), 30 | 31 | ); 32 | -------------------------------------------------------------------------------- /app/laravel/lang/en/reminders.php: -------------------------------------------------------------------------------- 1 | "Passwords must be at least six characters and match the confirmation.", 17 | 18 | "user" => "We can't find a user with that e-mail address.", 19 | 20 | "token" => "This password reset token is invalid.", 21 | 22 | "sent" => "Password reminder sent!", 23 | 24 | "reset" => "Password has been reset!", 25 | 26 | ); 27 | -------------------------------------------------------------------------------- /src/themes/base/app/lang/en/reminders.php: -------------------------------------------------------------------------------- 1 | "Passwords must be at least six characters and match the confirmation.", 17 | 18 | "user" => "We can't find a user with that e-mail address.", 19 | 20 | "token" => "This password reset token is invalid.", 21 | 22 | "sent" => "Password reminder sent!", 23 | 24 | "reset" => "Password has been reset!", 25 | 26 | ); 27 | -------------------------------------------------------------------------------- /src/themes/base/app/tests/boottest.php: -------------------------------------------------------------------------------- 1 | __('Main Sidebar', $appPlugin->get_plugin_name()), 17 | 18 | 'id' => 'sidebar-1', 19 | 20 | 'description' => __('Widgets in this area will be shown on all posts and pages.', 21 | $appPlugin->get_plugin_name()), 22 | 23 | 'class' => '', 24 | 25 | 'before_widget' => '\n", 28 | 29 | 'before_title' => '

', 30 | 31 | 'after_title' => '

', 32 | 33 | )); 34 | 35 | }); -------------------------------------------------------------------------------- /app/laravel/config/workbench.php: -------------------------------------------------------------------------------- 1 | '', 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Workbench Author E-Mail Address 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Like the option above, your e-mail address is used when generating new 24 | | workbench packages. The e-mail is placed in your composer.json file 25 | | automatically after the package is created by the workbench tool. 26 | | 27 | */ 28 | 29 | 'email' => '', 30 | 31 | ); 32 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "w.eloquent", 3 | "localUrl": "http://localhost/wordpress", 4 | "version": "0.0.0", 5 | "description": "", 6 | "main": "gulpfile.js", 7 | 8 | "browserify": { 9 | "transform": [ 10 | "browserify-shim" 11 | ] 12 | }, 13 | 14 | "browserify-shim": { 15 | "jquery": "$" 16 | }, 17 | 18 | "dependencies": { 19 | "gulp": "~3.8.8" 20 | }, 21 | 22 | "devDependencies": { 23 | "gulp-rename": "~1.2.0", 24 | "gulp-concat": "~2.4.1", 25 | "gulp-uglify": "~1.0.1", 26 | "gulp-jshint": "~1.8.4", 27 | "gulp-minify-css": "^0.3.10", 28 | "gulp-autoprefixer": "^1.0.1", 29 | "gulp-strip-debug": "^1.0.1", 30 | "browser-sync": "~2.2.2", 31 | "browserify-shim": "^3.8.9", 32 | "gulp-notify": "^2.2.0", 33 | "browserify": "latest", 34 | "watchify": "latest", 35 | "vinyl-source-stream": "latest", 36 | "vinyl-buffer": "latest", 37 | "yargs": "latest" 38 | }, 39 | 40 | "scripts": { 41 | "test": "echo \"Error: no test specified\" && exit 1" 42 | }, 43 | "author": "", 44 | "license": "BSD-2-Clause" 45 | } 46 | -------------------------------------------------------------------------------- /app/laravel/config/view.php: -------------------------------------------------------------------------------- 1 | array(__DIR__.'/../views'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Pagination View 21 | |-------------------------------------------------------------------------- 22 | | 23 | | This view will be used to render the pagination link output, and can 24 | | be easily customized here to show any view you like. A clean view 25 | | compatible with Twitter's Bootstrap is given to you by default. 26 | | 27 | */ 28 | 29 | 'pagination' => 'pagination::slider-3', 30 | 31 | ); 32 | -------------------------------------------------------------------------------- /src/mu-plugins/_prevent_theme_error.php: -------------------------------------------------------------------------------- 1 | get_template() !== APP_THEME || wp_get_theme()->errors() !== false) 18 | { 19 | 20 | $themesFolders = array_filter(scandir(SRC_PATH . '/themes/'), function ($dir) 21 | { 22 | return substr($dir, 0, 1) != '.'; 23 | }); 24 | 25 | 26 | if (in_array(APP_THEME, $themesFolders)) 27 | { 28 | update_option('template', APP_THEME); 29 | update_option('stylesheet', APP_THEME); 30 | } 31 | else 32 | { 33 | printf('

%s

', 'Unable to locate [' . APP_THEME . '] theme directory. Fix it on your .env*.php file.'); 34 | exit; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/themes/base/app/autoload/front/assets.php: -------------------------------------------------------------------------------- 1 | src( Config::get('assets.css.url').'/layout.css' ) 11 | * 12 | * ->deps(['wp-color-picker' ]) 13 | * 14 | * // replace following with real ids of the style you merged 15 | * ->provide( [ 'dashicons', 'admin-bar', 'bootstrap', 'fontawesome' ] ) 16 | * 17 | * ->ver( filemtime( '/srv/www/wp/wp-content/themes/my/style.css' ) ) 18 | * 19 | * ->after( 'body { height: 100%; }' ) 20 | * 21 | * ->media( 'screen' ) 22 | * 23 | * ->isFooter( false ) 24 | * 25 | * ->condition( function( WP_Query $query, $user ) { 26 | * 27 | * return $query->is_page( 'special-page' ) && user_can( $user, 'edit_pages' ); 28 | * 29 | * }); 30 | */ 31 | 32 | $env = App::getFacadeApplication()['env']; 33 | $ver = Config::get('assets.ver'); 34 | $cssUrl = Config::get('assets.css.url'); 35 | $jsUrl = Config::get('assets.js.url'); 36 | -------------------------------------------------------------------------------- /src/themes/base/app/tests/TestCase.php: -------------------------------------------------------------------------------- 1 | app) 20 | { 21 | $this->app = $this->createApplication(); 22 | 23 | $this->client = $this->createClient(); 24 | 25 | $this->app->setRequestForConsoleEnvironment(); 26 | 27 | $this->app->boot(); 28 | } 29 | } 30 | 31 | public function tearDown() { 32 | 33 | \WP_Mock::tearDown(); 34 | \Mockery::close(); 35 | } 36 | 37 | 38 | 39 | 40 | /** 41 | * Creates the application. 42 | * 43 | * @return \Symfony\Component\HttpKernel\HttpKernelInterface 44 | */ 45 | public function createApplication() 46 | { 47 | $unitTesting = true; 48 | 49 | $testEnvironment = 'testing'; 50 | 51 | $paths = require SRC_PATH . '/bootstrap/paths.php'; 52 | 53 | $appInit = $paths['framework'] . '/Core/LaravelApplication.php'; 54 | 55 | return require $appInit; 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /src/themes/base/app/commands/ExampleCommand.php: -------------------------------------------------------------------------------- 1 | line("Hey there! I'm WEL. How are you?"); 41 | } 42 | 43 | /** 44 | * Get the console command arguments. 45 | * 46 | * @return array 47 | */ 48 | protected function getArguments() 49 | { 50 | return array( 51 | array('example', InputArgument::OPTIONAL, 'An example argument.'), 52 | ); 53 | } 54 | 55 | /** 56 | * Get the console command options. 57 | * 58 | * @return array 59 | */ 60 | protected function getOptions() 61 | { 62 | return array( 63 | array('example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null), 64 | ); 65 | } 66 | 67 | } 68 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bruno-barros/w.eloquent", 3 | "description": "Wordpress integrated with Laravel via Composer. Together, but independents.", 4 | "keywords": [ 5 | "Laravel", 6 | "framework", 7 | "WordPress" 8 | ], 9 | "license": "GPL-2.0+", 10 | "authors": [ 11 | { 12 | "name": "Bruno Barros", 13 | "email": "bruno@brunobarros.com", 14 | "homepage": "http://www.brunobarros.com/" 15 | } 16 | ], 17 | "type": "project", 18 | "autoload": { 19 | "files": [ 20 | ], 21 | "classmap": [ 22 | ], 23 | "psr-4": { 24 | "App\\": "src/themes/base/app", 25 | "Starter\\": "src/themes/starter/app" 26 | } 27 | }, 28 | "config": { 29 | "preferred-install": "dist", 30 | "optimize-autoloader": true 31 | }, 32 | "require": { 33 | "php": ">=5.4", 34 | "johnpbloch/wordpress": "4.2.*", 35 | "bruno-barros/w.eloquent-framework": "dev-master", 36 | "brain/amygdala": "dev-master", 37 | "brain/striatum": "dev-master", 38 | "brain/occipital": "dev-master", 39 | "brain/cortex": "dev-master" 40 | }, 41 | "require-dev": { 42 | "phpunit/phpunit": "4.2.*", 43 | "mockery/mockery": "*", 44 | "10up/wp_mock": "dev-master", 45 | "laracasts/integrated" : "0.15.6" 46 | }, 47 | "extra": { 48 | "installer-paths": { 49 | "src/plugins/{$name}/": ["type:wordpress-plugin"], 50 | "src/mu-plugins/{$name}/": ["type:wordpress-muplugin"], 51 | "src/themes/{$name}/": ["type:wordpress-theme"] 52 | }, 53 | "wordpress-install-dir": "cms" 54 | }, 55 | "minimum-stability": "dev", 56 | "prefer-stable": true 57 | } -------------------------------------------------------------------------------- /src/bootstrap/testing.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {{ get_the_title() }} 6 | 7 | 43 | 44 | 45 | 46 | 47 | 48 |
49 | 50 | 51 | 52 | 53 | 54 | @loop 55 | 56 |
57 |

{{ the_title() }}

58 | 59 | {{ the_content() }} 60 |
61 | 62 | @emptyloop 63 | 64 |

404

65 | 66 | @endloop 67 | 68 |
69 | 70 | get a base theme on github 71 | 72 |
73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/bootstrap/production.php: -------------------------------------------------------------------------------- 1 | 'production', 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Remote Server Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | These are the servers that will be accessible via the SSH task runner 24 | | facilities of Laravel. This feature radically simplifies executing 25 | | tasks on your servers, such as deploying out these applications. 26 | | 27 | */ 28 | 29 | 'connections' => array( 30 | 31 | 'production' => array( 32 | 'host' => '', 33 | 'username' => '', 34 | 'password' => '', 35 | 'key' => '', 36 | 'keyphrase' => '', 37 | 'root' => '/var/www', 38 | ), 39 | 40 | ), 41 | 42 | /* 43 | |-------------------------------------------------------------------------- 44 | | Remote Server Groups 45 | |-------------------------------------------------------------------------- 46 | | 47 | | Here you may list connections under a single group name, which allows 48 | | you to easily access all of the servers at once using a short name 49 | | that is extremely easy to remember, such as "web" or "database". 50 | | 51 | */ 52 | 53 | 'groups' => array( 54 | 55 | 'web' => array('production') 56 | 57 | ), 58 | 59 | ); 60 | -------------------------------------------------------------------------------- /src/themes/base/app/config/view.php: -------------------------------------------------------------------------------- 1 | [ 16 | $paths['theme'], 17 | $paths['theme'] . '/app/views', 18 | ], 19 | 20 | /** 21 | * --------------------------------------------------------------------- 22 | * Pagination View 23 | * --------------------------------------------------------------------- 24 | * 25 | * This view will be used to render the pagination link output, and can 26 | * be easily customized here to show any view you like. A clean view 27 | * compatible with Twitter's Bootstrap is given to you by default. 28 | * 29 | * @see \Weloquent\Support\Pagination::render() 30 | */ 31 | 'pagination' => null, 32 | 33 | /** 34 | * -------------------------------------------------------------------------- 35 | * Views filters/actions hooks 36 | * -------------------------------------------------------------------------- 37 | * 38 | * The way Blade engine intercepts the templates requested by WordPress is 39 | * using filters. These are the core filters, but you can add more filters 40 | * made by plugins if you want to render as Blade views. 41 | * ATTENTION: if you remove these filters the Blade engine could not 42 | * do the job accordingly. 43 | * 44 | */ 45 | 46 | 'view_actions' => [ 47 | 'template_include', 48 | ], 49 | 50 | 'view_filters' => [ 51 | 'index_template', 52 | 'comments_template', 53 | 'bp_template_include',// Listen for Buddypress include action 54 | ], 55 | 56 | ]; -------------------------------------------------------------------------------- /app/bootstrap/paths.php: -------------------------------------------------------------------------------- 1 | __DIR__.'/../laravel', 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Public Path 21 | |-------------------------------------------------------------------------- 22 | | 23 | | The public path contains the assets for your web application, such as 24 | | your JavaScript and CSS files, and also contains the primary entry 25 | | point for web requests into these applications from the outside. 26 | | 27 | */ 28 | 29 | 'public' => __DIR__.'/../public', 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Base Path 34 | |-------------------------------------------------------------------------- 35 | | 36 | | The base path is the root of the Laravel installation. Most likely you 37 | | will not need to change this value. But, if for some wild reason it 38 | | is necessary you will do so here, just proceed with some caution. 39 | | 40 | */ 41 | 42 | 'base' => __DIR__.'/..', 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Storage Path 47 | |-------------------------------------------------------------------------- 48 | | 49 | | The storage path is used by Laravel to store cached Blade views, logs 50 | | and other pieces of information. You may modify the path here when 51 | | you want to change the location of this directory for your apps. 52 | | 53 | */ 54 | 55 | 'storage' => __DIR__.'/../laravel/storage', 56 | 57 | ); 58 | -------------------------------------------------------------------------------- /wel: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | setRequestForConsoleEnvironment(); 31 | 32 | //$artisan = Illuminate\Console\Application::start($app); 33 | $wel = Weloquent\Core\Console\WelConsole::start($app); 34 | 35 | 36 | /** 37 | * ---------------------------------------------------------------------- 38 | * Run The Artisan/Wel Application 39 | * ---------------------------------------------------------------------- 40 | * 41 | * When we run the console application, the current CLI command will be 42 | * executed in this console and the response sent back to a terminal 43 | * or another output device for the developers. Here goes nothing! 44 | */ 45 | $status = $wel->run(); 46 | 47 | 48 | /** 49 | * ---------------------------------------------------------------------- 50 | * Shutdown The Application 51 | * ---------------------------------------------------------------------- 52 | *Once Artisan has finished running. We will fire off the shutdown events 53 | * so that any final work may be done by the application before we shut 54 | * down the process. This is the last thing to happen to the request. 55 | */ 56 | $app->shutdown(); 57 | 58 | exit($status); -------------------------------------------------------------------------------- /app/laravel/config/auth.php: -------------------------------------------------------------------------------- 1 | 'eloquent', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Authentication Model 23 | |-------------------------------------------------------------------------- 24 | | 25 | | When using the "Eloquent" authentication driver, we need to know which 26 | | Eloquent model should be used to retrieve your users. Of course, it 27 | | is often just the "User" model but you may use whatever you like. 28 | | 29 | */ 30 | 31 | 'model' => 'User', 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | Authentication Table 36 | |-------------------------------------------------------------------------- 37 | | 38 | | When using the "Database" authentication driver, we need to know which 39 | | table should be used to retrieve your users. We have chosen a basic 40 | | default value but you may easily change it to any table you like. 41 | | 42 | */ 43 | 44 | 'table' => 'users', 45 | 46 | /* 47 | |-------------------------------------------------------------------------- 48 | | Password Reminder Settings 49 | |-------------------------------------------------------------------------- 50 | | 51 | | Here you may set the settings for password reminders, including a view 52 | | that should be used as your password reminder e-mail. You will also 53 | | be able to set the name of the table that holds the reset tokens. 54 | | 55 | | The "expire" time is the number of minutes that the reminder should be 56 | | considered valid. This security feature keeps tokens short-lived so 57 | | they have less time to be guessed. You may change this as needed. 58 | | 59 | */ 60 | 61 | 'reminder' => array( 62 | 63 | 'email' => 'emails.auth.reminder', 64 | 65 | 'table' => 'password_reminders', 66 | 67 | 'expire' => 60, 68 | 69 | ), 70 | 71 | ); 72 | -------------------------------------------------------------------------------- /app/index.php: -------------------------------------------------------------------------------- 1 | 23 | */ 24 | 25 | 26 | 27 | /* 28 | |-------------------------------------------------------------------------- 29 | | Register The Auto Loader 30 | |-------------------------------------------------------------------------- 31 | | 32 | | Composer provides a convenient, automatically generated class loader 33 | | for our application. We just need to utilize it! We'll require it 34 | | into the script here so that we do not have to worry about the 35 | | loading of any our classes "manually". Feels great to relax. 36 | | 37 | */ 38 | 39 | require __DIR__.'/bootstrap/autoload.php'; 40 | 41 | /* 42 | |-------------------------------------------------------------------------- 43 | | Turn On The Lights 44 | |-------------------------------------------------------------------------- 45 | | 46 | | We need to illuminate PHP development, so let's turn on the lights. 47 | | This bootstraps the framework and gets it ready for use, then it 48 | | will load up this application so that we can run it and send 49 | | the responses back to the browser and delight these users. 50 | | 51 | */ 52 | 53 | $app = require_once __DIR__.'/bootstrap/start.php'; 54 | 55 | /* 56 | |-------------------------------------------------------------------------- 57 | | Run The Application 58 | |-------------------------------------------------------------------------- 59 | | 60 | | Once we have the application, we can simply call the run method, 61 | | which will execute the request and send the response back to 62 | | the client's browser allowing them to enjoy the creative 63 | | and wonderful application we have whipped up for them. 64 | | 65 | */ 66 | 67 | $app->run(); 68 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![w.eloquent](https://raw.githubusercontent.com/bruno-barros/w.eloquent-framework/master/weloquent.png) 2 | 3 | [![Build Status](https://travis-ci.org/bruno-barros/w.eloquent-framework.svg)](https://travis-ci.org/bruno-barros/w.eloquent-framework) 4 | 5 | Wordpress integrated with Laravel via Composer. 6 | 7 | * Atention! The branch `master` is no longer manteined. Now I'm working on branch `light`. Not booting Laravel anymore, instead just using some packages. It all is because performance reason. 8 | 9 | #### Documentation is being building on [wiki page](https://github.com/bruno-barros/w.eloquent/wiki). 10 | 11 | ### Goals 12 | Run `composer install` and have a system in place with: 13 | 14 | - Wordpress as front and back-end 15 | - Laravel as API and front-and (if necessary) 16 | - Install Wordpress and plugins via composer 17 | - Keeping plugins and themes for Wordpress environment as it is 18 | - Access to Laravel API, including Facades, inside Wordpress 19 | - Access Wordpress API inside Laravel 20 | 21 | ### Theme features 22 | The w.eloquent project comes with a very simple theme (base). 23 | 24 | To see the very features you have at your disposal, check out the [w.eloquent starter theme](https://github.com/bruno-barros/weloquent-starter-theme) 25 | 26 | ### Complementary packages 27 | 28 | [**w.eloquent Command Bus**](https://github.com/bruno-barros/w.eloquent-bus) 29 | 30 | 31 | ### Inspirations 32 | These are projects I like and did inspire me to put it all together: 33 | 34 | - [Wordpress](https://wordpress.org/) 35 | - [Laravel](http://laravel.com/) 36 | - [Themosis framework](http://framework.themosis.com/) 37 | - [Brain Project](http://giuseppe-mazzapica.github.io/Brain) 38 | 39 | ### Status 40 | The packages are being adapted to WordPress environment. 41 | 42 | - [x] Views 43 | - [x] Blade template engine 44 | - [x] Routes by Cortex 45 | - [x] Assets by Occiptial 46 | - [x] Hooks by Striatum 47 | - [x] Validation 48 | - [x] CLI (php wel) 49 | - [x] Cache 50 | - [x] Hash 51 | - [x] Filesystem 52 | - [x] Html 53 | - [x] Translation 54 | - [x] Encryption 55 | - [x] Cookie 56 | - [x] Session 57 | - [x] Database 58 | - [x] Migration 59 | - [x] Seed 60 | - [x] Auth 61 | - [x] Log 62 | - [x] Mail 63 | - [x] Queue 64 | 65 |
66 | 67 | - [ ] Redis 68 | - [ ] Remote 69 | - [ ] Reminder 70 | 71 |
72 | 73 | - Workbench (not planned) 74 | - Pagination (provided by WordPress) 75 | -------------------------------------------------------------------------------- /app/laravel/config/queue.php: -------------------------------------------------------------------------------- 1 | 'sync', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Queue Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may configure the connection information for each server that 26 | | is used by your application. A default configuration has been added 27 | | for each back-end shipped with Laravel. You are free to add more. 28 | | 29 | */ 30 | 31 | 'connections' => array( 32 | 33 | 'sync' => array( 34 | 'driver' => 'sync', 35 | ), 36 | 37 | 'beanstalkd' => array( 38 | 'driver' => 'beanstalkd', 39 | 'host' => 'localhost', 40 | 'queue' => 'default', 41 | 'ttr' => 60, 42 | ), 43 | 44 | 'sqs' => array( 45 | 'driver' => 'sqs', 46 | 'key' => 'your-public-key', 47 | 'secret' => 'your-secret-key', 48 | 'queue' => 'your-queue-url', 49 | 'region' => 'us-east-1', 50 | ), 51 | 52 | 'iron' => array( 53 | 'driver' => 'iron', 54 | 'host' => 'mq-aws-us-east-1.iron.io', 55 | 'token' => 'your-token', 56 | 'project' => 'your-project-id', 57 | 'queue' => 'your-queue-name', 58 | 'encrypt' => true, 59 | ), 60 | 61 | 'redis' => array( 62 | 'driver' => 'redis', 63 | 'queue' => 'default', 64 | ), 65 | 66 | ), 67 | 68 | /* 69 | |-------------------------------------------------------------------------- 70 | | Failed Queue Jobs 71 | |-------------------------------------------------------------------------- 72 | | 73 | | These options configure the behavior of failed queue job logging so you 74 | | can control which database and table are used to store the jobs that 75 | | have failed. You may change them to any database / table you wish. 76 | | 77 | */ 78 | 79 | 'failed' => array( 80 | 81 | 'database' => 'mysql', 'table' => 'failed_jobs', 82 | 83 | ), 84 | 85 | ); 86 | -------------------------------------------------------------------------------- /src/themes/base/app/autoload/theme-support.php: -------------------------------------------------------------------------------- 1 | '', 32 | 'default-image' => '', 33 | 'wp-head-callback' => '_custom_background_cb', 34 | 'admin-head-callback' => '', 35 | 'admin-preview-callback' => '' 36 | )); 37 | 38 | 39 | 40 | /** 41 | * Custom header 42 | * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Custom_Header 43 | */ 44 | add_theme_support( 'custom-header', array( 45 | 'default-image' => '', 46 | 'random-default' => false, 47 | 'width' => 0, 48 | 'height' => 0, 49 | 'flex-height' => false, 50 | 'flex-width' => false, 51 | 'default-text-color' => '', 52 | 'header-text' => true, 53 | 'uploads' => true, 54 | 'wp-head-callback' => '', 55 | 'admin-head-callback' => '', 56 | 'admin-preview-callback' => '', 57 | )); 58 | 59 | 60 | /** 61 | * Feed links 62 | * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Feed_Links 63 | */ 64 | add_theme_support( 'automatic-feed-links' ); 65 | 66 | 67 | /** 68 | * HTML5 support 69 | * 70 | * @link http://codex.wordpress.org/Function_Reference/add_theme_support#HTML5 71 | */ 72 | add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) ); 73 | 74 | 75 | /** 76 | * Title tag 77 | * 78 | * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Title_Tag 79 | */ 80 | add_theme_support( 'title-tag' ); 81 | 82 | }); 83 | -------------------------------------------------------------------------------- /src/themes/base/app/config/queue.php: -------------------------------------------------------------------------------- 1 | 'sync', 19 | 20 | /** 21 | * -------------------------------------------------------------------------- 22 | * Queue Connections 23 | * -------------------------------------------------------------------------- 24 | * 25 | * Here you may configure the connection information for each server that 26 | * is used by your application. A default configuration has been added 27 | * for each back-end shipped with Laravel. You are free to add more. 28 | * 29 | */ 30 | 31 | 'connections' => array( 32 | 33 | 'sync' => array( 34 | 'driver' => 'sync', 35 | ), 36 | 37 | 'beanstalkd' => array( 38 | 'driver' => 'beanstalkd', 39 | 'host' => 'localhost', 40 | 'queue' => 'default', 41 | 'ttr' => 60, 42 | ), 43 | 44 | 'sqs' => array( 45 | 'driver' => 'sqs', 46 | 'key' => 'your-public-key', 47 | 'secret' => 'your-secret-key', 48 | 'queue' => 'your-queue-url', 49 | 'region' => 'us-east-1', 50 | ), 51 | 52 | 'iron' => array( 53 | 'driver' => 'iron', 54 | 'host' => 'mq-aws-us-east-1.iron.io', 55 | 'token' => 'your-token', 56 | 'project' => 'your-project-id', 57 | 'queue' => 'your-queue-name', 58 | 'encrypt' => true, 59 | ), 60 | 61 | 'redis' => array( 62 | 'driver' => 'redis', 63 | 'queue' => 'default', 64 | ), 65 | 66 | ), 67 | 68 | /** 69 | * -------------------------------------------------------------------------- 70 | * Failed Queue Jobs 71 | * -------------------------------------------------------------------------- 72 | * 73 | * These options configure the behavior of failed queue job logging so you 74 | * can control which database and table are used to store the jobs that 75 | * have failed. You may change them to any database / table you wish. 76 | * 77 | */ 78 | 79 | 'failed' => array( 80 | 81 | 'database' => 'mysql', 'table' => 'failed_jobs', 82 | 83 | ), 84 | 85 | ]; -------------------------------------------------------------------------------- /src/bootstrap/paths.php: -------------------------------------------------------------------------------- 1 | __DIR__ . '/../themes/' . APP_THEME . '/app', 16 | 17 | /** 18 | * -------------------------------------------------------------------------- 19 | * Theme Path 20 | * -------------------------------------------------------------------------- 21 | * 22 | * The public path contains the assets for your web application, such as 23 | * your JavaScript and CSS files, and also contains the primary entry 24 | * point for web requests into these applications from the outside. 25 | * The 'public' index if to keep compatibility with some services. 26 | * 27 | */ 28 | 29 | 'theme' => __DIR__ . '/../themes/' . APP_THEME, 30 | 'public' => __DIR__ . '/../themes/' . APP_THEME, 31 | 32 | /** 33 | * -------------------------------------------------------------------------- 34 | * Base Path 35 | * -------------------------------------------------------------------------- 36 | * 37 | * The base path is the root of the WP installation. Most likely you 38 | * will not need to change this value. But, if for some wild reason it 39 | * is necessary you will do so here, just proceed with some caution. 40 | * 41 | */ 42 | 43 | 'base' => __DIR__ . '/../..', 44 | 45 | /** 46 | * -------------------------------------------------------------------------- 47 | * Storage Path 48 | * -------------------------------------------------------------------------- 49 | * 50 | * The storage path is used by WP to store cached Blade views, logs 51 | * and other pieces of information. You may modify the path here when 52 | * you want to change the location of this directory for your apps. 53 | * 54 | */ 55 | 56 | 'storage' => __DIR__ . '/../storage', 57 | 58 | /** 59 | * -------------------------------------------------------------------------- 60 | * Weloquent framework 61 | * -------------------------------------------------------------------------- 62 | * 63 | * Path to the framework 64 | * 65 | */ 66 | 67 | 'framework' => __DIR__ . '/../../vendor/bruno-barros/w.eloquent-framework/src/weloquent', 68 | 69 | ]; -------------------------------------------------------------------------------- /app/laravel/filters.php: -------------------------------------------------------------------------------- 1 | isFile() && !$file->isDot()) 71 | { 72 | if (pathinfo($file->getFilename(), PATHINFO_EXTENSION) === 'php') 73 | { 74 | include_once $file->getPath() . DS . $file->getBasename(); 75 | } 76 | } 77 | } 78 | } 79 | } 80 | 81 | -------------------------------------------------------------------------------- /app/artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | setRequestForConsoleEnvironment(); 45 | 46 | $artisan = Illuminate\Console\Application::start($app); 47 | 48 | /* 49 | |-------------------------------------------------------------------------- 50 | | Run The Artisan Application 51 | |-------------------------------------------------------------------------- 52 | | 53 | | When we run the console application, the current CLI command will be 54 | | executed in this console and the response sent back to a terminal 55 | | or another output device for the developers. Here goes nothing! 56 | | 57 | */ 58 | 59 | $status = $artisan->run(); 60 | 61 | /* 62 | |-------------------------------------------------------------------------- 63 | | Shutdown The Application 64 | |-------------------------------------------------------------------------- 65 | | 66 | | Once Artisan has finished running. We will fire off the shutdown events 67 | | so that any final work may be done by the application before we shut 68 | | down the process. This is the last thing to happen to the request. 69 | | 70 | */ 71 | 72 | $app->shutdown(); 73 | 74 | exit($status); 75 | -------------------------------------------------------------------------------- /app/bootstrap/autoload.php: -------------------------------------------------------------------------------- 1 | detectEnvironment(function(){ 33 | 34 | $root_path = dirname(dirname(__DIR__)); 35 | $env = new \Weloquent\Config\Environment($root_path.DS); 36 | 37 | return $env->which(); 38 | }); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Bind Paths 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Here we are binding the paths configured in paths.php to the app. You 46 | | should not be changing these here. If you need to change these you 47 | | may do so within the paths.php file and they will be bound here. 48 | | 49 | */ 50 | 51 | $app->bindInstallPaths(require __DIR__.'/paths.php'); 52 | 53 | /* 54 | |-------------------------------------------------------------------------- 55 | | Load The Application 56 | |-------------------------------------------------------------------------- 57 | | 58 | | Here we will load this Illuminate application. We will keep this in a 59 | | separate location so we can isolate the creation of an application 60 | | from the actual running of the application with a given request. 61 | | 62 | */ 63 | 64 | $framework = $app['path.base'].'/../vendor/laravel/framework/src'; 65 | 66 | require $framework.'/Illuminate/Foundation/start.php'; 67 | 68 | /* 69 | |-------------------------------------------------------------------------- 70 | | Return The Application 71 | |-------------------------------------------------------------------------- 72 | | 73 | | This script returns the application instance. The instance is given to 74 | | the calling script so we can separate the building of the instances 75 | | from the actual running of the application and sending responses. 76 | | 77 | */ 78 | 79 | return $app; 80 | -------------------------------------------------------------------------------- /src/themes/base/app/config/auth.php: -------------------------------------------------------------------------------- 1 | 'wordpress', 19 | 20 | /** 21 | * -------------------------------------------------------------------------- 22 | * Attempting credentials fields 23 | * -------------------------------------------------------------------------- 24 | * 25 | * This configuration allows you to set the input fields names to attempt 26 | * the authentication database fields 27 | */ 28 | 29 | 'credentials' => ['login' => 'user_login', 'password' => 'user_password'], 30 | 31 | /** 32 | * -------------------------------------------------------------------------- 33 | * Authentication Model 34 | * -------------------------------------------------------------------------- 35 | * 36 | * When using the "Eloquent" authentication driver, we need to know which 37 | * Eloquent model should be used to retrieve your users. Of course, it 38 | * is often just the "User" model but you may use whatever you like. 39 | * 40 | */ 41 | 42 | 'model' => 'User', 43 | 44 | /** 45 | * -------------------------------------------------------------------------- 46 | * Authentication Table 47 | * -------------------------------------------------------------------------- 48 | * 49 | * When using the "Database" authentication driver, we need to know which 50 | * table should be used to retrieve your users. We have chosen a basic 51 | * default value but you may easily change it to any table you like. 52 | * 53 | */ 54 | 55 | 'table' => 'users', 56 | 57 | /** 58 | * -------------------------------------------------------------------------- 59 | * Password Reminder Settings 60 | * -------------------------------------------------------------------------- 61 | * 62 | * Here you may set the settings for password reminders, including a view 63 | * that should be used as your password reminder e-mail. You will also 64 | * be able to set the name of the table that holds the reset tokens. 65 | * 66 | * The "expire" time is the number of minutes that the reminder should be 67 | * considered valid. This security feature keeps tokens short-lived so 68 | * they have less time to be guessed. You may change this as needed. 69 | * 70 | */ 71 | 72 | 'reminder' => array( 73 | 74 | 'email' => 'emails.auth.reminder', 75 | 76 | 'table' => 'password_reminders', 77 | 78 | 'expire' => 60, 79 | 80 | ), 81 | 82 | ]; -------------------------------------------------------------------------------- /app/laravel/config/cache.php: -------------------------------------------------------------------------------- 1 | 'file', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | File Cache Location 23 | |-------------------------------------------------------------------------- 24 | | 25 | | When using the "file" cache driver, we need a location where the cache 26 | | files may be stored. A sensible default has been specified, but you 27 | | are free to change it to any other place on disk that you desire. 28 | | 29 | */ 30 | 31 | 'path' => storage_path().'/cache', 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | Database Cache Connection 36 | |-------------------------------------------------------------------------- 37 | | 38 | | When using the "database" cache driver you may specify the connection 39 | | that should be used to store the cached items. When this option is 40 | | null the default database connection will be utilized for cache. 41 | | 42 | */ 43 | 44 | 'connection' => null, 45 | 46 | /* 47 | |-------------------------------------------------------------------------- 48 | | Database Cache Table 49 | |-------------------------------------------------------------------------- 50 | | 51 | | When using the "database" cache driver we need to know the table that 52 | | should be used to store the cached items. A default table name has 53 | | been provided but you're free to change it however you deem fit. 54 | | 55 | */ 56 | 57 | 'table' => 'cache', 58 | 59 | /* 60 | |-------------------------------------------------------------------------- 61 | | Memcached Servers 62 | |-------------------------------------------------------------------------- 63 | | 64 | | Now you may specify an array of your Memcached servers that should be 65 | | used when utilizing the Memcached cache driver. All of the servers 66 | | should contain a value for "host", "port", and "weight" options. 67 | | 68 | */ 69 | 70 | 'memcached' => array( 71 | 72 | array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100), 73 | 74 | ), 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | Cache Key Prefix 79 | |-------------------------------------------------------------------------- 80 | | 81 | | When utilizing a RAM based store such as APC or Memcached, there might 82 | | be other applications utilizing the same cache. So, we'll specify a 83 | | value to get prefixed to all our keys so we can avoid collisions. 84 | | 85 | */ 86 | 87 | 'prefix' => 'laravel', 88 | 89 | ); 90 | -------------------------------------------------------------------------------- /src/themes/base/app/config/cache.php: -------------------------------------------------------------------------------- 1 | 'file', 19 | 20 | /** 21 | * -------------------------------------------------------------------------- 22 | * File Cache Location 23 | * -------------------------------------------------------------------------- 24 | * 25 | * When using the "file" cache driver, we need a location where the cache 26 | * files may be stored. A sensible default has been specified, but you 27 | * are free to change it to any other place on disk that you desire. 28 | * 29 | */ 30 | 31 | 'path' => SRC_PATH.DS.'storage'.DS.'cache', 32 | 33 | /** 34 | * -------------------------------------------------------------------------- 35 | * Database Cache Connection 36 | * -------------------------------------------------------------------------- 37 | * 38 | * When using the "database" cache driver you may specify the connection 39 | * that should be used to store the cached items. When this option is 40 | * null the default database connection will be utilized for cache. 41 | * 42 | */ 43 | 44 | 'connection' => null, 45 | 46 | /** 47 | * -------------------------------------------------------------------------- 48 | * Database Cache Table 49 | * -------------------------------------------------------------------------- 50 | * 51 | * When using the "database" cache driver we need to know the table that 52 | * should be used to store the cached items. A default table name has 53 | * been provided but you're free to change it however you deem fit. 54 | * 55 | */ 56 | 57 | 'table' => 'cache', 58 | 59 | /** 60 | * -------------------------------------------------------------------------- 61 | * Memcached Servers 62 | * -------------------------------------------------------------------------- 63 | * 64 | * Now you may specify an array of your Memcached servers that should be 65 | * used when utilizing the Memcached cache driver. All of the servers 66 | * should contain a value for "host", "port", and "weight" options. 67 | * 68 | */ 69 | 70 | 'memcached' => array( 71 | 72 | array('host' => '127.0.0.1', 'port' => 11211, 'weight' => 100), 73 | 74 | ), 75 | 76 | /** 77 | * -------------------------------------------------------------------------- 78 | * Cache Key Prefix 79 | * -------------------------------------------------------------------------- 80 | * 81 | * When utilizing a RAM based store such as APC or Memcached, there might 82 | * be other applications utilizing the same cache. So, we'll specify a 83 | * value to get prefixed to all our keys so we can avoid collisions. 84 | * 85 | */ 86 | 87 | 'prefix' => 'weloquent', 88 | 89 | ]; -------------------------------------------------------------------------------- /src/bootstrap/shared.php: -------------------------------------------------------------------------------- 1 | which(); 41 | 42 | if (empty($location)) 43 | { 44 | printf('

%s

', 'Unable to define the environment. Make sure to define your hostname.'); 45 | } 46 | 47 | $loaded = $env->load($location); 48 | 49 | if (empty($loaded)) 50 | { 51 | printf('

%s

', 'Unable to locate your environment file.'); 52 | } 53 | 54 | /** 55 | * ---------------------------------------------------- 56 | * Check required vars 57 | * ---------------------------------------------------- 58 | */ 59 | $check = $env->check(array( 60 | 'APP_ENV', 61 | 'APP_THEME', 62 | 'DB_NAME', 63 | 'DB_USER', 64 | 'DB_PASSWORD', 65 | 'DB_HOST', 66 | 'WP_HOME', 67 | 'WP_SITEURL' 68 | ), $loaded); 69 | 70 | /** 71 | * ---------------------------------------------------- 72 | * Populate environment vars 73 | * ---------------------------------------------------- 74 | */ 75 | if ($check) 76 | { 77 | $env->populate($loaded); 78 | } 79 | else 80 | { 81 | printf('

%s

', 'Missing environment variables.'); 82 | } 83 | 84 | 85 | 86 | /** 87 | * ---------------------------------------------------- 88 | * Load environment config constants 89 | * ---------------------------------------------------- 90 | */ 91 | if (file_exists($config = $root_path . DS . 'src' . DS . 'bootstrap' . DS . $location . '.php')) 92 | { 93 | require_once($config); 94 | } 95 | 96 | /** 97 | * ---------------------------------------------------- 98 | * Include shared configuration 99 | * ---------------------------------------------------- 100 | */ 101 | if (file_exists($shared = $root_path . DS . 'src' . DS . 'bootstrap' . DS . 'shared.php')) 102 | { 103 | require_once($shared); 104 | } 105 | 106 | 107 | /** 108 | * -------------------------------------------------------------------------- 109 | * Include The Compiled Class File 110 | * -------------------------------------------------------------------------- 111 | * 112 | * To dramatically increase your application's performance, you may use a 113 | * compiled class file which contains all of the classes commonly used 114 | * by a request. The Wel "optimize --force" is used to create this file. 115 | */ 116 | $paths = require SRC_PATH.DS.'bootstrap'.DS.'paths.php'; 117 | 118 | if (file_exists($compiled = $paths['storage']. '/compiled.php')) 119 | { 120 | require $compiled; 121 | } 122 | -------------------------------------------------------------------------------- /gulpfile.js: -------------------------------------------------------------------------------- 1 | var gulp = require('gulp'); 2 | var fs = require('fs'); 3 | var pkg = JSON.parse(fs.readFileSync('./package.json')); 4 | // Include Our Plugins 5 | var jshint = require('gulp-jshint'); 6 | var concat = require('gulp-concat'); 7 | var uglify = require('gulp-uglify'); 8 | var rename = require('gulp-rename'); 9 | var minifyCSS = require('gulp-minify-css'); 10 | var autoprefixer = require('gulp-autoprefixer'); 11 | var stripDebug = require('gulp-strip-debug'); 12 | var browserify = require('browserify'); 13 | var notify = require("gulp-notify"); 14 | var watchify = require('watchify'); 15 | var source = require('vinyl-source-stream'); 16 | var buffer = require('vinyl-buffer'); 17 | var argv = require('yargs').argv; 18 | var browserSync = require('browser-sync').create(); 19 | 20 | // theme assets folder 21 | var assets = 'src/themes/base/app/assets'; 22 | 23 | /** 24 | *---------------------- 25 | * Assets to combine on global file 26 | */ 27 | var CSS_FILES = [ 28 | //assets + '/css/bootstrap.css' 29 | ]; 30 | 31 | var JS_FILES = [ 32 | //assets + '/js/bootstrap.min.js' 33 | ]; 34 | 35 | 36 | 37 | /** 38 | * ------------------------------------------- 39 | * Styles goes here 40 | */ 41 | gulp.task('styles', function () { 42 | gulp.src(CSS_FILES) 43 | .pipe(autoprefixer({ 44 | browsers: ['last 2 versions'], 45 | cascade: false 46 | })) 47 | .pipe(concat('_global.css')) 48 | .pipe(gulp.dest(assets + '/css')) 49 | .pipe(rename('_global.min.css')) 50 | .pipe(minifyCSS({keepBreaks: false})) 51 | .pipe(gulp.dest(assets + '/css')); 52 | }); 53 | 54 | /** 55 | * ------------------------------------------ 56 | * Scripts goes here 57 | */ 58 | gulp.task('lint', function () { 59 | return gulp.src(assets + '/js/**/*.js') 60 | .pipe(jshint()) 61 | .pipe(jshint.reporter('default')); 62 | }); 63 | 64 | gulp.task('scripts', function () { 65 | gulp.src(JS_FILES) 66 | .pipe(concat('_global.js')) 67 | .pipe(stripDebug()) 68 | .pipe(gulp.dest(assets + '/js')) 69 | .pipe(rename('_global.min.js')) 70 | .pipe(uglify()) 71 | .pipe(gulp.dest(assets + '/js')); 72 | }); 73 | 74 | 75 | /** 76 | * ---------------------------------------------- 77 | * Example of scripts loaded with browserify 78 | * run> gulp app-js -w 79 | */ 80 | gulp.task('app-js', ['browser-sync'], function () { 81 | 82 | var nameIn = 'apps/app.js', 83 | nameOut = '_app.js', 84 | b = browserify(assets + '/js/' + nameIn); 85 | 86 | function bundle() { 87 | return b.bundle() 88 | .pipe(source(nameOut)) 89 | .pipe(buffer()) 90 | .pipe(uglify()) 91 | .pipe(gulp.dest(assets + '/js')); 92 | } 93 | 94 | if (argv.w || argv.watch) { 95 | 96 | b = watchify(b); 97 | // Rebundle on update 98 | b.on('update', bundle); 99 | b.on('update', browserSync.reload); 100 | } 101 | 102 | return bundle(); 103 | 104 | }); 105 | 106 | 107 | /** 108 | * ---------------------------------------- 109 | * Browser sync 110 | * ---------------------------------------- 111 | * Add ['browser-sync'] as dependency task 112 | * to reload the browser. 113 | * @see package.json to configure local url 114 | */ 115 | gulp.task('browser-sync', function () { 116 | browserSync.init({ 117 | proxy: pkg.localUrl, 118 | port: 80 119 | }); 120 | }); 121 | 122 | /** 123 | * ---------------------------------------- 124 | * Watch Files For Changes 125 | */ 126 | gulp.task('watch', function () { 127 | gulp.watch([ 128 | assets + '/js/**/*.js', 129 | '!' + assets + '/js/_*.js' 130 | ], 131 | ['lint', 'scripts']); 132 | gulp.watch([ 133 | assets + '/css/*.css', 134 | '!' + assets + '/css/_*.css' 135 | ], 136 | ['styles']); 137 | }); 138 | 139 | 140 | 141 | /** 142 | * ------------------------------------------ 143 | * Assets tasks 144 | */ 145 | gulp.task('assets', ['scripts', 'styles']); 146 | 147 | 148 | gulp.task('default', ['assets', 'watch']); -------------------------------------------------------------------------------- /app/laravel/config/database.php: -------------------------------------------------------------------------------- 1 | PDO::FETCH_CLASS, 16 | 17 | /* 18 | |-------------------------------------------------------------------------- 19 | | Default Database Connection Name 20 | |-------------------------------------------------------------------------- 21 | | 22 | | Here you may specify which of the database connections below you wish 23 | | to use as your default connection for all database work. Of course 24 | | you may use many connections at once using the Database library. 25 | | 26 | */ 27 | 28 | 'default' => 'mysql', 29 | 30 | /* 31 | |-------------------------------------------------------------------------- 32 | | Database Connections 33 | |-------------------------------------------------------------------------- 34 | | 35 | | Here are each of the database connections setup for your application. 36 | | Of course, examples of configuring each database platform that is 37 | | supported by Laravel is shown below to make development simple. 38 | | 39 | | 40 | | All database work in Laravel is done through the PHP PDO facilities 41 | | so make sure you have the driver for your particular database of 42 | | choice installed on your machine before you begin development. 43 | | 44 | */ 45 | 46 | 'connections' => array( 47 | 48 | 'sqlite' => array( 49 | 'driver' => 'sqlite', 50 | 'database' => __DIR__.'/../database/production.sqlite', 51 | 'prefix' => '', 52 | ), 53 | 54 | 'mysql' => array( 55 | 'driver' => 'mysql', 56 | 'host' => getenv('DB_HOST'), 57 | 'database' => getenv('DB_NAME'), 58 | 'username' => getenv('DB_USER'), 59 | 'password' => getenv('DB_PASSWORD'), 60 | 'charset' => 'utf8', 61 | 'collation' => 'utf8_unicode_ci', 62 | 'prefix' => getenv('DB_PREFIX'), 63 | ), 64 | 65 | 'pgsql' => array( 66 | 'driver' => 'pgsql', 67 | 'host' => 'localhost', 68 | 'database' => 'forge', 69 | 'username' => 'forge', 70 | 'password' => '', 71 | 'charset' => 'utf8', 72 | 'prefix' => '', 73 | 'schema' => 'public', 74 | ), 75 | 76 | 'sqlsrv' => array( 77 | 'driver' => 'sqlsrv', 78 | 'host' => 'localhost', 79 | 'database' => 'database', 80 | 'username' => 'root', 81 | 'password' => '', 82 | 'prefix' => '', 83 | ), 84 | 85 | ), 86 | 87 | /* 88 | |-------------------------------------------------------------------------- 89 | | Migration Repository Table 90 | |-------------------------------------------------------------------------- 91 | | 92 | | This table keeps track of all the migrations that have already run for 93 | | your application. Using this information, we can determine which of 94 | | the migrations on disk haven't actually been run in the database. 95 | | 96 | */ 97 | 98 | 'migrations' => 'migrations', 99 | 100 | /* 101 | |-------------------------------------------------------------------------- 102 | | Redis Databases 103 | |-------------------------------------------------------------------------- 104 | | 105 | | Redis is an open source, fast, and advanced key-value store that also 106 | | provides a richer set of commands than a typical key-value systems 107 | | such as APC or Memcached. Laravel makes it easy to dig right in. 108 | | 109 | */ 110 | 111 | 'redis' => array( 112 | 113 | 'cluster' => false, 114 | 115 | 'default' => array( 116 | 'host' => '127.0.0.1', 117 | 'port' => 6379, 118 | 'database' => 0, 119 | ), 120 | 121 | ), 122 | 123 | ); 124 | -------------------------------------------------------------------------------- /src/themes/base/app/config/database.php: -------------------------------------------------------------------------------- 1 | PDO::FETCH_CLASS, 16 | 17 | /** 18 | * -------------------------------------------------------------------------- 19 | * Default Database Connection Name 20 | * -------------------------------------------------------------------------- 21 | * 22 | * Here you may specify which of the database connections below you wish 23 | * to use as your default connection for all database work. Of course 24 | * you may use many connections at once using the Database library. 25 | * 26 | */ 27 | 28 | 'default' => 'mysql', 29 | 30 | /** 31 | * -------------------------------------------------------------------------- 32 | * Database Connections 33 | * -------------------------------------------------------------------------- 34 | * 35 | * Here are each of the database connections setup for your application. 36 | * Of course, examples of configuring each database platform that is 37 | * supported by Laravel is shown below to make development simple. 38 | * 39 | * 40 | * All database work in Laravel is done through the PHP PDO facilities 41 | * so make sure you have the driver for your particular database of 42 | * choice installed on your machine before you begin development. 43 | * 44 | */ 45 | 46 | 'connections' => array( 47 | 48 | 'sqlite' => array( 49 | 'driver' => 'sqlite', 50 | 'database' => __DIR__ . '/../database/production.sqlite', 51 | 'prefix' => '', 52 | ), 53 | 54 | 'mysql' => array( 55 | 'driver' => 'mysql', 56 | 'host' => getenv('DB_HOST'), 57 | 'database' => getenv('DB_NAME'), 58 | 'username' => getenv('DB_USER'), 59 | 'password' => getenv('DB_PASSWORD'), 60 | 'charset' => 'utf8', 61 | 'collation' => 'utf8_unicode_ci', 62 | 'prefix' => getenv('DB_PREFIX'), 63 | ), 64 | 65 | 'pgsql' => array( 66 | 'driver' => 'pgsql', 67 | 'host' => 'localhost', 68 | 'database' => 'forge', 69 | 'username' => 'forge', 70 | 'password' => '', 71 | 'charset' => 'utf8', 72 | 'prefix' => '', 73 | 'schema' => 'public', 74 | ), 75 | 76 | 'sqlsrv' => array( 77 | 'driver' => 'sqlsrv', 78 | 'host' => 'localhost', 79 | 'database' => 'database', 80 | 'username' => 'root', 81 | 'password' => '', 82 | 'prefix' => '', 83 | ), 84 | 85 | ), 86 | 87 | /** 88 | * -------------------------------------------------------------------------- 89 | * Migration Repository Table 90 | * -------------------------------------------------------------------------- 91 | * 92 | * This table keeps track of all the migrations that have already run for 93 | * your application. Using this information, we can determine which of 94 | * the migrations on disk haven't actually been run in the database. 95 | * 96 | */ 97 | 98 | 'migrations' => 'migrations', 99 | 100 | /** 101 | * -------------------------------------------------------------------------- 102 | * Redis Databases 103 | * -------------------------------------------------------------------------- 104 | * 105 | * Redis is an open source, fast, and advanced key-value store that also 106 | * provides a richer set of commands than a typical key-value systems 107 | * such as APC or Memcached. Laravel makes it easy to dig right in. 108 | * 109 | */ 110 | 111 | 'redis' => array( 112 | 113 | 'cluster' => false, 114 | 115 | 'default' => array( 116 | 'host' => '127.0.0.1', 117 | 'port' => 6379, 118 | 'database' => 0, 119 | ), 120 | 121 | ), 122 | 123 | ]; 124 | -------------------------------------------------------------------------------- /app/laravel/config/mail.php: -------------------------------------------------------------------------------- 1 | 'smtp', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | SMTP Host Address 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may provide the host address of the SMTP server used by your 26 | | applications. A default option is provided that is compatible with 27 | | the Mailgun mail service which will provide reliable deliveries. 28 | | 29 | */ 30 | 31 | 'host' => 'smtp.mailgun.org', 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | SMTP Host Port 36 | |-------------------------------------------------------------------------- 37 | | 38 | | This is the SMTP port used by your application to deliver e-mails to 39 | | users of the application. Like the host we have set this value to 40 | | stay compatible with the Mailgun e-mail application by default. 41 | | 42 | */ 43 | 44 | 'port' => 587, 45 | 46 | /* 47 | |-------------------------------------------------------------------------- 48 | | Global "From" Address 49 | |-------------------------------------------------------------------------- 50 | | 51 | | You may wish for all e-mails sent by your application to be sent from 52 | | the same address. Here, you may specify a name and address that is 53 | | used globally for all e-mails that are sent by your application. 54 | | 55 | */ 56 | 57 | 'from' => array('address' => null, 'name' => null), 58 | 59 | /* 60 | |-------------------------------------------------------------------------- 61 | | E-Mail Encryption Protocol 62 | |-------------------------------------------------------------------------- 63 | | 64 | | Here you may specify the encryption protocol that should be used when 65 | | the application send e-mail messages. A sensible default using the 66 | | transport layer security protocol should provide great security. 67 | | 68 | */ 69 | 70 | 'encryption' => 'tls', 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | SMTP Server Username 75 | |-------------------------------------------------------------------------- 76 | | 77 | | If your SMTP server requires a username for authentication, you should 78 | | set it here. This will get used to authenticate with your server on 79 | | connection. You may also set the "password" value below this one. 80 | | 81 | */ 82 | 83 | 'username' => null, 84 | 85 | /* 86 | |-------------------------------------------------------------------------- 87 | | SMTP Server Password 88 | |-------------------------------------------------------------------------- 89 | | 90 | | Here you may set the password required by your SMTP server to send out 91 | | messages from your application. This will be given to the server on 92 | | connection so that the application will be able to send messages. 93 | | 94 | */ 95 | 96 | 'password' => null, 97 | 98 | /* 99 | |-------------------------------------------------------------------------- 100 | | Sendmail System Path 101 | |-------------------------------------------------------------------------- 102 | | 103 | | When using the "sendmail" driver to send e-mails, we will need to know 104 | | the path to where Sendmail lives on this server. A default path has 105 | | been provided here, which will work well on most of your systems. 106 | | 107 | */ 108 | 109 | 'sendmail' => '/usr/sbin/sendmail -bs', 110 | 111 | /* 112 | |-------------------------------------------------------------------------- 113 | | Mail "Pretend" 114 | |-------------------------------------------------------------------------- 115 | | 116 | | When this option is enabled, e-mail will not actually be sent over the 117 | | web and will instead be written to your application's logs files so 118 | | you may inspect the message. This is great for local development. 119 | | 120 | */ 121 | 122 | 'pretend' => false, 123 | 124 | ); 125 | -------------------------------------------------------------------------------- /src/themes/base/app/config/mail.php: -------------------------------------------------------------------------------- 1 | 'smtp', 19 | 20 | /** 21 | * -------------------------------------------------------------------------- 22 | * SMTP Host Address 23 | * -------------------------------------------------------------------------- 24 | * 25 | * Here you may provide the host address of the SMTP server used by your 26 | * applications. A default option is provided that is compatible with 27 | * the Mailgun mail service which will provide reliable deliveries. 28 | * 29 | */ 30 | 31 | 'host' => 'smtp.mailgun.org', 32 | 33 | /** 34 | * -------------------------------------------------------------------------- 35 | * SMTP Host Port 36 | * -------------------------------------------------------------------------- 37 | * 38 | * This is the SMTP port used by your application to deliver e-mails to 39 | * users of the application. Like the host we have set this value to 40 | * stay compatible with the Mailgun e-mail application by default. 41 | * 42 | */ 43 | 44 | 'port' => 587, 45 | 46 | /** 47 | * -------------------------------------------------------------------------- 48 | * Global "From" Address 49 | * -------------------------------------------------------------------------- 50 | * 51 | * You may wish for all e-mails sent by your application to be sent from 52 | * the same address. Here, you may specify a name and address that is 53 | * used globally for all e-mails that are sent by your application. 54 | * 55 | */ 56 | 57 | 'from' => array('address' => null, 'name' => null), 58 | 59 | /** 60 | * -------------------------------------------------------------------------- 61 | * E-Mail Encryption Protocol 62 | * -------------------------------------------------------------------------- 63 | * 64 | * Here you may specify the encryption protocol that should be used when 65 | * the application send e-mail messages. A sensible default using the 66 | * transport layer security protocol should provide great security. 67 | * 68 | */ 69 | 70 | 'encryption' => 'tls', 71 | 72 | /** 73 | * -------------------------------------------------------------------------- 74 | * SMTP Server Username 75 | * -------------------------------------------------------------------------- 76 | * 77 | * If your SMTP server requires a username for authentication, you should 78 | * set it here. This will get used to authenticate with your server on 79 | * connection. You may also set the "password" value below this one. 80 | * 81 | */ 82 | 83 | 'username' => null, 84 | 85 | /** 86 | * -------------------------------------------------------------------------- 87 | * SMTP Server Password 88 | * -------------------------------------------------------------------------- 89 | * 90 | * Here you may set the password required by your SMTP server to send out 91 | * messages from your application. This will be given to the server on 92 | * connection so that the application will be able to send messages. 93 | * 94 | */ 95 | 96 | 'password' => null, 97 | 98 | /** 99 | * -------------------------------------------------------------------------- 100 | * Sendmail System Path 101 | * -------------------------------------------------------------------------- 102 | * 103 | * When using the "sendmail" driver to send e-mails, we will need to know 104 | * the path to where Sendmail lives on this server. A default path has 105 | * been provided here, which will work well on most of your systems. 106 | * 107 | */ 108 | 109 | 'sendmail' => '/usr/sbin/sendmail -bs', 110 | 111 | /** 112 | * -------------------------------------------------------------------------- 113 | * Mail "Pretend" 114 | * -------------------------------------------------------------------------- 115 | * 116 | * When this option is enabled, e-mail will not actually be sent over the 117 | * web and will instead be written to your application's logs files so 118 | * you may inspect the message. This is great for local development. 119 | * 120 | */ 121 | 122 | 'pretend' => false, 123 | 124 | ]; -------------------------------------------------------------------------------- /app/laravel/config/session.php: -------------------------------------------------------------------------------- 1 | 'file', 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Session Lifetime 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Here you may specify the number of minutes that you wish the session 27 | | to be allowed to remain idle before it expires. If you want them 28 | | to immediately expire on the browser closing, set that option. 29 | | 30 | */ 31 | 32 | 'lifetime' => 120, 33 | 34 | 'expire_on_close' => false, 35 | 36 | /* 37 | |-------------------------------------------------------------------------- 38 | | Session File Location 39 | |-------------------------------------------------------------------------- 40 | | 41 | | When using the native session driver, we need a location where session 42 | | files may be stored. A default has been set for you but a different 43 | | location may be specified. This is only needed for file sessions. 44 | | 45 | */ 46 | 47 | 'files' => storage_path().'/sessions', 48 | 49 | /* 50 | |-------------------------------------------------------------------------- 51 | | Session Database Connection 52 | |-------------------------------------------------------------------------- 53 | | 54 | | When using the "database" or "redis" session drivers, you may specify a 55 | | connection that should be used to manage these sessions. This should 56 | | correspond to a connection in your database configuration options. 57 | | 58 | */ 59 | 60 | 'connection' => null, 61 | 62 | /* 63 | |-------------------------------------------------------------------------- 64 | | Session Database Table 65 | |-------------------------------------------------------------------------- 66 | | 67 | | When using the "database" session driver, you may specify the table we 68 | | should use to manage the sessions. Of course, a sensible default is 69 | | provided for you; however, you are free to change this as needed. 70 | | 71 | */ 72 | 73 | 'table' => 'sessions', 74 | 75 | /* 76 | |-------------------------------------------------------------------------- 77 | | Session Sweeping Lottery 78 | |-------------------------------------------------------------------------- 79 | | 80 | | Some session drivers must manually sweep their storage location to get 81 | | rid of old sessions from storage. Here are the chances that it will 82 | | happen on a given request. By default, the odds are 2 out of 100. 83 | | 84 | */ 85 | 86 | 'lottery' => array(2, 100), 87 | 88 | /* 89 | |-------------------------------------------------------------------------- 90 | | Session Cookie Name 91 | |-------------------------------------------------------------------------- 92 | | 93 | | Here you may change the name of the cookie used to identify a session 94 | | instance by ID. The name specified here will get used every time a 95 | | new session cookie is created by the framework for every driver. 96 | | 97 | */ 98 | 99 | 'cookie' => 'laravel_session', 100 | 101 | /* 102 | |-------------------------------------------------------------------------- 103 | | Session Cookie Path 104 | |-------------------------------------------------------------------------- 105 | | 106 | | The session cookie path determines the path for which the cookie will 107 | | be regarded as available. Typically, this will be the root path of 108 | | your application but you are free to change this when necessary. 109 | | 110 | */ 111 | 112 | 'path' => '/', 113 | 114 | /* 115 | |-------------------------------------------------------------------------- 116 | | Session Cookie Domain 117 | |-------------------------------------------------------------------------- 118 | | 119 | | Here you may change the domain of the cookie used to identify a session 120 | | in your application. This will determine which domains the cookie is 121 | | available to in your application. A sensible default has been set. 122 | | 123 | */ 124 | 125 | 'domain' => null, 126 | 127 | /* 128 | |-------------------------------------------------------------------------- 129 | | HTTPS Only Cookies 130 | |-------------------------------------------------------------------------- 131 | | 132 | | By setting this option to true, session cookies will only be sent back 133 | | to the server if the browser has a HTTPS connection. This will keep 134 | | the cookie from being sent to you if it can not be done securely. 135 | | 136 | */ 137 | 138 | 'secure' => false, 139 | 140 | ); 141 | -------------------------------------------------------------------------------- /app/laravel/lang/en/validation.php: -------------------------------------------------------------------------------- 1 | "The :attribute must be accepted.", 17 | "active_url" => "The :attribute is not a valid URL.", 18 | "after" => "The :attribute must be a date after :date.", 19 | "alpha" => "The :attribute may only contain letters.", 20 | "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.", 21 | "alpha_num" => "The :attribute may only contain letters and numbers.", 22 | "array" => "The :attribute must be an array.", 23 | "before" => "The :attribute must be a date before :date.", 24 | "between" => array( 25 | "numeric" => "The :attribute must be between :min and :max.", 26 | "file" => "The :attribute must be between :min and :max kilobytes.", 27 | "string" => "The :attribute must be between :min and :max characters.", 28 | "array" => "The :attribute must have between :min and :max items.", 29 | ), 30 | "boolean" => "The :attribute field must be true or false.", 31 | "confirmed" => "The :attribute confirmation does not match.", 32 | "date" => "The :attribute is not a valid date.", 33 | "date_format" => "The :attribute does not match the format :format.", 34 | "different" => "The :attribute and :other must be different.", 35 | "digits" => "The :attribute must be :digits digits.", 36 | "digits_between" => "The :attribute must be between :min and :max digits.", 37 | "email" => "The :attribute must be a valid email address.", 38 | "exists" => "The selected :attribute is invalid.", 39 | "image" => "The :attribute must be an image.", 40 | "in" => "The selected :attribute is invalid.", 41 | "integer" => "The :attribute must be an integer.", 42 | "ip" => "The :attribute must be a valid IP address.", 43 | "max" => array( 44 | "numeric" => "The :attribute may not be greater than :max.", 45 | "file" => "The :attribute may not be greater than :max kilobytes.", 46 | "string" => "The :attribute may not be greater than :max characters.", 47 | "array" => "The :attribute may not have more than :max items.", 48 | ), 49 | "mimes" => "The :attribute must be a file of type: :values.", 50 | "min" => array( 51 | "numeric" => "The :attribute must be at least :min.", 52 | "file" => "The :attribute must be at least :min kilobytes.", 53 | "string" => "The :attribute must be at least :min characters.", 54 | "array" => "The :attribute must have at least :min items.", 55 | ), 56 | "not_in" => "The selected :attribute is invalid.", 57 | "numeric" => "The :attribute must be a number.", 58 | "regex" => "The :attribute format is invalid.", 59 | "required" => "The :attribute field is required.", 60 | "required_if" => "The :attribute field is required when :other is :value.", 61 | "required_with" => "The :attribute field is required when :values is present.", 62 | "required_with_all" => "The :attribute field is required when :values is present.", 63 | "required_without" => "The :attribute field is required when :values is not present.", 64 | "required_without_all" => "The :attribute field is required when none of :values are present.", 65 | "same" => "The :attribute and :other must match.", 66 | "size" => array( 67 | "numeric" => "The :attribute must be :size.", 68 | "file" => "The :attribute must be :size kilobytes.", 69 | "string" => "The :attribute must be :size characters.", 70 | "array" => "The :attribute must contain :size items.", 71 | ), 72 | "unique" => "The :attribute has already been taken.", 73 | "url" => "The :attribute format is invalid.", 74 | "timezone" => "The :attribute must be a valid zone.", 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | Custom Validation Language Lines 79 | |-------------------------------------------------------------------------- 80 | | 81 | | Here you may specify custom validation messages for attributes using the 82 | | convention "attribute.rule" to name the lines. This makes it quick to 83 | | specify a specific custom language line for a given attribute rule. 84 | | 85 | */ 86 | 87 | 'custom' => array( 88 | 'attribute-name' => array( 89 | 'rule-name' => 'custom-message', 90 | ), 91 | ), 92 | 93 | /* 94 | |-------------------------------------------------------------------------- 95 | | Custom Validation Attributes 96 | |-------------------------------------------------------------------------- 97 | | 98 | | The following language lines are used to swap attribute place-holders 99 | | with something more reader friendly such as E-Mail Address instead 100 | | of "email". This simply helps us make messages a little cleaner. 101 | | 102 | */ 103 | 104 | 'attributes' => array(), 105 | 106 | ); 107 | -------------------------------------------------------------------------------- /src/themes/base/app/config/session.php: -------------------------------------------------------------------------------- 1 | 'raw', 18 | 19 | /** 20 | * -------------------------------------------------------------------------- 21 | * Active PHP native sessions > $_SESSION['namespace'] 22 | * -------------------------------------------------------------------------- 23 | * 24 | * To activate give it a namespace, or false 25 | */ 26 | 'raw' => 'weloquent', 27 | 28 | /** 29 | * -------------------------------------------------------------------------- 30 | * Session Lifetime 31 | * -------------------------------------------------------------------------- 32 | * 33 | * Here you may specify the number of minutes that you wish the session 34 | * to be allowed to remain idle before it expires. If you want them 35 | * to immediately expire on the browser closing, set that option. 36 | */ 37 | 38 | 'lifetime' => 120, 39 | 40 | 'expire_on_close' => false, 41 | 42 | /** 43 | * -------------------------------------------------------------------------- 44 | * Session File Location 45 | * -------------------------------------------------------------------------- 46 | * 47 | * When using the native session driver, we need a location where session 48 | * files may be stored. A default has been set for you but a different 49 | * location may be specified. This is only needed for file sessions. 50 | */ 51 | 'files' => SRC_PATH . DS . 'storage' . DS . 'sessions', 52 | 53 | /** 54 | * -------------------------------------------------------------------------- 55 | * Session Database Connection 56 | * -------------------------------------------------------------------------- 57 | * 58 | * When using the "database" or "redis" session drivers, you may specify a 59 | * connection that should be used to manage these sessions. This should 60 | * correspond to a connection in your database configuration options. 61 | */ 62 | 63 | 'connection' => null, 64 | 65 | /** 66 | * -------------------------------------------------------------------------- 67 | * Session Database Table 68 | * -------------------------------------------------------------------------- 69 | * 70 | * When using the "database" session driver, you may specify the table we 71 | * should use to manage the sessions. Of course, a sensible default is 72 | * provided for you; however, you are free to change this as needed. 73 | */ 74 | 75 | 'table' => 'sessions', 76 | 77 | /** 78 | * -------------------------------------------------------------------------- 79 | * Session Sweeping Lottery 80 | * -------------------------------------------------------------------------- 81 | * 82 | * Some session drivers must manually sweep their storage location to get 83 | * rid of old sessions from storage. Here are the chances that it will 84 | * happen on a given request. By default, the odds are 2 out of 100. 85 | */ 86 | 87 | 'lottery' => array(2, 100), 88 | 89 | /** 90 | * -------------------------------------------------------------------------- 91 | * Session Cookie Name 92 | * -------------------------------------------------------------------------- 93 | * 94 | * Here you may change the name of the cookie used to identify a session 95 | * instance by ID. The name specified here will get used every time a 96 | * new session cookie is created by the framework for every driver. 97 | 98 | */ 99 | 100 | 'cookie' => 'wel_session', 101 | 102 | /** 103 | * -------------------------------------------------------------------------- 104 | * Session Cookie Path 105 | * -------------------------------------------------------------------------- 106 | * 107 | * The session cookie path determines the path for which the cookie will 108 | * be regarded as available. Typically, this will be the root path of 109 | * your application but you are free to change this when necessary. 110 | */ 111 | 112 | 'path' => '/', 113 | 114 | /** 115 | * -------------------------------------------------------------------------- 116 | * Session Cookie Domain 117 | * -------------------------------------------------------------------------- 118 | * 119 | * Here you may change the domain of the cookie used to identify a session 120 | * in your application. This will determine which domains the cookie is 121 | * available to in your application. A sensible default has been set. 122 | * 123 | */ 124 | 125 | 'domain' => null, 126 | 127 | /** 128 | * -------------------------------------------------------------------------- 129 | * HTTPS Only Cookies 130 | * -------------------------------------------------------------------------- 131 | * 132 | * By setting this option to true, session cookies will only be sent back 133 | * to the server if the browser has a HTTPS connection. This will keep 134 | * the cookie from being sent to you if it can not be done securely. 135 | * 136 | */ 137 | 138 | 'secure' => false, 139 | 140 | ]; -------------------------------------------------------------------------------- /src/themes/base/app/lang/en/validation.php: -------------------------------------------------------------------------------- 1 | "The :attribute must be accepted.", 17 | "active_url" => "The :attribute is not a valid URL.", 18 | "after" => "The :attribute must be a date after :date.", 19 | "alpha" => "The :attribute may only contain letters.", 20 | "alpha_dash" => "The :attribute may only contain letters, numbers, and dashes.", 21 | "alpha_num" => "The :attribute may only contain letters and numbers.", 22 | "array" => "The :attribute must be an array.", 23 | "before" => "The :attribute must be a date before :date.", 24 | "between" => array( 25 | "numeric" => "The :attribute must be between :min and :max.", 26 | "file" => "The :attribute must be between :min and :max kilobytes.", 27 | "string" => "The :attribute must be between :min and :max characters.", 28 | "array" => "The :attribute must have between :min and :max items.", 29 | ), 30 | "boolean" => "The :attribute field must be true or false.", 31 | "confirmed" => "The :attribute confirmation does not match.", 32 | "date" => "The :attribute is not a valid date.", 33 | "date_format" => "The :attribute does not match the format :format.", 34 | "different" => "The :attribute and :other must be different.", 35 | "digits" => "The :attribute must be :digits digits.", 36 | "digits_between" => "The :attribute must be between :min and :max digits.", 37 | "email" => "The :attribute must be a valid email address.", 38 | "exists" => "The selected :attribute is invalid.", 39 | "image" => "The :attribute must be an image.", 40 | "in" => "The selected :attribute is invalid.", 41 | "integer" => "The :attribute must be an integer.", 42 | "ip" => "The :attribute must be a valid IP address.", 43 | "max" => array( 44 | "numeric" => "The :attribute may not be greater than :max.", 45 | "file" => "The :attribute may not be greater than :max kilobytes.", 46 | "string" => "The :attribute may not be greater than :max characters.", 47 | "array" => "The :attribute may not have more than :max items.", 48 | ), 49 | "mimes" => "The :attribute must be a file of type: :values.", 50 | "min" => array( 51 | "numeric" => "The :attribute must be at least :min.", 52 | "file" => "The :attribute must be at least :min kilobytes.", 53 | "string" => "The :attribute must be at least :min characters.", 54 | "array" => "The :attribute must have at least :min items.", 55 | ), 56 | "not_in" => "The selected :attribute is invalid.", 57 | "numeric" => "The :attribute must be a number.", 58 | "regex" => "The :attribute format is invalid.", 59 | "required" => "The :attribute field is required.", 60 | "required_if" => "The :attribute field is required when :other is :value.", 61 | "required_with" => "The :attribute field is required when :values is present.", 62 | "required_with_all" => "The :attribute field is required when :values is present.", 63 | "required_without" => "The :attribute field is required when :values is not present.", 64 | "required_without_all" => "The :attribute field is required when none of :values are present.", 65 | "same" => "The :attribute and :other must match.", 66 | "size" => array( 67 | "numeric" => "The :attribute must be :size.", 68 | "file" => "The :attribute must be :size kilobytes.", 69 | "string" => "The :attribute must be :size characters.", 70 | "array" => "The :attribute must contain :size items.", 71 | ), 72 | "unique" => "The :attribute has already been taken.", 73 | "url" => "The :attribute format is invalid.", 74 | "timezone" => "The :attribute must be a valid zone.", 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | Custom Validation Language Lines 79 | |-------------------------------------------------------------------------- 80 | | 81 | | Here you may specify custom validation messages for attributes using the 82 | | convention "attribute.rule" to name the lines. This makes it quick to 83 | | specify a specific custom language line for a given attribute rule. 84 | | 85 | */ 86 | 87 | 'custom' => array( 88 | 'attribute-name' => array( 89 | 'rule-name' => 'custom-message', 90 | ), 91 | ), 92 | 93 | /* 94 | |-------------------------------------------------------------------------- 95 | | Custom Validation Attributes 96 | |-------------------------------------------------------------------------- 97 | | 98 | | The following language lines are used to swap attribute place-holders 99 | | with something more reader friendly such as E-Mail Address instead 100 | | of "email". This simply helps us make messages a little cleaner. 101 | | 102 | */ 103 | 104 | 'attributes' => array(), 105 | 106 | ); 107 | -------------------------------------------------------------------------------- /app/laravel/views/hello.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Laravel PHP Framework 6 | 35 | 36 | 37 |
38 | Laravel PHP Framework 39 |

You have arrived.

40 |
41 | 42 | 43 | -------------------------------------------------------------------------------- /app/laravel/config/app.php: -------------------------------------------------------------------------------- 1 | false, 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Application URL 21 | |-------------------------------------------------------------------------- 22 | | 23 | | This URL is used by the console to properly generate URLs when using 24 | | the Artisan command line tool. You should set this to the root of 25 | | your application so that it is used when running Artisan tasks. 26 | | 27 | */ 28 | 29 | 'url' => 'http://localhost', 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Application Timezone 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may specify the default timezone for your application, which 37 | | will be used by the PHP date and date-time functions. We have gone 38 | | ahead and set this to a sensible default for you out of the box. 39 | | 40 | */ 41 | 42 | 'timezone' => 'UTC', 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Application Locale Configuration 47 | |-------------------------------------------------------------------------- 48 | | 49 | | The application locale determines the default locale that will be used 50 | | by the translation service provider. You are free to set this value 51 | | to any of the locales which will be supported by the application. 52 | | 53 | */ 54 | 55 | 'locale' => 'en', 56 | 57 | /* 58 | |-------------------------------------------------------------------------- 59 | | Application Fallback Locale 60 | |-------------------------------------------------------------------------- 61 | | 62 | | The fallback locale determines the locale to use when the current one 63 | | is not available. You may change the value to correspond to any of 64 | | the language folders that are provided through your application. 65 | | 66 | */ 67 | 68 | 'fallback_locale' => 'en', 69 | 70 | /* 71 | |-------------------------------------------------------------------------- 72 | | Encryption Key 73 | |-------------------------------------------------------------------------- 74 | | 75 | | This key is used by the Illuminate encrypter service and should be set 76 | | to a random, 32 character string, otherwise these encrypted strings 77 | | will not be safe. Please do this before deploying an application! 78 | | 79 | */ 80 | 81 | 'key' => 'YourSecretKey!!!', 82 | 83 | 'cipher' => MCRYPT_RIJNDAEL_128, 84 | 85 | /* 86 | |-------------------------------------------------------------------------- 87 | | Autoloaded Service Providers 88 | |-------------------------------------------------------------------------- 89 | | 90 | | The service providers listed here will be automatically loaded on the 91 | | request to your application. Feel free to add your own services to 92 | | this array to grant expanded functionality to your applications. 93 | | 94 | */ 95 | 96 | 'providers' => array( 97 | 98 | 'Illuminate\Foundation\Providers\ArtisanServiceProvider', 99 | 'Illuminate\Auth\AuthServiceProvider', 100 | 'Illuminate\Cache\CacheServiceProvider', 101 | 'Illuminate\Session\CommandsServiceProvider', 102 | 'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', 103 | 'Illuminate\Routing\ControllerServiceProvider', 104 | 'Illuminate\Cookie\CookieServiceProvider', 105 | 'Illuminate\Database\DatabaseServiceProvider', 106 | 'Illuminate\Encryption\EncryptionServiceProvider', 107 | 'Illuminate\Filesystem\FilesystemServiceProvider', 108 | 'Illuminate\Hashing\HashServiceProvider', 109 | 'Illuminate\Html\HtmlServiceProvider', 110 | 'Illuminate\Log\LogServiceProvider', 111 | 'Illuminate\Mail\MailServiceProvider', 112 | 'Illuminate\Database\MigrationServiceProvider', 113 | 'Illuminate\Pagination\PaginationServiceProvider', 114 | 'Illuminate\Queue\QueueServiceProvider', 115 | 'Illuminate\Redis\RedisServiceProvider', 116 | 'Illuminate\Remote\RemoteServiceProvider', 117 | 'Illuminate\Auth\Reminders\ReminderServiceProvider', 118 | 'Illuminate\Database\SeedServiceProvider', 119 | 'Illuminate\Session\SessionServiceProvider', 120 | 'Illuminate\Translation\TranslationServiceProvider', 121 | 'Illuminate\Validation\ValidationServiceProvider', 122 | 'Illuminate\View\ViewServiceProvider', 123 | 'Illuminate\Workbench\WorkbenchServiceProvider', 124 | 125 | ), 126 | 127 | /* 128 | |-------------------------------------------------------------------------- 129 | | Service Provider Manifest 130 | |-------------------------------------------------------------------------- 131 | | 132 | | The service provider manifest is used by Laravel to lazy load service 133 | | providers which are not needed for each request, as well to keep a 134 | | list of all of the services. Here, you may set its storage spot. 135 | | 136 | */ 137 | 138 | 'manifest' => storage_path().'/meta', 139 | 140 | /* 141 | |-------------------------------------------------------------------------- 142 | | Class Aliases 143 | |-------------------------------------------------------------------------- 144 | | 145 | | This array of class aliases will be registered when this application 146 | | is started. However, feel free to register as many as you wish as 147 | | the aliases are "lazy" loaded so they don't hinder performance. 148 | | 149 | */ 150 | 151 | 'aliases' => array( 152 | 153 | 'App' => 'Illuminate\Support\Facades\App', 154 | 'Artisan' => 'Illuminate\Support\Facades\Artisan', 155 | 'Auth' => 'Illuminate\Support\Facades\Auth', 156 | 'Blade' => 'Illuminate\Support\Facades\Blade', 157 | 'Cache' => 'Illuminate\Support\Facades\Cache', 158 | 'ClassLoader' => 'Illuminate\Support\ClassLoader', 159 | 'Config' => 'Illuminate\Support\Facades\Config', 160 | 'Controller' => 'Illuminate\Routing\Controller', 161 | 'Cookie' => 'Illuminate\Support\Facades\Cookie', 162 | 'Crypt' => 'Illuminate\Support\Facades\Crypt', 163 | 'DB' => 'Illuminate\Support\Facades\DB', 164 | 'Eloquent' => 'Illuminate\Database\Eloquent\Model', 165 | 'Event' => 'Illuminate\Support\Facades\Event', 166 | 'File' => 'Illuminate\Support\Facades\File', 167 | 'Form' => 'Illuminate\Support\Facades\Form', 168 | 'Hash' => 'Illuminate\Support\Facades\Hash', 169 | 'HTML' => 'Illuminate\Support\Facades\HTML', 170 | 'Input' => 'Illuminate\Support\Facades\Input', 171 | 'Lang' => 'Illuminate\Support\Facades\Lang', 172 | 'Log' => 'Illuminate\Support\Facades\Log', 173 | 'Mail' => 'Illuminate\Support\Facades\Mail', 174 | 'Paginator' => 'Illuminate\Support\Facades\Paginator', 175 | 'Password' => 'Illuminate\Support\Facades\Password', 176 | 'Queue' => 'Illuminate\Support\Facades\Queue', 177 | 'Redirect' => 'Illuminate\Support\Facades\Redirect', 178 | 'Redis' => 'Illuminate\Support\Facades\Redis', 179 | 'Request' => 'Illuminate\Support\Facades\Request', 180 | 'Response' => 'Illuminate\Support\Facades\Response', 181 | 'Route' => 'Illuminate\Support\Facades\Route', 182 | 'Schema' => 'Illuminate\Support\Facades\Schema', 183 | 'Seeder' => 'Illuminate\Database\Seeder', 184 | 'Session' => 'Illuminate\Support\Facades\Session', 185 | 'SoftDeletingTrait' => 'Illuminate\Database\Eloquent\SoftDeletingTrait', 186 | 'SSH' => 'Illuminate\Support\Facades\SSH', 187 | 'Str' => 'Illuminate\Support\Str', 188 | 'URL' => 'Illuminate\Support\Facades\URL', 189 | 'Validator' => 'Illuminate\Support\Facades\Validator', 190 | 'View' => 'Illuminate\Support\Facades\View', 191 | 192 | ), 193 | 194 | ); 195 | -------------------------------------------------------------------------------- /src/themes/base/app/config/app.php: -------------------------------------------------------------------------------- 1 | WP_DEBUG, 14 | 15 | /** 16 | * -------------------------------------------------------------------------- 17 | * Application URL 18 | * -------------------------------------------------------------------------- 19 | * 20 | * This URL is used by the console to properly generate URLs when using 21 | * the Artisan command line tool. You should set this to the root of 22 | * your application so that it is used when running Artisan tasks. 23 | */ 24 | 25 | 'url' => WP_HOME, 26 | 27 | /** 28 | * -------------------------------------------------------------------------- 29 | * Application Timezone 30 | * -------------------------------------------------------------------------- 31 | * 32 | * Here you may specify the default timezone for your application, which 33 | * will be used by the PHP date and date-time functions. We have gone 34 | * ahead and set this to a sensible default for you out of the box. 35 | */ 36 | 37 | 'timezone' => 'UTC', 38 | 39 | /** 40 | * -------------------------------------------------------------------------- 41 | * Application Locale Configuration 42 | * -------------------------------------------------------------------------- 43 | * 44 | * The application locale determines the default locale that will be used 45 | * by the translation service provider. You are free to set this value 46 | * to any of the locales which will be supported by the application. 47 | */ 48 | 49 | 'locale' => 'en', 50 | 51 | /** 52 | * -------------------------------------------------------------------------- 53 | * Application Fallback Locale 54 | * -------------------------------------------------------------------------- 55 | * 56 | * The fallback locale determines the locale to use when the current one 57 | * is not available. You may change the value to correspond to any of 58 | * the language folders that are provided through your application. 59 | */ 60 | 61 | 'fallback_locale' => 'en', 62 | 63 | /** 64 | * -------------------------------------------------------------------------- 65 | * Encryption Key 66 | * -------------------------------------------------------------------------- 67 | * 68 | * This key is used by the Illuminate encrypter service and should be set 69 | * to a random, 32 character string, otherwise these encrypted strings 70 | * will not be safe. Please do this before deploying an application! 71 | */ 72 | 73 | 'key' => substr(SECURE_AUTH_KEY, 0, 32),// @see /src/bootstrap/shared.php 74 | 75 | 'cipher' => MCRYPT_RIJNDAEL_128, 76 | 77 | /** 78 | * -------------------------------------------------------------------------- 79 | * Service Provider Manifest 80 | * -------------------------------------------------------------------------- 81 | * 82 | * The service provider manifest is used by Laravel to lazy load service 83 | * providers which are not needed for each request, as well to keep a 84 | * list of all of the services. Here, you may set its storage spot. 85 | * 86 | */ 87 | 88 | 'manifest' => SRC_PATH . '/storage/meta', 89 | 90 | /* 91 | |-------------------------------------------------------------------------- 92 | | Autoloaded Service Providers 93 | |-------------------------------------------------------------------------- 94 | | 95 | | The service providers listed here will be automatically loaded on the 96 | | request to your application. Feel free to add your own services to 97 | | this array to grant expanded functionality to your applications. 98 | | 99 | */ 100 | 101 | 'providers' => [ 102 | 103 | 'Illuminate\Cache\CacheServiceProvider', 104 | 'Illuminate\Cookie\CookieServiceProvider', 105 | 'Illuminate\Database\DatabaseServiceProvider', 106 | 'Illuminate\Encryption\EncryptionServiceProvider', 107 | 'Illuminate\Filesystem\FilesystemServiceProvider', 108 | 'Illuminate\Hashing\HashServiceProvider', 109 | 'Illuminate\Html\HtmlServiceProvider', 110 | 'Illuminate\Log\LogServiceProvider', 111 | 'Illuminate\Mail\MailServiceProvider', 112 | 'Illuminate\Database\MigrationServiceProvider', 113 | 'Illuminate\Pagination\PaginationServiceProvider', 114 | 'Illuminate\Queue\QueueServiceProvider', 115 | 'Illuminate\Redis\RedisServiceProvider', 116 | 'Illuminate\Remote\RemoteServiceProvider', 117 | 'Illuminate\Auth\Reminders\ReminderServiceProvider', 118 | 'Illuminate\Database\SeedServiceProvider', 119 | 'Illuminate\Translation\TranslationServiceProvider', 120 | 'Illuminate\Validation\ValidationServiceProvider', 121 | 'Illuminate\Workbench\WorkbenchServiceProvider', 122 | 123 | 'Weloquent\Providers\AjaxServiceProvider', 124 | 'Weloquent\Providers\AuthServiceProvider', 125 | 'Weloquent\Providers\GlobalJsServiceProvider', 126 | 'Weloquent\Providers\SessionServiceProvider', 127 | 'Weloquent\Providers\ViewServiceProvider', 128 | 'Weloquent\Providers\WelServiceProvider', 129 | 'Weloquent\Providers\ConsoleSupportServiceProvider', 130 | 'Weloquent\Providers\NavigationServiceProvider', 131 | 'Weloquent\Providers\RouteServiceProvider', 132 | 'Weloquent\Providers\AssetsServiceProvider', 133 | 'Weloquent\Providers\HooksServiceProvider', 134 | 135 | /** 136 | * Corcel Eloquent Models for Wordpress 137 | * @link https://github.com/jgrossi/corcel 138 | */ 139 | 'Weloquent\Providers\EloquentBootstrapServiceProvider', 140 | 141 | ], 142 | 143 | 'aliases' => [ 144 | 145 | 'Ajax' => 'Weloquent\Facades\Ajax', 146 | 'App' => 'Illuminate\Support\Facades\App', 147 | 'Artisan' => 'Illuminate\Support\Facades\Artisan', 148 | 'Assets' => 'Weloquent\Facades\Assets', 149 | 'Auth' => 'Illuminate\Support\Facades\Auth', 150 | 'Blade' => 'Illuminate\Support\Facades\Blade', 151 | 'Cache' => 'Illuminate\Support\Facades\Cache', 152 | 'ClassLoader' => 'Illuminate\Support\ClassLoader', 153 | 'Config' => 'Illuminate\Support\Facades\Config', 154 | 'Cookie' => 'Illuminate\Support\Facades\Cookie', 155 | 'Crypt' => 'Illuminate\Support\Facades\Crypt', 156 | 'DB' => 'Illuminate\Support\Facades\DB', 157 | 'Eloquent' => 'Illuminate\Database\Eloquent\Model', 158 | 'Event' => 'Illuminate\Support\Facades\Event', 159 | 'File' => 'Illuminate\Support\Facades\File', 160 | 'Form' => 'Illuminate\Support\Facades\Form', 161 | 'GlobalJs' => 'Weloquent\Facades\GlobalJs', 162 | 'Hash' => 'Illuminate\Support\Facades\Hash', 163 | 'Hooks' => 'Weloquent\Facades\Hooks', 164 | 'HTML' => 'Illuminate\Support\Facades\HTML', 165 | 'Input' => 'Illuminate\Support\Facades\Input', 166 | 'Lang' => 'Illuminate\Support\Facades\Lang', 167 | 'Log' => 'Illuminate\Support\Facades\Log', 168 | 'Mail' => 'Illuminate\Support\Facades\Mail', 169 | 'Menu' => 'Weloquent\Facades\Menu', 170 | 'Paginator' => 'Illuminate\Support\Facades\Paginator', 171 | 'Password' => 'Illuminate\Support\Facades\Password', 172 | 'Queue' => 'Illuminate\Support\Facades\Queue', 173 | 'Redirect' => 'Illuminate\Support\Facades\Redirect', 174 | 'Redis' => 'Illuminate\Support\Facades\Redis', 175 | 'Request' => 'Illuminate\Support\Facades\Request', 176 | 'Response' => 'Illuminate\Support\Facades\Response', 177 | 'Route' => 'Weloquent\Facades\Route', 178 | 'Schema' => 'Illuminate\Support\Facades\Schema', 179 | 'Seeder' => 'Illuminate\Database\Seeder', 180 | 'Session' => 'Illuminate\Support\Facades\Session', 181 | 'SoftDeletingTrait' => 'Illuminate\Database\Eloquent\SoftDeletingTrait', 182 | 'SSH' => 'Illuminate\Support\Facades\SSH', 183 | 'Str' => 'Illuminate\Support\Str', 184 | 'URL' => 'Illuminate\Support\Facades\URL', 185 | 'Validator' => 'Illuminate\Support\Facades\Validator', 186 | 'View' => 'Illuminate\Support\Facades\View', 187 | 188 | ], 189 | 190 | ]; -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | 341 | --------------------------------------------------------------------------------