'.__('There are no extensions defined').'';
return;
}
// Header
print_page_header (__('Extensions'). " » ". __('Defined extensions'), "images/extensions.png", false, "", true, "" );
$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 = '';
$off = '';
if (!$extension['enabled']) {
$on = '';
$off = '';
$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[] = '' .
' ';
}
else {
$data[] = '' .
' ';
}
$table->data[] = $data;
}
print_table ($table);
?>