-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathmodule.zpm
More file actions
87 lines (87 loc) · 2.51 KB
/
module.zpm
File metadata and controls
87 lines (87 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!--
/*
// Sentastico Open Source Script Installer for Sentora CP
// File : module.zpm
// Version : 2.1.0 2024-01-19
// Updated By : TGates for Sentora
// Additional Work : Durandle, Mudasir Mirza
// Credit to : Bobby Allen (Zantastico for ZPanel v1)
// Contact : http://forums.sentora.org/
*/
-->
<@ Init @>
<div class="zmodule_content panel" id="zmodule_header_<@ ModuleName @>">
<div class="panel-heading">
<img src="<@ ModuleIcon @>" width="35" height="35" border="0" alt="<@ ModuleName @>">
<div class="zmodule_title">
<@ ModuleName @>
</div>
<div class="zmodule_desc" id="zmodule_desc_<@ ModuleName @>"><@ ModuleDesc @>
</div>
</div>
<% if InstallerForm %>
<div class="zform_wrapper">
<@ RunInstallerForm @>
</div>
<% else %>
<% if IsAdmin %>
<!-- Menu Start -->
<div class="tab-menu">
<!-- Nav tabs -->
<ul class="nav nav-tabs">
<li class="active">
<a onclick="javascript:location.href='?module=sentastico'" href="#sentastico" aria-controls="sentastico" role="tab" data-toggle="tab"><: Sentastico :></a>
</li>
<li>
<a onclick="javascript:location.href='?module=sentastico'" href="#sen_admin" aria-controls="sen_admin" role="tab" data-toggle="tab"><: Admin :></a>
</li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<!-- Admin -->
<div role="tabpanel" class="tab-pane" id="sen_admin">
<@ SentasticoAdmin @>
</div>
<!-- Package Selection -->
<div role="tabpanel" class="tab-pane active" id="sentastico">
<h3><: Choose a package to install :>:</h3>
<@ PackageSelection @>
</div>
</div>
</div>
<% else %>
<div class="zform_wrapper">
<h3><: Choose a package to install :>:</h3>
<@ PackageSelection @>
</div>
<% endif %>
<% endif %>
</div>
<div>
<@ Copyright @><@ Donation @>
</div>
<script>
function copyPaste()
{
var copyText = document.getElementById("dbInfo");
copyText.select();
copyText.setSelectionRange(0, 99999); // For mobile devices
navigator.clipboard.writeText(copyText.value);
alert("Copied the text: " + copyText.value);
}
</script>
<script>
$(function()
{
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e)
{
// save the latest tab;
localStorage.setItem('lastTab', $(this).attr('href'));
});
var lastTab = localStorage.getItem('lastTab');
if (lastTab)
{
$('[href="' + lastTab + '"]').tab('show');
}
});
</script>