40 lines
1.0 KiB
PHP
40 lines
1.0 KiB
PHP
<?php defined('SYSPATH') or die('No direct access allowed.');
|
|
|
|
/**
|
|
* This class provides Siet Configuration Setup
|
|
*
|
|
* @package OSB
|
|
* @category Controllers/Admin
|
|
* @author Deon George
|
|
* @copyright (c) 2009-2013 Open Source Billing
|
|
* @license http://dev.osbill.net/license.html
|
|
*/
|
|
class Controller_Admin_Setup extends Controller_TemplateDefault {
|
|
protected $secure_actions = array(
|
|
'edit'=>TRUE,
|
|
);
|
|
|
|
/**
|
|
* View/Update the site configuration
|
|
*/
|
|
public function action_edit() {
|
|
$o = Company::instance()->so();
|
|
|
|
if ($this->request->post() AND $o->values($this->request->post())->changed() AND (! $this->save($o)))
|
|
$o->reload();
|
|
|
|
Block::factory()
|
|
->title('Update Site Configuration')
|
|
->title_icon('fa fa-wrench')
|
|
->type('form-horizontal')
|
|
->body(View::factory('setup/admin/edit')->set('o',$o));
|
|
|
|
Block::factory()
|
|
->title('Update Module Configuration')
|
|
->title_icon('fa fa-wrench')
|
|
->type('form-horizontal')
|
|
->body(View::factory('setup/admin/module')->set('o',$o)->set('mid',NULL));
|
|
}
|
|
}
|
|
?>
|