Commits on Oct 8, 2017
  1. Version 3.6.13

    Self-Evident committed Oct 8, 2017
    Tweaked usage of $DOC_ROOT to "server/doc/root/" (no leading "/").
    $MESSAGES from System_Setup() no longer reported on Login page, but are reported after login.
    Minor restructure of Session_Startup().
    Improved $ACCESS_ROOT & $DEFAULT_PATH a bit.
  2. Updated logs.

    Self-Evident committed Oct 8, 2017
  3. Version 3.6.12

    Self-Evident committed Oct 8, 2017
    Show username on Admin page.
    Now checks if is_writable,  Dir list then hides [m]   [d][x] for files not writable.
       Update_File_Permissions() & Edit_Page_...().
    New function Get_File_Stats(), used by: Get_DIRECTORY_DATA, Edit_Page_buttons_top(), Edit_Page_form()
    Enable_Edit_Perms(): added current perms [rwxrwxrwx] to msg.
  4. Version 3.6.11

    Self-Evident committed Oct 8, 2017
    - Switched to php short tags: <?= ?>.  Because I felt like it.  I wanted to years ago, in the beginning, but my web host was still on some 5.3 version of php, and didn't always have 'em enabled. But now that php is up to v7.something, and most hosts have, at least, php 5.4, it seems like a safe move at this point.  If not, oh well!
Commits on Oct 6, 2017
  1. Version 3.6.10

    Self-Evident committed Oct 6, 2017
    Fixed minor bug introduced in 3.6.09:
      removed unneeded client side JSON.parse of the result of PHP's json_encode($DIRECTORY_DATA).
    Re-worked the Index page keyboard nav a bit.
    Fixed issue of stat() errors on dead links.  (by using lstat(), of course)
    Directory list now shows link targets:[ symlinkedfile -> /path/to/linked/file ]
    Some restructure of Get_DIRECTORY_DATA().
Commits on Oct 4, 2017
  1. Version 3.6.09

    Self-Evident committed Oct 4, 2017
    When focus is in path header, HOME & END now goto ID=path_0 & ID=path_(last) respectively.
       Otherwise, HOME & END goto f0c.. or f(last)c..
    Added file owner & group (when available) to dir list.
    Removed hsc() of early output messages when updating permissions.
    $ckbox events are now only assigned in Insert_mdx().
    Some misc code improvements in Timeout_Timer(), Create_Table_for_Listing(), & other places.
    In index page js, variaible row split to frow & drow, depending on use.
       See Assemble_Insert_row() for description/explanation.
    Send_directory_data_to_js() simplified & rolled into Index_Page().
       Now using (php) json_encode & (js) JSON.parse to send directory data to js.
    New language values: $_['Group'], $_['User']
Commits on Sep 30, 2017
  1. Version 3.6.08

    Self-Evident committed Sep 30, 2017
    [Mov], [Del], & [X] now show/hide as needed as perms are changed (owner write bit).
    Some restructuring/refactoring in:
      Init_Dir_table_rows(), Insert_mov_del_ckbox(), Assemble_Insert_row(), Build_Directory(),
      Split Insert_mov_del_ckbox() into Assemble_mdx() & Insert_mdx().
    Fixed minor perms bug (if changed perms, then resorted dir list, would show old perms value).
    Index_Page_events() - moved some "hard coded" colors to .classes
    In header, "(on php 5.x.x)" version & phpinfo link now only shows on Admin page.
    Minor wording change in readme "Limitations" section.
    Tweaked some class names. And some css.
Commits on Sep 29, 2017
  1. Version 3.6.07

    Self-Evident committed Sep 29, 2017
    New language values $_[] values: $_['Permissions_msg_1'], $_['Press_Enter'], $_['Enter_to_edit']
    Changed $_['Update_failed']
     from 'Update failed - could not save file.'
       to 'Update failed.'
    Restored $_['edit_txt_04'] to language files. (Had inadvertently removed it previously.)
    Added Format_Perms(), in both php & js: [7777] [ugt rwx rwx rwx]  (js version not yet used.)
    Added Insert_mov_del_ckbox() to index page js.  (Prep for future improvements.)
    Added Cancel_Perm_Changes() to index page js.
    Improved handling of ckbox & permission field events.
    Cleaned up some inline css.
