Skip to content
This repository was archived by the owner on Mar 24, 2024. It is now read-only.

Commit 2222ff1

Browse files
author
Lorenz Bausch
committed
Merge branch 'laravel5'
2 parents 3fa4805 + 6448bc1 commit 2222ff1

File tree

199 files changed

+3462
-4920
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+3462
-4920
lines changed

.env.example

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
APP_ENV=production
2+
APP_DEBUG=false
3+
APP_URL=http://localhost:8000
4+
APP_TIMEZONE=Europe/Berlin
5+
APP_KEY=SomeRandomString
6+
7+
# database for SQLgreyGUI
8+
# if you want to use a single database for both SQLgreyGUI and SQLgrey
9+
# use only this config block
10+
DB_HOST=localhost
11+
DB_DATABASE=sqlgrey
12+
DB_USERNAME=sqlgrey
13+
DB_PASSWORD=sqlgrey
14+
15+
# Uncomment the following lines if SQLgrey resides in a different database
16+
#SQLGREY_DB_HOST=null
17+
#SQLGREY_DB_DATABASE=null
18+
#SQLGREY_DB_USERNAME=null
19+
#SQLGREY_DB_PASSWORD=null
20+
21+
CACHE_DRIVER=file
22+
SESSION_DRIVER=file
23+
QUEUE_DRIVER=sync
24+
25+
MAIL_DRIVER=mail
26+
MAIL_HOST=mailtrap.io
27+
MAIL_PORT=2525
28+
MAIL_USERNAME=null
29+
MAIL_PASSWORD=null
30+
31+
ASSETS_PIPELINE=true

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
* text=auto
2+
*.css linguist-vendored
3+
*.less linguist-vendored

.gitignore

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,9 @@
1-
/bootstrap/compiled.php
21
/vendor
3-
composer.phar
4-
composer.lock
5-
.env.*.php
6-
.env.php
7-
.DS_Store
8-
Thumbs.db
9-
10-
11-
# config file(s)
12-
/app/config/app.php
13-
/app/config/mail.php
14-
/config.php
15-
16-
# components
17-
/components
2+
/node_modules
3+
.env
184

5+
## Composer
6+
composer.lock
197

