'.__('There are no extensions defined').'';
return;
}
// Header
print_page_header (__('Extensions'). " » ". __('Defined extensions'), "images/extensions.png", false, "", true, "" );
$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 = '500px';
$table->head = array ();
$table->head[0] = __('Name');
$table->head[1] = __('Delete');
$table->align[1] = "center";
$table->data = array ();
foreach ($config['extensions'] as $extension) {
if ($extension['godmode_function'] == '')
continue;
if ($extension['godmode_menu'] == null)
continue;
$data = array ();
$data[0] = ''.$extension['godmode_menu']['name'].'';
$data[1] = '';
array_push ($table->data, $data);
}
print_table ($table);
?>