Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
- class Apacherestart extends MX_Controller {
- public function index() {
- $CI =& get_instance();
- // We load the BlueOnyx helper library first of all, as we heavily depend on it:
- $this->load->helper('blueonyx');
- init_libraries();
- // Need to load 'BxPage' for page rendering:
- $this->load->library('BxPage');
- // Get $CI->BX_SESSION['sessionId'] and $CI->BX_SESSION['loginName'] from Cookie (if they are set):
- $CI->BX_SESSION['sessionId'] = $CI->input->cookie('sessionId');
- $CI->BX_SESSION['loginName'] = $CI->input->cookie('loginName');
- // Line up the ducks for CCE-Connection:
- include_once('ServerScriptHelper.php');
- $CI->serverScriptHelper = new ServerScriptHelper($CI->BX_SESSION['sessionId'], $CI->BX_SESSION['loginName']);
- $CI->cceClient = $CI->serverScriptHelper->getCceClient();
- $CI->cceClient->setObject("System", array('reload' => time()), "Web");
- header("Location: /gui");
- exit;
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement