mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-08-05 03:10:22 +02:00
Events for Firewall and Bug fixes
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<div class="panel">
|
||||
<div class="panel-body">
|
||||
<h3 class="title-hero">
|
||||
{% trans "Websites" %}
|
||||
{% trans "Plugins" %}
|
||||
</h3>
|
||||
<div ng-controller="listWebsites" class="example-box-wrapper">
|
||||
|
||||
@@ -80,4 +80,4 @@
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -13,17 +13,18 @@ def installed(request):
|
||||
pluginPath = '/home/cyberpanel/plugins'
|
||||
pluginList = []
|
||||
|
||||
for plugin in os.listdir(pluginPath):
|
||||
data = {}
|
||||
completePath = '/usr/local/CyberCP/' + plugin + '/meta.xml'
|
||||
pluginMetaData = ElementTree.parse(completePath)
|
||||
if os.path.exists(pluginPath):
|
||||
for plugin in os.listdir(pluginPath):
|
||||
data = {}
|
||||
completePath = '/usr/local/CyberCP/' + plugin + '/meta.xml'
|
||||
pluginMetaData = ElementTree.parse(completePath)
|
||||
|
||||
data['name'] = pluginMetaData.find('name').text
|
||||
data['type'] = pluginMetaData.find('type').text
|
||||
data['desc'] = pluginMetaData.find('description').text
|
||||
data['version'] = pluginMetaData.find('version').text
|
||||
data['name'] = pluginMetaData.find('name').text
|
||||
data['type'] = pluginMetaData.find('type').text
|
||||
data['desc'] = pluginMetaData.find('description').text
|
||||
data['version'] = pluginMetaData.find('version').text
|
||||
|
||||
pluginList.append(data)
|
||||
pluginList.append(data)
|
||||
|
||||
|
||||
return render(request, 'pluginHolder/plugins.html',{'plugins': pluginList})
|
||||
|
||||
Reference in New Issue
Block a user