- added role at registration with xootix

- cleaned folder
This commit is contained in:
asus
2024-03-02 16:14:36 +01:00
parent 8aeef1dca8
commit 7738ad1863
22 changed files with 19 additions and 804 deletions

View File

@@ -0,0 +1,26 @@
<?php
/**
* it means someone outside wp is accessing the file, in this case kill it.
*/
if (!defined('ABSPATH')) {
die('You can not access this file!');
}
/*
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
https://stackify.com/how-to-log-to-console-in-php/
*/
function console_log(...$outputs) {
if (FIPFCARD_CONSOLE_OFF)
return;
foreach($outputs as $output)
{
$json_output = json_encode($output, JSON_HEX_TAG);
$js_code = '<script>console.log(' . $json_output . ');</script>';
echo $js_code;
}
}
?>