Files
sld-blocknotes/functions/functions.php
T

25 lines
972 B
PHP

<?php
/*
### LIST OF FUNCTIONS TO INCLUDE ###
Include in this array all the function files you may want to include.
You don't need to specify the extension .php, the system will automatically add it.
*/
$fun_to_inc = array(
//"example",
"demo-example"
);
// DON'T CHANGE THE CODE BELOW!!!
if (isset($fun_to_inc) && is_array($fun_to_inc) && !empty($fun_to_inc)){
foreach ($fun_to_inc as $fun){
if (file_exists(FUNCTIONS_FOLD . $fun . ".php")){
require_once(FUNCTIONS_FOLD . $fun . ".php");
} else {
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");
}
}
}
}