Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for SourceGuardian & phpSHIELD)
- *
- * @ Version : 1.1.6.0
- * @ Author : DeZender
- * @ Release on : 02.06.2013
- * @ Official site : http://DeZender.Net
- *
- */
- if (!( defined( 'BASEPATH' ))) {
- exit( 'No direct script access allowed' );
- (bool)true;
- }
- class Admin extends LS_Controller {
- public function __construct() {
- parent::__construct( );
- if (!$this->users->logged_in( )) {
- $this->users->redirect_to_login( );
- } else {
- if (!$this->users->is_admin( )) {
- redirect( '' );
- }
- }
- $this->page = 'configure';
- $nodes = array( );
- $result = $this->elasticsearch->query( 'node', array( 'size' => 2000 ) );
- if (0 < $result['_shards']['total']) {
- foreach ($result['hits']['hits'] as $n) {
- if ($n['_id'] == 'global') {
- continue;
- }
- $nodes[$n['_source']['hostname']] = $n;
- }
- }
- ksort( &$nodes );
- $this->leftbar_data['nodes'] = $nodes;
- }
- public function index() {
- $this->load->model( 'systemstat' );
- $css = array( '/css/elastichq.css' );
- $this->init_page( _( 'Admin Dashboard' ), $this->page, array( ), $css );
- ............................................................
- ...................................
- .................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement