accountLogin removed as an aliasArray to create login param not needed on init function Remove the if & else condition depending on login, this is not done here anymore No need to set login, not there anymore refreshFileManager no longer needs to take action on logging in, user would already be logged in
Big set of changes so that you only see a login screen until you're logged in Upon receiving a good login password attempt, also now immeditaley redirect after setting session var Rearranged a few chunks of code to logically make more sense SImplified quite a few things by condensing code Now shows a login/set password screen Prior to showing this though, if we're setting a password and once hasn't been set yet, do that and redirect If we're not logged in or don't have a password plus not on the settings file, redirect to that to login or set password
Moving away from the idea of multiple user levels, users will either have full access or no access Swapped all userLevel session vars to a loggedIn var, which is a bool Makes things simpler and paves the way towards the new login screen (before you see any files, code etc)
Instead of just finding our dirname within the finalArray using strstr, now using strpos and detecting if it's pos 0, which is much more appropriate & reliable. Example: Looking for /bob/t1.txt for may potentially return a false positive for finding '/bob' in '/another/bob1/abc' and files therefore t1.txt ends up in the wrong folder. This false positive only occurs when the write order of hard drive storage has stored another/bob1/abc before /bob and therefore retrieval load order can cause this odd, occasional issue. Checking for /bob being the start of our finalArray item through strpos===0 eliminates this possibility.
resultsPane id setup. This then allows us to change the height to fill more of the popup if we don't have replaceAll button at the bottom. Establish findText in both PHP and JS (they need different sources for their values unfortunately) (JS for encoding simplicity by just using input field value and PHP to get GET value as it can't pick up the parent input field value) Use findText in both JS and PHP variations where appropriate
New isOpen function added This receives a file ref (absolute or relative) and checks a relative, pipe replaced version against the openFiles array If it finds a match, the file is already open, it will return the array position, otherwise return false The openFile function now uses this array when attempting to open a file It firstly checks if it's open or not, if it is, it will switch to that tab, otherwise proceed to open it autoOpenFiles no longer has to check for this, as it's handled by openFile function anyway
Simplifying & condensing code in a number of areas Checking for changed content using indexOf showFileMenu function to handle continuing to show file menu (used when moving mouse over options to stop it dissapearing) Condensing multiple <?php ?> blocks File manager icons now using classes rather than inline styles Ternary if condition