This commit is contained in:
Joey Kimsey
2024-12-20 05:56:18 -05:00
parent 5fe1c3aafe
commit 1c5b020a87
23 changed files with 45 additions and 30 deletions

View File

@ -21,10 +21,16 @@
.bg-default {
background-color: #2c2c2c;
}
.bg-none,.bg-warning {
color: #000 !important;
}
.context-other {
color: #000;
}
.accordion-button:not(.collapsed) {
color: #f5f5f5;
background-color: var(--bs-accordion-dark-active-bg);
}
body {
background-image: linear-gradient(180deg, #2c2c2c, #1e1e1e 100px, #1e1e1e);
color: #f5f5f5;

View File

@ -681,6 +681,10 @@ class User extends DatabaseModel {
Debug::error( "User: $id not updated." );
return false;
}
if ( $id === App::$activeUser->ID ) {
$userData = $this->get( $id );
App::$activeUser = $userData;
}
return true;
}

View File

@ -14,7 +14,7 @@
<th style="width: 5%"></th>
<th style="width: 5%"></th>
<th style="width: 10%">
<INPUT type="checkbox" onchange="checkAll(this)" name="check.b" value="B_[]">
<input type="checkbox" onchange="checkAll(this)" name="check.b" value="B_[]">
</th>
</tr>
</thead>

View File

@ -12,7 +12,7 @@
<th style="width: 5%"></th>
<th style="width: 5%"></th>
<th style="width: 5%">
<INPUT type="checkbox" onchange="checkAll(this)" name="check.br" value="BR_[]">
<input type="checkbox" onchange="checkAll(this)" name="check.br" value="BR_[]">
</th>
</tr>
</thead>

View File

@ -57,7 +57,7 @@
<div class="card-footer text-center">
{ADMIN}
<form action="{ROOT_URL}admin/bugreport/delete" method="post">
<INPUT type="hidden" name="BR_" value="{ID}">
<input type="hidden" name="BR_" value="{ID}">
<input type="hidden" name="token" value="{TOKEN}">
<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></button>
</form>

View File

@ -13,7 +13,7 @@
<th style="width: 5%"></th>
<th style="width: 5%"></th>
<th style="width: 5%">
<INPUT type="checkbox" onchange="checkAll(this)" name="check.c" value="C_[]">
<input type="checkbox" onchange="checkAll(this)" name="check.c" value="C_[]">
</th>
</tr>
</thead>

View File

@ -12,7 +12,7 @@
<th style="width: 5%"></th>
<th style="width: 5%"></th>
<th style="width: 5%">
<INPUT type="checkbox" onchange="checkAll(this)" name="check.f" value="F_[]">
<input type="checkbox" onchange="checkAll(this)" name="check.f" value="F_[]">
</th>
</tr>
</thead>

View File

@ -49,7 +49,7 @@
<div class="card-footer text-center">
{ADMIN}
<form action="{ROOT_URL}admin/contact/delete" method="post">
<INPUT type="hidden" name="F_" value="{ID}">
<input type="hidden" name="F_" value="{ID}">
<input type="hidden" name="token" value="{TOKEN}">
<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></button>
</form>

View File

@ -10,7 +10,7 @@
<th style="width: 85%">email</th>
<th style="width: 5%"></th>
<th style="width: 5%">
<INPUT type="checkbox" onchange="checkAll(this)" name="check.s" value="S_[]">
<input type="checkbox" onchange="checkAll(this)" name="check.s" value="S_[]">
</th>
</tr>
</thead>

View File

@ -70,9 +70,9 @@
{FOOT}
</div>
<!-- Bootstrap core JavaScript and jquery -->
<script language="JavaScript" crossorigin="anonymous" type="text/javascript" src="{JQUERY_CDN}jquery.min.js"></script>
<script language="JavaScript" crossorigin="anonymous" type="text/javascript" src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script language="JavaScript" crossorigin="anonymous" type="text/javascript" src="{BOOTSTRAP_CDN}js/bootstrap.min.js"></script>
<script crossorigin="anonymous" src="{JQUERY_CDN}jquery.min.js"></script>
<script crossorigin="anonymous" src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
<script crossorigin="anonymous" src="{BOOTSTRAP_CDN}js/bootstrap.min.js"></script>
<!-- Custom javascript for this template -->
{TEMPLATE_JS_INCLUDES}
</body>

View File

@ -44,7 +44,7 @@
<div class="card-footer text-center">
{ADMIN}
<form action="{ROOT_URL}admin/admin/delete" method="post">
<INPUT type="hidden" name="L_" value="{ID}">
<input type="hidden" name="L_" value="{ID}">
<input type="hidden" name="token" value="{TOKEN}">
<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></button>
</form>

View File

@ -12,7 +12,7 @@
<th style="width: 5%"></th>
<th style="width: 5%"></th>
<th style="width: 5%"">
<INPUT type="checkbox" onchange="checkAll(this)" name="check.l" value="A_[]">
<input type="checkbox" onchange="checkAll(this)" name="check.l" value="A_[]">
</th>
</tr>
</thead>

View File

@ -54,7 +54,7 @@
<div class="card-footer text-center">
{ADMIN}
<form action="{ROOT_URL}admin/errors/delete" method="post">
<INPUT type="hidden" name="E_" value="{ID}">
<input type="hidden" name="E_" value="{ID}">
<input type="hidden" name="token" value="{TOKEN}">
<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></button>
</form>

View File

@ -12,7 +12,7 @@
<th style="width: 5%"></th>
<th style="width: 5%"></th>
<th style="width: 5%">
<INPUT type="checkbox" onchange="checkAll(this)" name="check.e" value="E_[]">
<input type="checkbox" onchange="checkAll(this)" name="check.e" value="E_[]">
</th>
</tr></thead><tbody>
{LOOP}

View File

@ -44,7 +44,7 @@
<div class="card-footer text-center">
{ADMIN}
<form action="{ROOT_URL}admin/logins/delete" method="post">
<INPUT type="hidden" name="L_" value="{ID}">
<input type="hidden" name="L_" value="{ID}">
<input type="hidden" name="token" value="{TOKEN}">
<button name="submit" value="submit" type="submit" class="btn btn-sm btn-danger"><i class="fa fa-fw fa-trash"></i></button>
</form>

View File

@ -12,7 +12,7 @@
<th style="width: 5%"></th>
<th style="width: 5%"></th>
<th style="width: 5%"">
<INPUT type="checkbox" onchange="checkAll(this)" name="check.l" value="L_[]">
<input type="checkbox" onchange="checkAll(this)" name="check.l" value="L_[]">
</th>
</tr>
</thead>

View File

@ -6,7 +6,7 @@
<p>Are you absolutely <b>SURE</b> you wish to <b>Enable</b> this plugin?</p>
<p>The Tempus Project cannot guarantee the safety or effectiveness of any plugins not offered directly from the organization's GitHub at <a href="https://github.com/TheTempusProject">The Tempus Project</a></p>
<form method="post">
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block">Enable</button>
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-success center-block">Enable</button>
<input type="hidden" name="installHash" value="{TOKEN}">
</form>
</div>

View File

@ -5,7 +5,7 @@
<div class="col-lg-6 offset-md-3 text-center">
<p>Are you sure you would like to uninstall this plugin and all of its components? There is no guarantee that your site will continue to run without error.</p>
<form method="post">
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block">Uninstall</button>
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-outline-danger center-block">Uninstall</button>
<input type="hidden" name="uninstallHash" value="{TOKEN}">
</form>
</div>

View File

@ -1,4 +1,4 @@
<ul class="nav nav-tabs justify-content-center" role="tablist">
<ul class="nav nav-tabs justify-content-center my-3" role="tablist">
{LOOP}
<li class="nav-item context-main-bg mx-1"><a href="{url}" class="nav-link context-main">{name}</a></li>
{/LOOP}

View File

@ -1,4 +1,6 @@
<div class="container py-4">
<div class="container py-4 context-main-bg my-4">
<h3 class="mb-4 text-center">Profile</h3>
<hr>
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card shadow">

View File

@ -1,8 +1,9 @@
<div class="container py-4">
<div class="container py-4 context-main-bg my-4 text-center">
<h3 class="mb-4">Email Settings</h3>
<hr>
<div class="row justify-content-center">
<div class="col-md-4">
<form action="" method="post">
<legend>Email Settings</legend>
<fieldset>
<div class="mb-3">
<label for="email" class="form-label">New Email:</label>

View File

@ -1,8 +1,9 @@
<div class="container py-4">
<div class="container py-4 context-main-bg my-4 text-center">
<h3 class="mb-4">Change Password</h3>
<hr>
<div class="row justify-content-center">
<div class="col-md-4">
<form action="" method="post">
<legend>Change Password</legend>
<fieldset>
<div class="mb-3">
<label for="curpass" class="form-label">Current Password:</label>

View File

@ -1,13 +1,14 @@
<div class="container py-4">
<div class="container py-4 context-main-bg my-4 text-center">
<h3 class="mb-4">Preferences</h3>
<hr>
<div class="row justify-content-center">
<div class="col-md-4">
<form action="" method="post" class="form-horizontal" enctype="multipart/form-data">
<legend>Preferences</legend>
<form action="" method="post" class="">
<fieldset>
{PREFERENCES_FORM}
{PREFERENCES_FORM}
</fieldset>
<input type="hidden" name="token" value="{TOKEN}">
<button name="submit" value="submit" type="submit" class="btn btn-primary">Update</button>
<button name="submit" value="submit" type="submit" class="btn btn-lg btn-primary center-block">Update</button><br>
</form>
</div>
</div>