'.__('There are no extensions defined').'';
return;
}
}
$enterprise = (bool)get_parameter('enterprise', 0);
$delete = get_parameter ("delete", "");
$enabled = get_parameter("enabled", "");
$disabled = get_parameter("disabled", "");
if ($delete != ""){
if ($enterprise) {
if (!file_exists($config["homedir"]."/enterprise/extensions/ext_backup"))
{
mkdir($config["homedir"]."/enterprise/extensions/ext_backup");
}
}
else {
if (!file_exists($config["homedir"]."/extensions/ext_backup"))
{
mkdir($config["homedir"]."/extensions/ext_backup");
}
}
if ($enterprise) {
$source = $config["homedir"]."/enterprise/extensions/" . $delete;
$endFile = $config["homedir"]."/enterprise/extensions/ext_backup/" . $delete;
}
else {
$source = $config["homedir"]."/extensions/" . $delete;
$endFile = $config["homedir"]."/extensions/ext_backup/" . $delete;
}
rename($source, $endFile);
?>
width = '95%';
$table->head = array();
$table->head[] = __('File');
$table->head[] = "" . __('E.') . "";
$table->head[] = "" . __('G.F.') . "";
$table->head[] = "" . __('G.M.') . "";
$table->head[] = "" . __('O.M.') . "";
$table->head[] = "" . __('O.F.') . "";
$table->head[] = "" . __('L.F.') . "";
$table->head[] = "" . __('A.O.T.') . "";
$table->head[] = "" . __('A.G.T.') . "";
$table->head[] = "" . __('O.') . "";
$table->width = array();
$table->width[] = '30%';
$table->width[] = '22px';
$table->width[] = '44px';
$table->width[] = '44px';
$table->width[] = '44px';
$table->width[] = '44px';
$table->width[] = '66px';
$table->width[] = '66px';
$table->width[] = '44px';
$table->align = array();
$table->align[] = 'left';
$table->align[] = 'center';
$table->align[] = 'center';
$table->align[] = 'center';
$table->align[] = 'center';
$table->align[] = 'center';
$table->align[] = 'center';
$table->align[] = 'center';
$table->align[] = 'center';
$table->align[] = 'center';
$table->data = array();
foreach ($extensions as $file => $extension) {
$data = array();
$on = print_image("images/dot_green.png", true);
$off = print_image("images/dot_red.png", true);
if (!$extension['enabled']) {
$on = print_image("images/dot_green.disabled.png", true);
$off = print_image("images/dot_red.disabled.png", true);
$data[] = '' . $file . '';
}
else {
$data[] = $file;
}
if ($extension['enterprise']) {
$data[] = $on;
}
else {
$data[] = $off;
}
if ($extension['godmode_function']) {
$data[] = $on;
}
else {
$data[] = $off;
}
if ($extension['godmode_menu']) {
$data[] = $on;
}
else {
$data[] = $off;
}
if ($extension['operation_menu']) {
$data[] = $on;
}
else {
$data[] = $off;
}
if ($extension['operation_function']) {
$data[] = $on;
}
else {
$data[] = $off;
}
if ($extension['login_function']) {
$data[] = $on;
}
else {
$data[] = $off;
}
if ($extension['extension_ope_tab']) {
$data[] = $on;
}
else {
$data[] = $off;
}
if ($extension['extension_god_tab']) {
$data[] = $on;
}
else {
$data[] = $off;
}
if (!$extension['enabled']) {
$data[] = '' . print_image("images/cross.disabled.png", true) . '' .
' ' . print_image("images/lightbulb_off.png", true) . '';
}
else {
$data[] = '' . print_image("images/cross.png", true) . '' .
' ' . print_image("images/lightbulb.png", true) . '';
}
$table->data[] = $data;
}
print_table ($table);
?>