added some checks and fixes to the installer

Signed-off-by: northpole <northpole@northpole-MacBook.(none)>
installer fixes

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
Fixed the sql exception thrown by sql syntax error when $classes was empty in isAllowed($challenge_id, $classes)
also added a debug message there

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
Added global defines to store debug levels.

Added global defines to enable the ability to check and print debug messages when the environment is listed as dev.
There wont be any need for ui to set the variables since they are only for developer use.

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
Added a check and a debug message to show the sql queries used by the cms

Hopefully it will allow easier debugging
Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
replaced the die with this->adderror

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
Substituted the weak md5 encryption with a custom implementation of bcrypt(that I found in stack Overflow) seems more impresive when stored in the db at least

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
secure password storage fixes

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
Added phPass password hashing to the installer admin password

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
Added phPass password hashing to the installer admin password 2/2

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
added phpass password hashing to the user creation passwords

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
added PasswordHash.php file in model/common which was ommitted by mistake in last commit

Signed-off-by: root <root@northpole-MacBook.(none)>
weak password on update user fix

Signed-off-by: northpole <northpole@northpole-MacBook.(none)>
installer duplicate db notification fix

Signed-off-by: northpole <northpole@northpole-MacBook.(none)>
more fixes

Signed-off-by: root <root@northpole-MacBook.(none)>
fixed the challenge visibility/availability issue

Signed-off-by: northpole <northpole@northpole-MacBook.(none)>
fixed the bug described in issue #16

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
added extra debug messages

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
added a table to keep count of the attempts each user made on each challenge)

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>
temporary solution to make publicly visible challenges publicly available as described in issue #23

Signed-off-by: Spyros Gasteratos <morfeas3000@gmail.com>