Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
style(Auth): Not output extend debug info for anonymous. (In route `/…
Browse files Browse the repository at this point in the history
…auth`)
  • Loading branch information
Rhilip committed Jun 4, 2019
1 parent bacee6d commit 152331b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions apps/views/auth/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/

$css_tag = env('APP_DEBUG') ? time() : app()->config->get('base.site_css_update_date');
$extend_debug_info = app()->config->get('base.enable_extend_debug') &&
app()->user->getClass(true) > app()->config->get('authority.see_extend_debug_log');
?>

<!DOCTYPE html>
Expand Down Expand Up @@ -85,14 +83,6 @@
with <b><?= $this->e(memory_get_usage(),'format_bytes') ?></b> ram used,
<b><?= count(app()->pdo->getExecuteData()) ?></b> db queries,
<b><?= array_sum(app()->redis->getCalledData())?></b> calls of Redis ]
<?php if ($extend_debug_info): ?>
<a href="javascript:" id="extend_debug_info"><span class="label label-warning label-outline">Debug info</span></a>
<script>
const _extend_debug_info = true;
const _sql_data = '<?= json_encode(app()->pdo->getExecuteData(), JSON_HEX_APOS) ?>';
const _redis_data = '<?= json_encode(app()->redis->getCalledData(), JSON_HEX_APOS) ?>';
</script>
<?php endif; ?>
</p>
</div>
</div>
Expand Down

0 comments on commit 152331b

Please sign in to comment.