Skip to content

Commit

Permalink
Add new "Setup" routine for database bootstrapping (closes #6, closes…
Browse files Browse the repository at this point in the history
…), fixed redirect (closes #79), removed registration mail (closes #80), some minor bugfixes
  • Loading branch information
exodus4d committed Dec 26, 2015
1 parent 0408756 commit e2cf68f
Show file tree
Hide file tree
Showing 151 changed files with 5,093 additions and 689 deletions.
5 changes: 4 additions & 1 deletion .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ RewriteCond %{HTTP_HOST} !=localhost
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Now, rewrite any request to the wrong domain to use www.
# Now, rewrite any request to the wrong domain to force www.
RewriteCond %{HTTP_HOST} !^www\.
# skip "localhost" (dev environment)...
RewriteCond %{HTTP_HOST} !=localhost
# skip IP calls (dev environment)
RewriteCond %{HTTP_HOST} !^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$
# rewrite everything else to "https://" and "www."
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


Expand Down
35 changes: 19 additions & 16 deletions app/config.ini
Original file line number Diff line number Diff line change
@@ -1,36 +1,39 @@
; Global Framework Config

[globals]
; Default Verbosity level of the stack trace.
; Assign values between 0 to 3 for increasing verbosity levels. Check "PATHFINDER" config for overwriting
DEBUG = 0
; Assign values between 0 to 3 for increasing verbosity levels. Check (environment.ini) config for overwriting
DEBUG = 0

; If TRUE, the framework, after having logged stack trace and errors, stops execution (die without any status) when a non-fatal error is detected.
HALT = FALSE
; If TRUE, the framework, after having logged stack trace and errors, stops execution
; -> (die without any status) when a non-fatal error is detected.
HALT = FALSE

; Timezone to use. Sync program with eve server time
TZ = "UTC"
TZ = UTC

; Cache backend. Can handle Memcache module, APC, WinCache, XCache and a filesystem-based cache.
CACHE = TRUE
CACHE = TRUE

; Callback functions ===================================================================================
ONERROR = "Controller\Controller->showError"
; Callback functions ==============================================================================
ONERROR = Controller\Controller->showError

UNLOAD = "Controller\Controller->unload"
UNLOAD = Controller\Controller->unload

; Path configurations ==================================================================================
; Path configurations =============================================================================
; relative to "BASE" dir

; Temporary folder for cache, filesystem locks, compiled F3 templates, etc.
TEMP = tmp/
TEMP = tmp/

; Log file folder
LOGS = logs/
LOGS = logs/

; Search path for user interface files used by the View and Template classes' render() method.
UI = public/
UI = public/

; Search path(s) for user-defined PHP classes that the framework will attempt to autoload at runtime
AUTOLOAD = app/main/


AUTOLOAD = app/main/

; path to favicons folder
FAVICON = favicon/
60 changes: 60 additions & 0 deletions app/environment.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
; Environment Config

[ENVIRONMENT]
; project environment (DEVELOP, PRODUCTION).
; This effects: DB connection, Mail-Server connection
; configuration below
SERVER = DEVELOP

[ENVIRONMENT.DEVELOP]
;BASE = /pathfinder <= default: "auto-detect"
; deployment URL e.g. http://localhost
URL = http://pathfinder.local
; Verbosity level of the stack trace
DEBUG = 3
; main db
DB_DNS = mysql:host=localhost;port=3306;dbname=
DB_NAME = pathfinder_empty
DB_USER = root
DB_PASS =
; EVE-Online CCP Database export
DB_CCP_DNS = mysql:host=localhost;port=3306;dbname=
DB_CCP_NAME = eve_parallax_min
DB_CCP_USER = root
DB_CCP_PASS =
; SMTP settings
SMTP_HOST = localhost
SMTP_PORT = 25
SMTP_SCHEME = ""
SMTP_USER = pathfinder
SMTP_PASS = root
SMTP_FROM = [email protected]
SMTP_ERROR = [email protected]

[ENVIRONMENT.PRODUCTION]
BASE = /www/htdocs/w0128162/www.pathfinder.exodus4d.de
; deployment URL
URL = https://www.pathfinder.exodus4d.de
; Verbosity level of the stack trace
DEBUG = 0
; main db
DB_DNS = mysql:host=localhost;port=3306;dbname=
DB_NAME =
DB_USER =
DB_PASS =

; EVE-Online CCP Database export
DB_CCP_DNS = mysql:host=localhost;port=3306;dbname=
DB_CCP_NAME =
DB_CCP_USER =
DB_CCP_PASS =

; SMTP settings
SMTP_HOST = localhost
SMTP_PORT = 25
SMTP_SCHEME = TLS
SMTP_USER =
SMTP_PASS =

SMTP_FROM = [email protected]
SMTP_ERROR = [email protected]
Loading

0 comments on commit e2cf68f

Please sign in to comment.