commit d1ff5045ebeaea77434490beae83949fe37a0a11 Author: Self-Evident Date: Sun Oct 8 18:59:26 2017 -0400 Version 3.6.13 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. commit 76f3917c55c80eb7567fb355c197bcb984d9ec3b Author: Self-Evident Date: Sun Oct 8 11:31:26 2017 -0400 Updated logs. commit b6368120e42c896e39850d08bcd8d6c7518aa357 Author: Self-Evident Date: Sun Oct 8 11:27:41 2017 -0400 Version 3.6.12 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. commit b780454830718099017645ad81de93c4ea11800f Author: Self-Evident Date: Sat Oct 7 22:57:57 2017 -0400 Version 3.6.11 - 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! commit 36c09df26767e707fbe2e48cf5e51ca82aa157be Author: Self-Evident Date: Fri Oct 6 15:09:27 2017 -0400 Updated langauge files & changelog. commit 06ed75e100ffabfc0154abfb65be125b6ee2f428 Author: Self-Evident Date: Fri Oct 6 14:30:00 2017 -0400 Version 3.6.10 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(). commit ccac666af6d5a1f2b5c5bd22580dc6b4b0939330 Author: Self-Evident Date: Wed Oct 4 17:00:00 2017 -0400 Version 3.6.09 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'] commit 509ee2adcecdee3496ba29937ce16cbf7d912f22 Author: Self-Evident Date: Sat Sep 30 12:16:43 2017 -0400 Updated optional language & css files. commit bae1ec972f4bc21d50cd4c9b2bcb70fcfd1fada5 Author: Self-Evident Date: Sat Sep 30 11:00:08 2017 -0400 Version 3.6.08 [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). Perms_Update_Response() 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. commit 1004bf4fc09859f8405d13ccfe9117974c4e126c Author: Self-Evident Date: Fri Sep 29 10:35:15 2017 -0400 Version 3.6.07 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. commit 066e15b215f729c3640aa855f9f626133035b4ab Author: Self-Evident Date: Wed Sep 27 23:08:49 2017 -0400 Updated Langauge Files etc. commit a028db159bc1d3e0a19cc90557d1a80d2560e97d Author: Self-Evident Date: Wed Sep 27 17:43:47 2017 -0400 Version 3.6.06 Added ability to edit file permissions: PHP: Update_File_Permissions() js: Perms_onkeydown() Directory_Events() Validate_and_Post() Enable_Edit_Perms() Octal_Input_Only() Perms_Update_Response() Post_New_File_Perms() Removed period at end of value: $_['Update_failed'] = 'Update failed'; Still needs some new langauge $_[] values, but I'll get those next commit. commit 25780d85188d7d985aa670c9bba852940e8d3887 Author: Self-Evident Date: Sun Sep 24 18:15:08 2017 -0400 Version 3.6.05 On index page, changed from
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. commit addbe0414e8c37ce6e34438015fda029dc60fcea Author: Self-Evident Date: Wed Sep 20 23:17:00 2017 -0400 Version 3.6.04 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')...) commit fca8a03126b34dd777882d5b29dba369f970eb01 Author: Self-Evident Date: Wed Sep 20 18:00:00 2017 -0400 Version 3.6.03 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'] commit f108377b2bb837920bfd8db7fe5b11925068dcde Author: Self-Evident Date: Mon Sep 18 16:52:55 2017 -0400 Version 3.6.02 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. commit e58a5949803316a7e8c2f0801c8c480ccdcc7336 Author: Self-Evident Date: Mon Sep 18 01:22:05 2017 -0400 Version 3.6.01 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 commit 7c9bee3e6a1bc0fb9c330df4aebc0118e77125dd Author: Self-Evident Date: Sun Sep 17 18:15:40 2017 -0400 Updated another stupid typo in the readme. commit 6c42bca3abe9685231032ecfc486d8dc5a909744 Author: Self-Evident Date: Sun Sep 17 18:00:49 2017 -0400 Updated a couple typos in the readme. commit 28fc252832aca40616aba39975e8872b3eb234c4 Author: Self-Evident Date: Sun Sep 17 17:31:17 2017 -0400 Updated readme, change log, and optional external css. commit 49e6c968402e341b2afbe3885a3cfbe7bafb2252 Author: Self-Evident Date: Sun Sep 17 16:37:16 2017 -0400 Version 3.6 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. commit c81eef43cc187387d8d6e3ad1211aae752ea8b44 Author: Self-Evident Date: Fri Sep 8 12:58:46 2017 -0400 Version 3.5.23 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! commit 081b842487a7fbbea00bc0b4bf6d75296e6ec9ab Author: Self-Evident Date: Tue Sep 5 19:48:16 2017 -0400 v3.5.22 - updated changelog commit 6c965119900742e7e1477e777965ef17b17022d5 Author: Self-Evident Date: Tue Sep 5 19:21:47 2017 -0400 Version 3.5.22 [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: 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 & tags, as they're superfluous and just clutter things up. commit d266dbf519b6709f326f135aafe1662570984054 Author: Self-Evident Date: Sun Jun 26 18:50:00 2016 -0400 Version 3.5.21 [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 commit e32d149056bc3204f960194379473b0600a86309 Author: Self-Evident Date: Tue Jun 21 22:15:00 2016 -0400 Version 3.5.20 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. commit 6532ce35291e837ba629ba4cf54b2725051b3cdb Author: Self-Evident Date: Thu Jun 16 18:50:00 2016 -0400 Version 3.5.19 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: $MESSAGE, $EXCLUDED_LIST, $ETYPES, $STYPES, $ITYPES, $FTYPES, $FCLASSES css: box-sizing: border-box, plus subsequent changes... commit 24617e1d1a7d4f2d6bb62e464d4294f2993ae25a Author: Self-Evident Date: Thu Jun 9 23:09:00 2016 -0400 Version 3.5.18 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.'; commit d1b0bd328bbdc791ca6ecc07b57ec2aa934d9035 Author: Self-Evident Date: Sun Apr 20 17:50:00 2014 -0400 Version 3.5.17 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. commit 551410a76fbeb50c58327555eadf13f12859d008 Author: Self-Evident Date: Fri Apr 4 00:30:00 2014 -0400 Version 3.5.16 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. commit 9c0cf37000d9e9c9ff5946adaca111285e2b39c7 Author: Self-Evident Date: Thu Apr 3 00:00:00 2014 -0400 Version 3.5.15 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). commit dc3d055498f85347881eee6d11f20bd6674163b3 Author: Self-Evident Date: Wed Apr 2 22:00:00 2014 -0400 Version 3.5.14 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... commit b30329a005810e9ca12a480b9a0162010dc50fa2 Author: Self-Evident Date: Sun Mar 30 00:00:00 2014 -0400 Version 3.5.13 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 for filename. On file change, stopped changing