Fixed exit_if_not_system_user() missing error

  needed include
Fixed db cannot connect

  also added error reporting.
Removed extra comments
Fixed no pserver error

  call_user_func_array failed on new version of php.
Fixed indents (almost)
Merge pull request #60 from semirke/dev

Fixed MySQLi support