<?php
/**
* InterWorx Hosting Control Panel
*
* <pre>
* +----------------------------------------------------------------------+
* | Copyright (c) 2000-2010 InterWorx L.L.C., All Rights Reserved. |
* +----------------------------------------------------------------------+
* | Redistribution and use in source form, with or without modification |
* | is NOT permitted without consent from the copyright holder. |
* | |
* | THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS "AS IS" AND |
* | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
* | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
* | PARTICULAR PURPOSE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
* | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
* | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
* | PROFITS; OF BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
* | OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE |
* | USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH |
* | DAMAGE. |
* +----------------------------------------------------------------------+
* </pre>
*
* @package InterWorx
* @author Paul Oehler <poehler@interworx.com>
* @date Sep 22, 2009
*/
/**
* Nodeworx hello world sample plugin controller.
*
* @package InterWorx
* @subpackage Plugin
*/
class Ctrl_Nodeworx_Sitepad extends Ctrl_Nodeworx_Plugin {
/**
* Init.
*/
protected function _init() {
if( IW::NW()->isReseller() ) {
throw new IWorx_Exception_ActionBlocked( '##LG_ACTION_BLOCKED##' );
}
}
/**
* Launch action.
*
* @disabledIn ~IW::WEB
*/
public function launchAction() {
$this->getView()->assign( 'title', 'SitePad' );
$this->getView()->assign( 'template', 'admin' );
}
/**
* Index.
*
* @disabledIn ~IW::WEB
*/
public function indexAction() {
$this->_getPlugin()->runAdmin();
exit;
}
}