'.__('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] = __('Version'); $table->head[2] = __('Action'); $table->style = array(); $table->style[1] = 'text-align: center;'; $table->style[2] = '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; $data = array (); $data[0] = $extension['operation_menu']['name']; $data[1] = $extension['operation_menu']['version']; $data[2] = '' . __('Execute') . ''; array_push ($table->data, $data); } html_print_table ($table); ?>