20-
# assets
21-
/public/assets/minified/*.js
22-
/public/assets/minified/*.css
8+
## Assets
9+
/public/assets/min

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
SQLgreyGUI
22
==========
33

4-
Web interface for [SQLgrey](http://sqlgrey.sourceforge.net/) using the [Laravel](http://laravel.com/) Framework.
4+
Web interface for [SQLgrey](http://sqlgrey.sourceforge.net/) using the [Laravel 5](http://laravel.com/) Framework.
55

66

77
## Features
8-
* Dashboard: quick overview of eMails / domains in greylist, whitelist, opt-out and opt-in
8+
* Dashboard: quick overview of emails / domains in greylist, whitelist, opt-out and opt-in
99
* Greylist: delete entries or move them to the whitelist
10-
* Greylist: new entries are displayed without the need to refresh periodically
11-
* Whitelist: add sender eMails or sender domains to prevent them from being greylisted and delivered directly
12-
* Opt-out: define eMails or Domains you don't want greylisting to be enabled for
13-
* Opt-in: define eMails or Domains for which you want to enforce greylisting permanently
10+
* Whitelist: add sender emails or sender domains to prevent them from being greylisted and delivered directly
11+
* Opt-out: define emails or domains you don't want greylisting to be enabled for
12+
* Opt-in: define emails or domains for which you want to enforce greylisting permanently
1413
* Option of using seperate databases for SQLgrey and the application itself. This way you can maintain a user database in a single place and use it with all installations of SQLgreyGUI. In addition you don't need to alter the SQLgrey database at all.
1514

1615

@@ -20,14 +19,14 @@ Web interface for [SQLgrey](http://sqlgrey.sourceforge.net/) using the [Laravel]
2019
* PHP >= 5.4.0
2120

2221

23-
## Installation in 7 steps
22+
## Installation in 7 simple steps
2423
1. grab a copy of the code (download [master.zip](https://github.com/lbausch/SQLgreyGUI/archive/master.zip) or use `git clone https://github.com/lbausch/SQLgreyGUI.git`)
2524
2. make your webserver use the `public` directory as document root
26-
3. rename `config-dist.php` to `config.php`, `app/config/app-dist.php` to `app/config/app.php` and `app/config/mail-dist.php` to `app/config/mail.php`. Adjust the settings to your needs (check `timezone` setting in `app/config/app.php`!).
27-
4. run `composer update` to install all necessary dependencies
25+
3. copy `.env.example` to `.env` and adjust it to your needs (`APP_URL`, `APP_TIMEZONE`, `APP_KEY` and database settings)
26+
4. run `composer update` to install all necessary dependencies and set a new application key with `php artisan key:generate`
2827
5. run `php artisan migrate --force` to create the database tables
2928
6. run `php artisan db:seed --force` to create an admin user
30-
7. login with the username `admin` and the password `joh316`
29+
7. login with the username `admin` and the password `joh316` (you can change the password in "Settings")
3130

3231

3332
## Screenshots

app/Commands/Command.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php namespace SQLgreyGUI\Commands;
2+
3+
abstract class Command {
4+
5+
//
6+
7+
}

app/Console/Commands/Inspire.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php namespace SQLgreyGUI\Console\Commands;
2+
3+
use Illuminate\Console\Command;
4+
use Illuminate\Foundation\Inspiring;
5+
6+
class Inspire extends Command {
7+
8+
/**
9+
* The console command name.
10+
*
11+
* @var string
12+
*/
13+
protected $name = 'inspire';
14+
15+
/**
16+
* The console command description.
17+
*
18+
* @var string
19+
*/
20+
protected $description = 'Display an inspiring quote';
21+
22+
/**
23+
* Execute the console command.
24+
*
25+
* @return mixed
26+
*/
27+
public function handle()
28+
{
29+
$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
30+
}
31+
32+
}

app/Console/Kernel.php

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace SQLgreyGUI\Console;
4+
5+
use Illuminate\Console\Scheduling\Schedule;
6+
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7+
8+
class Kernel extends ConsoleKernel
9+
{
10+
11+
/**
12+
* The Artisan commands provided by your application.
13+
*
14+
* @var array
15+
*/
16+
protected $commands = [
17+
'SQLgreyGUI\Console\Commands\Inspire',
18+
];
19+
20+
/**
21+
* Define the application's command schedule.
22+
*
23+
* @param \Illuminate\Console\Scheduling\Schedule $schedule
24+
* @return void
25+
*/
26+
protected function schedule(Schedule $schedule)
27+
{
28+
//$schedule->command('inspire')->hourly();
29+
}
30+
31+
}

app/Events/Event.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php namespace SQLgreyGUI\Events;
2+
3+
abstract class Event {
4+
5+
//
6+
7+
}

app/Exceptions/Handler.php

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php namespace SQLgreyGUI\Exceptions;
2+
3+
use Exception;
4+
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
5+
6+
class Handler extends ExceptionHandler {
7+
8+
/**
9+
* A list of the exception types that should not be reported.
10+
*
11+
* @var array
12+
*/
13+
protected $dontReport = [
14+
'Symfony\Component\HttpKernel\Exception\HttpException'
15+
];
16+
17+
/**
18+
* Report or log an exception.
19+
*
20+
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
21+
*
22+
* @param \Exception $e
23+
* @return void
24+
*/
25+
public function report(Exception $e)
26+
{
27+
return parent::report($e);
28+
}
29+
30+
/**
31+
* Render an exception into an HTTP response.
32+
*
33+
* @param \Illuminate\Http\Request $request
34+
* @param \Exception $e
35+
* @return \Illuminate\Http\Response
36+
*/
37+
public function render($request, Exception $e)
38+
{
39+
return parent::render($request, $e);
40+
}
41+
42+
}

0 commit comments

Comments
 (0)