!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

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

Safe-mode: OFF (not secure)

/var/www/html/gamesdaddy/cloudarcade/js/chart/   drwxr-xr-x
Free 13.32 GB of 57.97 GB (22.98%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     stats.js (2.21 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
"use strict";
var color = Chart.helpers.color;
var stats_data;
function createConfig(legendPosition) {
	return {
		type: 'line',
		data: {
			labels: stats_data['labels'],
			datasets: [{
				label: 'Unique Visitor',
				data: stats_data['unique_visitor'],
				backgroundColor: color(window.chartColors.green).alpha(0.3).rgbString(),
				borderColor: window.chartColors.green,
			}, {
				label: 'Visitor',
				data: stats_data['page_views'],
				backgroundColor: color(window.chartColors.blue).alpha(0.5).rgbString(),
				borderColor: window.chartColors.blue,
			}]
		},
		options: {
			maintainAspectRatio: false,
			responsive: true,
			legend: {
				position: legendPosition,
			},
			scales: {
				xAxes: [{
					display: true,
					scaleLabel: {
						display: false,
						labelString: 'Month'
					}
				}],
				yAxes: [{
					display: true,
					scaleLabel: {
						display: true,
						labelString: 'Value'
					}
				}]
			},
			title: {
				display: false,
				text: 'Statistics'
			}
		}
	};
}
window.onload = function() {
	if (localStorage.getItem('cloudarcade_admin-theme') === 'theme-dark') {
		Chart.defaults.global.defaultFontColor = '#adbcce';
	}
	get_data('../includes/statistics.php', {"limit":"-1","offset":"0","sub":"-7"}).then((res)=>{
		stats_data = convert_stats_data(res);
		let ctx = document.getElementById('statistics').getContext('2d');
		let config = createConfig('top');
		Stats = new Chart(ctx, config);
	});
};
function convert_stats_data(data){
	let arr = JSON.parse(data);
	let res = {
		page_views: [],
		unique_visitor: [],
		labels: [],
	};
	arr.forEach((data)=>{
		res.page_views.push(data.page_views);
		res.unique_visitor.push(data.unique_visitor);
		res.labels.push(data.date);
	});
	return res;
}
function update_stats(data){
	Stats.data.labels = data.labels;
	Stats.data.datasets[0].data = data.unique_visitor;
	Stats.data.datasets[1].data = data.page_views;
    Stats.update();
}
function get_data(url, data){
	let wait = new Promise((res) => {
		let xhr = new XMLHttpRequest();
		xhr.open('POST', url+'?data='+JSON.stringify(data));
		xhr.onload = function() {
			res(xhr.responseText);
		};
		xhr.send();
	});
	return wait;
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0047 ]--