2019-07-17 20:08:50 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
2019-07-17 20:31:04 +00:00
|
|
|
* @copyright Copyright (C) 2005-2010 Keyboard Monkeys Ltd. http://www.kb-m.com
|
2019-07-17 20:08:50 +00:00
|
|
|
* @license http://creativecommons.org/licenses/BSD/ BSD License
|
|
|
|
* @author Keyboard Monkey Ltd
|
|
|
|
* @since CommunityID 0.9
|
|
|
|
* @package CommunityID
|
|
|
|
* @packager Keyboard Monkeys
|
|
|
|
*/
|
|
|
|
|
2019-07-17 20:16:19 +00:00
|
|
|
class MaintenancemodeController extends CommunityID_Controller_Action
|
2019-07-17 20:08:50 +00:00
|
|
|
{
|
|
|
|
public function enableAction()
|
|
|
|
{
|
2019-07-17 20:16:19 +00:00
|
|
|
$this->_settings->set(Model_Settings::MAINTENANCE_MODE, 1);
|
2019-07-17 20:08:50 +00:00
|
|
|
|
|
|
|
$this->_redirect('');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function disableAction()
|
|
|
|
{
|
2019-07-17 20:16:19 +00:00
|
|
|
$this->_settings->set(Model_Settings::MAINTENANCE_MODE, 0);
|
2019-07-17 20:08:50 +00:00
|
|
|
|
|
|
|
$this->_redirect('');
|
|
|
|
}
|
|
|
|
}
|