diff --git a/account.php b/account.php index 2b55af1..c798579 100644 --- a/account.php +++ b/account.php @@ -157,6 +157,7 @@ is_admin($conn, $_SESSION['id'])) { + $sql_start = microtime(true); ?>

Admin

@@ -396,8 +397,10 @@ ", $result); echo "

".$result."

"; } elseif (str_contains($result, "Warning")) { + $result = str_replace("Warning:", "", $result); echo "

".$result."

"; } } @@ -405,6 +408,7 @@ ?>
@@ -482,7 +486,9 @@ } ?> - + \ No newline at end of file diff --git a/app/required.php b/app/required.php index 4d52474..04084dd 100644 --- a/app/required.php +++ b/app/required.php @@ -1,4 +1,6 @@ 0) { + $sql_time = "(SQL ".$sql_time."ms)"; + } else { + $sql_time = "(SQL <0ms)"; + } + } else { + $sql_time = ""; + } + + if (isset($exec_start)) { + $exec_end = microtime(true); + + $exec_time = ($exec_end - $exec_start); + $exec_time = round($exec_time, 6) * 1000; + } else { + $exec_time = 0; + } +?> + diff --git a/css/main.css b/css/main.css index 7450de3..fadc9a4 100644 --- a/css/main.css +++ b/css/main.css @@ -270,7 +270,7 @@ nav .btn { z-index: 9; } .gallery-item:active { - transform: scale(0.8) !important; + transform: scale(0.9) !important; } .gallery-item:after { content: ""; @@ -1015,7 +1015,7 @@ html { body { margin: 0 auto; padding: 1rem; - max-width: 1000px; + max-width: 1200px; min-height: calc(100vh - 2rem); display: flex; flex-direction: column; @@ -1084,25 +1084,21 @@ a.btn { .btn-bad { background-color: #B66467; background-image: linear-gradient(to top, #ae5356, #B66467); - /*color: darken($warning, 40%);*/ } .btn-warning { background-color: #D8A657; background-image: linear-gradient(to top, #d39b42, #D8A657); - /*color: darken($warning, 40%);*/ } .btn-good { background-color: #8C977D; background-image: linear-gradient(to top, #7f8b6f, #8C977D); - /*color: darken($warning, 40%);*/ } .btn-neutral { background-color: #121212; background-image: linear-gradient(to top, #111111, #121212); - /*color: $white;*/ } /* diff --git a/css/main.scss b/css/main.scss index c6d1377..c55ee32 100644 --- a/css/main.scss +++ b/css/main.scss @@ -45,7 +45,7 @@ body { margin: 0 auto; padding: 1rem; - max-width: 1000px; + max-width: 1200px; min-height: calc(100vh - 2rem); @@ -129,22 +129,21 @@ a.btn { .btn-bad { background-color: $warning; background-image: linear-gradient(to top, darken($warning, 5%), $warning); - /*color: darken($warning, 40%);*/ } .btn-warning { background-color: $alert; background-image: linear-gradient(to top, darken($alert, 5%), $alert); - /*color: darken($warning, 40%);*/ + } .btn-good { background-color: $page-accent; background-image: linear-gradient(to top, darken($page-accent, 5%), $page-accent); - /*color: darken($warning, 40%);*/ + } .btn-neutral { background-color: $neutral; background-image: linear-gradient(to top, darken($neutral, 0.5%), $neutral); - /*color: $white;*/ + } /* diff --git a/css/scss/_body.scss b/css/scss/_body.scss index 7f1c5f6..0c14179 100644 --- a/css/scss/_body.scss +++ b/css/scss/_body.scss @@ -94,7 +94,7 @@ } &:active { - transform: scale(0.8) !important; + transform: scale(0.9) !important; } &:after { diff --git a/index.php b/index.php index 22fe222..b810470 100644 --- a/index.php +++ b/index.php @@ -67,7 +67,9 @@ diff --git a/profile.php b/profile.php index f6eed56..5558c3c 100644 --- a/profile.php +++ b/profile.php @@ -68,7 +68,9 @@ "; + } else { + echo "
+

Nothing here!

+

Come back later when the user uploads something!

+
"; } } ?>