'.__('There are no extensions defined').''; return; } $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 = '60%'; $table->head = array (); $table->head[0] = __('Name'); $table->head[1] = __('Action'); $table->style = array(); $table->style[1] = 'text-align: center; font-weight: bolder;'; $table->data = array (); foreach ($config['extensions'] as $extension) { if ($extension['main_function'] == '') continue; if ($extension['operation_menu'] == null) continue; // If metaconsole is activated skip extensions without fatherID in menu array (this sections and extensions are filtered in metaconsole mode) if ($config['metaconsole'] == 1) { if (!empty($extension['operation_menu']['fatherId']) and !array_key_exists($extension['operation_menu']['fatherId'], $operation_menu_array)) continue; } $data = array (); $data[0] = $extension['operation_menu']['name']; $data[1] = '' . __('Execute') . ''; array_push ($table->data, $data); } html_print_table ($table); ?>