mirror of
https://github.com/house-of-vanity/hexound.ru.git
synced 2025-07-07 06:44:07 +00:00
Initial
This commit is contained in:
23
new/logging.php
Executable file
23
new/logging.php
Executable file
@ -0,0 +1,23 @@
|
||||
<div class="log" <?php
|
||||
if($LOG_LEVEL == 0){
|
||||
echo "style='display:none'";
|
||||
}else{
|
||||
echo "style='position:absolute;right: 100px;'";
|
||||
}?>>
|
||||
<b>Log console</b>
|
||||
</div>
|
||||
<?php
|
||||
function lg($level, $message){
|
||||
switch ($level) {
|
||||
case 0:
|
||||
echo "<script>$('.log').append('<pre>INFO: $message</pre>');</script>";
|
||||
break;
|
||||
case 1:
|
||||
echo "<script>$('.log').append('<pre>ERROR: $message</pre>');</script>";
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (isset($_GET['message'])&&isset($_GET['severity'])){
|
||||
lg($_GET['severity'], $_GET['message']);
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user