CommunityID/modules/default/controllers/MaintenancemodeController.php

28 lines
633 B
PHP
Raw Normal View History

2019-07-17 20:08:50 +00:00
<?php
/*
* @copyright Copyright (C) 2005-2009 Keyboard Monkeys Ltd. http://www.kb-m.com
* @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('');
}
}