added the feature info in the debug message function and added also a demo-example
This commit is contained in:
@@ -58,7 +58,8 @@ function resolve_page() {
|
|||||||
$debug_messages = [
|
$debug_messages = [
|
||||||
'High' => [],
|
'High' => [],
|
||||||
'Medium' => [],
|
'Medium' => [],
|
||||||
'Low' => []
|
'Low' => [],
|
||||||
|
'Info' => []
|
||||||
];
|
];
|
||||||
|
|
||||||
// FUNCTION TO GET DEBUG STATUS MESSAGES
|
// FUNCTION TO GET DEBUG STATUS MESSAGES
|
||||||
@@ -100,6 +101,7 @@ function displayDebug() {
|
|||||||
$color = '#6cef93';
|
$color = '#6cef93';
|
||||||
if ($level === 'High') $color = '#ff4444';
|
if ($level === 'High') $color = '#ff4444';
|
||||||
if ($level === 'Medium') $color = '#ffbb33';
|
if ($level === 'Medium') $color = '#ffbb33';
|
||||||
|
if ($level === 'Info') $color = '#4444ff';
|
||||||
|
|
||||||
echo "<div style='margin-bottom: 10px;'>";
|
echo "<div style='margin-bottom: 10px;'>";
|
||||||
echo "<strong style='color: $color;'>[" . $level . "]</strong>";
|
echo "<strong style='color: $color;'>[" . $level . "]</strong>";
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ You don't need to specify the extension .php, the system will automatically add
|
|||||||
*/
|
*/
|
||||||
$fun_to_inc = array(
|
$fun_to_inc = array(
|
||||||
//"example",
|
//"example",
|
||||||
"test"
|
"demo-example"
|
||||||
);
|
);
|
||||||
|
|
||||||
// DON'T CHANGE THE CODE BELOW!!!
|
// DON'T CHANGE THE CODE BELOW!!!
|
||||||
@@ -16,6 +16,9 @@ if (isset($fun_to_inc) && is_array($fun_to_inc) && !empty($fun_to_inc)){
|
|||||||
require_once(FUNCTIONS_FOLD . $fun . ".php");
|
require_once(FUNCTIONS_FOLD . $fun . ".php");
|
||||||
} else {
|
} else {
|
||||||
debugStatusMes("Function file $fun.php not found in functions folder: '" . FUNCTIONS_FOLD . "'", "Medium");
|
debugStatusMes("Function file $fun.php not found in functions folder: '" . FUNCTIONS_FOLD . "'", "Medium");
|
||||||
|
if ($fun === "demo-example") {
|
||||||
|
debugStatusMes("The 'demo-example' function is only a demo. If you create a new function, needs to be included in the file specified above. Please remove the demo-example record from 'functions/functions.php' ", "Info");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user