mattpass
e201169e33
Settings updates
2020-06-04 21:17:15 +01:00
mattpass
a81905093b
Improved settings.php
2020-05-31 14:10:19 +01:00
mattpass
551e19e53a
Improved (trusted) client IP retrieval
2020-03-08 12:24:32 +00:00
mattpass
8695640029
Remove top. from settings files, add parent.
2020-02-28 17:10:47 +00:00
mattpass
de9e6f95ab
Remove use of strClean
2020-02-01 15:41:52 +00:00
mattpass
bb22e9b254
Unescape $ when creating the password first time
2020-02-01 13:47:52 +00:00
mattpass
8ff9399466
Null coalescing to 1 if not available
2020-02-01 13:28:24 +00:00
mattpass
af8b923b1c
Request URI set in path
2020-01-19 10:26:20 +00:00
Matt Pass
a601ce5b50
Better error display for different cases
2019-10-01 08:43:04 +01:00
Matt Pass
38bdbe0b3b
Dup comment
2019-08-25 14:03:22 +01:00
Matt Pass
bfba1418fb
Rename of config files, stored in data dir
2019-08-25 13:39:31 +01:00
Matt Pass
88b2108159
Remove trial redir/time period, verifyHash added
2019-08-13 00:06:19 +01:00
Rafael Rotelok
51ab472142
PSR-2 Compliance, removing the closing tag ( ?> ) on php only files
...
inserting a blank line on the end of php only files
2018-06-16 00:19:49 -03:00
Matt Pass
8797e8f5e0
Simpler code moved to settings.php
2016-08-25 16:59:28 +01:00
Matt Pass
1d6c60c19a
Get data now via getData
2016-08-25 14:50:10 +01:00
Matt Pass
f3edf9e2ae
No longer hardcoded and now selection driven
2016-07-22 10:38:08 +01:00
Matt Pass
5a9cd5e85c
Change true to false if checkbox is set
2016-04-14 09:28:05 +01:00
Matt Pass
838612932c
Create duplicate IP based config file also
2016-04-08 10:22:10 +01:00
Matt Pass
e330a57da8
Rename var, as used in isset checks
...
Renamed var to distinguish from ftpSite, which is checked for existance
with isset and if available jumps into FTP mode. Having it previously
set to false, it's available, so erroneously goes into FTP mode with no
creds. This is a standalone var name now just to establish connection
channel.
2015-08-13 09:31:12 +01:00
Matt Pass
3222a3202c
FTP param structure added
2015-08-13 09:06:31 +01:00
Matt Pass
ab0cef93b7
isset check to avoid PHP notice
2015-06-26 13:58:10 +01:00
Matt Pass
1c79062baa
Only if logged in consider going to donate screen
...
Can't redir with PHP as targetting window, so do with JS and exit after
die also.
2015-06-26 12:16:52 +01:00
Matt Pass
7cab1933df
Include our new params file
2015-05-22 18:58:55 +01:00
Matt Pass
db5348cd68
Escape apostrophes
2015-05-09 09:41:44 +01:00
Matt Pass
fe2391e6ad
fileDirResOutput added and comments
2015-05-09 09:25:20 +01:00
Matt Pass
330ec0d605
Version 5.0
2015-05-02 14:57:27 +01:00
Matt Pass
3facbe2de6
If no filemtime value use time
2015-05-02 14:09:38 +01:00
Matt Pass
12e6bedf6d
CodeMirror dir renamed to just that
...
Dropped version number so we can see cleaner commit changes in future
2015-04-25 15:12:47 +01:00
Matt Pass
797df35ffe
Create config settings file on the fly
...
So we can update using PHP later
2015-04-25 10:13:45 +01:00
Andrey Grinenko
8f1cca087b
session fixation fix - previous version did not let me in, because it regenerated session before even trying to start old one and check whether it is valid or not.
...
I've also added session regeneration on login, which is good practice to prevent session fixation.
2015-02-21 02:58:44 +03:00
Matt Pass
c322c501ac
previousFiles updated to only available files
...
Avoids ICEcoder asking to open files that are no longer available.
2014-12-15 15:36:40 +00:00
Matt Pass
670e3c47a6
Don't match ICEcoder path to doc root use basename
...
The 2 x if conditions added a security measure to avoid path traversals,
should languageBase or languageUser ever be set to something malicious
such as (eg ../../../../../../../etc/passwd)
However, it meant that the ICEcoder dir and the doc root dir paths had
to both start the same, and so be in the same location really. It was
previously a benefit to have them possibly contain different paths, but
this security point restricts this.
We can remove these 2 if conditions however and simply wrap the 2 array
values with basename(), so we take only the trailing file name and so
avoid path traversal issues.
2014-11-27 20:48:28 +00:00
Matt Pass
77c0f61d7b
Only update value if index.php
...
Causes file locking issues if allowed to be called from anywhere
Because we only call from index.php now, also need dirname(___FILE___)
to complete paths
2014-11-25 09:49:53 +00:00
Matt Pass
8d5715ebcd
Update configCreateDate if 0 and 14 full days
...
configCreateDate set if 0 now on every load, not just save
14 full days setup (1296000 - 1 sec), so doesn't start by showing 13
days (and 23 hrs, 59 secs)
If configCreateDate == 0, $tRemaining is the $tPeriod
2014-11-21 16:40:32 +00:00
Matt Pass
edbe8af62f
User language can be selected from settings screen
...
If there has been a change of language, set a bool flag for a reload
later
Save languageUser to file also on settings update
realpath checking on language file name also, dies if fails
2014-11-18 15:35:41 +00:00
Matt Pass
07117591e5
Can redirect to trial ended page if on login page
...
Would only redirect on fresh open otherwise
2014-11-18 13:23:20 +00:00
Matt Pass
429fab5c17
Establish trial time, % and days remaining
2014-11-17 13:00:22 +00:00
Matt Pass
5fe097a84a
No longer console.log
...
We should indeed only output if index.php and top.iceRoot is updated
after a settings change in settings-update.php (top.docRoot only changes
if you manually change the file, in which case a reload is needed and
this is picked up again from scratch).
2014-11-13 14:33:47 +00:00
Matt Pass
ebf12f327f
Only set top.docRoot and top.iceRoot from index.php
...
Avoids having something output to the browser in places where we don't
want it, such as the new file-control-xhr.php file. Temporary
console.log for now as reminder to finish checking this out.
2014-11-12 17:40:27 +00:00
Matt Pass
35d1b01727
Trial period & handling added
2014-11-04 12:58:08 +00:00
Matt Pass
eff7e7fa85
6 JS window.location fallbacks
...
On some servers the header request can be ignored, so have JS as a
fallback
2014-10-31 15:04:27 +00:00
Matt Pass
9ea459787e
Polyfill added for array_replace_recursive
...
This is natively available in PHP 5.3+
2014-10-24 09:23:52 +01:00
Matt Pass
44aca5ad1b
Need to use array_replace_recursive()
...
This is the function needed to overwrite $text array ontop of
$englishText, including nested arrays
2014-09-05 22:07:26 +01:00
Matt Pass
f96651b9e8
Load English first, then merge lang ontop
...
It's English ontop of English for now, but 2nd include can be changed in
the code here and soon to be set via the UI.
2014-08-21 14:30:43 +01:00
Matt Pass
ec05132fa8
Make array available in session
...
Used by files that don't load settings.php
2014-08-08 09:29:19 +01:00
Matt Pass
5de4cd657e
Language system setup and English translations
...
Covering top level and login so far only
2014-08-06 09:26:50 +01:00
Matt Pass
a8168fed86
Include this lib file only once
...
Is called from headers.php also now, so don't want to error by calling
again (clashing function names etc)
2014-05-20 07:26:05 +01:00
RelaxedArcher
6a50c1ce2b
Fixed an issue that caused registration to be always available while in multi-user mode
2014-05-10 02:30:22 +03:00
Matt Pass
bfea966a14
Replace on SCRIPT_FILENAME
...
By replacing on this rather than __FILE__, we have a full file path and
can actually exclude the current working folder
2014-01-16 14:15:34 +00:00
Matt Pass
58e7c5ec42
preg_replace to remove full path prefix
...
Use preg_replace to only replace the first instance on a full path to
make it local
Avoids str_replace replacing all instances in the string
2014-01-15 10:39:31 +00:00