fetchArray("SELECT name, module_dir FROM zz_modules WHERE id=" . prepare($id_module));
$result = $results[0];
$modulo_custom=get_var("Cartella Custom");
$module_dir = $result['module_dir'];
if (file_exists($docroot . "/include/".$modulo_custom."/top.php")) {
include ($docroot . "/include/".$modulo_custom."/top.php");
}
else {
include ($docroot . "/include/top.php");
}
if ($module_dir != '') {
// Caricamento helper modulo (verifico se ci sono helper personalizzati)
if (file_exists($docroot . "/modules/" . $module_dir . "/".$modulo_custom."/modutil.php")) {
include ($docroot . "/modules/" . $module_dir . "/".$modulo_custom."/modutil.php");
}
else if (file_exists($docroot . "/modules/" . $module_dir . "/modutil.php")) {
include ($docroot . "/modules/" . $module_dir . "/modutil.php");
}
// Inclusione file init del modulo
if (file_exists($docroot . "/modules/" . $module_dir . "/".$modulo_custom."/init.php")) {
include ($docroot . "/modules/" . $module_dir . "/".$modulo_custom."/init.php");
}
else if (file_exists($docroot . "/modules/" . $module_dir . "/init.php")) {
include ($docroot . "/modules/" . $module_dir . "/init.php");
}
if (file_exists($docroot . "/modules/" . $module_dir . "/".$modulo_custom."/actions.php")) {
include ($docroot . "/modules/" . $module_dir . "/".$modulo_custom."/actions.php");
}
else if (file_exists($docroot . "/modules/" . $module_dir . "/actions.php")){
include ($docroot . "/modules/" . $module_dir . "/actions.php");
}
// cerco moduli actions aggiuntivi
$query_moduli_add = "SELECT * FROM zz_modules_add WHERE module_dir_from='$module_dir'";
$rs_modadd = $dbo->fetchArray($query_moduli_add);
for( $i=0; $i