File manager - Edit - /home/newsbmcs.com/public_html/static/img/logo/CLManager.zip
Back
PK b\�Z�2af f CLManager.jsnu �[��� app.controller('installCageFS', function ($scope, $http, $timeout, $window) { $scope.installDockerStatus = true; $scope.installBoxGen = true; $scope.dockerInstallBTN = false; $scope.submitCageFSInstall = function () { $scope.installDockerStatus = false; $scope.installBoxGen = true; $scope.dockerInstallBTN = true; url = "/CloudLinux/submitCageFSInstall"; var data = {}; var config = { headers: { 'X-CSRFToken': getCookie('csrftoken') } }; $http.post(url, data, config).then(ListInitialDatas, cantLoadInitialDatas); function ListInitialDatas(response) { $scope.cyberPanelLoading = true; if (response.data.status === 1) { $scope.installBoxGen = false; getRequestStatus(); } else { new PNotify({ title: 'Operation Failed!', text: response.data.error_message, type: 'error' }); } } function cantLoadInitialDatas(response) { $scope.cyberPanelLoading = true; new PNotify({ title: 'Operation Failed!', text: 'Could not connect to server, please refresh this page', type: 'error' }); } }; function getRequestStatus() { $scope.installDockerStatus = false; url = "/serverstatus/switchTOLSWSStatus"; var data = {}; var config = { headers: { 'X-CSRFToken': getCookie('csrftoken') } }; $http.post(url, data, config).then(ListInitialDatas, cantLoadInitialDatas); function ListInitialDatas(response) { if (response.data.abort === 0) { $scope.requestData = response.data.requestStatus; $timeout(getRequestStatus, 1000); } else { // Notifications $scope.installDockerStatus = true; $timeout.cancel(); $scope.requestData = response.data.requestStatus; if (response.data.installed === 1) { $timeout(function () { $window.location.reload(); }, 3000); } } } function cantLoadInitialDatas(response) { $scope.installDockerStatus = true; new PNotify({ title: 'Operation Failed!', text: 'Could not connect to server, please refresh this page', type: 'error' }); } } }); app.controller('listWebsitesCage', function ($scope, $http) { var globalPageNumber; $scope.getFurtherWebsitesFromDB = function (pageNumber) { $scope.cyberPanelLoading = false; globalPageNumber = pageNumber; var config = { headers: { 'X-CSRFToken': getCookie('csrftoken') } }; var data = {page: pageNumber}; dataurl = "/CloudLinux/submitWebsiteListing"; $http.post(dataurl, data, config).then(ListInitialData, cantLoadInitialData); function ListInitialData(response) { $scope.cyberPanelLoading = true; if (response.data.listWebSiteStatus === 1) { var finalData = JSON.parse(response.data.data); $scope.WebSitesList = finalData; $scope.pagination = response.data.pagination; $scope.default = response.data.default; $("#listFail").hide(); } else { $("#listFail").fadeIn(); $scope.errorMessage = response.data.error_message; console.log(response.data); } } function cantLoadInitialData(response) { $scope.cyberPanelLoading = true; console.log("not good"); } }; $scope.getFurtherWebsitesFromDB(1); $scope.cyberPanelLoading = true; $scope.searchWebsites = function () { $scope.cyberPanelLoading = false; var config = { headers: { 'X-CSRFToken': getCookie('csrftoken') } }; var data = { patternAdded: $scope.patternAdded }; dataurl = "/websites/searchWebsites"; $http.post(dataurl, data, config).then(ListInitialData, cantLoadInitialData); function ListInitialData(response) { $scope.cyberPanelLoading = true; if (response.data.listWebSiteStatus === 1) { var finalData = JSON.parse(response.data.data); $scope.WebSitesList = finalData; $("#listFail").hide(); } else { new PNotify({ title: 'Operation Failed!', text: response.data.error_message, type: 'error' }); } } function cantLoadInitialData(response) { $scope.cyberPanelLoading = true; new PNotify({ title: 'Operation Failed!', text: 'Connect disrupted, refresh the page.', type: 'error' }); } }; $scope.enableOrDisable = function (domain, all, mode, toggle = 0) { $scope.cyberPanelLoading = false; url = "/CloudLinux/enableOrDisable"; var data = { domain: domain, all: all, mode: mode, toggle: toggle }; var config = { headers: { 'X-CSRFToken': getCookie('csrftoken') } }; $http.post(url, data, config).then(ListInitialDatas, cantLoadInitialDatas); function ListInitialDatas(response) { $scope.cyberPanelLoading = true; if (response.data.status === 1) { new PNotify({ title: 'Success', text: response.data.success, type: 'success' }); if (all === 0) { $scope.getFurtherWebsitesFromDB(globalPageNumber); } } else { new PNotify({ title: 'Operation Failed!', text: response.data.error_message, type: 'error' }); } } function cantLoadInitialDatas(response) { $scope.cyberPanelLoading = true; new PNotify({ title: 'Operation Failed!', text: 'Could not connect to server, please refresh this page', type: 'error' }); } }; $scope.refreshStatus = function () { $scope.getFurtherWebsitesFromDB(globalPageNumber); } }); app.controller('createCLPackage', function ($scope, $http) { $scope.cyberPanelLoading = true; $scope.modifyPackageForm = true; $scope.toggleView = function () { $scope.modifyPackageForm = false; }; $scope.createPackage = function () { $scope.cyberPanelLoading = false; url = "/CloudLinux/submitCreatePackage"; var data = { selectedPackage: $scope.selectedPackage, name: $scope.name, SPEED: $scope.SPEED, VMEM: $scope.VMEM, PMEM: $scope.PMEM, IO: $scope.IO, IOPS: $scope.IOPS, EP: $scope.EP, NPROC: $scope.NPROC, INODESsoft: $scope.INODESsoft, INODEShard: $scope.INODEShard, }; var config = { headers: { 'X-CSRFToken': getCookie('csrftoken') } }; $http.post(url, data, config).then(ListInitialDatas, cantLoadInitialDatas); function ListInitialDatas(response) { $scope.cyberPanelLoading = true; if (response.data.status === 1) { new PNotify({ title: 'Success', text: 'Successfully created.', type: 'success' }); } else { new PNotify({ title: 'Operation Failed!', text: response.data.error_message, type: 'error' }); } } function cantLoadInitialDatas(response) { $scope.cyberPanelLoading = true; new PNotify({ title: 'Operation Failed!', text: 'Could not connect to server, please refresh this page', type: 'error' }); } }; }); app.controller('listCloudLinuxPackages', function ($scope, $http) { $scope.cyberPanelLoading = true; $scope.fetchPackageas = function () { $scope.cyberPanelLoading = false; var config = { headers: { 'X-CSRFToken': getCookie('csrftoken') } }; var data = {}; dataurl = "/CloudLinux/fetchPackages"; $http.post(dataurl, data, config).then(ListInitialData, cantLoadInitialData); function ListInitialData(response) { $scope.cyberPanelLoading = true; if (response.data.status === 1) { $scope.packages = JSON.parse(response.data.data); } else { new PNotify({ title: 'Operation Failed!', text: response.data.error_message, type: 'error' }); } } function cantLoadInitialData(response) { $scope.cyberPanelLoading = true; new PNotify({ title: 'Operation Failed!', text: 'Could not connect to server, please refresh this page', type: 'error' }); } }; $scope.fetchPackageas(); $scope.deleteCLPackage = function (name) { $scope.cyberPanelLoading = false; url = "/CloudLinux/deleteCLPackage"; var data = { name: name }; var config = { headers: { 'X-CSRFToken': getCookie('csrftoken') } }; $http.post(url, data, config).then(ListInitialDatas, cantLoadInitialDatas); function ListInitialDatas(response) { $scope.cyberPanelLoading = true; if (response.data.status === 1) { new PNotify({ title: 'Success', text: 'Successfully deleted.', type: 'success' }); $scope.fetchPackageas(); } else { new PNotify({ title: 'Operation Failed!', text: response.data.error_message, type: 'error' }); } } function cantLoadInitialDatas(response) { $scope.cyberPanelLoading = true; new PNotify({ title: 'Operation Failed!', text: 'Could not connect to server, please refresh this page', type: 'error' }); } }; $scope.populatePackage = function (name, speed, vmem, pmem, io, iops, ep, nproc, inodessoft, inodeshard) { $scope.name = name; $scope.SPEED = speed; $scope.VMEM = vmem; $scope.PMEM = pmem; $scope.IO = io; $scope.IOPS = iops; $scope.EP = ep; $scope.NPROC = nproc; $scope.inodessoft = inodessoft; $scope.inodeshard = inodeshard; }; $scope.saveSettings = function () { $scope.cyberPanelLoading = false; url = "/CloudLinux/saveSettings"; var data = { name: $scope.name, SPEED: $scope.SPEED, VMEM: $scope.VMEM, PMEM: $scope.PMEM, IO: $scope.IO, IOPS: $scope.IOPS, EP: $scope.EP, NPROC: $scope.NPROC, INODESsoft: $scope.inodessoft, INODEShard: $scope.inodeshard, }; var config = { headers: { 'X-CSRFToken': getCookie('csrftoken') } }; $http.post(url, data, config).then(ListInitialDatas, cantLoadInitialDatas); function ListInitialDatas(response) { $scope.cyberPanelLoading = true; if (response.data.status === 1) { new PNotify({ title: 'Success', text: 'Changes successfully applied.', type: 'success' }); $scope.fetchPackageas(); } else { new PNotify({ title: 'Operation Failed!', text: response.data.error_message, type: 'error' }); } } function cantLoadInitialDatas(response) { $scope.cyberPanelLoading = true; new PNotify({ title: 'Operation Failed!', text: 'Could not connect to server, please refresh this page', type: 'error' }); } }; }); app.controller('websiteContainerLimitCL', function ($scope, $http, $timeout, $window) { // Get CPU Usage of User var cpu = []; var dataset; var totalPoints = 100; var updateInterval = 1000; var now = new Date().getTime(); var options = { series: { lines: { lineWidth: 1.2 }, bars: { align: "center", fillColor: {colors: [{opacity: 1}, {opacity: 1}]}, barWidth: 500, lineWidth: 1 } }, xaxis: { mode: "time", tickSize: [5, "second"], tickFormatter: function (v, axis) { var date = new Date(v); if (date.getSeconds() % 20 == 0) { var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours(); var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(); var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds(); return hours + ":" + minutes + ":" + seconds; } else { return ""; } }, axisLabel: "Time", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: 'Verdana, Arial', axisLabelPadding: 10 }, yaxes: [ { min: 0, max: 100, tickSize: 5, tickFormatter: function (v, axis) { if (v % 10 == 0) { return v + "%"; } else { return ""; } }, axisLabel: "CPU loading", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: 'Verdana, Arial', axisLabelPadding: 6 }, { max: 5120, position: "right", axisLabel: "Disk", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: 'Verdana, Arial', axisLabelPadding: 6 } ], legend: { noColumns: 0, position: "nw" }, grid: { backgroundColor: {colors: ["#ffffff", "#EDF5FF"]} } }; function initData() { for (var i = 0; i < totalPoints; i++) { var temp = [now += updateInterval, 0]; cpu.push(temp); } } function GetData() { var data = { domain: $("#domain").text() }; $.ajaxSetup({cache: false}); $.ajax({ url: "/CloudLinux/getUsageData", dataType: 'json', success: update, type: "POST", headers: {'X-CSRFToken': getCookie('csrftoken')}, contentType: "application/json", data: JSON.stringify(data), // Our valid JSON string error: function () { setTimeout(GetData, updateInterval); } }); } var temp; function update(_data) { cpu.shift(); now += updateInterval; temp = [now, _data.cpu]; cpu.push(temp); dataset = [ {label: "CPU:" + _data.cpu + "%", data: cpu, lines: {fill: true, lineWidth: 1.2}, color: "#00FF00"} ]; $.plot($("#flot-placeholder1"), dataset, options); setTimeout(GetData, updateInterval); } // Memory Usage of User var memory = []; var datasetMemory; var totalPointsMemory = 100; var updateIntervalMemory = 1000; var nowMemory = new Date().getTime(); var optionsMemory = { series: { lines: { lineWidth: 1.2 }, bars: { align: "center", fillColor: {colors: [{opacity: 1}, {opacity: 1}]}, barWidth: 500, lineWidth: 1 } }, xaxis: { mode: "time", tickSize: [5, "second"], tickFormatter: function (v, axis) { var date = new Date(v); if (date.getSeconds() % 20 == 0) { var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours(); var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(); var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds(); return hours + ":" + minutes + ":" + seconds; } else { return ""; } }, axisLabel: "Time", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: 'Verdana, Arial', axisLabelPadding: 10 }, yaxes: [ { min: 0, max: $scope.memory, tickSize: 5, tickFormatter: function (v, axis) { if (v % 10 == 0) { return v + "MB"; } else { return ""; } }, axisLabel: "CPU loading", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: 'Verdana, Arial', axisLabelPadding: 6 }, { max: 5120, position: "right", axisLabel: "Disk", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: 'Verdana, Arial', axisLabelPadding: 6 } ], legend: { noColumns: 0, position: "nw" }, grid: { backgroundColor: {colors: ["#ffffff", "#EDF5FF"]} } }; function initDataMemory() { for (var i = 0; i < totalPointsMemory; i++) { var temp = [nowMemory += updateIntervalMemory, 0]; memory.push(temp); } } function GetDataMemory() { var data = { domain: $("#domain").text(), type: 'memory' }; $.ajaxSetup({cache: false}); $.ajax({ url: "/CloudLinux/getUsageData", dataType: 'json', headers: {'X-CSRFToken': getCookie('csrftoken')}, success: updateMemory, type: "POST", contentType: "application/json", data: JSON.stringify(data), // Our valid JSON string error: function () { setTimeout(GetDataMemory, updateIntervalMemory); } }); } var tempMemory; function updateMemory(_data) { memory.shift(); nowMemory += updateIntervalMemory; tempMemory = [nowMemory, _data.memory]; memory.push(tempMemory); datasetMemory = [ { label: "Memory:" + _data.memory + "MB", data: memory, lines: {fill: true, lineWidth: 1.2}, color: "#00FF00" } ]; $.plot($("#memoryUsage"), datasetMemory, optionsMemory); setTimeout(GetDataMemory, updateIntervalMemory); } // Disk Usage var readRate = [], writeRate = []; var datasetDisk; var totalPointsDisk = 100; var updateIntervalDisk = 5000; var now = new Date().getTime(); var optionsDisk = { series: { lines: { lineWidth: 1.2 }, bars: { align: "center", fillColor: {colors: [{opacity: 1}, {opacity: 1}]}, barWidth: 500, lineWidth: 1 } }, xaxis: { mode: "time", tickSize: [30, "second"], tickFormatter: function (v, axis) { var date = new Date(v); if (date.getSeconds() % 20 == 0) { var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours(); var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(); var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds(); return hours + ":" + minutes + ":" + seconds; } else { return ""; } }, axisLabel: "Time", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: 'Verdana, Arial', axisLabelPadding: 10 }, yaxes: [ { min: 0, max: $scope.networkSpeed, tickSize: 5, tickFormatter: function (v, axis) { if (v % 10 == 0) { return v + "mb/sec"; } else { return ""; } }, axisLabel: "CPU loading", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: 'Verdana, Arial', axisLabelPadding: 6 }, { max: 5120, position: "right", axisLabel: "Disk", axisLabelUseCanvas: true, axisLabelFontSizePixels: 12, axisLabelFontFamily: 'Verdana, Arial', axisLabelPadding: 6 } ], legend: { noColumns: 0, position: "nw" }, grid: { backgroundColor: {colors: ["#ffffff", "#EDF5FF"]} } }; function initDataDisk() { for (var i = 0; i < totalPointsDisk; i++) { var temp = [now += updateIntervalDisk, 0]; readRate.push(temp); writeRate.push(temp); } } function GetDataDisk() { var data = { domain: $("#domain").text(), type: 'io' }; $.ajaxSetup({cache: false}); $.ajax({ url: "/CloudLinux/getUsageData", dataType: 'json', headers: {'X-CSRFToken': getCookie('csrftoken')}, success: updateDisk, type: "POST", contentType: "application/json", data: JSON.stringify(data), // Our valid JSON string error: function () { setTimeout(GetDataMemory, updateIntervalMemory); } }); } var tempDisk; function updateDisk(_data) { readRate.shift(); writeRate.shift(); now += updateIntervalDisk; tempDisk = [now, _data.readRate]; readRate.push(tempDisk); tempDisk = [now, _data.readRate]; writeRate.push(tempDisk); datasetDisk = [ { label: "Read IO/s " + _data.readRate + " mb/s ", data: readRate, lines: {fill: true, lineWidth: 1.2}, color: "#00FF00" }, { label: "Write IO/s " + _data.writeRate + " mb/s ", data: writeRate, lines: {lineWidth: 1.2}, color: "#FF0000" } ]; $.plot($("#diskUsage"), datasetDisk, optionsDisk); setTimeout(GetDataDisk, updateIntervalDisk); } $(document).ready(function () { // Report Memory Usage initDataMemory(); datasetMemory = [ {label: "Memory", data: memory, lines: {fill: true, lineWidth: 1.2}, color: "#00FF00"} ]; $.plot($("#memoryUsage"), datasetMemory, optionsMemory); setTimeout(GetDataMemory, updateIntervalMemory); // Report CPU Usage initData(); dataset = [ {label: "CPU", data: cpu, lines: {fill: true, lineWidth: 1.2}, color: "#00FF00"} ]; $.plot($("#flot-placeholder1"), dataset, options); setTimeout(GetData, updateInterval); // Report Disk Usage initDataDisk(); datasetDisk = [ {label: "Read IO/s: ", data: readRate, lines: {fill: true, lineWidth: 1.2}, color: "#00FF00"}, {label: "Write IO/s: ", data: writeRate, color: "#0044FF", bars: {show: true}, yaxis: 2} ]; $.plot($("#diskUsage"), datasetDisk, optionsDisk); setTimeout(GetDataDisk, updateIntervalDisk); }); });PK ¦�Z\b�a� � cloudLinux.htmlnu �[��� {% extends "baseTemplate/index.html" %} {% load i18n %} {% block title %}{% trans "CloudLinux - CyberPanel" %}{% endblock %} {% block content %} {% load static %} {% get_current_language as LANGUAGE_CODE %} <!-- Current language: {{ LANGUAGE_CODE }} --> <div class="container"> <div id="page-title"> <h2>{% trans "CloudLinux" %}</h2> <p>{% trans "Access LVEManager" %}</p> </div> <div class="panel"> <div class="panel-body"> <h3 class="title-hero"> {% trans "CloudLinux" %} </h3> <div class="example-box-wrapper"> <p>{% trans "CloudLinux is now integrated via their new API. You can manage CageFS and Package limits directly from LVEManager by clicking below. You can use your server root credentials to access LVEManager." %}</p> <br> <a target="_blank" href="http://{{ ipAddress }}:9000"> <button class="btn btn-primary">Access Now </button> </a> </div> </div> </div> </div> {% endblock %} PK ¦�Z��� listWebsites.htmlnu �[��� {% extends "baseTemplate/index.html" %} {% load i18n %} {% block title %}{% trans "CageFS - CyberPanel" %}{% endblock %} {% block content %} {% load static %} {% get_current_language as LANGUAGE_CODE %} <!-- Current language: {{ LANGUAGE_CODE }} --> <div ng-controller="listWebsitesCage" class="container"> <div id="page-title"> <h2 id="domainNamePage">{% trans "List Websites" %}</h2> <p>{% trans "Enable/Disable and view CageFS status for websites." %}</p> </div> <div class="panel"> <div class="panel-body"> <div style="padding-bottom: 0px; padding-top: 15px;" class="form-group"> <label class="col-sm-3 control-label"></label> <div class="col-sm-6"> <div class="example-box-wrapper"> <div class="content-box remove-border clearfix text-center"> <a class="btn btn-primary" href="#" title=""> <span>{% trans "Default: " %} <b>{$ default $}</b></span> </a> <a href="#" ng-click="enableOrDisable(0, 0, 0, 1)" class="btn btn-border btn-alt border-green btn-link font-green" title=""><span>Toggle Default</span></a> <a href="#" ng-click="enableOrDisable(0, 1, 1, 0)" class="btn btn-success" title="Enable All"> <i class="fa fa-play btn-icon"></i> </a> <a href="#" ng-click="enableOrDisable(0, 1, 0, 0)" class="btn btn-warning" title="Disable All"> <i class="fa fa-pause btn-icon"></i> </a> <a href="#" ng-click="refreshStatus()" class="btn btn-info" title="Refresh Status"> <i class="fa fa-refresh btn-icon"></i> </a> </div> </div> </div> </div> <div class="example-box-wrapper"> <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="datatable-example"> <thead> <tr> <th>Domain <img ng-hide="cyberPanelLoading" src="/static/images/loading.gif"></th> <th>User</th> <th>Actions</th> </tr> </thead> <tbody> <tr ng-repeat="web in WebSitesList track by $index"> <td ng-bind="web.domain"></td> <td ng-bind="web.externalApp"></td> <td> <a ng-click="enableOrDisable(web.domain, 0, 0, 0)" ng-hide="web.status==0" class="btn btn-border btn-alt border-red btn-link font-red" title=""><span>Disable</span></a> <a ng-click="enableOrDisable(web.domain, 0, 1, 0)" ng-hide="web.status==1" class="btn btn-border btn-alt border-green btn-link font-green" title=""><span>Enable</span></a> </td> </tr> </tbody> </table> <div id="listFail" class="alert alert-danger"> <p>{% trans "Cannot list websites. Error message:" %} {$ errorMessage $}</p> </div> <div class="row"> <div class="col-sm-4 col-sm-offset-8"> <nav aria-label="Page navigation"> <ul class="pagination"> <li ng-repeat="page in pagination" ng-click="getFurtherWebsitesFromDB($index+1)" id="webPages"><a href="">{$ $index + 1 $}</a></li> </ul> </nav> </div> </div> </div> </div> </div> </div> {% endblock %}PK ¦�Z��R_�9 �9 listPackages.htmlnu �[��� {% extends "baseTemplate/index.html" %} {% load i18n %} {% block title %}{% trans "Manage CloudLinux Packages - CyberPanel" %}{% endblock %} {% block content %} {% load static %} {% get_current_language as LANGUAGE_CODE %} <!-- Current language: {{ LANGUAGE_CODE }} --> <div ng-controller="listCloudLinuxPackages" class="container"> <div id="page-title"> <h2 id="domainNamePage">{% trans "Manage CloudLinux Packages" %}</h2> <p>{% trans "Manage/Delete CloudLinux Packages." %}</p> </div> <div class="panel"> <div class="panel-body"> <div class="example-box-wrapper"> <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="datatable-example"> <thead> <tr> <th>Name<img ng-hide="cyberPanelLoading" src="/static/images/loading.gif"></th> <th>SPEED</th> <th>VMEM</th> <th>PMEM</th> <th>IO</th> <th>IOPS</th> <th>EP</th> <th>NPROC</th> <th>INODES soft</th> <th>INODES hard</th> <th>Actions</th> </tr> </thead> <tbody> <tr ng-repeat="pack in packages track by $index"> <td ng-bind="pack.name"></td> <td ng-bind="pack.SPEED"></td> <td ng-bind="pack.VMEM"></td> <td ng-bind="pack.PMEM"></td> <td ng-bind="pack.IO"></td> <td ng-bind="pack.IOPS"></td> <td ng-bind="pack.EP"></td> <td ng-bind="pack.NPROC"></td> <td ng-bind="pack.inodessoft"></td> <td ng-bind="pack.inodeshard"></td> <td> <a ng-click='deleteCLPackage(pack.name)' class="btn btn-border btn-alt border-red btn-link font-red" title=""><span>Delete</span></a> <a ng-click="populatePackage(pack.name, pack.SPEED, pack.VMEM, pack.PMEM, pack.IO, pack.IOPS, pack.EP, pack.NPROC, pack.inodessoft, pack.inodeshard)" data-toggle="modal" data-target="#settings" ng-click='deleteCLPackage()' class="btn btn-border btn-alt border-green btn-link font-green" title=""><span>Edit</span></a> <div id="settings" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">× </button> <h4 class="modal-title">Edit Package <img id="containerSettingLoading" src="/static/images/loading.gif" style="display: none;"> </h4> </div> <div class="modal-body"> <form name="containerSettingsForm" action="/" class="form-horizontal"> <div ng-hide="installationDetailsForm" class="form-group"> <label class="col-sm-3 control-label">{% trans "Name" %}</label> <div class="col-sm-6"> <input name="name" type="text" class="form-control" ng-model="name" readonly> </div> </div> <hr> <div ng-hide="installationDetailsForm" class="form-group"> <div ng-hide="installationDetailsForm" class="form-group"> <label class="col-sm-3 control-label">{% trans "SPEED" %}</label> <div class="col-sm-6"> <input name="SPEED" type="text" class="form-control" ng-model="$parent.SPEED" required> </div> </div> </div> <hr> <div ng-hide="installationDetailsForm" class="form-group"> <div ng-hide="installationDetailsForm" class="form-group"> <label class="col-sm-3 control-label">{% trans "VMEM" %}</label> <div class="col-sm-6"> <input name="VMEM" type="text" class="form-control" ng-model="$parent.VMEM" required> </div> </div> </div> <hr> <div ng-hide="installationDetailsForm" class="form-group"> <div ng-hide="installationDetailsForm" class="form-group"> <label class="col-sm-3 control-label">{% trans "PMEM" %}</label> <div class="col-sm-6"> <input name="PMEM" type="text" class="form-control" ng-model="$parent.PMEM" required> </div> </div> </div> <hr> <div ng-hide="installationDetailsForm" class="form-group"> <div ng-hide="installationDetailsForm" class="form-group"> <label class="col-sm-3 control-label">{% trans "IO" %}</label> <div class="col-sm-6"> <input name="IO" type="text" class="form-control" ng-model="$parent.IO" required> </div> </div> </div> <hr> <div ng-hide="installationDetailsForm" class="form-group"> <div ng-hide="installationDetailsForm" class="form-group"> <label class="col-sm-3 control-label">{% trans "IOPS" %}</label> <div class="col-sm-6"> <input name="IOPS" type="text" class="form-control" ng-model="$parent.IOPS" required> </div> </div> </div> <hr> <div ng-hide="installationDetailsForm" class="form-group"> <div ng-hide="installationDetailsForm" class="form-group"> <label class="col-sm-3 control-label">{% trans "EP" %}</label> <div class="col-sm-6"> <input name="EP" type="text" class="form-control" ng-model="$parent.EP" required> </div> </div> </div> <hr> <div ng-hide="installationDetailsForm" class="form-group"> <div ng-hide="installationDetailsForm" class="form-group"> <label class="col-sm-3 control-label">{% trans "NPROC" %}</label> <div class="col-sm-6"> <input name="NPROC" type="text" class="form-control" ng-model="$parent.NPROC" required> </div> </div> </div> <hr> <div ng-hide="installationDetailsForm" class="form-group"> <div ng-hide="installationDetailsForm" class="form-group"> <label class="col-sm-3 control-label">{% trans "INODES soft" %}</label> <div class="col-sm-6"> <input name="inodessoft" type="text" class="form-control" ng-model="$parent.inodessoft" required> </div> </div> </div> <hr> <div ng-hide="installationDetailsForm" class="form-group"> <div ng-hide="installationDetailsForm" class="form-group"> <label class="col-sm-3 control-label">{% trans "INODES hard" %}</label> <div class="col-sm-6"> <input name="inodeshard" type="text" class="form-control" ng-model="$parent.inodeshard" required> </div> </div> </div> </form> </div> <div class="modal-footer"> <button type="button" ng-disabled="savingSettings" class="btn btn-primary" ng-click="saveSettings()" data-dismiss="modal">Save </button> <button type="button" ng-disabled="savingSettings" class="btn btn-default" data-dismiss="modal"> Close </button> </div> </div> </div> </div> </td> </tr> </tbody> </table> <div id="listFail" class="alert alert-danger"> <p>{% trans "Cannot list websites. Error message:" %} {$ errorMessage $}</p> </div> <div class="row"> <div class="col-sm-4 col-sm-offset-8"> <nav aria-label="Page navigation"> <ul class="pagination"> <li ng-repeat="page in pagination" ng-click="getFurtherWebsitesFromDB($index+1)" id="webPages"><a href="">{$ $index + 1 $}</a></li> </ul> </nav> </div> </div> </div> </div> </div> </div> {% endblock %}PK ¦�Z_�%�f f notAvailable.htmlnu �[��� {% extends "baseTemplate/index.html" %} {% load i18n %} {% block title %}{% trans "Not available - CyberPanel" %}{% endblock %} {% block content %} {% load static %} {% get_current_language as LANGUAGE_CODE %} <!-- Current language: {{ LANGUAGE_CODE }} --> <div class="container"> <div id="page-title"> <h2>{% trans "Not available" %}</h2> <p>{% trans "Either CageFS is not installed or you are not on CloudLinux OS." %}</p> </div> {% if not CL %} <div class="row"> <div class="col-sm-12"> <div class="alert alert-danger"> <p>{% trans "CloudLinux is not installed on your server." %} <a target="_blank" href="https://community.cyberpanel.net/t/1-convert-cyberpanel-to-cloudlinux-os-and-install-cagefs/174">Click Here</a> {% trans " for conversion details." %}</p> </div> </div> </div> {% else %} <div ng-controller="installCageFS" class="panel"> <div class="panel-body"> <h3 class="title-hero"> {% trans "Activate Now" %} <img ng-hide="installDockerStatus" src="{% static 'images/loading.gif' %}"> </h3> <div class="example-box-wrapper"> <p>{% trans "CloudLinux is installed, but not activated." %}</p> <!------ LSWS Switch box -----------------> <div style="margin-top: 2%" ng-hide="installBoxGen" class="col-md-12"> <form action="/" id="" class="form-horizontal bordered-row"> <div class="form-group"> <div style="margin-top: 2%;" class="col-sm-12"> <textarea ng-model="requestData" rows="15" class="form-control">{{ requestData }}</textarea> </div> </div> </form> </div> <!----- LSWS Switch box -----------------> <br> <button ng-hide="dockerInstallBTN" class="btn btn-primary" ng-click="submitCageFSInstall()">Activate Now</button> </div> </div> </div> {% endif %} </div> {% endblock %} PK ¦�Z�Q�U U monitorUsage.htmlnu �[��� {% extends "baseTemplate/index.html" %} {% load i18n %} {% block title %}{% trans "Monitor Usage - CyberPanel" %}{% endblock %} {% block content %} {% load static %} {% get_current_language as LANGUAGE_CODE %} <!-- Current language: {{ LANGUAGE_CODE }} --> <div class="container"> <div id="page-title"> <h2 id="domainNamePage">{% trans "List Websites" %}</h2> <p>{% trans "Monitor usage of your websites." %}</p> </div> <div class="panel"> <div class="panel-body"> <h3 class="title-hero"> {% trans "Websites" %} </h3> <div ng-controller="listWebsites" class="example-box-wrapper"> <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="datatable-example"> <thead> <tr> <th>Domain</th> <th>Launch</th> <th>IP Address</th> <th>Package</th> <th>Owner</th> <th>State</th> <th>Email</th> </tr> </thead> <tbody> <tr ng-repeat="web in WebSitesList track by $index"> <td ng-bind="web.domain"></td> <td><a href="/CloudLinux/manage/{$ web.domain $}"><img width="30px" height="30" class="center-block" src="{% static 'baseTemplate/assets/image-resources/webPanel.png' %}"></a> </td> <td ng-bind="web.ipAddress"></td> <td ng-bind="web.package"></td> <td ng-bind="web.admin"></td> <td ng-bind="web.state"></td> <td ng-bind="web.adminEmail"></td> </tr> </tbody> </table> <div id="listFail" class="alert alert-danger"> <p>{% trans "Cannot list websites. Error message:" %} {$ errorMessage $}</p> </div> <div class="row"> <div class="col-sm-4 col-sm-offset-8"> <nav aria-label="Page navigation"> <ul class="pagination"> <li ng-repeat="page in pagination" ng-click="getFurtherWebsitesFromDB($index+1)" id="webPages"><a href="">{$ $index + 1 $}</a></li> </ul> </nav> </div> </div> </div> </div> </div> </div> {% endblock %}PK ¦�Z��o o createPackage.htmlnu �[��� {% extends "baseTemplate/index.html" %} {% load i18n %} {% block title %}{% trans "Create Cloud Linux Package - CyberPanel" %}{% endblock %} {% block content %} {% load static %} <div class="container"> <div id="page-title"> <h2>{% trans "Create CloudLinux Package." %}</h2> <p>{% trans "Each CloudLinux package have one associated (owner) CyberPanel package. During website creation associated CloudLinux package will be assigned to website user." %}</p> </div> <div ng-controller="createCLPackage" class="panel"> <div class="panel-body"> <h3 class="content-box-header"> {% trans "Create Package" %} <img ng-hide="cyberPanelLoading" src="{% static 'images/loading.gif' %}"> </h3> <div class="example-box-wrapper"> <form action="/" class="form-horizontal bordered-row panel-body"> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "Select Package" %} </label> <div class="col-sm-6"> <select ng-change="toggleView()" ng-model="selectedPackage" class="form-control"> {% for items in packList %} <option>{{ items }}</option> {% endfor %} </select> </div> </div> <!------ Modification form that appears after a click ---------------> <div ng-hide="modifyPackageForm"> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "Package Name" %}</label> <div class="col-sm-6"> <input type="text" class="form-control" ng-model="name" required> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "SPEED" %}</label> <div class="col-sm-6"> <input type="text" class="form-control" ng-model="SPEED" required> </div> <div class="current-pack ng-binding">Ex 100%</div> </div> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "VMEM" %}</label> <div class="col-sm-6"> <input type="text" class="form-control" ng-model="VMEM" required> </div> <div class="current-pack ng-binding">Ex 256m or 1G</div> </div> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "PMEM" %}</label> <div class="col-sm-6"> <input type="text" class="form-control" ng-model="PMEM" required> </div> <div class="current-pack ng-binding">Ex 256m or 1G</div> </div> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "IO" %}</label> <div class="col-sm-6"> <input type="text" class="form-control" ng-model="IO" required> </div> <div class="current-pack ng-binding">Ex 1024</div> </div> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "IOPS" %}</label> <div class="col-sm-6"> <input type="text" class="form-control" ng-model="IOPS" required> </div> <div class="current-pack ng-binding">Ex 1024</div> </div> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "EP" %}</label> <div class="col-sm-6"> <input type="text" class="form-control" ng-model="EP" required> </div> <div class="current-pack ng-binding">Ex 10</div> </div> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "NPROC" %}</label> <div class="col-sm-6"> <input type="text" class="form-control" ng-model="NPROC" required> </div> <div class="current-pack ng-binding">Ex 10</div> </div> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "INODES soft" %}</label> <div class="col-sm-6"> <input type="text" class="form-control" ng-model="INODESsoft" required> </div> <div class="current-pack ng-binding">Ex 1024</div> </div> <div class="form-group"> <label class="col-sm-3 control-label">{% trans "INODES hard" %}</label> <div class="col-sm-6"> <input type="text" class="form-control" ng-model="INODEShard" required> </div> <div class="current-pack ng-binding">Ex 1024</div> </div> </div> <!------ Modification form that appears after a click ---------------> <div ng-hide="modifyPackageForm" class="form-group"> <label class="col-sm-3 control-label"></label> <div class="col-sm-4"> <button type="button" ng-click="createPackage()" class="btn btn-primary btn-lg ">{% trans "Create Package" %}</button> </div> </div> </form> </div> </div> </div> </div> {% endblock %} PK ¦�Z��vh h websiteContainerLimit.htmlnu �[��� {% extends "baseTemplate/index.html" %} {% load i18n %} {% block title %}{{ domain }}{% trans " usage - CyberPanel" %}{% endblock %} {% block content %} {% load static %} {% get_current_language as LANGUAGE_CODE %} <!-- Current language: {{ LANGUAGE_CODE }} --> <div ng-controller="websiteContainerLimitCL" class="container"> <div id="page-title"> <h2 id="domainNamePage">{% trans "Usage" %}</h2> <p>{% trans "View CPU, Memory and Disk usage for " %} <span id="domain">{{ domain }}</span></p> </div> <div class="panel"> <div class="panel-body"> <h2 class="title-hero"> {% trans "CPU Usage of" %} {{ domain }} </h2> <div class="example-box-wrapper"> <div id="flot-placeholder1" style="width:auto;height:300px"></div> </div> </div> <div class="panel-body"> <h2 class="title-hero"> {% trans "Memory Usage of" %} {{ domain }} </h2> <div class="example-box-wrapper"> <div id="memoryUsage" style="width:auto;height:300px"></div> </div> </div> <div class="panel-body"> <h2 class="title-hero"> {% trans "Disk Usage of" %} {{ domain }} </h2> <div class="example-box-wrapper"> <div id="diskUsage" style="width:auto;height:300px"></div> </div> </div> </div> </div> {% endblock %}PK b\�Z�2af f CLManager.jsnu �[��� PK ¦�Z\b�a� � Tf cloudLinux.htmlnu �[��� PK ¦�Z��� Ok listWebsites.htmlnu �[��� PK ¦�Z��R_�9 �9 �} listPackages.htmlnu �[��� PK ¦�Z_�%�f f �� notAvailable.htmlnu �[��� PK ¦�Z�Q�U U f� monitorUsage.htmlnu �[��� PK ¦�Z��o o �� createPackage.htmlnu �[��� PK ¦�Z��vh h �� websiteContainerLimit.htmlnu �[��� PK � _�
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings