Add Settings class, for admin settings.

Signed-off-by: Norv <a.w.norv@gmail.com>
Update saveDBSettings() and prepare() calls.

Signed-off-by: Norv <a.w.norv@gmail.com>
Add init_inline_permissions() and save_inline_permissions() to the Settings class.
It's the only caller anyway. Most likely, we could make this private/protected.

Signed-off-by: Norv <a.w.norv@gmail.com>
Add the template callback for inline permissions to Settings file.
(I add it as a simple function, it's one call in the admin template)

Signed-off-by: Norv <a.w.norv@gmail.com>
Add Permissions utility subs: Permission.subs.php.
Start it up with load illegal permissions functions.

Signed-off-by: Norv <a.w.norv@gmail.com>
Move updateChildPermissions() to the Permission utility file.

Signed-off-by: Norv <a.w.norv@gmail.com>
Quick rename: Settings class as Settings_Form, since this is its purpose.

Signed-off-by: Norv <a.w.norv@gmail.com>
Now that we have Permissions utility file, inline permissions rather belong there...in a way.
The permissions are a 'subform', lets model it as a class of its own.
(This feels like overdoing it though.)

Signed-off-by: Norv <a.w.norv@gmail.com>
Remove 'internal' tag. It's no longer in a controller
 (it's not a direct response to an action), but a working backend processing.
Also, even if it's not meant to be used directly itself, it's not dependent
 on Settings_Form.

Signed-off-by: Norv <a.w.norv@gmail.com>
Move theme_inline_permission() too then, to Permissions utility file.

Signed-off-by: Norv <a.w.norv@gmail.com>
Add the saveSettings() method to Settings_Form as well.
Also as static, this static is meant as first pass.

Signed-off-by: Norv <a.w.norv@gmail.com>
In a settings form, we save settings. :P

Signed-off-by: Norv <a.w.norv@gmail.com>
Fix indentation. (also known as 'sometimes I really hate Eclipse.')

Signed-off-by: Norv <a.w.norv@gmail.com>
Use updateDbLastError() instead of updateSettingsFile()

Signed-off-by: Norv <a.w.norv@gmail.com>
updateSettingsFile() moved to Settings_Form.
Rename methods more simply. We can afford to, we're in a class. :P

Signed-off-by: Norv <a.w.norv@gmail.com>

Conflicts:
	sources/admin/ManageLanguages.php

Signed-off-by: Norv <a.w.norv@gmail.com>