Commits on Sep 28, 2017
Commits on Sep 27, 2017
  1. Version 3.6.06

    Self-Evident committed Sep 27, 2017
    Added ability to edit file permissions:
      PHP: Update_File_Permissions()
      js: Perms_onkeydown()
    Removed period at end of value:  $_['Update_failed'] = 'Update failed';
    Still needs some new langauge $_[] values, but I'll get those next commit.
Commits on Sep 24, 2017
  1. Version 3.6.05

    Self-Evident committed Sep 24, 2017
    On index page, changed from <form> name to id.  document.mcdselect => E('mcdselect')
    Fixed a couple bugs in keyboard navigation when there's only one item in current diretory.
     - Couldn't "arrow up" when in the file row [M][C][D][x][perms] [Filename]
     - It was submitting on enter when on checkboxes.
Commits on Sep 21, 2017
  1. Version 3.6.04

    Self-Evident committed Sep 21, 2017
    ckbox bgcolors for focus & blur are now handled by onfocus & onblur events.
    (Instead of the other method - a convoluted buckshot of code...)
    Removed a few one-time use vars of elements since E('element_id') is almost as short.
    (As opposed to document.getElementById('element_id')...)
Commits on Sep 20, 2017
  1. Version 3.6.03

    Self-Evident committed Sep 20, 2017
    Removed Rename/Delete/Edit options for readonly files.
      (previously would simple have generated an error.)
    Some more prep for eventual option to edit file perms.
    Some improvement to cursor control feedback (bg colors) handling.
    (evidently I just discovered onblur & onfocus)
    Removed $_['edit_txt_04'] (not used)
    Added $_['edit_txt_05']
Commits on Sep 18, 2017
  1. Version 3.6.02

    Self-Evident committed Sep 18, 2017
    Fixed minor tabindex bug introduced when added file permissions.
    Check for and attempt to set session_save_path($user_tmp_path).
    Increased default $PRE_ITERATIONS from 1000 to 10000. Had kept low as IE8 was slow.
      If IE8 support is needed, it can be changed back.
    Removed a couple redundant $_[] language values:
       $_['login_txt_01']  = 'Username:';
       $_['login_txt_02']  = 'Password:';
    A couple css tweaks.
  2. Version 3.6.01

    Self-Evident committed Sep 18, 2017
    Fixed minor issue of not showing site's favicon next to site name.
    Fixed sort-of minor bug introduced in 3.5.23 on edit page:
      Wasn't showing images, and couldn't view file by clicking on filename in,
    	Editing: filename
Commits on Sep 17, 2017
  1. Version 3.6

    Self-Evident committed Sep 17, 2017
    Fixed minor bug in $ACCESS_ROOT. (Even if set to root, was unable to acually access root...)
    Some prep work for allowing editing of file permissions. Not yet editable.
    For js, created E() function for document.getElementById().  Because shorter & easier to read.
    document.onkeydown => E("main").onkeydown
    Proper-cased common_scripts() to Common_Scripts().
    Some css.
Commits on Sep 8, 2017
  1. Version 3.5.23

    Self-Evident committed Sep 8, 2017
    OneFileCMS no longer restricted to public_html.
      Affected: $DOC_ROOT, $ACCESS_ROOT, $DEFAULT_PATH, and a couple localized $ipath's.
      Also affected how optional config & laguage files are referenced.
      Maybe some other stuff too, I forget...
    Added session path to Admin page.
    Added "Connected to: [hostname]" to Admin page.
    Added $_['admin_txt_03'], $_['admin_txt_04'], & $_['must_be_decendant'] to langauge files
    Added $_['Invalid'] to language files, but not yet used.  Because.
    Added $DEFAULT_PATH config variable, for $ipath if $ipath is not present or is invalid.
    Added Set_IS_OFCMS().
    Removed all usage of $WEB_ROOT. It was based on $DOC_ROOT, which has changed slightly.
    Changed $DOC_ROOT. Now only defines default folder for $ACCESS_ROOT.
    Updated OneFileCMS.config.SAMPLE.php
    Increased $MAX_EDIT_SIZE from 200000 to 250000.
    And only a couple minor css changes!
