Skip to content

Commit

Permalink
PHPMYADMIN Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zarakkhan209 committed Jan 15, 2024
1 parent 039e959 commit 367693e
Show file tree
Hide file tree
Showing 9 changed files with 568 additions and 64 deletions.
5 changes: 3 additions & 2 deletions baseTemplate/templates/baseTemplate/newBase.html
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@
Delete Database</a>
</li>
<li>
<a href="{% url 'phpMyAdminV2' %}"
<a href="{% url 'phpMyAdminV2 ' %}"
class="flex items-center w-full text-base font-normal text-white transition duration-75 rounded-lg group hover:bg-cyan-400 dark:text-white dark:hover:bg-gray-700 pl-11">
PHPMYAdmin</a>
</li>
Expand Down Expand Up @@ -588,7 +588,7 @@
</div>
<ul id="dropdown-example-6" class="hidden py-2 space-y-2">
<li>
<a href="#"
<a href="{% url 'createNameserverV2' %}"
class="flex items-center w-full text-base font-normal text-white transition duration-75 rounded-lg group hover:bg-cyan-400 dark:text-white dark:hover:bg-gray-700 pl-11">
Create NameServer</a>
</li>
Expand Down Expand Up @@ -1674,6 +1674,7 @@
<script src="{% static 'userManagment/userManagementV2.js' %}"></script>
<script src="{% static 'packages/packagesV2.js' %}"></script>
<script src="{% static 'databases/databasesV2.js' %}"></script>
<script src="{% static 'dns/dnsV2.js' %}"></script>
</body>

</html>
1 change: 1 addition & 0 deletions databases/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def phpMyAdmin(request):
return dm.phpMyAdmin(request, userID)
except KeyError:
return redirect(loadLoginPage)

def phpMyAdminV2(request):
try:
userID = request.session['userID']
Expand Down
Loading

0 comments on commit 367693e

Please sign in to comment.