'.__('There are no extensions defined').''; return; } // Header print_page_header (__('Extensions'). " » ". __('Defined extensions'). " - ".$report["name"], "images/extensions.png", false, "", false, "" ); $delete = get_parameter ("delete", ""); $name = get_parameter ("name", ""); if ($delete != ""){ if (!file_exists($config["homedir"]."/extensions/ext_backup")) mkdir($config["homedir"]."/extensions/ext_backup"); $source = $config["homedir"]."/$delete.php"; rename ($source, $config["homedir"]."/extensions/ext_backup/$name.php"); } $table->width = '95%'; $table->head = array (); $table->head[0] = __('Name'); if (give_acl ($config['id_user'], 0, "PM")){ $table->head[1] = __('Delete'); } $table->data = array (); foreach ($config['extensions'] as $extension) { if ($extension['main_function'] == '') continue; if ($extension['operation_menu'] == null) continue; $data = array (); $data[0] = ''.$extension['operation_menu']['name']; if (give_acl ($config['id_user'], 0, "PM")) { $data[1] = ''; } array_push ($table->data, $data); } print_table ($table); ?>