Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dave
committed
Feb 29, 2016
0 parents
commit a3320dd
Showing
412 changed files
with
105,901 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"directory": "./public/vendor" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
APP_ENV=production | ||
APP_DEBUG=true | ||
APP_URL=http://dev.attendize.com | ||
APP_CIPHER=rijndael-128 | ||
APP_KEY=SomeRandomString | ||
APP_TIMEZONE | ||
|
||
DB_TYPE=mysql | ||
DB_HOST=localhost | ||
DB_DATABASE=attendize | ||
DB_USERNAME | ||
DB_PASSWORD | ||
|
||
MAIL_DRIVER=smtp | ||
MAIL_PORT=587 | ||
MAIL_ENCRYPTION=tls | ||
MAIL_HOST=smtp.mandrillapp.com | ||
MAIL_FROM_ADDRESS=info@attendize.com | ||
MAIL_FROM_NAME=Attendize.com | ||
MAIL_PASSWORD=b038a015-8162-4a7a-bb8b-abb63fa7c112 | ||
MAIL_USERNAME=dave.m.earley@gmail.com | ||
|
||
|
||
LOG=single |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/public/vendor | ||
/vendor | ||
/node_modules | ||
.env | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RewriteRule ^(.*)$ public/$1 [L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
module.exports = function(grunt) { | ||
|
||
//Initializing the configuration object | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
// Task configuration | ||
less: { | ||
development: { | ||
options: { | ||
compress: true, //minifying the result | ||
}, | ||
files: { | ||
//compiling frontend.less into frontend.css | ||
"./public/assets/stylesheet/application.css":"./public/assets/stylesheet/application.less", | ||
"./public/assets/stylesheet/frontend.css":"./public/assets/stylesheet/frontend.less", | ||
//compiling backend.less into backend.css | ||
//"./public/assets/stylesheets/backend.css":"./app/assets/stylesheets/backend.less" | ||
} | ||
}, | ||
website: { | ||
options: { | ||
compress: true, //minifying the result | ||
}, | ||
files: { | ||
"./public/website_assets/stylesheet/main.css":"./public/website_assets/stylesheet/main.less", | ||
} | ||
} | ||
}, | ||
concat: { | ||
options: { | ||
separator: ';', | ||
stripBanners: true, | ||
|
||
}, | ||
js_frontend: { | ||
src: [ | ||
'./public/vendor/jquery/jquery.js', | ||
'./public/vendor/bootstrap/dist/js/bootstrap.js', | ||
'./public/vendor/jquery-form/jquery.form.js', | ||
'./public/vendor/RRSSB/js/rrssb.js', | ||
'./public/vendor/humane-js/humane.js', | ||
'./public/vendor/jquery-backstretch/jquery.backstretch.js', | ||
'./public/assets/javascript/app-public.js' | ||
], | ||
dest: './public/assets/javascript/frontend.js', | ||
}, | ||
js_backend: { | ||
src: [ | ||
'./public/vendor/modernizr/modernizr.js', | ||
'./public/vendor/bootstrap/dist/js/bootstrap.js', | ||
'./public/vendor/jquery-form/jquery.form.js', | ||
'./public/vendor/humane-js/humane.js', | ||
'./public/vendor/RRSSB/js/rrssb.js', | ||
'./public/vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.js', | ||
'./public/vendor/curioussolutions-datetimepicker/dist/DateTimePicker.js', | ||
'./public/assets/javascript/app.js' | ||
], | ||
dest: './public/assets/javascript/backend.js', | ||
}, | ||
}, | ||
uglify: { | ||
options: { | ||
mangle: true, // Use if you want the names of your functions and variables unchanged | ||
preserveComments: false, | ||
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + | ||
'<%= grunt.template.today("yyyy-mm-dd") %> */', | ||
|
||
}, | ||
frontend: { | ||
files: { | ||
'./public/assets/javascript/frontend.js': './public/assets/javascript/frontend.js', | ||
} | ||
}, | ||
backend: { | ||
files: { | ||
'./public/assets/javascript/backend.js': './public/assets/javascript/backend.js', | ||
} | ||
}, | ||
}, | ||
phpunit: { | ||
classes: { | ||
}, | ||
options: { | ||
} | ||
}, | ||
// watch: { | ||
// js_frontend: { | ||
// files: [ | ||
// //watched files | ||
// './bower_components/jquery/jquery.js', | ||
// './bower_components/bootstrap/dist/js/bootstrap.js', | ||
// './app/assets/javascript/frontend.js' | ||
// ], | ||
// tasks: ['concat:js_frontend','uglify:frontend'], //tasks to run | ||
// options: { | ||
// livereload: true //reloads the browser | ||
// } | ||
// }, | ||
// js_backend: { | ||
// files: [ | ||
// //watched files | ||
// './bower_components/jquery/jquery.js', | ||
// './bower_components/bootstrap/dist/js/bootstrap.js', | ||
// './app/assets/javascript/backend.js' | ||
// ], | ||
// tasks: ['concat:js_backend','uglify:backend'], //tasks to run | ||
// options: { | ||
// livereload: true //reloads the browser | ||
// } | ||
// }, | ||
// less: { | ||
// files: ['./app/assets/stylesheets/*.less'], //watched files | ||
// tasks: ['less'], //tasks to run | ||
// options: { | ||
// livereload: true //reloads the browser | ||
// } | ||
// }, | ||
// tests: { | ||
// files: ['app/controllers/*.php','app/models/*.php'], //the task will run only when you save files in this location | ||
// tasks: ['phpunit'] | ||
// } | ||
// } | ||
}); | ||
|
||
// Plugin loading | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
//grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-contrib-less'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
//grunt.loadNpmTasks('grunt-phpunit'); | ||
|
||
// Task definition | ||
//grunt.registerTask('default', ['watch']); | ||
grunt.registerTask('default', ['less', 'concat']); | ||
grunt.registerTask('deploy', ['less', 'concat', 'uglify']); | ||
grunt.registerTask('js', ['concat']); | ||
grunt.registerTask('styles', ['concat']); | ||
grunt.registerTask('minify', ['uglify']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Attribution Assurance License | ||
Copyright (c) 2016 by Dave Earley (dave@attendize.com) | ||
http://www.attendize.com | ||
|
||
All Rights Reserved | ||
ATTRIBUTION ASSURANCE LICENSE (adapted from the original BSD license) | ||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the conditions below are met. | ||
These conditions require a modest attribution to Attendize.com. The hope | ||
is that its promotional value may help justify the thousands of dollars in | ||
otherwise billable time invested in writing this and other freely available, | ||
open-source software. | ||
|
||
1. Redistributions of source code, in whole or part and with or without | ||
modification requires the express permission of the author and must prominently | ||
display "Powered by Attendize" or the Attendize logo in verifiable form | ||
with hyperlink to said site. | ||
2. Neither the name nor any trademark of the Author may be used to | ||
endorse or promote products derived from this software without specific | ||
prior written permission. | ||
3. Users are entirely responsible, to the exclusion of the Author and | ||
any other persons, for compliance with (1) regulations set by owners or | ||
administrators of employed equipment, (2) licensing terms of any other | ||
software, and (3) local regulations regarding use, including those | ||
regarding import, export, and use of encryption software. | ||
|
||
THIS FREE SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | ||
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO | ||
EVENT SHALL THE AUTHOR OR ANY CONTRIBUTOR BE LIABLE FOR | ||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
EFFECTS OF UNAUTHORIZED OR MALICIOUS NETWORK ACCESS; | ||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | ||
AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN | ||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?php namespace App\Attendize; | ||
|
||
|
||
class Utils | ||
{ | ||
|
||
public static function isRegistered() | ||
{ | ||
return Auth::check() && Auth::user()->is_registered; | ||
} | ||
|
||
public static function isConfirmed() | ||
{ | ||
return Auth::check() && Auth::user()->is_confirmed; | ||
} | ||
|
||
public static function isDatabaseSetup() | ||
{ | ||
try { | ||
if (Schema::hasTable('accounts')) { | ||
return true; | ||
} | ||
} catch (\Exception $e) { | ||
return false; | ||
} | ||
} | ||
|
||
/** | ||
* Are we the cloud version of attendize or in dev enviornment? | ||
* | ||
* @return bool | ||
*/ | ||
public static function isAttendize() { | ||
return self::isAttendizeCloud() || self::isAttendizeDev(); | ||
} | ||
|
||
/** | ||
* Are we the cloud version of Attendize? | ||
* | ||
* @return bool | ||
*/ | ||
public static function isAttendizeCloud() | ||
{ | ||
return isset($_ENV['ATTENDIZE_CLOUD']) && $_ENV['ATTENDIZE_CLOUD'] == 'true'; | ||
} | ||
|
||
/** | ||
* Are we in a dev enviornment? | ||
* | ||
* @return bool | ||
*/ | ||
public static function isAttendizeDev() | ||
{ | ||
return isset($_ENV['ATTENDIZE_DEV']) && $_ENV['ATTENDIZE_DEV'] == 'true'; | ||
} | ||
|
||
public static function isDownForMaintenance() | ||
{ | ||
return file_exists(storage_path() . '/framework/down'); | ||
} | ||
|
||
public static function isProd() | ||
{ | ||
return App::environment() == ENV_PRODUCTION; | ||
} | ||
|
||
public static function file_upload_max_size() { | ||
static $max_size = -1; | ||
|
||
if ($max_size < 0) { | ||
// Start with post_max_size. | ||
$max_size = self::parse_size(ini_get('post_max_size')); | ||
|
||
// If upload_max_size is less, then reduce. Except if upload_max_size is | ||
// zero, which indicates no limit. | ||
$upload_max = self::parse_size(ini_get('upload_max_filesize')); | ||
if ($upload_max > 0 && $upload_max < $max_size) { | ||
$max_size = $upload_max; | ||
} | ||
} | ||
return $max_size; | ||
} | ||
|
||
public static function parse_size($size) { | ||
$unit = preg_replace('/[^bkmgtpezy]/i', '', $size); // Remove the non-unit characters from the size. | ||
$size = preg_replace('/[^0-9\.]/', '', $size); // Remove the non-numeric characters from the size. | ||
if ($unit) { | ||
// Find the position of the unit in the ordered string which is the power of magnitude to multiply a kilobyte by. | ||
return round($size * pow(1024, stripos('bkmgtpezy', $unit[0]))); | ||
} | ||
else { | ||
return round($size); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
|
||
define('OUTGOING_EMAIL_NOREPLY', env('MAIL_FROM_ADDRESS')); | ||
define('OUTGOING_EMAIL', env('MAIL_FROM_ADDRESS')); | ||
define('OUTGOING_EMAIL_NAME', 'Attendize Event Ticketing'); | ||
define('INCOMING_EMAIL', env('MAIL_FROM_ADDRESS')); | ||
|
||
define('APP_URL', env('APP_URL')); | ||
define('APP_NAME', 'Attendize Event Ticketing'); | ||
|
||
define('EVENT_DEFAULT_BG_COLOR', '#B23333'); | ||
|
||
/* paths */ | ||
define('EVENT_IMAGES_PATH', 'user_content/event_images/'.date('my')); | ||
define('ORGANISER_IMAGES_PATH', 'user_content/organiser_images/'.date('my')); | ||
define('EVENT_PDF_TICKETS_PATH', 'user_content/pdf_tickets/'.date('my')); | ||
define('EVENT_BG_IMAGES', 'assets/images/public/EventPage/backgrounds'); | ||
|
||
|
||
/* | ||
* | ||
*/ | ||
define('FALLBACK_ORGANISER_LOGO_URL', '/assets/images/logo-100x100-lightBg.png'); | ||
define('CDN_URL', ''); | ||
|
||
define('MAX_TICKETS_PER_PERSON', 50); | ||
|
||
/* Time in minutes which a user can reserve tickets */ | ||
define('CHECKOUT_TIMEOUT_AFTER', 8); | ||
|
||
define('TICKET_STATUS_SOLD_OUT', 1); | ||
define('TICKET_STATUS_AFTER_SALE_DATE', 2); | ||
define('TICKET_STATUS_BEFORE_SALE_DATE', 3); | ||
define('TICKET_STATUS_ON_SALE', 4); | ||
define('TICKET_STATUS_OFF_SALE', 5); | ||
|
||
/* The fee which we charge users for buying tikets. Fixed fee + % of ticket sale. */ | ||
define('TICKET_BOOKING_FEE_FIXED', .0); | ||
define('TICKET_BOOKING_FEE_PERCENTAGE', .0); | ||
|
||
|
||
define('ORDER_COMPLETE', 1); | ||
define('ORDER_REFUNDED', 2); | ||
define('ORDER_PARTIALLY_REFUNDED', 3); | ||
define('ORDER_CANCELLED', 4); | ||
|
||
define('DEFAULT_TIMEZONE', 30); // Europe/Dublin | ||
define('DEFAULT_CURRENCY', 2); // Euro | ||
define('DEFAULT_DATE_FORMAT', 'j M, Y'); | ||
define('DEFAULT_DATE_PICKER_FORMAT', 'd M, yyyy'); | ||
define('DEFAULT_DATETIME_FORMAT', 'F j, Y, g:i a'); | ||
define('DEFAULT_QUERY_CACHE', 120); // minutes | ||
define('DEFAULT_LOCALE', 'en'); | ||
|
||
|
||
define('CDN_URL_USER_ASSETS', ''); | ||
define('CDN_URL_STATIC_ASSETS', ''); |
Oops, something went wrong.