Commits on Sep 5, 2017
  1. Version 3.5.22

    Self-Evident committed Sep 5, 2017
    [Wide View] / [Normal View] button only available on edit page when $text_editable.
    Added if (Toggle_Wrap)... since not available if file not editable.
    Wrapped some function calls in "if (File_textarea) {...}" because needed.
    Moved some inline events from Index_Page_buttons_top() to Index_Page_events().
    Removed:  <style>#message_box {min-height: 2em;}</style>  from Change_PWUN_Page().
    Added file permissions to Directory List:  sogw (s(u/g)id/sticky owner group world)
    	ex: 0644
    	affected: Create_Table_for_Listing(), Init_Dir_table_rows(), Assemble_Insert_row(), Build_Directory()
    changed js array delclarations from New Array() to [].
    Removed <head> & <body> tags, as they're superfluous and just clutter things up.
Commits on Jun 26, 2016
  1. Version 3.5.21

    Self-Evident committed Jun 26, 2016
    [Line Wrap on/off] button: added underline on current state (on or off).
    Removed some css & js from when [Word Wrap *on *off] used radio buttons.
    Rearranged Edit_Page_scripts a bit in a hopefully more logical way.
    Set height of both line_numbers & file_editor with css.
    Removed setSelRange() in lieu of selectionStart/End in Reset_File().
    Moved Toggle_Line_Wrap() out of Line_Numbering(), & into "global" scope of Edit_Page_Scripts().
    Added some basic validation to $TAB_SIZE & its js conterpart TAB_SIZE.
    Updated OneFileCMS_structure.txt
Commits on Jun 22, 2016
  1. Version 3.5.20

    Self-Evident committed Jun 22, 2016
    Fixed sporadic directory-won't-display issue: moved initial Sort_and_Show() to end of page.
    Fixed wrapping & line-numbering issue when toggling between wrap on & wrap off.
    Added line-numbers to read-only files also. (OFCMS || $too_large_to_edit)
    Added cookie for word_wrap. (now called line_wrap)
    Added (bytes) to Size header of file listing, and removed "B" suffix from sizes.
    In sort_DIRECTORY(), changed ternaries to if/thens.  Because simpler.
    Index Page: "Home" key now just goes to first row (../).
    On Edit Page, initial textarea cursor location set to start of file.
    Cursor postion/selection saved when toggling between Wide/Normal views, and Wrap on/off.
    Edit Page: Word Wrap now called Line Wrap, and switched from radio buttons to just a button to toggle wrap on/off.
    Tweeked X_box style.
    Adjusted/simplified some css for the index page buttons & all svg icons.
    Added $_['Line_Wrap'] to language files.
