'.$element['name']; if (file_exists($docroot.'/plugins/'.$element['directory'].'/add.php')) { echo ' '; } echo ' '; $directory = '/plugins/'.$element['directory']; } else { $element = Modules::get($id_module); $directory = '/modules/'.$element['directory']; } $total = App::readQuery($element); $module_options = (!empty($element['options2'])) ? $element['options2'] : $element['options']; // Caricamento file aggiuntivo su elenco record if (file_exists($docroot.$directory.'/custom/controller_before.php')) { include $docroot.$directory.'/custom/controller_before.php'; } elseif (file_exists($docroot.$directory.'/controller_before.php')) { include $docroot.$directory.'/controller_before.php'; } // Segmenti /*deve sempre essere impostato almeno un sezionale*/ if (empty($_SESSION['m'.$id_module]['id_segment'])) { $rs = $dbo->fetchArray('SELECT id FROM zz_segments WHERE predefined = 1 AND id_module = '.prepare($id_module).'LIMIT 0,1'); $_SESSION['m'.$id_module]['id_segment'] = $rs[0]['id']; } if (count($dbo->fetchArray("SELECT id FROM zz_segments WHERE id_module = \"$id_module\"")) > 1) { ?>