Use config values for admin
Fix PHP error and indents