Commits on Jun 16, 2016
  1. Version 3.5.19

    Self-Evident committed Jun 16, 2016
    Added line numbering to edit page: Line_Numbering() js functions & associated css & html.
    	(This was way more work than anticipated... :)
    Added Word wrap toggle to edit page. (for editable files only.)
    	(This was way more work than anticipated... :)
    Added $_['Word_Wrap'],  $_['on'],  $_['off']
    	(This was easy.)
    Added $WORD_WRAP & $TAB_SIZE config variables.
    	(This was easy.)
    In Display_Messages():Changed ternaries to if/thens.  Because simpler.  (also fixed a typo)
    In Countdown(), made $message_box local (was no var, don't know why).
    In pre_validate_pwun(), a little cleanup.
    Renamed a few global var's from lowercase to all caps:
    css: box-sizing: border-box, plus subsequent changes...
Commits on Jun 10, 2016
  1. Version 3.5.18

    Self-Evident committed Jun 10, 2016
    Renamed a few global configurable variables in a more consistant manor with the rest.
    $EXLUDED_FILES now ignores folders, as it doesn't make sense or work well overall otherwise.
    On index page, Enter can be used to select/deselect checkboxes.
    on_Tab_down(): removed superfluous returns.
    Improved Up/Down arrow key use: "cursor" (ie: focus), can now nav up & down [Move][Copy][Del][x]
    Changed PU & PD key responses to include [Logo] & [Admin] instead of skipping them.
    Fixed minor bug where PU (or was it PD?) got "stuck" when in an empty folder and on the "../" row,
    Check if (FR == FROWS) before if (FR == 0), so AD still passes thru [Admin]
    And some css: #del_backup
    Fixed minor typo in $_['edit_caution_02']: "...OneFileCM.'; => "...OneFileCMS.';
Commits on Apr 20, 2014
  1. Version 3.5.17

    Self-Evident committed Apr 20, 2014
    Moved ob_start() to very top of file.
    Moved basic security & error log settings to top of file, just after version #.
    Improved responses to Left & Right arrows by allowing for skips in tabindex's.
     (ex: 1,2,3,5,6,10...)
    Index_Page_scripts() : Added $TABINDEX_XBOX for the message box '[X]' box.
    Display_Messages(): use $tabindex_xbox.
    Reordered onmousedown and on_Tab_down functions to that order.
    In on_Tab_down, renamed/gave a couple var's more intuitive names.
    Uncheck "Clear All" ckbox on resorts, as file ckboxes are.
    Adjusted some css.
Commits on Apr 4, 2014
  1. Version 3.5.16

    Self-Evident committed Apr 4, 2014
    Improved logic for handling Left & Right arrow keys in Index_Page_events()
    Some js at end of file now echo'd by php, instead of dropping out of php with ?>
    Left some //##### comments in as reminders for potential improvements.
Commits on Apr 3, 2014
  1. Version 3.5.15

    Self-Evident committed Apr 3, 2014
    Fixed minor keyboard navigation glitch on Index page if active copy of OnefileCMS is listed.
      Assemble_Insert_row() & Build_Directory()
    Fixed css/removed borders on checkboxes (ony affected IE).
  2. Version 3.5.14

    Self-Evident committed Apr 3, 2014
    Improvements/enhancements to Index page keyboard navigation...
    Index_Page_events(): much of the changes for the above.
    Added $TABINDEX global for adding tabindex to most tabbable elements.
    Index_Page(): moved call to Index_Page_scripts() to end of _Page().
    Moved header_filename.focus() to Index_Page_events()
    Confirm_Submit(): switched from alert() to Display_Messages() for error message.
    Index_Page_buttons_top(): in addtion to tabindex, added id's
    Check_for_changes(): added check for IE & window.event
    A bit of css...
Commits on Mar 30, 2014
  1. Version 3.5.13

    Self-Evident committed Mar 30, 2014
    Added basic keyboard navigation of Index page. (Arrow keys, Page Up/Down, etc.)
    System_Setup(): made $DOC_ROOT_OS global.
    Put tabindex=-1 on main OneFileCMS logo.
    Create_Table_for_Listing(): added "../" to top of directory listing.
    Edit_Page_buttons_top(): [View Raw] on shows if text_editable.
    Edit_Page_scripts(): check if [View Raw] exists...
      Also removed some old leftover test code...
    Renamed Index_Page_onclicks() to Index_Page_event().
    Added document.onkeydown function for basic keyboard nav of directory list.
    Assemble_Insert_row()): added id's to move/copy/delete options as part of
      arrow key navivation of directory listing.
    Build_Directory(): Same to <a> for filename.
    On file change, stopped changing <textarea> border color to red.
    Some css tweakin' & cleanup
Commits on Mar 26, 2014
  1. Updated readme.

    Self-Evident committed Mar 26, 2014
Commits on Mar 25, 2014
  1. Updated readme.

    Self-Evident committed Mar 25, 2014