break;
            case 3:
                // all admin
                $zv_check_root = false;
                $filename_listing = '';
                $check_directory = array();
                $sub_dir_files = array();
                getDirList(DIR_FS_ADMIN, $zv_filestype_group);
                $sub_dir_files_admin = $sub_dir_files;
                $check_dir = array_merge($sub_dir_files_admin);
                for ($i = 0, $n = sizeof($check_dir); $i < $n; $i++) {
                    $check_directory[] = $check_dir[$i] . '/';
                }
                break;
        }
        zen_display_files($zv_check_root, $zv_filestype_group);
        break;
}
// eof: action
// if no matches in either databases or selected language directory give an error
if ($found == 'false') {
    $messageStack->add(ERROR_CONFIGURATION_KEY_NOT_FOUND . ' ' . $configuration_key_lookup, 'caution');
} elseif ($action != '') {
    echo '<table width="90%" align="center"><tr><td>' . zen_draw_separator('pixel_black.gif', '100%', '2') . '</td></tr><tr><td>&nbsp;</td></tr></table>' . "\n";
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php 
echo HTML_PARAMS;
?>
>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
  <tr>
<!-- body_text //-->
    <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td class="pageHeading"><?php 
echo HEADING_TITLE . '&nbsp;' . $_SESSION['language'];
?>
 &nbsp;&nbsp;
          <?php 
$check_directory = array();
$check_directory[] = DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/';
$directory_files = zen_display_files();
$za_lookup = array();
$za_lookup[] = array('id' => -1, 'text' => TEXT_INFO_SELECT_FILE);
for ($i = 0, $n = sizeof($directory_files); $i < $n; $i++) {
    $za_lookup[] = array('id' => $i, 'text' => $directory_files[$i]);
}
echo zen_draw_form('new_page', FILENAME_DEFINE_PAGES_EDITOR, '', 'get') . '&nbsp;&nbsp;' . zen_draw_pull_down_menu('define_it', $za_lookup, '-1', 'onChange="this.form.submit();"') . zen_hide_session_id() . zen_draw_hidden_field('action', 'new_page') . '&nbsp;&nbsp;</form>';
// toggle switch for editor
$editor_array = array(array('id' => '0', 'text' => TEXT_NONE), array('id' => '1', 'text' => TEXT_HTML_AREA));
echo TEXT_EDITOR_INFO . zen_draw_form('set_editor_form', FILENAME_DEFINE_PAGES_EDITOR, '', 'get') . '&nbsp;&nbsp;' . zen_draw_pull_down_menu('reset_editor', $editor_array, $_SESSION['html_editor_preference_status'] == 'HTMLAREA' ? '1' : '0', 'onChange="this.form.submit();"') . zen_hide_session_id() . zen_draw_hidden_field('action', 'set_editor') . '</form>';
?>
        </td>
      </tr>
<?php 
// show editor
if (isset($_GET['filename'])) {
Example #3
0
                break;
            case 3:
                // all admin
                $zv_check_root = false;
                $filename_listing = '';
                $check_directory = array();
                $sub_dir_files = array();
                getDirList(DIR_FS_ADMIN);
                $sub_dir_files_admin = $sub_dir_files;
                $check_dir = array_merge($sub_dir_files_admin);
                for ($i = 0, $n = sizeof($check_dir); $i < $n; $i++) {
                    $check_directory[] = $check_dir[$i] . '/';
                }
                break;
        }
        zen_display_files($zv_check_root);
        break;
}
// eof: action
// if no matches in either databases or selected language directory give an error
if ($found == 'false') {
    $messageStack->add(ERROR_CONFIGURATION_KEY_NOT_FOUND . ' ' . $configuration_key_lookup, 'caution');
} elseif ($action != '') {
    echo '<table width="90%" align="center"><tr><td>' . zen_draw_separator('pixel_black.gif', '100%', '2') . '</td></tr><tr><td>&nbsp;</td></tr></table>' . "\n";
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php 
echo HTML_PARAMS;
?>
>
                }
                break;
            case 3:
                // all admin
                $filename_listing = '';
                $check_directory = array();
                $sub_dir_files = array();
                getDirList(DIR_FS_ADMIN);
                $sub_dir_files_admin = $sub_dir_files;
                $check_dir = array_merge($sub_dir_files_admin);
                for ($i = 0, $n = sizeof($check_dir); $i < $n; $i++) {
                    $check_directory[] = $check_dir[$i] . '/';
                }
                break;
        }
        zen_display_files();
        break;
}
// eof: action
// if no matches in either databases or selected language directory give an error
if ($found == 'false') {
    $messageStack->add(ERROR_CONFIGURATION_KEY_NOT_FOUND . ' ' . $configuration_key_lookup, 'caution');
} else {
    echo '<table width="90%" align="center"><tr><td>' . zen_draw_separator('pixel_black.gif', '100%', '2') . '</td></tr><tr><td>&nbsp;</td></tr></table>' . "\n";
}
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php 
echo HTML_PARAMS;
?>
>