'; $dir_check = $check_directory[$i]; $file_extension = '.php'; if ($dir = @dir($dir_check)) { while ($file = $dir->read()) { if (!is_dir($dir_check . $file)) { if (substr($file, strrpos($file, '.')) == $file_extension) { $directory_array[] = $file; } } } if (sizeof($directory_array)) { sort($directory_array); } $dir->close(); } } return $directory_array; } $action = (isset($_GET['action']) ? $_GET['action'] : ''); $za_who = $_GET['za_lookup']; if ($action == 'new_page') { $page = $_GET['define_it']; $check_directory = array(); $check_directory[] = DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/'; $directory_files = zen_display_files(); $za_lookup = array(); for ($i = 0, $n = sizeof($directory_files); $i < $n; $i++) { $za_lookup[] = array('id' => $i, 'text' => $directory_files[$i]); } // This will cause it to look for 'define_conditions.php' $_GET['filename'] = $za_lookup[$page]['text']; $_GET['box_name'] = BOX_TOOLS_DEFINE_CONDITIONS; } // define template specific file name defines $file = zen_get_file_directory(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/html_includes/', $_GET['filename'], 'false'); ?> $languages[$i]['directory'], 'text' => $languages[$i]['name']); } if (!$lng_exists) $_SESSION['language'] = $language; ?> > <?php echo TITLE; ?>
   -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') . '  ' . 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') . '  '; ?> '; ?>
reset(); $messageStack->add(sprintf(ERROR_FILE_NOT_WRITEABLE, $file), 'error'); echo $messageStack->output(); } ?>

' . TEXT_INFO_EDITING . '
' . $file . '
'; ?>
Value = $file_contents ; $oFCKeditor->Width = '700' ; $oFCKeditor->Height = '450' ; // $oFCKeditor->Create() ; $output = $oFCKeditor->CreateHtml() ; echo $output; } else { // using HTMLAREA or just raw "source" echo zen_draw_textarea_field('file_contents', 'soft', '100%', '30', $file_contents, (($file_writeable) ? '' : 'readonly') . ' id="file_contents"'); } ?>
' . zen_image_button('button_reset.gif', IMAGE_RESET) . '' . ' ' . '' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . ''; } else { echo '' . zen_image_button('button_back.gif', IMAGE_BACK) . ''; } ?>
' . zen_image_button('button_back.gif', IMAGE_BACK) . ''; ?>
read()) { if (substr($file, strrpos($file, '.')) == $file_extension) { echo ' ' . "\n"; if (!$left) { echo ' ' . "\n" . ' ' . "\n"; } $left = !$left; } } $dir->close(); } ?>
' . $file . '