This commit is contained in:
2026-05-15 20:23:25 +02:00
parent c980004309
commit bc5cae7e82
74 changed files with 563 additions and 130 deletions

View File

@@ -133,7 +133,7 @@ class Profiler {
?>
<table style='background-color: white; position:fixed; bottom:0; left:0; border: 1px solid #000000;' onclick="if(document.getElementById('profilerDialog').style.display=='none'){document.getElementById('profilerDialog').style.display='block';}else{document.getElementById('profilerDialog').style.display='none';}">
<tr><td>
<?
<?php
foreach(self::getLog('page') as $item) {
echo $item['message'].':'.$item['value'].', ';
}
@@ -141,13 +141,13 @@ class Profiler {
</td></tr>
</table>
<div id="profilerDialog" style="display: none; background-color: white; position:fixed; bottom:0; left:0; width: 300px; height: 60px; border: 1px solid #000000;">
lista sql: <input type="checkbox" <?if(isset($_COOKIE['sql'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profileSql=true'}else{document.location.href='?profileSql=false';}" />
lista sql: <input type="checkbox" <?php if(isset($_COOKIE['sql'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profileSql=true'}else{document.location.href='?profileSql=false';}" />
<br />
phpinfo: <input type="checkbox" <?if(isset($_COOKIE['php'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profilePhp=true'}else{document.location.href='?profilePhp=false';}" />
phpinfo: <input type="checkbox" <?php if(isset($_COOKIE['php'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profilePhp=true'}else{document.location.href='?profilePhp=false';}" />
<br />
errorreporting-all: <input type="checkbox" <?if(isset($_COOKIE['error'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profileError=true'}else{document.location.href='?profileError=false';}" />
errorreporting-all: <input type="checkbox" <?php if(isset($_COOKIE['error'])) {echo"checked='checked'";}?> onclick="if(this.checked){document.location.href='?profileError=true'}else{document.location.href='?profileError=false';}" />
</div>
<?
<?php
}
private static function sqlDisplay() {
@@ -159,7 +159,7 @@ class Profiler {
foreach($queries as $query) {
?>
<tr><td><?= $query['message']; ?></td><td><?= $query['value']; ?></td></tr>
<?
<?php
$totalTime = ($totalTime+$query['value']);
}
@@ -185,7 +185,7 @@ echo"<tr><td><br /></td><td><br /></td></tr>";
if(self::$profiling) {
$return = true;
}
if(in_array($_SERVER['REMOTE_ADDR'], self::$clientIp) && self::$profiling) {
if(isset($_SERVER['REMOTE_ADDR']) && in_array($_SERVER['REMOTE_ADDR'], self::$clientIp) && self::$profiling) {
$return = true;
} else {
$return = false;
@@ -196,4 +196,4 @@ echo"<tr><td><br /></td><td><br /></td></tr>";
}
?>
?>